Periodic stable jobs are failing for a long time since the project is
not actively maintained. This patch removes the periodic-stable-jobs
template to free up CI resource.
Change-Id: Ib896b24e71e81107c5c104923b3bdec37e069613
(cherry picked from commit 1da3fcd72d)
(cherry picked from commit 02447d4291)
(cherry picked from commit 18ec580b40)
(cherry picked from commit 0faaf5e192)
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: I07753f874ac33d25008bded49e8cb5a9e6b437fc
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: I220a92382121dd32a8541298c4c170e1df6c6ba8
Story: #2002586
Task: #24324
Checking for no arguments via
[ -z "$@" ]
works if there's zero or one arguments, but breaks if there's more than
one:
[: too many arguments
Checking via
[ -z "$*" ]
does not suffer this malady.
Co-Authored-By: Elod Illes <elod.illes@ericsson.com>
Change-Id: Ieb36a775c6a1db027e0be684851582265fbb5f48
build-openstack-sphinx-docs jobs fails on stable branches due to the new
pip version 10 introduces some previously Warning as Error: in case of
calling "pip install" without any package name, the command fails.
tox_install.sh is called during docs job without any package passed to
pip.
Change-Id: I1c9efa640301427dc0497897eab90fd391baa29c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
The DefaultStandardize object in pypowervm defaults the proc units
factor, max virtio slots, uncapped weight, spp, availability
priority, srr, and proc compat (note that the enable lpar metric
parameter isn't included in this stable/pike commit as the minimum
pypowervm requirement for Pike does not support that parameter).
nova-powervm does not pass in these parameters when resizing.
This results in these attributes being set to the default defined
by the DefaultStandardize object for every resize operation. This
change passes those parameters into the DefaultStandardize object.
Note that if the attributes were passed in as part of the flavor
then the flavor's values would be set later in the DefaultStandardize
object by the LPARBuilder.
Closes-Bug: #1722923
Change-Id: I0e9ad0dbbc35658e096636a454ad493492025420
(cherry picked from commit 4bad1ec165)
Earlier changes [1] removed log translation markers from the code,
but the log translation po files were left behind. This removes
those files.
[1] b8d58e598d
Change-Id: I0b582d694638ce50c1f992b75ef748871a5139e2
(cherry picked from commit b33440ee1d)
The kernel fileio backstore supports SCSI persistent reserve, which is
needed for some cluster applications. This change converts to use
this fileio backstore.
Change-Id: Ifc3745a52e08c78abdf727d36f32ca0c7b2f05da
Closes-Bug: 1719634
(cherry picked from commit ead4bc9531)
tox -re pep8 isn't working for systems that use python 3. Force tox
to use python2.7 for pep8.
Change-Id: I61468c3e3ab673dc84248dc72d1085c83ee57bc0
Closes-Bug: #1708163
Recent pypowervm release 1.1.6 introduced
pypowervm.tasks.power.power_off_progressive and deprecated power_off.
This change set updates to use power_off_progressive and PowerOp.stop()
accordingly.
Change-Id: If3ba623b2ee92139da14c38524dacc33b995d1b2
Because nova-powervm follows nova at a development level, we have to
install the latest master branch, so we can't put nova in our
[test-]requirements.txt. Instead, we put it in our tox.ini testenv
deps as a git clone and install. This pulls in nova's requirements.txt,
but not its test-requirements.txt.
Change [1] moved nova's wsgi_intercept dependency from requirements.txt
to test-requirements.txt; but this didn't cause problems yet because
wsgi_intercept wasn't actually being imported in a path that mattered to
nova-powervm testing until [2].
This change set explicitly adds nova's test-requirements.txt, pulled
from the master branch, to the nova-powervm testenv deps.
[1] I0d8325e12ed7d5d022877782d6aa4ba4055c30db
[2] I03b3abea152d45575ac6dde22ccbe32b6acb4646
Change-Id: I9f4263f22fb73bf694bf0d2f766d1b921c1f2704
Closes-Bug: #1707951
Currently to enable or disable the Simplified Remote Restart (SRR)
capability on the VM we need to have the VM in shutoff state. We should
be able to toggle this field dynamically so that the shutdown of a VM is
not needed.
Change-Id: If80660aa72e84e0e65108a36ac47e5bbfaebef80
Comprehensive scrub of log messages for the following issues:
o Ensure 'instance=...' is in all messages where possible.
o Remove redundant references to instance within messages.
o Convert LOG.*(..., exception) to LOG.exception.
o Remove redundant exception text from LOG.exception usages.
o Minor reformatting to consolidate lines.
Change-Id: I0f385bc9e33a197eb3c86b3a13d97bbaac7cdd92
The get_available_nodes method of the powervm virt driver was
returning a string based on the machine type, model, and serial
number of the host. This was inconsistent with other drivers. It also
required a working NovaLink connection, which cannot be guaranteed.
This change replaces the MTMS string with CONF.host.
The same change was made to the in-tree driver with nova commits
f2e8244e169ed2ecb8e06e76de1755033be87f21 and
de5b7d8f257ba89d5f3dab805f8e49ffc6eda4aa
Change-Id: Id41c4576c32e7e8cf6b2c3c2020303f87ecaf3d3
nova-powervm commit c64087adb0
removed the only code using CONF.localdisk.volume_group_vios_name
but neglected to remove the conf definition itself or the
references in devref. This change removes both since they no
longer apply.
Change-Id: I2bd2739c99d7fd12f9a111dec62286f04e345e6b
Implement various performance improvements in the event handler.
- Since get_instance is expensive, delay it as long as possible (see #2
in the bug report). Only retrieve the instance right before we're
going to use it.
- Delay all PartitionState events (see #3 in the bug report).
- Skip PartitionState-driven events entirely if nova is in the middle of
an operation, since nova is already aware of the appropriate state
changes.
- Only retrieve the admin context once, and cache it.
We keep the instance cache (see #1 in the bug report) since scale
testing showed it was indeed being used a nontrivial amount of the time.
Change-Id: I1f1634215b4c269842584c59f2c14c119c282b7e
Closes-Bug: #1694784
A failed migration can leave an orphaned tap device on a host, which
will cause subsequent migrations to fail due to a tap device name
collision. This change will detect these collisions on a host
during pre_live_migrate and clean them up.
This change will also clean up all orphaned adapters on driver
startup.
Change-Id: I0ea40b0ab15653f115b185823c2681a6758d5c83
Closes-Bug: 1692022
Probably the most common format for documenting arguments is reST field
lists [1]. This change updates some docstrings to comply with the field
lists syntax.
[1] http://sphinx-doc.org/domains.html#info-field-lists
Change-Id: I5e5e8310dd909b7b72c49893d62757ebe120fb7c
A recent pypowervm commit [1] in release 1.1.4 (now the minimum
requirement for nova-powervm) added a more granular HttpError for 404
called HttpNotFound. This allows consumers to change goofy logic like:
try:
...
except HttpError as e:
if e.response.status == 404:
do_one_thing()
else:
do_another_thing()
...to the prettier:
try:
...
except HttpNotFound:
do_one_thing()
except HttpError:
do_another_thing()
This change set effects such improvements across nova-powervm where
appropriate.
[1] 9baf10d6f6
Change-Id: Iaadca830b11318787868a42e00fc814241d18081
Adds support for file-backed ephemeral disk as a localdisk replacement
for lvm.
Supports both RAW and QCOW2 files. Resizing a file-backed instance is
not currently supported.
partially-implements: bp file-io-driver
Change-Id: I1fd499a776cc2e05246c1fc453151aa7bd712dc8
In case of failed live migration of a VM, remove the block_migration
attribute from being passed to _rollback_live_migration() method.
This attribute isn’t required to be passed during the recover method
invocation as part of migration failure.
Change-Id: I5fb08612bab82ddbfd0f18634f2ee305c8ed80eb
Closes-Bug: #1691079
On rebuild, since the VM gets destroyed, all its associated slot data is
lost. Also cloud-init does not update network config if instance id
has not changed, as a result a new mgmt switch mac address is not getting set
on VM after rebuild. This causes the VM RMC state to go to inactive.
The fix proposes to store the management switch mac address in
instance system metadata. This does not get destroyed and gets reused
over rebuild, allowing the VM to use the old mac address while creating
new CNA. On VM, since it gets booted from same boot volume, the same
network information gets reused.
Change-Id: I745f40d4116de353e6824740849c176384feb745
Closes-Bug: 1689518