Commit Graph

32112 Commits

Author SHA1 Message Date
Daniel P. Berrange 72de6ac4f0 remove all traces of pylint testing infrastructure
The pylint tests have been broken for several months and
the Jenkins job has also been disabled. There has been
no sign of attempts to address this, so just delete what
remains of the pylint support so developers don't mistakenly
think it is supposed to work with patches they are submitting.

Change-Id: Ifacc99e45acb0e9a72be6c31113e0cf073354f02
2015-01-08 11:56:45 +00:00
Jenkins f795f048c9 Merge "VMware: refactor unit tests to use _get_info" 2015-01-08 10:19:50 +00:00
Jenkins 9b4f36c2d9 Merge "Add WarningsFixture to only emit DeprecationWarning once in a test run" 2015-01-08 09:13:47 +00:00
Jenkins 74e17a0590 Merge "initialize objects with context in Instance object tests" 2015-01-08 06:13:31 +00:00
Jenkins 82b3d9fdd4 Merge "Switch to tempest-lib's packaged subunit-trace" 2015-01-08 02:12:15 +00:00
Jenkins 232cc97a17 Merge "Add obj_as_admin() to NovaPersistentObject" 2015-01-08 02:07:54 +00:00
Matt Riedemann b718b52feb Add WarningsFixture to only emit DeprecationWarning once in a test run
The nova unit test console output can be flooded with deprecation
warnings from dependent libraries, this change makes it so they are only
logged once.

It's worth noting that Keystone has an alternative implementation where
they filter deprecation warnings and only error out if they are coming
from Keystone code. See commit 9ae6ffe8a.

Partial-Bug: #1407736

Co-authored-by: Sean Dague <sean@dague.net>

Change-Id: Id8d8866baaf64721fda2b6b2e8358db18920c8ba
2015-01-07 14:35:01 -08:00
Jenkins c9fef05df1 Merge "Remove unused directory nova/tests/unit/bundle" 2015-01-07 19:34:36 +00:00
Jenkins 6d180410c5 Merge "Remove unused function _get_flavor_refs in flavor_access extension" 2015-01-07 19:12:57 +00:00
Jenkins 3578c704fc Merge "VMware: make use of oslo.vmware logout" 2015-01-07 19:04:34 +00:00
Jenkins 8a6db2f832 Merge "Remove no need LOG.exception on attach_interface" 2015-01-07 18:11:41 +00:00
Jenkins 30e12f83d0 Merge "Move metadata filtering logic to utils.py" 2015-01-07 18:10:22 +00:00
Matthew Gilliard e2c5aef530 Doc: Adds python-tox to Ubuntu dependencies
The development.environment instructions were almost completely copy/pastable
to get started on a new machine. Almost. This doc patch just adds python-tox to
the list of things to be fetched with apt-get, so now it's really *really* simple to get
started on a brand-new machine or cloud instance.

Change-Id: I09cbb376df2ce81e618c99e5db36ddf7809f6f3d
2015-01-07 13:51:03 +00:00
Jenkins 6339f07938 Merge "Unshelving a volume backed instance doesn't work" 2015-01-07 09:20:04 +00:00
jichenjc 644c89d175 Remove no need LOG.exception on attach_interface
When attach_interface, this LOG.exception will be reported
if InterfaceAttachFailed is raised from compute layer
actually, there already are LOG.error and API layer also
reported this exception, so there is no need to
raise exception here.

Change-Id: If5258c851b60cc4360f357a531610e4e52f9b26c
2015-01-07 08:50:18 +08:00
Jenkins e66a3b36a0 Merge "initialize objects with context in Flavor object tests" 2015-01-06 23:23:38 +00:00
Jenkins 8688b1bf09 Merge "initialize objects with context in FixedIP object tests" 2015-01-06 23:23:09 +00:00
Jenkins 99ce1f7509 Merge "initialize objects with context in EC2 object tests" 2015-01-06 23:22:40 +00:00
Jenkins 8181eaaaf8 Merge "initialize objects with context in ComputeNode object tests" 2015-01-06 23:22:18 +00:00
Jenkins 358f1e95a5 Merge "initialize objects with context in BlockDeviceMapping object tests" 2015-01-06 23:14:26 +00:00
Jenkins 50c5021115 Merge "Nuke XML support from Nova REST API - Phase 3" 2015-01-06 23:13:20 +00:00
Jenkins 8435de003c Merge "Update eventlet API in libvirt driver" 2015-01-06 22:55:28 +00:00
Matthew Treinish 7a543bcec8 Switch to tempest-lib's packaged subunit-trace
This commit removes the local copy of subunit-trace in nova and uses
the packaged version of the utility in tempest-lib.

