cad0f06ec94d733d88eb5b3983afc22b4604d1b2
Commit Graph

23430 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Jenkins
cad0f06ec9 Merge "Only return requested network ID's" 2013年09月17日 15:58:06 +00:00
Jenkins
db6721b5f8 Merge "update .mailmap" 2013年09月17日 02:57:26 +00:00
Jenkins
d0a7a32a7c Merge "Make v3 API versions extensions core" 2013年09月17日 00:51:35 +00:00
Jenkins
e62dae28db Merge "Remove duplicate test from V3 version of test_hosts" 2013年09月16日 22:24:17 +00:00
Jenkins
8e6dcc253f Merge "Fix rename q_exc to n_exc (from quantum to neutron)" 2013年09月16日 22:23:46 +00:00
Jenkins
9283a19953 Merge "Add missing indexes back in from 152" 2013年09月16日 22:23:13 +00:00
Jenkins
7bd4dc452a Merge "Don't use sudo to discover ipv4 address." 2013年09月16日 22:22:42 +00:00
Jenkins
22057c384b Merge "Translate more REST API error messages" 2013年09月16日 22:20:17 +00:00
Jenkins
1d1115e890 Merge "Wire in ConfKeyManager._generate_hex_key!" 2013年09月16日 22:19:32 +00:00
Jenkins
a77763244f Merge "Remove unused method in scheduler driver" 2013年09月16日 22:19:01 +00:00
Aaron Rosen
ec91e8fa7f Fix rename q_exc to n_exc (from quantum to neutron)
The patch fixes one file where q_exc was not renamed to n_exc during
the quantum to neutron rename.
Fixes bug: 1226162
Change-Id: I77625324b378bbe0e1461e5fea77c9747ca33624
2013年09月16日 14:17:12 -07:00
Jenkins
715a49b636 Merge "Drop unused logger from keymgr/__init__.py" 2013年09月16日 20:46:50 +00:00
Jenkins
c648b1a13c Merge "Move required keymgr classes out of nova/tests" 2013年09月16日 20:46:19 +00:00
Jenkins
f11dc6b3bc Merge "xenapi: Add per-instance memory overhead values" 2013年09月16日 16:36:55 +00:00
Dan Prince
8415d37990 Don't use sudo to discover ipv4 address.
Running unit tests on a plane (with no network) and I recently
discovered that the Nova unit tests were prompting me for sudo.
A quick look showed the following command being executed:
 nova-rootwrap /etc/nova/rootwrap.conf ip -f inet -o route show
