Commit Graph

35561 Commits

Author SHA1 Message Date
OpenStack Proposal Bot d7dece1942 Updated from global requirements
Change-Id: Ic319ea3d4c4065f63db176b53382f9b98a4e17a9
2015-07-18 16:07:43 +00:00
Jenkins a625ef75c2 Merge "Fix test_create_security_group_with_no_name" 2015-07-18 09:56:11 +00:00
Jenkins ee61c076b6 Merge "hypervisor support matrix: add feature "evacuate"" 2015-07-17 13:14:10 +00:00
Jenkins 0cdb7a5c31 Merge "libvirt: Correct domxml node name." 2015-07-17 04:11:40 +00:00
Jenkins 9b8891de4b Merge "Fix the incorrect PciDeviceList version number" 2015-07-17 04:09:57 +00:00
Jenkins 694a2fca3c Merge "Remove conductor api from resource tracker" 2015-07-17 00:17:51 +00:00
Nikola Dipanov 80c109f85a Fix the incorrect PciDeviceList version number
The following commit missed to bump the related list when bumping the
object version.

    commit 1d4ad44f15
    Author: Przemyslaw Czesnowicz <przemyslaw.czesnowicz@intel.com>
    Date:   Thu Nov 20 12:04:05 2014 +0000

        Add numa_node to PCIDevice

        The change extends the PCI device model and its DB representation.
        Query libvirt for the PCI devices numa node.

This patch adds the necessary changes to master. We only bump the
PciDeviceList version, and add a backporting rule to obj_relationship
dictionary of the Instance object, to start sending the new version with
1.20 version of the instance (we are currently on 1.21).

Landing this patch fixes versioning going forward, and all interactions
that request the PciDeviceList through the Instance object, however
applying the stable/kilo backport of this is required for Kilo nodes to
start requesting the latest version of PciDevice through PciDeviceList.

We can't send 1.2 PciDeviceList to Kilo nodes yet because of
related-bug 1475254 , so we have to backport this to Kilo first before
we can start sending the 1.2 to Kilo nodes.

Related-bug: #1474074
Change-Id: Id743848061d2bcd64d785979c7a11ee7c945f06b
2015-07-16 16:07:40 -07:00
Jenkins fa6029f980 Merge "Fix test_tracker object mocks" 2015-07-16 22:07:04 +00:00
Jenkins 09aa893e93 Merge "Validate maximum limit for quota" 2015-07-16 18:11:48 +00:00
Paul Murray 9b079f8bc9 Remove conductor api from resource tracker
Now the resource tracker has been converted to objects
there is no need for a reference to the conductor api.
This change removes obsolete references to conductor
from the resource tracker and related tests.

Change-Id: Ibf843e843975e3f0addb1471b31786e355b5beab
Partially-Implements: blueprint make-resource-tracker-use-objects
2015-07-16 10:25:56 -07:00
Dan Smith 13b7f9f11a Fix test_tracker object mocks
Commit 2ef014eb31 changed resource_tracker
to use the ComputeNode object instead of direct conductor calls. There
are a couple tests in test_tracker that assert that things are not called
which didn't get updated after this change (since they were still not
being called). This patch fixes those up.

Co-Authored-By: Paul Murray <pmurray@hp.com>
Change-Id: I6aaa927d08e5fa24163b4bad38f98586a063d14a
2015-07-16 10:25:21 -07:00
Jenkins e09a1c7c7c Merge "Change group controller of V2 test cases" 2015-07-16 16:54:55 +00:00
Jenkins c352c43b4a Merge "Cells: add instance cell registration utility to nova-manage" 2015-07-16 16:41:04 +00:00
Jenkins 8635342d86 Merge "libvirt : remove broken olso_config choices option" 2015-07-16 16:40:15 +00:00
Jenkins 28e0b84178 Merge "VMware: replace hardcoded strings with constants" 2015-07-16 16:15:57 +00:00
Victor Stinner 0e5cefcf1d Fix Python 3 issues in nova.utils and nova.tests
* Fix sort(): dictionaries are no more comparable on Python 3, use a key
  function building a sorted list of the dictionary items
* Replace __builtin__ with six.moves.builtins
* get_hash_str() now accepts Unicode: Unicode is encoded to UTF-8
  before hashing the string. Mention also the hash method (MD5) in the
  docstring.
* LastBytesTestCase: use binary files instead of text files. Use also a
  context manager on the TemporaryFile to ensure that the temporary file
  is closed (even on error).
