Commit Graph

30611 Commits

Author SHA1 Message Date
Jenkins b722bb7884 Merge "Port floating_ip_pools extention to v2.1" 2014-10-13 16:22:25 +00:00
Eli Qiao 2773fedfc2 Port floating_ip_pools extention to v2.1
This patch ports floating_ip_pools extention from v2 to v2.1,
and have v2 unit test cases shared between v2.1 and v2.
Partially implements blueprint v2-on-v3-api

Change-Id: I0b34358db08a29e76a59b22a0992abc88296058d
2014-10-13 15:33:03 +08:00
Jenkins df57d44469 Merge "Convert migrate reqeusts to use joins" 2014-10-11 19:30:39 +00:00
Jenkins 1d8c249391 Merge "Use database joins for fixed ips to other objects" 2014-10-11 19:30:13 +00:00
Jenkins 8a0b991eaf Merge "VMware: remove unused argument from _delete_datastore_file()" 2014-10-11 19:29:45 +00:00
Jenkins e03a0a8c92 Merge "Finish objects conversion in the os-interface API" 2014-10-11 19:24:58 +00:00
Jenkins e62b340792 Merge "Port cloudpipe extension to v2.1" 2014-10-11 19:14:06 +00:00
Vishvananda Ishaya 2a38de9408 Convert migrate reqeusts to use joins
The modifications to add joins for fixed_ip_requests allows us to
condense three network calls into one for both start and finish
migration.

Change-Id: I61ca03661f722c6406d39021b79a648f4374dfcd
Partial-bug: #1365606
2014-10-10 17:04:05 -07:00
Vishvananda Ishaya 31b0961c85 Use database joins for fixed ips to other objects
Many of the fixed ip related calls are extremely inefficient. This
joins a couple of calls so that we can optimize queries that use
them.

Change-Id: Ifa2e4c6ac517286f7ae952052d29801b45a6b6b2
Partial-bug: #1365606
2014-10-10 17:04:05 -07:00
Jenkins 829d2ee722 Merge "Allow backup operation in paused and suspend state" 2014-10-10 21:07:05 +00:00
Jenkins bf67eb4e4d Merge "Don't log every (friggin) migration version step during unit tests" 2014-10-10 19:19:28 +00:00
Jenkins 82271e7ff3 Merge "Fix libvirt watchdog support" 2014-10-10 17:24:42 +00:00
Jenkins ca24409785 Merge "Revise compute API schemas and add tests" 2014-10-10 17:15:42 +00:00
Dan Smith ba7dc8ddc0 Don't log every (friggin) migration version step during unit tests
Right now any test that fails spews *all* of the migration steps at INFO
level along with the test output (assuming it did migrations). This patch
squelches the INFO-level messages from migrate, which don't add anything
useful anyway. Messages look like this:

    ...
    2014-10-10 09:51:41,967 INFO [migrate.versioning.api] 264 -> 265...
    2014-10-10 09:51:41,984 INFO [migrate.versioning.api] done
    2014-10-10 09:51:41,984 INFO [migrate.versioning.api] 265 -> 266...
    2014-10-10 09:51:42,003 INFO [migrate.versioning.api] done

Change-Id: I424bbb25c04b5e327c6d5d2ff8bad266bc7d51d0
2014-10-10 09:54:44 -07:00
Jenkins 139f6a5216 Merge "VMWare: Fix nova-compute crash when instance datastore not available" 2014-10-10 16:18:23 +00:00
Chris St. Pierre c41e6cf794 Revise compute API schemas and add tests
This revises the servers, images, and flavors schemas to avoid a
duplicate definition of the top-level tags in those schemas.  Instead,
of defines each schema to allow either a list of tags with only
name/id (as in the index listings), or a list of fully-defined
servers/images/flavors.  It is not permitted to mix and match.

It also adds three kinds of unit tests for the API schemas:

* A basic check to ensure that the schema files are valid RelaxNG;
* A check to ensure that the collected body of schema files does not
  contain duplicate top-level tag definitions;
* Explicit test XML documents.