This patch updates utils.get_my_ipv4_address() and
the private _get_ipv4_address_for_interface function so they run
commands without using sudo.
Change-Id: Id9c33c9383a9f5b2e1fce1b0f5afcc2a27a271c6
2013年09月16日 06:11:03 -07:00
Jenkins
8e0d9dacfd Merge "Don't generate notifications when reaping running_deleted instances" 2013年09月16日 12:08:23 +00:00
Jenkins
6a027703b9 Merge "Update mailmap for jhesketh" 2013年09月13日 22:12:52 +00:00
Jenkins
79b2ed0131 Merge "Ignore H803 from Hacking." 2013年09月13日 19:46:11 +00:00
Jenkins
ba4bd1aad1 Merge "Need to allow quota values to be set to zero" 2013年09月13日 19:34:18 +00:00
Jenkins
2825ad2dc2 Merge "pci passthrough fails while trying to decode extra_info" 2013年09月13日 19:23:10 +00:00
Jenkins
d207aa8dc6 Merge "VMware: fix driver support for hypervisor uptime" 2013年09月13日 18:07:30 +00:00
Jenkins
09a27c1d24 Merge "Get image properties instead of the whole image" 2013年09月13日 17:58:54 +00:00
Phil Day
d9be80288e Don't generate notifications when reaping running_deleted instances
The periodic task which looks for instances which have been deleted
but are still running at the hypervisor supports a "reap" action to
delete them. It does this by calling the _shutdown_instance() method
which as part of its processing will send notification messages.
However, the notification code depends on the instance object
including system metadata information, and the db queries that build
instance objects do not extend the "read deleted" filter down to
these queries. This results in an exception in the shutdown code
which in turn prevents the VM from being deleted.
A seperate bug has been submitted to make deleted instance objects
consistent with undeleted ones, which would fix the KeyError.
However the reap code should also not send notification messages.
The instance was deleted some time ago, and so messages will have
been generated then. Sending new messages for the instance at this
point will confuse any billing and monitoring systems.
In the event the original shudown/delete notifictaions were lost
the absense of "instance.exists" messages already addresses this
case.
Fixes bug: 1224981
Change-Id: Id463860e3046e13ce86b472d46e1ff4a43abcee4
2013年09月13日 16:02:18 +00:00
Dan Prince
2f43ba83b6 Wire in ConfKeyManager._generate_hex_key!
Rename _get_hex_key to _generate_hex_key so that this
key manager works with the super class it extends.
In making this change we also need to initialize the hex key
in the constructor before initializing the super class. Not
doing so causes test failures.
Fixes bug: 1224602
Change-Id: I9a6bd9bf96bf74a08e607af811ebbe9622b994f3
2013年09月13日 07:08:51 -04:00
Dan Prince
b869796847 Drop unused logger from keymgr/__init__.py
Change-Id: I930be566f68c206d94f0e42432fe93b4135bcd42
2013年09月13日 07:08:51 -04:00
Dan Prince
a0d785868c Move required keymgr classes out of nova/tests
Currently the Nova default keymgr implementation tries to
import classes from nova/tests. This could be a very bad
thing for production deployments which may not include
code from nova/tests.
This change moves two required modules (single_key_mgr and
mock_key_mgr) into the nova/keymgr tree.
Fixes bug: #1224526
Change-Id: I683b0245ab6b6acf8a4ba26f96d8c505f7c7cac8
2013年09月13日 07:08:16 -04:00
Matt Odden
c441af4981 Translate more REST API error messages
There were a few exception messages that were not being
translated because they were being wrapped and modified
before being turned into wsgi.Fault objects by
FaultWrapper. This adds some translation handling to
the FaultWrapper so we can get these messages localized
to the client's language specified in the Accept-Language
header.
Additionally adds a test to verfiy FaultWrapper is
translating any exception messages that can be.
fixes bug 1225226
Change-Id: I3847cff0ac4b37f57eb04b27150c4e0d1ea23f29
2013年09月13日 10:30:07 +00:00
He Yongli
0663778c53 pci passthrough fails while trying to decode extra_info
pci device with empty extra_info should use null dict instead of
None. keep the init of extra_info to make db could access it.
Closes-Bug: #1223559
Change-Id: I2e57eb53dfd4f5168d52dc94c2057fc575458aee
Signed-off-by: Yongli He <yongli.he@intel.com>
2013年09月13日 17:49:56 +08:00
Yaguang Tang
bdac306b16 Update requirements not to boto 2.13.0
Latest boto 2.13.0 has a bug which lead to unit tests fails, before
it's fixed avoid use this version.
Fix bug #1224832
Change-Id: I8a81adfc0cb0ad37d27b11db3c881735a099a95c
2013年09月13日 15:26:53 +08:00
Yaguang Tang
85cb33ffe6 Remove unused method in scheduler driver
Scheduler driver code clean, remove method encode_instance in scheduler
driver, since it's unused since Folsom.
Fix bug #1224783
Change-Id: I8bd7ee55a4b522d4c628c7f652833dfa20342b33
2013年09月13日 12:32:30 +08:00
Robert Collins
2d144f0b3a Ignore H803 from Hacking.
H803 checks for a period in commit messages, something the community
clearly rejected as a sensible check: periods in commit messages
should neither be rejected or required.
Change-Id: I866928c638d23a307f4c11b7cb947e88f90f1ab2
2013年09月13日 13:56:35 +12:00
Jenkins
2f6022f6bf Merge "Add missing notifications for rescue/unrescue" 2013年09月12日 23:25:12 +00:00
Jenkins
302e686be9 Merge "VMware image clone strategy settings and overrides" 2013年09月12日 22:40:42 +00:00
Monsyne Dragon
fe2b0d37f7 Add missing notifications for rescue/unrescue
The rescue and unrescue operations are missing start/end notifications for
the operation. Most Nova instance operations emit
compute.instance.<operation>.start/end notifications, which external systems
can use to track changes in the state on an instance (e.g. for billing
purposes). Rescues change launched_at for the instance, which can prevent an
external system from having a consistant picture of the instances' running,
unless they take that into account.
Change-Id: I3d7d334c88953ddf693c864c3e5e0746cdd2056c
Closes-bug: 1224088
2013年09月12日 20:11:22 +00:00
Jenkins
ddfffc4877 Merge "Add REUSE_EXT in _swap_volume call to blockRebase" 2013年09月12日 20:07:11 +00:00
Jenkins
1597d38235 Merge "Fixes misuse of assertTrue in Cells test scripts" 2013年09月12日 19:17:25 +00:00
Jenkins
3c3b2def1b Merge "Fix regression issues with cells target filter" 2013年09月12日 18:45:57 +00:00
Jenkins
be940556f7 Merge "Remove unused and wrong code in test_compute.py" 2013年09月12日 16:48:58 +00:00
Jenkins
7329f444ab Merge "Fixes misuse of assertTrue in compute test scripts" 2013年09月12日 15:09:00 +00:00
Jenkins
f138104324 Merge "Add expected_errors for extension aggregates v3" 2013年09月12日 15:08:29 +00:00
Jenkins
d27a7508b2 Merge "Fix v3 swap volume with wrong signature" 2013年09月12日 15:07:57 +00:00
Jenkins
3ed80c3c7d Merge "Fix live-migrate when source image deleted" 2013年09月12日 15:06:47 +00:00
Chris Yeoh
1d625e27df Make v3 API versions extensions core
Adds the versions extension to the core list.
+DocImpact
Partially implements blueprint nova-v3-api
Change-Id: I214db47a56bff160764340bd6793d7612d043ef3
2013年09月12日 21:34:40 +09:30
Xavier Queralt
fde21fd183 Get image properties instead of the whole image
When booting an instance using the new BDMv2 API we can specify to boot
from a volume created from an image on the fly. In this case the API
should pass the image properties to the new instance so it can get some
important parameters that it might specify.
After adding the new BDMv2 API in 13180f76, we introduced a mistake in
the method that gets the image properties (from the boot BDM) if no
image_ref is defined. When the source is an image it will return the
whole image metadata instead of getting just the properties. This
causes that when the source image is an AMI the instance won't have the
ramdisk and kernel properties set and will fail to boot.
This patch fixes the image properties when booting from a volume created
from an image.
Fixes bug #1220318
Change-Id: Ibcd60510cc909fcaa0d6d4769f91c070dfaf22ff
2013年09月12日 10:53:57 +02:00
Joshua Hesketh
341755935e Update mailmap for jhesketh
Add my preferred and alternative email in.
Change-Id: I9d8a02cb044479145c1d22e6bd57a5733b8d2065
2013年09月12日 14:50:59 +10:00
Dan Smith
4e842e38a2 Fix asymmetric view of object fields
This adds an obj_fields property which returns a combined view of the
real field key names as well as the extra_fields. This will help
avoid bugs where we forget to consider extra_fields.
Change-Id: I93351ccc9f87817deca06e9a2d94f82a3dd5f51a
Closes-bug: 1223888
2013年09月11日 14:00:20 -07:00
Jenkins
be57317a50 Merge "Remove docstrings in tests" 2013年09月11日 20:48:04 +00:00
Jenkins
24b81105bf Merge "Clean up object comparison routines in tests" 2013年09月11日 20:46:19 +00:00
Jenkins
4d89bda3d7 Merge "Add encryption support for volumes to libvirt" 2013年09月11日 19:19:58 +00:00
Jenkins
7083d3e0df Merge "Add key manager implementation with static key" 2013年09月11日 19:19:26 +00:00