Commit Graph

35589 Commits

Author SHA1 Message Date
Jenkins 7d39811f74 Merge "Update HACKING.rst for running tests and building docs" 2015-07-20 16:03:32 +00:00
Jenkins c4defdb168 Merge "Fixes "Hyper-V destroy vm fails on Windows Server 2008R2"" 2015-07-20 15:48:59 +00:00
Jenkins d8ab58339c Merge "XenAPI: Refactor rotate_xen_guest_logs to avoid races" 2015-07-20 13:00:18 +00:00
Jenkins 0c3964ece8 Merge "Validate int using utils.validate_integer method" 2015-07-20 12:26:33 +00:00
Jenkins 0a000b94e1 Merge "virt: fix picking CPU topologies based on desired NUMA topology" 2015-07-20 12:24:50 +00:00
Jenkins 4e51b1a429 Merge "rebuild: fix rebuild of server with volume attached" 2015-07-20 11:22:04 +00:00
Jenkins 951b05d808 Merge "Use flavor object in compute manager" 2015-07-20 11:06:30 +00:00
Jenkins cd5d2c6268 Merge "Hyper-V: Removes old instance dirs after live migration" 2015-07-20 09:12:05 +00:00
Jenkins 76a97a8d7a Merge "Bypass ironic server not available issue" 2015-07-20 02:48:38 +00:00
Jenkins 7555df8acf Merge "API: remove admin require from certificate_* from db layer" 2015-07-19 10:47:29 +00:00
Jenkins 6fc4d3a343 Merge "Add error message to failed block device transform" 2015-07-19 05:15:06 +00:00
Jenkins 8ca69afdcd Merge "Remove and deprecate conductor task_log methods" 2015-07-18 22:02:41 +00:00
Jenkins 7628e23608 Merge "Remove unused compute utils methods" 2015-07-18 22:02:14 +00:00
Jenkins d3501ff127 Merge "Make instance usage audit use the brand new TaskLog object" 2015-07-18 22:01:46 +00:00
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
Roman Podoliaka 25f15b0bc3 rebuild: fix rebuild of server with volume attached
This was meant to be fixed by I017bf749f426717dc76cf99a387102848fb1c541 ,
but it didn't take into account that BDM entry was destroyed, which
caused the rebuild to fail when spawning the instance.

Add a new parameter to detach_volume() to bypass destroying of BDM,
as we just want to detach a volume first and then re-attach it again.

A Tempest test is added in I50557c69b54003d3409c8e977966f5332f4fe690
to make sure this is actually tested in the gate.

Closes-Bug: #1440762

Co-Authored-By: melanie witt <melwitt@yahoo-inc.com>

Change-Id: I9134fbf5ce72c32cca91de90001c09e00b4e19e8
2015-07-17 20:10:38 +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
Matt Riedemann f72b7e35c8 Update HACKING.rst for running tests and building docs
There are three updates here:

1. Point to the correct path of development.environment.rst.
2. Update the path to test_wsgi.py after the test restructure
   that happened in Kilo.
3. Just tell people to use `tox -e docs` for building docs.

Change-Id: I03295a6d9c90e9a2962999726d254bc4971c4909
2015-07-14 11:56:45 -07: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