Added an aditional testunit to the VlanNetworkTestCase to check
if the FixedIpNotFoundForNetwork exception is raised properly.
Change-Id: I92a0ca22aadcfa9a7fd434375e239be8ccf4f387
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
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
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
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
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
* 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
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>
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
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
When a destination version is specified, check the current version and allow
downgrading the schema. Fixes bug 865357.
Change-Id: I47104158884421de92f50322a72243c170a4f1ad
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
Makes sure that the snapshot and the temporary directory is cleaned up,
even if qemu-img fails. Fixes bug 861582.
Change-Id: I3c7798215c8d0d5dc979379a13e038098b0f31d4