Change-Id: I1ed2fea9ff3d8194628b722684492f8ba7a3cabb
2015-01-06 21:25:56 +00:00
Jenkins 600b7b813d Merge "initialize objects with context in Aggregate object tests" 2015-01-06 21:17:45 +00:00
Jenkins b19c0519d7 Merge "Support both list and dict for pci_passthrough_whitelist" 2015-01-06 21:09:01 +00:00
Jenkins 06601ed8dd Merge "Return floating_ip['fixed_ip']['instance_uuid'] from neutronv2 API" 2015-01-06 21:08:13 +00:00
Victor Stinner 5793aff190 Update eventlet API in libvirt driver
Stop using the deprecated eventlet.util API: use
eventlet.patcher.original('socket') to access the original socket.socket
type.

Change-Id: Idbb9d2b53829dae0e807cd1260dee3dce155d5f3
Closes-Bug: 1407685
2015-01-06 21:53:05 +01:00
melanie witt 704dab3550 initialize objects with context in Instance object tests
These changes aim to clean up the pattern of passing a context in
object member functions create/destroy/refresh/save and instead
initialize the object with the context when it's constructed.

Related to blueprint kilo-objects

Change-Id: Idb27a5d2c4a58f2bb70817006dec219ca702e4dd
2015-01-06 20:49:47 +00:00
melanie witt d2ca948703 initialize objects with context in Flavor object tests
These changes aim to clean up the pattern of passing a context in
object member functions create/destroy/refresh/save and instead
initialize the object with the context when it's constructed.

Related to blueprint kilo-objects

Change-Id: I02458af37e0c39d9a9d7309a9a3cc1d2545f3da1
2015-01-06 20:49:47 +00:00
melanie witt 814bb16dfe initialize objects with context in FixedIP object tests
These changes aim to clean up the pattern of passing a context in
object member functions create/destroy/refresh/save and instead
initialize the object with the context when it's constructed.

Related to blueprint kilo-objects

Change-Id: I60be29ba0c6ccbadd4c4d9a2d5426d1047c01a82
2015-01-06 20:49:47 +00:00
melanie witt 0419987801 initialize objects with context in EC2 object tests
These changes aim to clean up the pattern of passing a context in
object member functions create/destroy/refresh/save and instead
initialize the object with the context when it's constructed.

Related to blueprint kilo-objects

Change-Id: I4405407f0f9e20bedbfd714b98492eb9beb39722
2015-01-06 20:49:47 +00:00
melanie witt 3920fab2fe initialize objects with context in ComputeNode object tests
These changes aim to clean up the pattern of passing a context in
object member functions create/destroy/refresh/save and instead
initialize the object with the context when it's constructed.

Related to blueprint kilo-objects

Change-Id: Ibad6b1f94686117cd67984858c8ac17237540bed
2015-01-06 20:49:47 +00:00
melanie witt d35e43121a initialize objects with context in BlockDeviceMapping object tests
These changes aim to clean up the pattern of passing a context in
object member functions create/destroy/refresh/save and instead
initialize the object with the context when it's constructed.

Related to blueprint kilo-objects

Change-Id: Id672fab7a840a8e07be305a06083b3e9ca30d18e
2015-01-06 20:49:38 +00:00
Jenkins ea7c513ff7 Merge "XenAPI: Refactor message strings to remove locals" 2015-01-06 18:04:27 +00:00
Davanum Srinivas f3ee2212e0 Nuke XML support from Nova REST API - Phase 3
Remove every single *_nsmap definition, they are only used
to provide an argument to the template constructors and
was used for XML namespacing.