* Functions: use the __code__ attribute instead of func_code, and
  __closure__ instead of func_closure. These attributes are also
  available on Python 2.6.
* Replace unichr() with six.unichr()
* SafeTruncateTestCase(): write directly the chinese Unicode character
  instead of using safe_decode() (which is not reliable, it depends on
  the locale encoding!)
* sanitize_hostname(): On Python 3, decode the hostname from Latin1 to
  get back Unicode. Add also a comment explaining the purpose of the
  conversion to Latin1.
* last_bytes(): replace the hardcoded constant 22 with errno.EINVAL and
  add a comment explaining how the function works.
* tox.ini: add nova.tests.unit.test_utils to Python 3.4

Blueprint nova-python3
Change-Id: I96d9b0581ceaeccf9c35e0c9bada369e9d19fd15
2015-07-16 10:17:42 +02:00
Jenkins 3537513339 Merge "Port crypto to Python 3" 2015-07-16 02:01:05 +00:00
Anish Bhatt 66b9c2ceae libvirt : remove broken olso_config choices option
Changeset ed9f1b8b restricted the allowed options for iscsi_iface
to the allowed transports mentioned in the help text. iface &
transport are distinct entities for open-iscsi, and an iface is
generally a mix of transport plus an underlying interface, hence
this change was incorrect. This breaks transport support and is
generally incorrect, hence reverting

Closes-Bug:1466730
Change-Id: I687fb9c95133dbbb193004df44794404b58ca692
2015-07-15 14:50:41 -07:00
Jenkins 83623dd473 Merge "Cells: fix indentation for configuration variable declaration" 2015-07-15 21:08:02 +00:00
Jenkins 275c9ace5c Merge "Switch from MySQL-python to PyMySQL" 2015-07-15 15:53:35 +00:00
Jenkins 3ba9137ac5 Merge "Cleanup quota_class unittest with appropriate request context" 2015-07-15 05:23:00 +00:00
Jenkins 8bf726e83e Merge "Remove db layer hard-code permission checks for quota_class_create/update" 2015-07-15 05:22:29 +00:00
Jenkins 5a98668680 Merge "Remove db layer hard-code permission checks for quota_class_get_all_by_name" 2015-07-15 02:23:41 +00:00
Jenkins 29c08cdccb Merge "Add tool to build a doc latex pdf" 2015-07-15 01:23:46 +00:00
Jenkins 2d2d1e8992 Merge "Include project_id in instance metadata." 2015-07-15 01:23:17 +00:00
Jenkins 53f21f9938 Merge "Revert "Implement compare-and-swap for instance update"" 2015-07-15 01:18:08 +00:00
Jenkins 79a3b1d983 Merge "make test_save_updates_numa_topology stable across python versions" 2015-07-15 00:23:21 +00:00
Jenkins 45bc57e6a8 Merge "libvirt: use correct translation format" 2015-07-14 22:23:19 +00:00
Jenkins 9fa83ef52a Merge "Use stevedore for loading monitor extensions" 2015-07-14 22:20:52 +00:00
Matt Riedemann e06156258e Revert "Implement compare-and-swap for instance update"
This reverts commit 5b4083f8cb

There are gate failures spiking with InstanceUpdateConflict
since this merged, the exception isn't being handled like
how UnexpectedTaskStateError would be handled, so we need
to think about this some more before landing it.

Change-Id: I1d2868eac456052a9ce05a7b8c838eff817d89a4
Closes-Bug: #1474550
2015-07-14 20:52:57 +00:00
Matthew Treinish 62575dd40e Add tool to build a doc latex pdf
The sphinx latex generation generates invalid latex that won't compile
when you try to use it.[1][2] This commit adds a helper script to generate
the sphinx latex and then modify it so it'll work. It depends on
ImageMagick convert and sed being available to work.

[1] https://github.com/sphinx-doc/sphinx/issues/1907
[2] https://github.com/sphinx-doc/sphinx/issues/1959

Change-Id: Id289c10907aaddae2483f18b39063852ec699d66
2015-07-14 16:13:47 -04:00
Sean Dague 1414f5d9a8 make test_save_updates_numa_topology stable across python versions
test_save_updates_numa_topology has a rather complex nova object to
represent numa. This includes items which are sets, but must be
converted to lists for json. This is not a stable output operation
across all space and time. The mock comparator was failing here some
times because of it.

Instead, we can manually inspect the parameter in question with our
json comparator to ensure that it is correct.

Closes-Bug: #1473949

