Adding debug log statment to sync out-of-tree driver with
in-tree as per https://github.com/openstack/nova/commit/
8545ba2af7476e0884b5e7fb90965bef92d605bc#diff-
5dc5ac3c2bf8010333f1752a1e70ce18
Change-Id: Ia2247b11539070127e509335905351e1695c43d2
The changeset to close bug 1821891 added the
field "supports_evacuate" in the driver
capabilities without removing "supports_recreate",
which was the old field for the same.
Change-Id: If93ed659dfcbe7dc2820e6110c5878adaf0de158
Closes-Bug: #1822853
Currently nova-powervm driver is not supporting
evacuate. And so Virtual Machine evacuate fails
with the exception InstanceEvacuateNotSupported.
So add supports_evacuate=True to capabilities.
Change-Id: I20a9a805831a8816fd847a2559fd65665dc67a78
Closes-Bug: #1821891
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I4bb50d272d34e4ce0a17a53623972c325a53a47f
Nova has changed the interface of the compute driver
extend_volume method [1] adding a new parameter namely
requested_size. This patch updates the signature of the
PowerVMDriver extend_volume method to match the change.
[1] https://review.openstack.org/#/c/613039/
Change-Id: I9df280bba8eb663dbe631a741f8d6f728b3b8f87
The current minimum version of psycopg2 (2.6.2) does not work with
PostgreSQL 10.6. This is fixed [1] with version 2.7 so we are
bumping to that to work with newer PostgreSQL.
[1] 8b96bcddff
Change-Id: I20bde202791ff02e60362022fea3217081b89e25
LUA recovery, the job that tells the VIOS to discover a specific
hdisk, may find multiple disks at the same ITL. Without the device ID
LUA recovery will return an error when this happens.
For most volume backed storages the device ID is the base 64 encoded
value of the pg83 identifier. This change enables the passing of the
deviceID to discover_hdisk to avoid the multiple hdisks at the same
ITL error. It also bumps the pypowervm version for the device_id
support in discover_hdisk.
Change-Id: I86c273bf1d1c5753ce68ab51f6922c323d720cb2
Small cleanups:
* Use openstack-lower-constraints-jobs template, remove individual
jobs.
* Sort list of templates
Change-Id: I46be2a38294b50b73d0de7d8e0c5d6cddb8a4e6b
Needed-By: https://review.openstack.org/623229
The Stein supported runtimes proposal [1] has chosen py36 over py35
due to the communities move to testing on Ubuntu 18.04, where py36
is the default runtime. We update tox.ini and setup.cfg accordingly.
We also add a py37 option to the tox.ini to facilitate future-looking
tests per the resolution on keeping up with Python 3 releases [2].
The py35 option will eventually need to be removed from tox.ini, but
this keeps it for now in order to allow time for folks to transition.
[1] https://review.openstack.org/611080
[2] https://review.openstack.org/613145
Change-Id: Id77fbd969bee5a6f3636be13362a2b89cb5888e8
The metadata for nova-powervm did not reflect that this is now an
official OpenStack project, and was inconsistent with the
corresponding metadata for networking-powervm and ceilometer-powervm.
This corrects that.
Change-Id: Ide1ebacb731b54edb7dd624790d9677262effde3
bp reshape-provider-tree patch introduced the 'allocations' kwarg [1]
and another patch provided a ComputeDriver helper method for calculating
the reserved value for the DISK_GB resource from config [2]. This
brings PowerVM's update_provider_tree method up to scratch with those
changes.
[1] Ic062446e5c620c89aec3065b34bcdc6bf5966275
[2] I72c83a95dabd581998470edb9543079acb6536a5
Change-Id: I89ad36f19672368a1f795e1f29c5af6368ccfeec
There are potential security issues with using predictable temp
directories or files, so use python's tempfile module to do this
safely.
Change-Id: I5e23933af71180da1d55950fcf49e39b0b800ef5
Closes-Bug: #1771538
With moving away from required milestone releases, the version numbers
calculated by PBR on the master branch will not work for those testing
upgrades from the last stable release. More details can be found in the
mailing list post here:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/135706.html
This is an empty commit that will cause PBR to increment its calculated
version to get around this.
PBR will see the following which will cause it to increment the version:
Sem-Ver: feature
Please merge this patch as soon as possible to support those testing
upgrades.
Change-Id: I07ff69f13b45a8bdee4a8e75daaa1a7bfecf389b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
When a VNIC attach fails, the actual error message thrown from the
platform gets swallowed in the console showing only the generic
message in the exception class. This is due to the formatting
string passed to the exception class, though the
VirtualInterfacePlugException class definition doesn't accept one.
Change-Id: I18be7fc2284387d2f4d492ca68de6091f4bb8b66
Closes-Bug: #1796072
This change enables the nova-powervm driver to accept the
'powervm:secure_boot' extra_spec and pass it down to pypowervm to
build the LPAR wrapper with.
Change-Id: I080065795778adee86c6cb37bcbf700a440d73b9
A recent nova change [1] removing uuidsentinel (which is now found
in oslo.utils) broke our UTs. This changes our code to use
oslo.utils, fixing the issue.
[1] 8e1ca5bf34f924b9a23ddbcf31ae727a7dcacb20
Change-Id: Ic314f975c4206a73d2ddd3608181cddc43604f59
This cleans up .gitignore, removing things that no longer seem to be
relevant (e.g. .venv) and adding comments and formatting similar
to the suggestions proposed for openstack-dev/cookiecutter [1].
[1] https://review.openstack.org/#/c/592520/
Change-Id: I7d2cb14a36d789e217ba6fc9e096bf8eb98e579e
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I266878989b6eb64da49dc7a3dd7770a9b0611754
Story: #2002586
Task: #24324
Whenever a VM migrated from one host to another
the source VIOS had hdisk remaining after LPM.
The current change makes sure that VIOS hdisks
get cleaned up after migration.
Change-Id: I3c085a872abbaf6e6e91b2496314a06ce8e7ba58
Implement the update_provider_tree ComputeDriver method in the
PowerVMDriver.
In this patch, we *just* implement it to be backward compatible with how
the resource tracker populates the compute node resource provider
inventory based on get_available_resource. Future patches will bring
sanity to such values as allocation_ratio, min_unit, and reserved.
Future patches (as part of larger efforts) will also handle providers
and/or inventories for SR-IOV, devices, etc.
Change-Id: I78ee21165e6654c1f0b3725632f9acae2f437888
Our tox.ini was trying to use find but failing because it was not
added to whitelist_externals. Rather than correct that, we can
remove it entirely by adjusting tox to no longer create '.pyc'
files, so we no longer have to delete them.
Nova previously did this [1] to improve performance, but then had
to revert it [2] because of a tox bug. That bug has since been
fixed [3], so we should be ok to do this.
[1] 0d6d1616b9a05f1c3e1e34cb235fee327196d423
[2] 233160644f4f0a17177fffe8a1e6db1341e61ad4
[3] https://review.openstack.org/#/c/582392/1/tox.ini@28
Change-Id: I11cbf81160ba2eeefcce19ed25930c39e17449b7
Deployers want to be able to attach accelerators to their VMs. Today in
Nova this is possible only in very restricted circumstances. The goal of
this blueprint is to enable generic passthrough of devices for consumers
of the nova-powervm driver.
blueprint: device-passthrough
Change-Id: Iba1757fe2e62611def4882aad45508a3a1f1dfb1