Commit Graph

27400 Commits

Author SHA1 Message Date
Joe Gordon affbbca5af Include pending task in log message on skip sync_power_state
To better understand why sync_power_state is being skipped include the
pending task name in the log message.

Change-Id: I832a3d5820efab301e12610b28ca2a1e5cfd946a
2014-05-02 12:41:48 -07:00
Jenkins 6df520049d Merge "Remove conductor usage from add_instance_fault_from_exc()" 2014-05-02 18:20:44 +00:00
Jenkins e495afb6ed Merge "Add create() method to InstanceFault object" 2014-05-02 18:20:31 +00:00
Jenkins 1614f03ebb Merge "Remove use of service_* conductor calls from xenapi host.py" 2014-05-02 18:20:18 +00:00
Jenkins 9aee382c5b Merge "Remove unnecessary wrapper for 5 compute APIs" 2014-05-02 17:21:22 +00:00
Dan Smith f23498d7a2 Remove conductor usage from add_instance_fault_from_exc()
This makes add_instance_fault_from_exc() use the InstanceFault
object instead of a raw conductor call. This is actually a
minor change except that all callers of this method must now
stop passing the conductor API, and tests must return something
valid from the mocked call.

Related to blueprint virt-objects-juno

Change-Id: I49b17c1ef3d14fd36f016c37d88287e62126bf68
2014-05-02 07:41:02 -07:00
Jenkins 473bf13762 Merge "objects: restore some datetime field comments" 2014-05-02 14:24:05 +00:00
Dan Smith cf6b0fdbff Add create() method to InstanceFault object
This allows creating InstanceFaults through the object interface.

Related to blueprint virt-objects-juno

Change-Id: Iedde2e220127778fa6252d310f9e73c8506f605e
2014-05-02 07:10:47 -07:00
Dan Smith 5c58a69910 Remove use of service_* conductor calls from xenapi host.py
This removes use of some service calls in the conductor by xenapi's
host.py module and replaces them with object usage. Existing tests
are sufficient to confirm the same behavior remains.

Related to blueprint virt-objects-juno

Change-Id: I908cca4fa1d297c5c9b1d84ae7ebe7452a30ba12
2014-05-02 07:02:29 -07:00
Jenkins e03a2c84cb Merge "Optimize validate_networks to query neutron only when needed" 2014-05-02 13:21:15 +00:00
Jenkins 173b850f06 Merge "ec2utils: Use VolumeMapping object" 2014-05-02 12:18:48 +00:00
Jenkins 7b36bf0459 Merge "ec2: create volume mapping using nova object" 2014-05-02 12:18:36 +00:00
Jenkins 848b34477c Merge "Add VolumeMapping object for use in EC2" 2014-05-02 12:12:06 +00:00
Jenkins 19d98e6a3f Merge "VMware: spawn refactor - phase 1 - execute_create_vm" 2014-05-02 10:18:14 +00:00
Aaron Rosen 6e5f6041a3 Optimize validate_networks to query neutron only when needed
This patch optimizes validate_networks so that it only queries neutron
when needed. Previously, this method would perform an additional net_list,
list_ports, and show_quota regardless if a request contains only
port_ids. If a request only contains port ids we do not need to check neutron
for quota as these ports are already allocated.

Change-Id: Ia7abc7d95b663f165fc95385dda3bab13b7a43e6
Closes-bug: #1291565
2014-05-01 17:33:20 -07:00
Jenkins 2590c5b985 Merge "Add warning to periodic_task with interval 0" 2014-05-01 22:19:56 +00:00
Ryan Hsu cebcb28357 VMware: spawn refactor - phase 1 - execute_create_vm
Moves the inner function "execute_create_vm" from the spawn method
to vm_util. Additionally, return the vm_ref after VM creation so
an extra call to retrieve the vm_ref does not need to take place
after the fact.

partial blueprint vmware-spawn-refactor
Co-authored-by: Tracy Jones <tjones@vmware.com>

Change-Id: I67c3c8c14b6c01b160611cc001d51f1da29ffb24
2014-05-01 11:59:49 -07:00
Jenkins bef55b21ad Merge "wrap_check_security_groups_policy is already defined" 2014-05-01 17:21:46 +00:00
Jenkins 0e479b516c Merge "xenapi: fixup agent tests" 2014-05-01 16:42:09 +00:00
Jenkins 8b82285e37 Merge "VMware: remove unused variable" 2014-05-01 16:38:33 +00:00
John Garbutt 6def27b434 xenapi: fixup agent tests
The root cause of the slow agent tests was not mocking this method:
compute_utils.add_instance_fault_from_exc

This cleans up the tests to share a bit more code, and ensures they
actually check that the appropriate exception is raised.

This change adds a log message to report errors that could occur in
running systems that also helped identify this issue in the unit tests.

test_spawn_fails_agent_not_implemented was a duplicate test and has been
removed.

