26030 Commits

Author SHA1 Message Date
Jenkins
311652325b Merge "Make nova-network use FixedIP object for updates" 2014-02-14 19:35:15 +00:00
Jenkins
b66a092a7a Merge "Make nova-network use FixedIP object for disassociations" 2014-02-14 18:40:28 +00:00
Jenkins
215d646177 Merge "Replace oslo.sphinx with oslosphinx" 2014-02-14 17:34:18 +00:00
Jenkins
a1fe8dfd58 Merge "Convert unrescue_instance to objects" 2014-02-13 20:20:36 +00:00
Jenkins
bf0c24c070 Merge "Don't allow compute_node free_disk_gb to be None" 2014-02-13 17:31:22 +00:00
Michael Still
ec78b42d7b Convert unrescue_instance to objects
Related to blueprint icehouse-objects.
Related to blueprint compute-manager-objects.

Change-Id: Id1311064354ee055a3557ce6aafca148c76524ec
2014-02-14 01:19:31 +11:00
Mark McLoughlin
6aa36ab382 Don't allow compute_node free_disk_gb to be None
As part of commit 5668870, we now explicitly guard against the case
free_disk_gb is None or unset. However, this should never happen
since resource tracker always sets it and guarding against this case
isn't actually needed to fix the bug in question.

Also, simplify the code a little to make the intent more clear. We
assume that free_disk_gb is always set, but we want to use
disk_available_least where the driver has set it. The case where
disk_available_least is less than free_disk_gb is the exceptional
case we want to guard against.

Change-Id: I3973eab6b4ca016df546de8b57245fc0d0f03a80
2014-02-13 12:26:24 +00:00
Jenkins
7d95d729a3 Merge "Correct host managers free disk calculation" 2014-02-13 12:10:22 +00:00
Jenkins
b541ecc36b Merge "Change assertTrue(isinstance()) by optimal assert" 2014-02-13 11:11:04 +00:00
Jenkins
a287beab73 Merge "Fix baremetal stats type" 2014-02-13 06:26:40 +00:00
Jenkins
91b17d8daf Merge "VMware: fix bug for exceptions thrown in _wait_for_task" 2014-02-13 02:11:34 +00:00
Jenkins
d96a6ddb86 Merge "Adds migrate server extension for V3 API" 2014-02-13 01:12:40 +00:00
Jenkins
094dadfe6f Merge "Make image props filter handle old vm_modes" 2014-02-12 22:37:57 +00:00
Jenkins
111d1d97bf Merge "Set a sane default for state_path" 2014-02-12 22:04:35 +00:00
Jenkins
4e7db76cef Merge "Move policy check of start/stop to api layer" 2014-02-12 21:05:19 +00:00
Ben Nemec
c926216a9b Replace oslo.sphinx with oslosphinx
oslosphinx is now available as a replacement for oslo.sphinx that
won't conflict with oslo.config in virtual envs.

Change-Id: I7c116f816af895261e76af385ee3e9288e6fa70f
Closes-Bug: #1277168
2014-02-12 16:45:49 +00:00
Marcos Lobo
d5e8f1af67 Change assertTrue(isinstance()) by optimal assert
Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.

Change-Id: I4a5413f9d90d2e581044885a440a46bf3d76598f
Closes-Bug: #1268480
2014-02-12 16:19:08 +01:00
Dan Smith
542958fac7 Make nova-network use FixedIP object for updates
This makes nova-network manager use the FixedIP object for
updates instead of direct database calls.

Related to blueprint nova-network-objects

Change-Id: Ia191148cf7510ffdb0fbd4186fa34bb4c5ab1b0f
2014-02-12 06:34:42 -08:00
Dan Smith
79121d9a11 Make nova-network use FixedIP object for disassociations
This makes nova-network mananger use the FixedIP object for
disassociating IPs.

Related to blueprint nova-network-objects

Change-Id: Ia0a38bbd31cc22095893bff89bcaa402a9bc2722
2014-02-12 06:34:42 -08:00
Jenkins
8bc9586056 Merge "Add hpet option for time drifting" 2014-02-12 13:28:37 +00:00
Jenkins
93b0fc130a Merge "libvirt: Adds missing tests to copy_image" 2014-02-12 10:59:44 +00:00
Jenkins
5daea2e8e0 Merge "Delete baremetal image files after deployment." 2014-02-12 08:49:29 +00:00
Jenkins
07c44c6859 Merge "Remove policy check in db layer for aggregates" 2014-02-12 08:48:24 +00:00
Jenkins
3528e80017 Merge "Update policy check on each action for certificates" 2014-02-12 08:45:25 +00:00
Jenkins
45477ef178 Merge "Remove character filtering from V3 API console_output" 2014-02-12 08:44:22 +00:00
Jenkins
eab90a9277 Merge "Using six.add_metaclass" 2014-02-12 07:53:43 +00:00
Jenkins
4b7401ccc6 Merge "Fix english grammar in the quota error messages." 2014-02-12 07:52:50 +00:00
Jenkins
b15bfc8e08 Merge "Remove flavor-disabled related policy rules for v3 api" 2014-02-12 07:25:46 +00:00
Jenkins
d22640c990 Merge "Removes console output plugin from the core list" 2014-02-12 06:53:26 +00:00
Jenkins
494ce1f028 Merge "Fix incorrect check in aggregate/az test" 2014-02-12 06:52:22 +00:00
Jenkins
3ca3dce140 Merge "Remove quota classes extension from the V3 API" 2014-02-12 06:48:33 +00:00
Chris Yeoh
830ac0f065 Adds migrate server extension for V3 API
Moves the migrate/live-migrate server functionality out of admin_actions into
its own extension. This part of the blueprint v3-admin-actions-split
allows more selective enablement of features contained in the admin
actions extension.

