| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \ \ \ |
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Implements blueprint use-common-jsonutils
1. Edit openstack-common.conf and import nova/openstack/common/jsonutils.py
2. Remove json package imports and replace with jsonutils
Places where using json.load hasn't changed.
Change-Id: Ie6feab605fb0474fd505c56ef57b7a9ecfa5269d
|
| |\ \ \ \ |
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix bug 999698.
nova-compute requested network info for each instance on startup via rpc.
If all services get (re)started at the same time, nova-network may not
be available to take this request, resulting in a lost request. To
combat this issue, get the network info from the cache in the database
on startup. If by some chance this information is not correct, it will
get fixed up by a periodic task.
Change-Id: I0bbd475e078ac2a67c99c2be4711e86d617c609a
|
| | |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Shrink tox.ini to the new short version.
Fix the test cases to be able to be run in nosetets plus the
openstack.nose_plugin, which finally removes the need for
nova/testing/runner.py
Also, now we'll just output directly to stdout, which will
make nose collect the trace logging directly and either output
it at the end of the run, or inject it into the xunit output
appropriately.
Change-Id: I1456e18a11a840145492038108bdfe812c8230d1
|
| |\ \ \
| |/ /
|/| | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
compute.api changes:
* improves state handling for delete/restrore
* removes hack to deal with SHUTOFF on start
* fixes api tests (volume shouldn't detach on stop)
compute.manager changes:
* uses power_off/power_on for stop/start
virt.libvirt changes:
* implements power_off/power_on for libvirt
* synchronizes usage of domain.create()
* cleans up usage of instance.name
* added tests for power_on and power_off
* fixes bug 1006950
Change-Id: I91845a643e3f97955e7c81ca57c6ee5aa0a3d295
|
| |\ \ \ |
|
| | | |/
| |/|
| | |
| | | |
Change-Id: I92bfd6b51aa31abb06e21893174101da31baffd8
|
| |\ \ \
| | |/
| |/| |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* minimizes duplicated code for create
* makes wait_for_destroy happen on shutdown instead of undefine
* allows for destruction of an instance while leaving the domain
* uses reset for hard reboot instead of create/destroy
* makes resume_host_state use new methods instead of hard_reboot
* makes rescue/unrescue not use hard reboot to recreate domain
Change-Id: I2072f93ad6c889d534b04009671147af653048e7
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | | |
Change-Id: Ieab9c492aa526903c55f17b87b70fe7c25372f5e
|
| |\ \ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* fixes bug 1007266
* passes rescue image data to get_config so it only adds
the kernel and ramdisk if necessary
* adds tests to make sure that the kernel and ramdisk
only appear if they are needed
Change-Id: I32e0369a066ce2b6189b4a015b30ffd8b6d3ec66
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Move the trivial implementation from admin_actions to compute.api
* Remove the dependency to scheduler from admin_actions
* Add check_instance_state like all other compute APIs to prevent
undesirable behavior
Change-Id: Ib5176718eae624de982f641bf3ec201fc7b4efcc
|
| |\ \ \ \ \
| |_|_|/ /
|/| | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Updates the libvirt image cache manage so that it accounts
for instances which are resizing.
Also fixes an issue where an exception was thrown when
the image cache manager ran while instances were resizing.
This is because instances which are resizing may have files in the
Nova instances directory which are missing backing files.
Fixes LP Bug #1006616.
Change-Id: I724c6855b68eca24a00893fd96b26b1443f9da5c
|
| |\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Adds a new virt driver function to help resume guest states
on host boot. This fixes a couple issue with using a reboot
(like we did previously):
* Using reboot would clear some task states (VERIFY_RESIZE for example)
* Provides a mechanism for hypervisor specific guest restarts.
Reboot would not have worked for XenServer for example...
* Updates libvirt to use a hard reboot (instead of soft)
Fixes LP Bug #985162.
Change-Id: Iaf5aad75ec9b91f44710a18ddaf3a93378573a62
|
| |\ \ \ \ \
| |_|_|_|/
|/| | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes bug #1008023
Change-Id: Ifb8ecbb7430fdabd7b5d81ab23df66942abd9cb7
|
| |\ \ \ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Part of bug 1006467.
This patch adds 3 methods used to check if shared storage works between
two compute hosts to the compute rpcapi. These methods are used by the
scheduler.
This also cuts down on some duplicated code in test_scheduler.
Change-Id: If0bf7f7fdd2beb0e5280ae52daf049372f8bc9e2
|
| |\| | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Part of bug 1006467.
This patch adds get_instance_disk_info to the compute rpcapi, which is
used by the scheduler.
Change-Id: Ibb4a86d92ef402a3cc993212dfb8ce073c1c542d
|
| |\| | | | |
| |_|_|/ /
|/| | | | |
|
| | |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Part of bug 1006467.
Add the remove_volume_connection method to the compute rpcapi. This is
used by the compute manager.
Change-Id: I307d85782baa371a16c80bd9ecabf449a60a0876
|
| |\ \ \ \
| | | | |
| | | | |
| | | | | |
instances."
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Continued work on blueprint finish-uuid-conversion.
Change-Id: Id5c33c2aa3560462aded102c670a82997eeda949
|
| |\ \ \ \ \ |
|
| | |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes LP Bug #1008625.
Change-Id: I2b0dc97133b3039818a52e0b8456dc31cdbd714e
|
| |\ \ \ \ \ |
|
| | |/ / / /
| | | | |
| | | | |
| | | | | |
Change-Id: I7d941a97bf250428e70e8a4ee65ab6cb70fdfcfb
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix bug 985184.
When creating security group rules, any case for the protocol was
accepted as input, such as TCP, Tcp, tcp, etc., and was stored in the
database as specified. However, unless specified as all lowercase, the
code to apply the rules would break and result in some rules not being
applied.
Change-Id: I6c723d371579eb37a94bd484d39beeb773668ed4
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Continued work on blueprint finish-uuid-conversion.
Change-Id: I64302d0abb2e734422e6b0fee8f12e90f4ce711a
|
| |\ \ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The `disabled` field is intended to be used when phasing out
instance-types. In this case, a delete wouldn't work because the
instance-type needs to still be available for live instances using that
type, but we don't want to allow *new* instances created from that type.
In addition, we don't want to list hidden instance-types for regular
users, but we *do* want to list them for admin-users to ensure they have
a complete view of what's going on in the system.
Once all references to the phased-out instance-type have been dropped,
it would be safe to mark the instance-type as `deleted=True`.
Change-Id: I2af1c027f4d8114aee31353007dfdd3d0bb679ed
|
| |/ / / /
| | | |
| | | |
| | | |
| | | | |
Change-Id: I08f4724a7ef664cfebba57c5c9495494853289a8
Reference: http://libvirt.org/html/libvirt-libvirt.html#virDomainMigrate
|
| |\ \ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Removed duplicate and invalid state in power_state:
FAILED, SHUTOFF, BLOCKED
This is the first step in cleaning up nova state machine
and do better task management (bp/task-management)
http://wiki.openstack.org/VMState
Change-Id: I586b9058fada5efd468870fb187590fc0e37aa8f
|
| |\ \ \ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ic8be1657dbad0cd91fdb5176f17f7b1ba034c2e0
|
| |/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This addresses two closely related bugs.
Bug: 998199
Fix the "used" and "total" counts
in the returned diagnostic.
Bug: 902218
Itemize instance quota items exceeded,
in the returned diagnostic.
Change-Id: Iff7781a7fb53545d44c2b4ec0ca6d65114723c8d
|
| |\ \ \ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Reworks nova to use the new policy module in openstack-common.
Change-Id: Iea8651bad85f26804285616330107d9d5f23e6cb
|
| |\ \ \ \ \ \ |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The XenAPI driver has the concept of helper classes. All methods
have been classmethods and the classes themselves are never
instantiated. As a result, they only add an extra namespace
lookup and provide no value.
This is the last patch in this series
Change-Id: I314dfa6555d38be9b0988270b3367c4ae86b19bb
|
| |\| | | | | | |
|