Commit Graph

244 Commits

Author SHA1 Message Date
Jenkins 1851662edb Merge "Bug #887805 Error during report_driver_status(): 'LibvirtConnection' object has no attribute '_host_state'" 2011-11-12 17:53:58 +00:00
Alvaro Lopez 6e7b0387e4 Fixes bug 871877
Added an aditional testunit to the VlanNetworkTestCase to check
if the FixedIpNotFoundForNetwork exception is raised properly.

Change-Id: I92a0ca22aadcfa9a7fd434375e239be8ccf4f387
2011-11-10 14:59:58 +01:00
Édouard Thuleau 1ecd70f23a Bug #887805 Error during report_driver_status(): 'LibvirtConnection' object has no attribute '_host_state'
Fixes the host status reports from LibvirtConnection driver.
This fix initializes in class 'LibvirtConnection', the local variable
'_host_state' and replaces the variable 'session' by the local
variable 'read_only'.

Change-Id: Ia3ba29dc287c793c79a2bbde0d5ec69eb6ada480
2011-11-10 09:52:11 +01:00
Derek Higgins ad7fcf225e Undefine libvirt saved instances
Fixes bug 814561

Adding a call to managedSaveRemove if the instance has a
saved instance, so they are now undefined in addition to running
instances during destroy
With test case

Also added myself to Authors

Change-Id: If93e8ac6972116152f38e187bd1a61c652855814
2011-11-09 22:48:46 +00:00
garyk 813794ed46 Blueprint lasterror
Add in a log report to nova-manage

Usages:

Get the last errors in the nova logs
    nova-manage logs errors

Get the last x nova messages in the syslog. The default is 10
    nova-manage logs syslog <x>

Change-Id: Id5d3a546051e25175b6523711f437618d07c3f19
2011-11-08 16:50:46 +02:00
Unmesh Gurjar bef4ae5092 Fix lp:861160 -- newly created network has no uuid
Implemented code review changes.
Fixed issue causing pep8 build failure.
Change-Id: If2cc0e23be8d4e1558a10fa86e6ba4cdec61b7d1
2011-10-31 11:32:09 +05:30
Joe Gordon fbe692f9d7 fixes bug 883233.
Added to Authors
fix typo in scheduler/driver.py assert_compute_node_has_enough_memory.

Change-Id: I21a17c9f2d147febd0035c6f396b6956696627da
2011-10-29 00:07:45 -07:00
Asbjørn Sannes 636c70c3c9 Fix deletion of instances without fixed ips.
Catch exception when there are no fixed ips for an instance when deallocating it.

When trying to delete failed builds I got the following traces:

