Commit Graph

51698 Commits

Author SHA1 Message Date
Sean Mooney 4ad83e7621 update tox venv env to install all requirements
- This change adds requirements.txt to the list
  of requirements files used when createing
  the tox venv environment.

Change-Id: Ib222b3cb68d2129c061400f51f50a19d186b9080
2018-07-17 19:44:05 +01:00
Zuul 116b09010e Merge "Escalate UUID validation warning to error in test" 2018-07-17 17:38:10 +00:00
Zuul 9cf7a14ccd Merge "Fix a newly introduced UUID warning in the unit test" 2018-07-17 17:14:03 +00:00
Zuul af2a54ec0e Merge "Replace support matrix ext with common library" 2018-07-17 14:25:34 +00:00
Zuul 559ab33493 Merge "objects: Add NUMACell.network_metadata" 2018-07-17 13:30:15 +00:00
Balazs Gibizer 6088f06cd3 Escalate UUID validation warning to error in test
The UUIDFields ovo field emits a warning if the field's value is not a
valid UUID. As previous patches removed all the violation from our test
code this patch now escalates the warning to exception raising to
prevent adding new violations in test in the future.

Change-Id: I0bf6d82b7c1a83419b8c54b085142af127b7a011
2018-07-17 13:26:38 +02:00
Balazs Gibizer 86aac994bb Fix a newly introduced UUID warning in the unit test
We again have places in our test where an UUID field is initialized to
a non UUID value. This patch fixes the remaning places. A subsequent
patch will force the UUID warning in our tests to error to ensure
no new violations are introduced.

Change-Id: I7f66e85453d72b35822ceb84d5dbd25324755476
2018-07-17 13:26:38 +02:00
Zuul a86604dc60 Merge "Address nits in server group policy series" 2018-07-17 06:23:25 +00:00
Zuul 094370cfef Merge "fix cellv2 delete_host" 2018-07-17 00:46:46 +00:00
Zuul 3071dc37b9 Merge "Adjust log style and remove ocata support" 2018-07-17 00:46:29 +00:00
Zuul 9856464663 Merge "z/VM Driver: add get console output" 2018-07-17 00:46:17 +00:00
Zuul 111873da1e Merge "z/VM Driver: add power actions" 2018-07-17 00:35:32 +00:00
Zuul 6f2db4bd97 Merge "z/VM Driver: add snapshot function" 2018-07-16 22:32:44 +00:00
Zuul 1f0e2bef29 Merge "Update HostState.instances during _consume_selected_host" 2018-07-16 21:24:04 +00:00
Zuul 66aece8279 Merge "network: Retrieve tunneled status in '_get_physnet_info'" 2018-07-16 20:20:32 +00:00
Zuul fdd4253f14 Merge "Add UUID validation for consumer_uuid" 2018-07-16 20:03:37 +00:00
Zuul b2dafb1ee8 Merge "z/VM Driver: Spawn and destroy function of z/VM driver" 2018-07-16 16:34:27 +00:00
Zuul 30b552da76 Merge "z/VM Driver: Initial change set of z/VM driver" 2018-07-16 16:34:00 +00:00
Zuul 529621bbb1 Merge "Transform instance.live_migration_force_complete notification" 2018-07-16 16:33:35 +00:00
Zuul d8319d8339 Merge "do not assume 1 consumer in AllocList.delete_all()" 2018-07-16 15:43:52 +00:00
Zuul ae40af621f Merge "Microversion 2.64 - Use new format policy in server group" 2018-07-16 15:41:57 +00:00
Matt Riedemann ef29499002 Update HostState.instances during _consume_selected_host
Change I4b67ec9dd4ce846a704d0f75ad64c41e693de0fb changed the
behavior of the ServerGroupAntiAffinityFilter to rely on
HostState.instances being accurate within the same request
so that it can compare the number of group members on the same
host for filtering. Previously the filter was just checking
InstanceGroup.hosts which was updated in the
FilterScheduler._consume_selected_host method for each instance
processed in a multi-create request.