Note the XML api samples are no longer generated because
bp remove-v3-xml-api has been approved.

Refactor removes some exception handling for migrate along with the relevant tests
as those exceptions will never occur.

Partially implements bp v3-api-admin-actions-split
DocImpact: Adds os-migrate-server extension and moves migrate/live-migrate
functionality out of os-admin-actions into this new extension.

Change-Id: I6b29f501ad6bb9a6401b1c20cd419d9e05fe369b
2014-02-11 22:20:12 -07:00
He Jie Xu
14efa0a9fb Move policy check of start/stop to api layer
This patch moves "compute:start/stop" to api layer for ec2 and nova
v2 api, and uses "compute:v3:servers:start/stop" for nova api v3.
Also removes policy check from compute api. And give default rules
for v3 policy check.

Add core_authorizer with 'compute:' as the scope of core api in v3.
That's for distinguishing core and extension api. Use different namespace
for policy. The policy of core api will be 'compute:v3:extension_name'.

Partially implements bp v3-api-policy
DocImpact

Change-Id: I6c4f1c677b64015c61440f9db941d1ab9cf77b48
2014-02-12 10:37:57 +08:00
Jenkins
6d593641a0 Merge "Refactor stats to avoid bad join" 2014-02-12 01:09:53 +00:00
Jenkins
0b2a1759a7 Merge "Add a instance lookup helper to v3 plugins." 2014-02-12 01:08:58 +00:00
Jenkins
c33594baa9 Merge "Remove @author from copyright statements." 2014-02-12 01:02:16 +00:00
Jenkins
53b997bab7 Merge "XenAPI: Wait for VDI on introduce" 2014-02-11 23:17:48 +00:00
Brian Elliott
8a7b95dccd Refactor stats to avoid bad join
Refactor compute node methods to remove slow join with compute node
stats.  Stats are encoded instead in a single json/text column.

Implements: blueprint compute-node-stats-as-resource-tracker-extension

Change-Id: I1651d758dd21c87ccd768fdd86c910ec5080c71c
2014-02-11 14:11:26 -06:00
Michael Still
58f5579630 Remove @author from copyright statements.
We have git to track authorship, so let's not pad source files
with it as well.

Co-authored-by: Joe Gordon <joe.gordon0@gmail.com>

Change-Id: Ic2d62d6743f7716c086749cd99922b6c496771d4
2014-02-12 05:17:10 +11:00
Christopher Yeoh
62d1ab0807 Remove character filtering from V3 API console_output
Removes the character filtering from the V3 API console_output
extension as this was implemented because of a bug in the xml
library where some characters were not escaped correctly. We no
longer need to do this as we no longer support XML.

Partially implements bp remove-v3-xml-api

Change-Id: Id1501143eca17084d4079777a3c6f8c7157fbac7
2014-02-11 10:04:22 -07:00
Jenkins
93a4c72921 Merge "Make nova-network use FixedIP object for vif queries and bulk create" 2014-02-11 16:00:16 +00:00
Jenkins
65150a6e11 Merge "Hyper-V driver RDP console access support" 2014-02-11 11:57:38 +00:00
Jenkins
23ee9aa68d Merge "VMware: Fix incorrect comment indentation" 2014-02-11 11:50:20 +00:00
Jenkins
ded18d6bed Merge "Fix multi availability zone issue part 2" 2014-02-11 11:35:01 +00:00
Jenkins
f7a6de48bf Merge "Remove unused code in test_attach_interfaces.py" 2014-02-11 11:03:23 +00:00
Jenkins
093ac312aa Merge "Use raw string notation for regexes in hacking checks" 2014-02-11 10:46:49 +00:00
Jenkins
a4c1b9db26 Merge "Improve detection of imports in hacking check" 2014-02-11 10:45:53 +00:00
Mark McLoughlin
b41ecb5f4b Fix incorrect check in aggregate/az test
This test currently does:

  try:
      self.api.update_aggregate(...)
  except exception.InvalidAggregateAction as e:
      msg = "host1 in avail_zone1,host2 in avail_zone1"
      self.assertTrue(e.format_message().find(msg))

There are two issues with this: 1) if update_aggregate() doesn't raise
an exception, the test will pass and 2) if exception doesn't contain
the message (which it doesn't, it's not the correct message) then
find() will return -1 and the assertion passes.

Fix both of these simply by using assertRaises()

Change-Id: I31edef2cfdd9ce748f19b09e93ae00a7437a52f5
2014-02-11 10:41:21 +00:00
Jenkins
5a20f51cf8 Merge "xenapi: set viridian=false for linux servers" 2014-02-11 09:06:45 +00:00
Jenkins
bb6fe6ca9a Merge "VMware: update test name" 2014-02-11 08:46:40 +00:00