Pretty much every single ResponseObject.attach() call can
go away as well, they're only used to attach XML slave
templates to the master templates, and the method does
nothing if no arguments are passed.

Change-Id: I744869bb41a4938268c0769939fa998eeeb476c8
2015-01-06 12:59:52 -05:00
Jenkins 2e2c2048bd Merge "ironic: delete cpu_info data from get_available_resource" 2015-01-06 17:26:23 +00:00
Jenkins dbee058d2f Merge "vmware: delete cpu_info data from get_available_resource" 2015-01-06 17:26:01 +00:00
Jenkins 054bbda6be Merge "libvirt: enable hyperv enlightenments for windows guests" 2015-01-06 17:24:39 +00:00
Jenkins 7666227798 Merge "Add methods for calculating CPU pinning" 2015-01-06 17:24:18 +00:00
Jenkins 292a88bdd8 Merge "Use controller methods directly in test_admin_password" 2015-01-06 17:23:44 +00:00
Matt Riedemann 48c24dbb6b Return floating_ip['fixed_ip']['instance_uuid'] from neutronv2 API
The os-floating-ips extension translates the floating IP information
from the network API for the response but is only checking fields based
on what comes back from nova-network, which is using the FloatingIP
object. The neutronv2 API returns a different set of keys for the
instance/instance_uuid which the API extension doesn't handle and
therefore doesn't show the associated instance id for a given floating
IP.

The network APIs should return consistent data formats so this change
adds the expected key to fix the bug in the API extension (since the API
extensions shouldn't have to know the implementation details of the
network API, there are some extensions actually checking if it's the
neutron API and parsing the result set based on that).

This change will be used to backport the fix to the stable branches.

The longer term fix is to convert the neutronv2 get_floating_ip* API
methods to use nova objects which will be done as part of blueprint
kilo-objects in a separate change.

Closes-Bug: #1380965

Change-Id: I01df2096ced51eb9ebfd994cf8397f2fa094f6e3
2015-01-06 09:11:24 -08:00
Jenkins 2b8265f252 Merge "objects: remove NovaObjectDictCompat from Tag object" 2015-01-06 16:22:36 +00:00
Jenkins e45c123968 Merge "Nuke XML support from Nova REST API - Phase 2" 2015-01-06 16:22:08 +00:00
Jenkins 3e2e6968b0 Merge "hardware: fix numa topology from image meta data" 2015-01-06 14:45:08 +00:00
Davanum Srinivas 8454a2b4f3 Nuke XML support from Nova REST API - Phase 2
In I5a580fc323c3809790b4a68a9f8f8129ecdc2cf0 we switched off XML support. In
this review we entirely remove all support for XML in the API.

Change-Id: Id384d0e8d350fdd68ed03c83b94f6e558d53eb28
2015-01-06 12:03:54 +00:00
Nikola Dipanov 892e4032ac Add methods for calculating CPU pinning
This commit adds some basic pinning logic that will allow us to make
pinning placements taking into consideration hyperthreading capabilities
of the host (and instances if set).

_numa_fit_instance_cell_with_pinning is the central method that will be
called for each NUMA cell that will eventually be called from
numa_fit_instance_to_host for instances  that will require explicit CPU
pinning.

None of the methods here are meant to be exposed as public methods to be
called outside of numa_fit_instance_to_host, however since they contain
all the placement logic it is useful to test them separately.

Change-Id: Ia846437f315bceb21d7ffd0cdfdd905a0b2d546d
Blueprint: virt-driver-cpu-pinning
2015-01-06 05:27:46 -05:00
Jenkins 3ae2ddd4a2 Merge "Metadata service: remove check for the instance object type" 2015-01-06 10:04:46 +00:00
Jenkins 0d20e72fcd Merge "pci: move filtering of devices up into resource tracker" 2015-01-06 01:28:34 +00:00
Jenkins dad950e31a Merge "libvirt: move setting of guest features out into helper method" 2015-01-06 01:18:29 +00:00
Jenkins 86ada86799 Merge "Cellsv2 devref addition" 2015-01-05 23:27:12 +00:00