This change updates _consume_selected_host such that if we have
an instance group and an instance_uuid (which should always be
the case unless conductor is running code older than Pike), then
we update HostState.instances with the instance_uuid so the
ServerGroupAntiAffinityFilter can properly compare the number of
group members against the instances on a given host in a multi-create
request.

Change-Id: Iacc636fa8a59a9e8670a8d683c10bdbb0dc8237b
Closes-Bug: #1781710
2018-07-16 11:29:57 -04:00
Zuul 16a2db6f23 Merge "Transform aggregate.update_prop notification" 2018-07-16 15:15:32 +00:00
Zuul 6ca30fd832 Merge "Resource_provider API handler does not return specific error codes" 2018-07-16 14:52:50 +00:00
Mike Perez c09fe87feb Replace support matrix ext with common library
The code to generate a support matrix has been pulled into a common
library. Using this instead of duplicating code in various projects that
need it.

Change-Id: If5c0bf2b0dcd7dbb7d316139ecb62a936fd15439
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
2018-07-16 15:04:00 +01:00
Balazs Gibizer 928746a7bb Add UUID validation for consumer_uuid
When an allocation is created with PUT /allocations/{consumer_uuid} the
consumer_uuid is not validated as UUID in the API and the DB schema only
checks that is fits into String(36). However the Consumer object stores
this value in a UUIDField oslo only raises a warning today.

This patch adds a UUID validation for that URL path.

Change-Id: Idedd85ca9266f10ce09231c34cab7ca43029a56c
Closes-Bug: #1780238
2018-07-16 15:23:05 +02:00
Zuul f2b96588ef Merge "network: Always retrieve network information if available" 2018-07-16 12:18:53 +00:00
Yikun Jiang d1ccea4dd7 Address nits in server group policy series
Change-Id: I126b51892056e3241640bbf05acf16d7f72b4329
2018-07-16 17:28:46 +08:00
jichenjc 9602c431f3 Adjust log style and remove ocata support
we already passed Pike cycle and should require compute to have
Pike+ version, the backport to Ocata can be removed.

Change-Id: I39d93dbf8552605e34b9f146e3613e6af62a1774
2018-07-16 14:55:21 +08:00
Huang Rui 50906f150f z/VM Driver: add get console output
Implement get_console_output for zvm virt driver.

Change-Id: I2158d34a87ca9104076bd234134aa4cab9c4e882
blueprint: add-zvm-driver-rocky
2018-07-16 11:35:11 +08:00
Huang Rui cc06ee1766 z/VM Driver: add power actions
Implement power_on, power_off, pause, unpause and reboot methods for
zvm virt driver.

Change-Id: I4199ec0e52ef2c9bd1cce2c8bc30097aaa5d7b82
blueprint: add-zvm-driver-rocky
2018-07-16 11:35:11 +08:00
nafei yang c50a39f8c8 z/VM Driver: add snapshot function
This patch add snapshot function to z/VM driver, it will call
underlying zvmsdk to generate the image

Change-Id: I0409aba55487e92efa6370eed41936bf8a4ef25d
blueprint: add-zvm-driver-rocky
2018-07-16 11:35:11 +08:00
PanYaLian 3e1692b966 z/VM Driver: Spawn and destroy function of z/VM driver
It includes two main function, Spawn is used to deploy an
instance on the z/VM, and destroy is used to delete the instance

Change-Id: Ie3db769c5e62353b2fa39c1a7e1f025171ff4a4a
blueprint: add-zvm-driver-rocky
2018-07-16 11:35:11 +08:00
Huang Rui e5acf4f961 z/VM Driver: Initial change set of z/VM driver
This is the first change that implements basic virt.driver methods
to allow nova-compute process start successfully.

A set of subsequent changes will implement spawn, snapshot, destroy
and instance power actions.