Closes-Bug: 885025
Change-Id: I542b420de34fd82bb2a2813f36637aef2c2d5c92
2014-10-10 14:44:33 +00:00
pkholkin 79bfb1bf34 Fix libvirt watchdog support
Using the flavor extra_specs property "hw_watchdog_action" was broken.
Scheduling of a new instance always failed with NoValidHostFound error
because of ComputeCapabilitiesFilter, which treated this property as a
host capability to be checked.

Commit f0ff4d5105 caused the problem.

To fix this watchdog_action property is put into 'hw:' scope, so
that it will be ignored by ComputeCapabilitiesFilter in scheduler and
handled in libvirt driver. The doc must be fixed accordingly.

Now driver accepts both 'hw_watchdog_action' and
'hw:watchdog_action', tests were edited for these cases.
Were added TODO items to delete the compat code in the next release.

DocImpact
Closes-Bug: #1367344

Change-Id: Ic5344ec34a130ee5a0ed2c7348af0b9d79e3508e
2014-10-10 15:54:53 +04:00
Jenkins 5a37d543ef Merge "vfs: guestfs logging integration" 2014-10-10 10:25:45 +00:00
Jenkins 4ebd70433f Merge "Add @_retry_on_deadlock to _instance_update()" 2014-10-10 05:20:13 +00:00
Matt Riedemann 0d89c274b7 Finish objects conversion in the os-interface API
Most of the API code was using instance objects already except for the
listing, so this updates that.

Updates the test to use a fake instance object rather than a dict to
enforce the change.

Also adds a note on the slightly weird call to common.get_instance
in the show method when the instance isn't used for anything, it's
really a check to make sure the instance exists.

Part of blueprint kilo-objects

Change-Id: Ief17c57afbd81e2b6aef9586b448e8797aaa6544
2014-10-09 14:35:10 -07:00
Jenkins ebca772e56 Merge "Break out over-quota calculation code from quota_reserve()" 2014-10-09 19:34:55 +00:00
Jenkins 0c1ce6c140 Merge "Log quota refresh in_use message at INFO level for logstash" 2014-10-09 15:59:24 +00:00
Jenkins cc89d9d95f Merge "Fix pci_request_id break the upgrade from icehouse to juno" 2014-10-09 15:19:09 +00:00
He Jie Xu 74145b625a Fix pci_request_id break the upgrade from icehouse to juno
commit a8a5d44c8a add pci_request_id
as one item for the request_network tuple. But the icehouse code
assume only three items in the tuple.

This patch filters pci_request_id out from the tuple.

Change-Id: I991e1c68324fe92fac647583f3ec8f6aec637913
Closes-Bug: #1377447
2014-10-09 21:02:50 +08:00
Jenkins dae209a396 Merge "xenapi: deal with reboots while talking to agent" 2014-10-09 08:44:02 +00:00
Sahid Orentino Ferdjaoui a2f843e0c6 vfs: guestfs logging integration
Adds support to enable guestfs logging.

Change-Id: I46c5ec6606e4a2eb8277b081d0c773ceb6d36c4c
DocImpact: New group of option has been introduced "guestfs"
Closes-Bug: #1279857
2014-10-09 03:33:42 -04:00
Eli Qiao 6007a019cb Port cloudpipe extension to v2.1
This patch ports couldpipe extension from v2 to v2.1,
and have v2 unit test cases shared between v2.1 and v2.
Partially implements blueprint v2-on-v3-api

Change-Id: Id40c637c0fc207e97b1d094805eb0cee6e9cd9c9
2014-10-09 14:05:49 +08:00
Jenkins 23ba641305 Merge "Break out over-quota processing from quota_reserve()" 2014-10-09 05:12:08 +00:00
Jenkins b257afc959 Merge "Refactor of test case of floating_ips" 2014-10-09 04:03:52 +00:00
Jenkins 5b14b0fc3c Merge "VMware: remove unused variable from tests" 2014-10-09 03:20:25 +00:00
Eli Qiao 3a230f89a7 Refactor of test case of floating_ips
This patch is prepare for porting floating_ips to v2.1,
and make v2.1 and v2 share same test cases.