Change-Id: Ibfa441356d10417e2b1e092826562ad03d8cfd02
2015-07-14 15:25:24 -04:00
Jenkins 42d91ebee0 Merge "Make on_shared_storage optional in compute manager" 2015-07-14 17:46:58 +00:00
Jenkins 6cd5135c52 Merge "Cleanup unused method fake_set_snapshot_id" 2015-07-14 17:46:25 +00:00
Jenkins 0c7d5c44f6 Merge "Make NoValidHost exceptions clearer" 2015-07-14 17:41:46 +00:00
Jenkins b11510b7bd Merge "libvirt: update volume delete snapshot to use Guest" 2015-07-14 17:33:59 +00:00
He Jie Xu a67f1296ef Cleanup quota_class unittest with appropriate request context
For v2.1 quota_class API, all the hard-code permission was deleted.
The quota_class code is un-winded except the policy enforcement at
REST API entrance.

This patch adjusts the request context in the unittest, use non-admin
context for all the v2.1 unittest.

Partially implements bp nova-api-policy-final-part

Change-Id: I0a70c092d572d0989dd6fd7f873638a9570817b7
2015-07-14 22:10:28 +08:00
Jenkins 963f4d08bc Merge "removed unused method _get_default_deleted_value" 2015-07-14 13:57:33 +00:00
Jenkins 6adfefaa5b Merge "Modified testscenario for micro version 2.4" 2015-07-14 13:57:05 +00:00
Jenkins 8bf7a0070c Merge "Merge availability_zone tests between v2 and v2.1" 2015-07-14 13:55:27 +00:00
Jenkins 104d5b8202 Merge "Introducing new forced_down field for a Service object" 2015-07-14 13:54:15 +00:00
Jenkins 004d5479e5 Merge "Libvirt: Define system_family for libvirt guests" 2015-07-14 13:03:18 +00:00
Jenkins 54e0e886f4 Merge "libvirt: configuration for interface driver options" 2015-07-14 13:02:46 +00:00
He Jie Xu 725c54e60a Remove db layer hard-code permission checks for quota_class_create/update
This patch removes db layer hard-code permission checks for
quota_class_create/update.

For v2 API, this patch adds back-comptiable permission checks at REST
API layer.

For v2.1 API, this patch adds new rule for update method.

Partially implements bp nova-api-policy-final-part

SecurityImpact
UpgradeImpact: Due to the db layer permission checks deleted, the policy
rule "os_compute_api:os-quota-class-sets:update" was updated with
a default that match the permission as before. Admin should be notified
to update their policy configuration to keep permission as before.

Change-Id: Icddc7e5cc1c11ab3d272f61a2ef623d3f750030c
2015-07-14 20:50:08 +08:00
He Jie Xu 1dbb322813 Remove db layer hard-code permission checks for quota_class_get_all_by_name
This patch removes the hard-code permission checks for db call
quota_class_get_all_by_name.

For v2 api, there already have same hard-code permission checks in REST API
layer, so it is back-compatible.

For v2.1 api, to distinguish show and update permission, this patch adds
new rule for show method.

Partially implements bp nova-api-policy-final-part

SecurityImpact
UpgradeImpact: Due to the db layer permission checks deleted, they need
default policy rule instead of that. In this patch,
"os_compute_api:os-quota-class-sets:show" was updated with a default
rule. Admin will be notfied to update their policy configure file to keep
the behavior as before.

Change-Id: I02da6cc8c766e5f43689449ef63121122f537b5b
2015-07-14 20:46:47 +08:00
Jenkins e80c9a1ee4 Merge "Merge server password tests between v2 and v2.1" 2015-07-14 12:20:42 +00:00
Jenkins db6cdf06cd Merge "Implement compare-and-swap for instance update" 2015-07-14 12:01:32 +00:00
Jenkins e4688a4715 Merge "Close temporary files in virt/disk/test_api.py" 2015-07-14 11:51:23 +00:00
He Jie Xu 38f5c4998a Remove db layer hard-code permission checks for reservation_expire
This patch removes the hard-code permission checks for db call
reservation_expire.

reservation_expire is only invoked in SchedulerManager. So there isn't
any REST API invoke it. So we can remove the hard-code permission directly.

Partially implements bp nova-api-policy-final-part

Change-Id: Ic872d5d03fb0859a738e4cf2691c94b3963eb0b7
2015-07-14 10:28:19 +08:00
Jenkins 4c8d4e9c93 Merge "Remove useless db call instance_get_all_hung_in_rebooting" 2015-07-14 01:17:01 +00:00