Commit Graph

1118 Commits

Author SHA1 Message Date
Takashi Kajinami 04e053c5cb Retire PowerVMStacker SIG: Remove Project Content
Depends-on: https://review.opendev.org/c/openstack/project-config/+/909535
Change-Id: Icb1894348ef7b1602a3181dad3162df6d6ad53af
2024-02-20 22:52:00 +09:00
Zuul 376d9493e2 Merge "Adding LPAR Detailed Settings section." 2019-10-17 07:28:08 +00:00
Zuul 6ea1819963 Merge "Support : Images" 2019-10-10 07:42:59 +00:00
VedaAnnayappa 1fe310f4be Fixing Unit Test Issues
Updating to 1.1.23 version of pypowervm and Fixing UT issues accordingly

Change-Id: I7291077407c818c712fb5c98952a15020191a2cc
2019-10-09 04:07:56 +00:00
VedaAnnayappa 1df8253920 Support : Images
Added image type capability flag support to be in sync with the
openstack-nova

Change-Id: I0d617c67e2918749225ecb8184df88dfd2a68ed2
2019-07-23 14:44:35 -04:00
VedaAnnayappa 5de7a5ebdc Updated Libraries:
Added/Updated the versions of libraris used to be in sync with
openstack-nova

Change-Id: I97907720925901b2c789d3da38fdd62772e0a6a8
2019-07-22 14:15:36 -04:00
Marcin Wilk f1f9b000b0 Adding LPAR Detailed Settings section.
Change-Id: I127cfaacfb7f567e650ae5d62861ae28085c7fa4
2019-06-13 15:17:06 +02:00
Zuul bf68706a83 Merge "Add Debug Log" 2019-06-13 10:17:14 +00:00
Divya K Konoor 81b9b497c7 Add Debug Log
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
2019-06-13 05:21:21 -04:00
Zuul f1562d6396 Merge "Adding IBM i remarks section" 2019-06-13 09:19:47 +00:00
Ghanshyam Mann 2ddd028c6e Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I41c1f2b620a06298a0976d3f52faf65d74d78cae
2019-06-13 08:01:30 +00:00
Marcin Wilk 1cdb9641de Adding IBM i remarks section
Change-Id: I7da62b977dd3a3391086badca7d9042fcaaf50e9
2019-06-13 06:23:16 +00:00
amansi26 98630ef89e Fixing UT failure.
Change-Id: Ia733c160da57ab07149c48a3b886505c5c557d7c
2019-06-13 01:00:22 -04:00
OpenDev Sysadmins 61b7bdd343 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:42:06 +00:00
Zuul 1c9073a653 Merge "Remove "supports_recreate" from capabilities" 2019-04-03 13:52:39 +00:00
Zuul 4f7ee03014 Merge "Share snapshot image membership with instance owner" 2019-04-03 13:22:00 +00:00
srividr2 7a8516ffb5 Remove "supports_recreate" from capabilities
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
2019-04-03 02:53:28 -04:00
srividr2 2819a9cc62 Add supports_evacuate=True to capabilities
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
2019-03-29 16:23:10 +00:00
Zuul 1ea0b195e6 Merge "Replace openstack.org git:// URLs with https://" 2019-03-25 03:37:07 +00:00
Ian Wienand c6f71071ec Replace openstack.org git:// URLs with https://
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
2019-03-24 20:34:47 +00:00
Zuul a98977a170 Merge "Add requested_size to extend_volume" 2019-03-22 17:22:22 +00:00
Divya K Konoor d95e180302 Add requested_size to extend_volume
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
2019-03-22 10:24:23 -05:00
Matthew Edmonds b4c08d283f Bump minimum psycopg2
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
2019-03-21 16:18:08 -04:00
Eric Fried b3e195041d Add use_cache kwarg to get_info
Nova has changed the interface of the ComputeDriver.get_info method [1],
adding a use_cache kwarg. The change preserves backward compatibility,
but that's removed in Stein [2]. This patch changes the signature of
PowerVMDriver.get_info to match.