Change-Id: I6fd31520fffd5e888ce0c2b58af2715f0d929ce1
Closes-Bug: #1279317
2014-05-01 13:17:46 +00:00
Jenkins d0b7b6d73c Merge "Fix bad Mock calls to assert_called_once()" 2014-05-01 10:47:42 +00:00
Jenkins 1d51543b23 Merge "Use datetime object for fake network timestamps" 2014-05-01 10:10:02 +00:00
Jenkins 807a861ab7 Merge "Use datetime object for stub created_at timestamp" 2014-05-01 10:09:49 +00:00
Jenkins 4049a5387d Merge "Verify created_at cloudpipe timestamp is isotime" 2014-05-01 09:52:18 +00:00
Jenkins f75d620123 Merge "Verify next-available limit timestamps are isotime" 2014-05-01 09:52:05 +00:00
Jenkins 4787ba6c22 Merge "Verify created/updated timestamps are isotime" 2014-05-01 09:45:44 +00:00
Jenkins 40b839d453 Merge "Rename NotAuthorized exception to Forbidden" 2014-05-01 07:40:37 +00:00
Jenkins cb07692ec2 Merge "Updated from global requirements" 2014-05-01 05:08:31 +00:00
Jenkins 5cacc54d68 Merge "VCDriver - No longer returns uptime due to multiple hosts" 2014-05-01 04:03:29 +00:00
Jenkins e54978ea23 Merge "Use timeutils.isotime() in images view builder" 2014-04-30 22:48:34 +00:00
Jenkins 34b3441e14 Merge "Use actual fake timestamp in API templates" 2014-04-30 22:48:20 +00:00
Jenkins 42aade4ed0 Merge "Normalize API extension updated timestamp format" 2014-04-30 22:48:05 +00:00
Jenkins c3794c8404 Merge "Regenerate API samples for GET /extensions" 2014-04-30 22:42:04 +00:00
Davanum Srinivas 987bc7406e Fix bad Mock calls to assert_called_once()
To actually check if a call was made, we should use
assert_called_once_with. assert_called_once is just a auto-spec'd
method and hence does not really check anything.

Change-Id: I21064dfca2a281683ee3b6ed4926f471bb74dbfa
2014-04-30 11:52:27 -04:00
Sagar Ratnakara Nikam 94cb045408 VCDriver - No longer returns uptime due to multiple hosts
The vCenter cluster will have multiple hosts.
The cluster does not have a uptime feature.
Returning uptime of one of the host/longest
running host, can be misleading to the user.
Hence raising NotImplementedError
Closes-Bug:#1313375

Change-Id: I70e5ab35b8944abd7b874762de2af5b01d6a7313
2014-04-30 20:05:14 +05:30
Jenkins eed6dd1e6b Merge "libvirt: Make fakelibvirt.libvirtError match" 2014-04-30 14:27:51 +00:00
Jenkins 9b33819455 Merge "Add new ec2 volume db API calls" 2014-04-30 13:32:10 +00:00
Jenkins 8de938e5a5 Merge "Don't translate debug level logs in nova.conductor" 2014-04-30 13:24:26 +00:00
Jenkins af320b96cd Merge "Don't translate debug level logs in nova.cells" 2014-04-30 13:21:25 +00:00
Jenkins e0dfddd60d Merge "Don't translate debug level logs in nova.api" 2014-04-30 13:20:23 +00:00
Jenkins e3135c2b50 Merge "Don't translate debug level logs in nova.volume" 2014-04-30 13:16:24 +00:00
Sahid Orentino Ferdjaoui 1f672431f9 wrap_check_security_groups_policy is already defined
Removes the local method 'wrap_check_security_groups_policy' to
the module neutron_driver.py - This method is already defined
in compute_api.

Change-Id: I008326f7b77515a0fc878befe45fe705420835ad
Closes-Bug: #1314548
2014-04-30 09:21:41 +00:00
OpenStack Proposal Bot c393343593 Updated from global requirements
Change-Id: Ia7fe0408883476b40dd0667fd6f56f5d068ca03f
2014-04-30 02:43:45 +00:00
Jenkins 64bfdb6ad4 Merge "Create the image mappings BDMs earlier in the boot" 2014-04-29 23:40:33 +00:00
Jenkins fdddb81afb Merge "VMware: remove unneeded code" 2014-04-29 23:40:20 +00:00
Jenkins 459e89cf5c Merge "VMware: remove duplicate _fake_create_session code" 2014-04-29 23:40:07 +00:00
Gary Kotton e850be8bfa Don't translate debug level logs in nova.conductor
Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This is to help prioritize log
translation. Furthermore translation has a performance overhead, even if
the log isn't used (since nova doesn't support lazy translation yet).

Change-Id: Id270b6c7e020679c3e2e3931300e82ea3489e942
2014-04-29 18:19:20 +00:00
Gary Kotton f213ec7b25 Don't translate debug level logs in nova.cells
Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This is to help prioritize log
translation. Furthermore translation has a performance overhead, even if
the log isn't used (since nova doesn't support lazy translation yet).

Change-Id: Idb346d04f24cbbc19b6e41af6e4782ac1c49d3b8
2014-04-29 11:17:42 -07:00
Mark McLoughlin 41c45e4ba0 Use datetime object for fake network timestamps
The fake networks use a pre-serialized timestamp in str(datetime)
format which which doesn't give us the opportunity to test the
serialization code properly and isn't the format use in practice.

Use real dateime objects instead.

Full context here:

  http://lists.openstack.org/pipermail/openstack-dev/2014-April/033971.html

Change-Id: I5cbe722fb59cdd326b4c75dcfea14f206d71f668
2014-04-29 14:51:53 +01:00