Change-Id: I7ba202adeb7d65f1e04c36e8db647565c1fcaeb2
2014-10-09 09:57:57 +08:00
Jenkins 96b39341d5 Merge "Fix broken cert revocation" 2014-10-08 22:18:17 +00:00
Jenkins c0e321cb3e Merge "libvirt: add _get_launch_flags helper method in unit test" 2014-10-08 19:37:08 +00:00
Jenkins 33e8c943c0 Merge "consistently set status as REBUILD when rebuilding" 2014-10-08 19:36:50 +00:00
Jenkins 4c43f4f107 Merge "Use image metadata from source volume of a snapshot" 2014-10-08 19:36:25 +00:00
Jenkins 43961b9502 Merge "Add warning to periodic_task with interval 0" 2014-10-08 19:35:24 +00:00
Jenkins fac149d406 Merge "Update InstanceInvalidState output" 2014-10-08 19:27:34 +00:00
Jenkins 327b16d4b9 Merge "Fix swap_volumes" 2014-10-08 19:25:14 +00:00
Jenkins 0c4a448d81 Merge "VMware: Set vmPathName properly in fake driver" 2014-10-08 17:05:51 +00:00
Jenkins dc6e2375ac Merge "Remove baremetal virt driver" 2014-10-08 16:35:08 +00:00
Jenkins e4fd16d4b2 Merge "console: make unsupported ws scheme in python < 2.7.4" 2014-10-08 16:14:35 +00:00
Jenkins 1510e264c0 Merge "Support message queue clusters in inter-cell communication" 2014-10-08 16:06:57 +00:00
Matt Riedemann d465c6d7a4 Break out over-quota calculation code from quota_reserve()
The list comprehension used to create the overs list was really hard to
read, so this moves that code into it's own helper method and breaks out
the logic from the list comprehension, and adds unit tests.

Partial-Bug: #1369605

Change-Id: I44236c7a206b2a9bd3843c9ca2ce56591a66352f
2014-10-08 09:04:15 -07:00
Matt Riedemann ff27489903 Log quota refresh in_use message at INFO level for logstash
Commit 5aef264967 added the log message to
give some idea when we're unnecessarily refreshing quota usage.

Logstash only collects INFO+ level messages, so bump this to an INFO
level message so we can track gate runs to see if this is actually a
problem.

Related-Bug: #1353962

Change-Id: I60ffa9dbda22e252f290bf316fa2e472d3e92f2f
2014-10-08 08:28:32 -07:00
Matt Riedemann 2192102d85 Break out over-quota processing from quota_reserve()
This moves the over-quota processing out of quota_reserve and into a
private method.

This completes the refactor of the quota_reserve method to isolate the
large chunks of logic into separate private methods.

Closes-Bug: #1369605

Change-Id: Ic910ea042dfe50209f79928e61b3b34b4c734e73
2014-10-08 08:26:37 -07:00
Jenkins 803eba994a Merge "Make v2.1 API tests use v2 URLs(test_[a-e].*)" 2014-10-08 15:01:40 +00:00
Russell Bryant c8538208da Fix broken cert revocation
Cert revocation was broken by
32b0adb591.  os.chdir() never returns
anything, so this method would always raise an exception.  The proper
way to handle an error from os.chdir() is to catch OSError.

There were existing tests for this code, but they conveniently mocked
os.chdir() to return values that are never actually returned.  The
tests were fixed to match the real behavior.

Change-Id: I7549bb60a7d43d53d6f81eecea31cbb9720cc8b6
Closes-bug: #1376368
2014-10-08 13:43:42 +00:00
Dan Smith 46ed619b9a Remove baremetal virt driver
This patch removes the baremetal virt driver from nova, which was
deprecated in Juno. It does not aim to perform any of the refactoring
we need to do now that the driver is gone, but is intended as a clean
removal of all the baremetal code itself.

Of specific note are the api_samples tests. We didn't have samples to
test the ironic proxy code, so I removed the baremetal ones for show
and index, resetting that extension back to "untested" status as if it
was new.

Tests that stub out ironic interactions and re-introduce those tests
should be added after this patch.

Change-Id: Ia76e41a8a3b7230701872ae7a1975edc3d9ea847
2014-10-08 13:41:37 +00:00
Jenkins 4bdfb21ccf Merge "Correct a maybe-typo in pci_manager" 2014-10-08 13:34:29 +00:00
Jenkins c07f7bbbce Merge "Move volume_clear option to where it's used" 2014-10-08 13:34:10 +00:00