(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE:   File "/usr/lib64/python2.7/site-packages/nova/rpc/impl_kombu.py", line 620, in _process_data
(nova.rpc): TRACE:     rval = node_func(context=ctxt, **node_args)
(nova.rpc): TRACE:   File "/usr/lib64/python2.7/site-packages/nova/network/manager.py", line 252, in deallocate_for_instance
(nova.rpc): TRACE:     fixed_ips = self.db.fixed_ip_get_by_instance(context, instance_id)
(nova.rpc): TRACE:   File "/usr/lib64/python2.7/site-packages/nova/db/api.py", line 392, in fixed_ip_get_by_instance
(nova.rpc): TRACE:     return IMPL.fixed_ip_get_by_instance(context, instance_id)
(nova.rpc): TRACE:   File "/usr/lib64/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 120, in wrapper
(nova.rpc): TRACE:     return f(*args, **kwargs)
(nova.rpc): TRACE:   File "/usr/lib64/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 877, in fixed_ip_get_by_instance
(nova.rpc): TRACE:     raise exception.FixedIpNotFoundForInstance(instance_id=instance_id)
(nova.rpc): TRACE: FixedIpNotFoundForInstance: Instance 37 has zero fixed ips.

Which this commit fixes.

Added myself to Authors as requested.

Change-Id: I87a1764c16328c6a4bfa5a0bfab1ea4800cbb355
2011-10-26 19:14:20 +02:00
Jenkins 83945367c2 Merge "Fix undefined glance_host in get_glance_client" 2011-10-25 15:13:58 +00:00
Jenkins f398289a30 Merge "Improve access check on images" 2011-10-25 09:50:57 +00:00
Mike Lundy 7a5b882279 Fix undefined glance_host in get_glance_client
get_glance_client is stubbed in the tests, so they didn't catch it.
Added tests to catch it.

Also, add myself to Authors file.

Change-Id: Ie7c1e90c3999f7f4b45af1cedd7c3570b48af43e
2011-10-24 21:25:50 -07:00
Vishvananda Ishaya eb03d47fec Remove AoE, Clean up volume code
* Removes Ata Over Ethernet
 * Adds drivers to libvirt for volumes
 * Adds initialize_connection and terminate_connection to volume api
 * Passes connection info back through volume api

Change-Id: I1b1626f40bebe8466ab410fb174683293c7c474f
2011-10-11 14:25:04 -07:00
Jenkins e164f3f703 Merge "Handle pidfile exception for dnsmasq" 2011-10-11 21:19:42 +00:00
Julien Danjou 33e58925c7 Include original exception in ClassNotFound exception
By doing this, we allow the error messages to be more useful. When an import
of a class fails because of a missing module dependency, it would have fail
that way for example:

$ nova-manage
Traceback (most recent call last):
  File "./bin/nova-manage", line 84, in <module>
    from nova import image
  File "/home/jd/Work/src/nova/nova/image/__init__.py", line 22, in <module>
    from nova.image import glance
  File "/home/jd/Work/src/nova/nova/image/glance.py", line 42, in <module>
    GlanceClient = utils.import_class('glance.client.Client')
  File "/home/jd/Work/src/nova/nova/utils.py", line 66, in import_class
    raise exception.ClassNotFound(class_name=class_str)
nova.exception.ClassNotFound: Class Client could not be found

This does not help the user, since it indicates the class Client cannot be
found, even if it is actually found but fail to import.

With this commit, the error message is better:
nova-manage
Traceback (most recent call last):
  File "./bin/nova-manage", line 84, in <module>
    from nova import image
  File "/home/jd/Work/src/nova/nova/image/__init__.py", line 22, in <module>
    from nova.image import glance
  File "/home/jd/Work/src/nova/nova/image/glance.py", line 42, in <module>
    GlanceClient = utils.import_class('glance.client.Client')
  File "/home/jd/Work/src/nova/nova/utils.py", line 66, in import_class
    raise exception.ClassNotFound(class_name=class_str, exception=exc)
nova.exception.ClassNotFound: Class Client could not be found: No module named kombu.connection

This helps to know that in this kombu is missing.

It would probably even better to rename ClassNotFound to
ClassCannotBeImported or something like that too.

Change-Id: I4100d931a0a825fa0729d5467d2f9268fdd2a261
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-10-10 09:55:37 +02:00
Jenkins 309229324b Merge "Allow db schema downgrades" 2011-10-07 20:27:30 +00:00
Yun Shen a25f106c2f Handle pidfile exception for dnsmasq
Capture the exception in dnsmasq_pid_for method. If the pidfile cannot be read
for some reason, it should be treated as if it does not exist. This prevents
issues where the filesystem write delay leaves the file created but empty.
Fixes bug 865399.

Change-Id: I3b0f1211762696f925ae32d785ffa6a35c5e1d6b
2011-10-06 10:44:10 +01:00
Ahmad Hassan beee11edbf Stop returning correct password on api calls
Captured invalid signature exception in authentication step, so that
the problem is not returning exception to user, revealing the real
password.
Fixes bug 868360.

Change-Id: Idb31f076a7b14309f0fda698261de816924da354
2011-10-05 15:02:50 +01:00
Stanislaw Pitucha eed546053a Allow db schema downgrades
When a destination version is specified, check the current version and allow
downgrading the schema. Fixes bug 865357.

Change-Id: I47104158884421de92f50322a72243c170a4f1ad
2011-10-03 17:12:14 +01:00
Loganathan Parthipan cb37d895a6 Improve access check on images
Makes sure that users can delete only their own images, snapshots.
Enable listing of all images, both private which are owned and the public
ones. Only list the private images/snapshots for the owner and admin users.
Fixes bug 863305

Change-Id: I7326ec4a99158c8db5319f2397c99c5a89be2cb5
2011-09-30 17:40:56 +01:00
David Subiros eb6432361e Enforce snapshot cleanup.
Makes sure that the snapshot and the temporary directory is cleaned up,
even if qemu-img fails. Fixes bug 861582.

Change-Id: I3c7798215c8d0d5dc979379a13e038098b0f31d4
2011-09-29 10:57:27 +01:00
Brendan Maguire 07cf091f9f Signer no longer fails if hashlib.sha256 is not available. test_signer unit test added.
Change-Id: I7cea9900c2ccabc30800a167f127ada8386a724b
2011-09-28 09:38:17 +01:00
Aaron Lee d2ac401fbb Adding run_test.sh artifacts to .gitignore
Adding myself to the Authors file.

Change-Id: Ifcedc2b7925f293cc47fb1eda9fbc14fa045918a
2011-09-27 10:31:44 -05:00
James E. Blair 37100f5653 Add rfc.sh to help with gerrit workflow.
Change-Id: Ida3c5cd3f10d776890f3f50bf18c8e5d2817c391
2011-09-22 15:21:01 -07:00
Brad McConnell bmcconne@rackspace.com b9c708064a added to authors cuz trey said I cant patch otherwise! 2011-09-19 22:21:10 -05:00
Tushar Patil 229e5fe8a1 Merged trunk 2011-09-08 11:47:56 -07:00
Dan Wendlandt 0f5eb3f888 merge trunk 2011-09-07 14:27:06 -07:00
Keisuke Tagami b9ef3dcaa2 added me to Authors 2011-09-06 10:10:25 +09:00
Thuleau Édouard 864f3b24c6 Change non E ascii characte. 2011-09-03 09:36:06 +02:00
Thuleau Édouard 55f0a6a058 Email error again. Tired. 2011-09-02 20:29:58 +02:00
Thuleau Édouard c5acb61863 Email error. 2011-09-02 20:25:18 +02:00
Thuleau Édouard 78bb09eace Email contact error. 2011-09-02 16:17:18 +02:00
Thuleau Édouard c5a90f842c Update Authors file. 2011-09-02 16:01:13 +02:00
danwent@gmail.com a4bd14f86f merge trunk 2011-08-28 20:06:55 -07:00
Dan Wendlandt 87a5fefe5b Add brad to Authors file 2011-08-25 23:18:38 -07:00
Mark McLoughlin e38ba3a606 Just a couple of small changes I needed to get the migrations working with SQLAlchemy 0.7.x on Fedora 16 2011-08-26 00:14:51 +00:00
Mark McLoughlin b77d1462eb Add me to Authors 2011-08-24 22:16:02 +01:00
Tim Simpson 8371335942 Merged from upstream. 2011-08-23 13:16:04 -05:00
Christopher MacGown b91a5542c1 Merged trunk 2011-08-22 21:17:57 -07:00
Tim Simpson 1b9cc046e9 Upstream merge 2011-08-22 14:07:27 -05:00
Tim Simpson e36ebf3169 Added ability to detect import errors in list_notifier if one or more drivers could not be loaded. 2011-08-22 14:06:59 -05:00
Troy Toman 79f3b15121 Changed return code to 413 for metadata, personality and instance quota issues 2011-08-17 02:41:17 -05:00
Kei Masumoto ea53d0f37a Adding kvm-block-migration feature.
I wrote some description the below URL. I hope it may help for reviewing.
<http://etherpad.openstack.org/kvm-block-migration>
2011-08-15 20:31:43 +00:00
Donal Lafferty 1fe628fbe1 Added ability too boot VM from install ISO. System detects an image of type iso. Images is streamed to a VDI and mounted to the VM. Blank disk allocated to VM based on instance type.
Currently available for XenServer.
2011-08-14 04:25:46 +00:00
Christopher MacGown 3f82580b98 Merge config_drive with trunk 2011-08-12 14:23:10 -07:00
Kei masumoto 7393a114f4 merged rev1418 and fixed code so that less than 1G image can be migrated 2011-08-13 04:00:48 +09:00
vladimir.p 4ce5c65e40 Author added 2011-08-11 16:32:51 -07:00
Jake Dahn c95954ca1a adding myself to authors 2011-08-09 14:17:56 -07:00
Donal Lafferty 04af316f17 Trunk contained PEP8 errors. Fixed. 2011-08-05 09:51:50 +01:00
Mandell Degerness ca79470843 Fix to nova-ajax-console-proxy to use the new syntax.
create_consumer and create_connection abstractions were added recently.
2011-08-04 10:43:16 -07:00
Kei Masumoto c75e2ee89f merged trunk rev1348 2011-08-02 18:43:30 +09:00