[1] https://review.openstack.org/#/c/636699/
[2] https://review.openstack.org/#/c/640043/

Depends-On: https://review.openstack.org/636699
Change-Id: Id5b00f1805b150c825070d79531be85092dce1a5
2019-03-01 09:36:23 -06:00
Matt Rabe b3f9b9a5c2 Add the device_id parameter to discover_hdisk
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
2019-02-01 11:58:15 -05:00
Matthew Edmonds 5a342bd309 Share snapshot image membership with instance owner
Stop overwriting the is_public image metadata field so that nova
can handle this. For more information, see [1].

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-January/001726.html

Change-Id: If5c08dd28b61de8fad66d3ba9ec858aaa2fa8287
Depends-On: https://review.openstack.org/630769
Closes-Bug: #1675791
2019-01-16 12:43:11 -05:00
lijunjie 2000340c4a Fix the misspelling of "except"
Change-Id: I9298c5c9271e35a855eae8920e6c58f9c6c5ed45
2019-01-04 18:16:47 +08:00
Zuul 2dcdc531e6 Merge "More py3.x support" 2019-01-02 20:31:39 +00:00
Andreas Jaeger 9dc60250e6 Use template for lower-constraints
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
2018-12-20 21:24:03 +01:00
Matthew Edmonds 7c47d01bb2 More py3.x support
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
2018-12-11 13:06:43 -05:00
Matthew Edmonds 046a56773b Update setup.cfg metadata
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
2018-12-04 10:45:24 -05:00
Zuul aea15e6d20 Merge "Use tempfile for powervm config drive" 2018-11-01 17:06:47 +00:00
Eric Fried bfec94277f PowerVM upt parity for reshaper, DISK_GB reserved
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
2018-11-01 09:28:25 -05:00
Matthew Edmonds 54e501481d Use tempfile for powervm config drive
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
2018-10-31 10:51:27 -04:00
Sean McGinnis 00a9526314 Increment versioning with pbr instruction
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>
2018-10-12 13:10:09 -05:00
arunmani f7c7051ee9 Fix message handling with VirtualInterfacePlugException class usage
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
2018-10-05 07:11:57 +00:00
zhangdebo dadcea3a6b Fix typo
Change-Id: I756200cf737c2217f8cb70363fb16de5708ccf22
2018-10-02 03:40:32 -04:00
Matt Rabe 362b705c16 Support secure_boot extra_spec in _format_flavor
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
2018-09-18 11:07:49 -04:00
Matthew Edmonds b9338ee261 Use uuidsentinel from oslo.utils
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
2018-09-12 14:01:23 -04:00
Zuul 1b698fb77a Merge "Clean up .gitignore" 2018-08-23 18:51:34 +00:00
Matthew Edmonds e526cc7619 Clean up .gitignore
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
2018-08-22 15:39:22 +00:00
Doug Hellmann 1241ea0560 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ic8c0e34672f0d6fca1fe8584899db17c7e5b09dd
Story: #2002586
Task: #24324
2018-08-22 10:50:12 -04:00
Doug Hellmann e2ebbc612a import zuul job settings from project-config
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
2018-08-22 10:50:10 -04:00
Abhinav Shrivastava f81f39d34b iSCSI: Clean up source VIOS on migration
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
2018-08-20 14:54:06 -04:00
Eric Fried dcc2bfa1c1 PowerVM: update_provider_tree() (compatible)
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
2018-08-15 16:22:03 +00:00
Zuul 9b518d8c99 Merge "Use the new loop backstore type for fileio" 2018-08-03 13:41:10 +00:00
Matthew Edmonds e046d40963 tox: Don't create '.pyc' files
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
2018-07-25 11:07:15 -04:00
Zuul 87e7517cc2 Merge "Remove unused InstanceInfo class" 2018-07-23 13:34:04 +00:00
Zuul 44c543b720 Merge "Spec: Device Passthrough" 2018-07-20 22:44:52 +00:00
Eric Fried 1cdc863695 Spec: Device Passthrough
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
2018-07-20 16:59:16 -05:00