Change-Id: Ica6117c2c64f7518b78b7fb02487622250638e88
blueprint: add-zvm-driver-rocky
2018-07-16 11:35:10 +08:00
Zuul 6ee633a971 Merge "Skip more rebuild tests for cells v1 job" 2018-07-15 15:17:21 +00:00
Gábor Antal 23efc549a1 Transform instance.live_migration_force_complete notification
The instance.live_migration_force_complete.start and
instance.live_migration_force_complete.end notifications have been
transformed to the versioned notification framework.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: I2e9a474457a7597a9febc111b13a67ddcf45f29e
Implements: bp versioned-notification-transformation-rocky
2018-07-16 00:12:37 +09:00
Gábor Antal 6322cb6a18 Transform aggregate.update_prop notification
The aggregate.update_prop.start and aggregate.update_prop.end
notifications has been transformed to the versioned notification
framework.

Co-Authored-By: Takashi Natsume <natsume.takashi@lab.ntt.co.jp>
Change-Id: I37b19573b6d0e1131c446fcec361f01fa2560f82
Implements: bp versioned-notification-transformation-rocky
2018-07-15 23:36:31 +09:00
Zuul 202c147f3c Merge "Transform instance.live_migration_rollback_dest notification" 2018-07-15 13:25:45 +00:00
Zuul 13dbe1a58d Merge "Transform instance.live_migration_post notification" 2018-07-15 13:14:54 +00:00
Zuul cb0bf8a5e1 Merge "ironic: Log an error when API version is not available" 2018-07-15 07:49:44 +00:00
Zuul 629dc4d008 Merge "virt/ironic: Implement rescue and unrescue" 2018-07-15 07:49:36 +00:00
Zuul f75fcc6ce5 Merge "ironic: provide facilities to gracefully navigate versions" 2018-07-15 01:19:13 +00:00
Zuul 039f7e055e Merge "Transform instance.rebuild_scheduled notification" 2018-07-14 17:20:16 +00:00
Zuul 21a368e1a6 Merge "Heal allocations with incomplete consumer information" 2018-07-13 19:26:59 +00:00
Matt Riedemann 4a1b08365c Skip more rebuild tests for cells v1 job
This skips a couple more tempest rebuild tests for
latent intermittent rebuild race failures
due to status sync delays with cells v1.

Change-Id: Ib2dcbba7f447f54c36877a4e7c29d1b6839a0a80
Related-Bug: #1709985
2018-07-13 15:53:11 +00:00
Matt Riedemann 6b6d81cf2b Heal allocations with incomplete consumer information
Allocations created before microversion 1.8 didn't have project_id
/ user_id consumer information. In Rocky those will be migrated
to have consumer records, but using configurable sentinel values.

As part of heal_allocations, we can detect this and heal the
allocations using the instance.project_id/user_id information.

This is something we'd need if we ever use Placement allocation
information counting quotas.

Note that we should be using Placement API version 1.28 with
consumer_generation when updating the allocations, but since
people might backport this change the usage of consumer
generations is left for a follow up patch.

Related to blueprint add-consumer-generation

Change-Id: Idba40838b7b1d5389ab308f2ea40e28911aecffa
2018-07-13 11:29:54 -04:00
Chen 0ef4ed96d1 fix cellv2 delete_host
When trying to delete host that can be found in host_mappings
but not in compute_nodes, current cellv2 delete_host will throw
an exception but does not really handle it.

This patch tries to handle this exception and allow the delete
operation to continue since it shows the host has gone anyway.

Change-Id: I99bd79fb45777edc0e33d846ba478b0a94a1191e
Closes-Bug: #1781391
2018-07-13 23:16:40 +08:00
Zuul 706257d20b Merge "Adapt _validate_instance_group_policy to new policy model" 2018-07-13 13:30:59 +00:00
OpenStack Proposal Bot 9b5d1d9ae8 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3a294bcbbedea827d4cc98419c9ffb5dbc3f7f97
2018-07-13 06:58:20 +00:00
Hironori Shiina 1db9f80a29 ironic: Log an error when API version is not available
This patch adds logging when ironic doesn't support a required API
version for rescuing and unrescuing.

Change-Id: Ibabfc439e9d426aeabd54877a82e27f02f6ddb5a
Implements: blueprint ironic-rescue-mode
2018-07-13 15:41:48 +09:00