Commit Graph

924 Commits

Author SHA1 Message Date
Elod Illes caedc5092c [stable-only] Remove periodic-stable-jobs template
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)
2022-06-24 21:29:47 +02:00
OpenDev Sysadmins 4be1e1a09f 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:07 +00:00
Ian Wienand dcc0b4af39 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: I07753f874ac33d25008bded49e8cb5a9e6b437fc
2019-03-24 20:34:47 +00:00
Doug Hellmann 89eaf889f7 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: I220a92382121dd32a8541298c4c170e1df6c6ba8
Story: #2002586
Task: #24324
2018-08-22 10:50:43 -04:00
Eric Fried 855c4182af Use "$*" instead of "$@" in tox_install.sh
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
2018-05-11 11:24:19 -05:00
Eric Fried d051c80a74 Stringify instance UUID
oslo.versionedobjects merged a patch [1] resulting in the referenced
bug. A second patch [2] was merged that was supposed to fix the issue
If coerce's value arg is a unicode string, then the method will return
unicode [3]. Subsequent checks for isinstance(str) [4] will fail and a
TypeError will be raised trying to handle the uuid as an int in the
else block. This change ensures that the uuid is an instance of str so
that it is handled properly. This problem was fixed in pypowervm 1.1.15
[5] and the minimum version was bumped for master. However, we can't
backport the pypowervm requirements bump to the stable branches so we
have to fix it here.

[1] https://review.openstack.org/#/c/559815/
[2] https://review.openstack.org/#/c/561674/
[3] https://review.openstack.org/#/c/561674/2/oslo_versionedobjects/fields.py@367
[4] https://github.com/powervm/pypowervm/blob/1.1.6/pypowervm/utils/uuid.py#L50-L56
[5] https://github.com/powervm/pypowervm/commit/d55b4c84

Related-Bug: #1766692
Change-Id: Ic3b11b071a055177bbcfb0555e2a391ba419d191
(cherry picked from commit 49330fcf28)
2018-05-11 09:00:30 -05:00
Stephen Finucane 45b2cde3b3 Fix sphinx-docs job for stable branch
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>
2018-05-11 11:32:20 +01:00
Zuul e0b516ca36 Merge "Persist existing LPAR wrapper attributes in DefaultStandardize on resize" into stable/pike 2017-11-08 21:58:54 +00:00
mdrabe 9e553a8659 Persist existing LPAR wrapper attributes in DefaultStandardize on resize
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)
2017-11-07 10:56:36 -06:00
Matthew Edmonds 1896d1147e update translations
Update po files with latest translations

Change-Id: I0890c4a75c741f209bce6c866561fcc32accdac2
(cherry picked from commit 5cf4a36eed)
2017-10-26 08:11:59 -04:00
Matthew Edmonds f40d622537 remove log translation files
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)
2017-10-25 15:49:13 -04:00
Tyler Blakeslee 5bf987ceed Raise catachable error when VNC terminal fails to open.
Closes-Bug: #1724084

Change-Id: I29171925d5c59b2f4dbf0c6f2a731aa196ca3b72
(cherry picked from commit: 42468a2ee0)
2017-10-24 16:25:29 +00:00
Eric Larese 62529caddd change kernel backstore to fileio
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)
2017-10-04 15:47:20 +00:00
Eric Fried 8ee60c5588 Update tox.ini settings for pike
Change-Id: I9037c9d871d7429413c1a31a82620b20980f944e
2017-08-11 21:04:17 +00:00
Jenkins 00dedba9d0 Merge "Adopt new pypowervm power_off APIs" 2017-08-09 13:12:07 +00:00
Matthew Edmonds b4eed72d1c force python2.7 for tox pep8
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
2017-08-02 08:54:49 -04:00
Eric Fried 6532f8ec05 Adopt new pypowervm power_off APIs
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
2017-08-01 17:52:55 +00:00
Eric Fried 6cf382b960 Install nova test requirements for tox
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
2017-08-01 10:41:55 -05:00
Jenkins e558c39d0b Merge "Removed older version of python added 3.5" 2017-07-25 15:29:23 +00:00
OpenStack Proposal Bot 4f2ef146a8 Updated from global requirements
Change-Id: Ie0a7b2d36d650d8ad24c53c8341e40ad5fd633e8
2017-07-21 05:23:08 +00:00
Arundhati Surpur 10a43f48eb Removes unnecessary utf-8 encoding
This patches removes unnecessary utf-8
encoding in doc/source/conf.py

Change-Id: I723ec337d3f37d2fe537032c92042eb10d2f0c31
2017-07-20 17:19:29 +05:30
Arundhati Surpur fcd6f1e0b8 Removed older version of python added 3.5
In setup.cfg file the python 3.5 is added
In tox.ini the python 3.5 is added

Change-Id: Ie2571e8778533e7f7601293ee2cfdac4acf8780e
2017-07-20 17:10:18 +05:30
Jenkins 560953d1c8 Merge "Clean up log messages" 2017-06-28 20:47:57 +00:00
Jenkins 2861cb9c92 Merge "Allow dynamic enable/disable of SRR capability" 2017-06-28 11:59:57 +00:00
manasmandlekar 395b7a65b6 Allow dynamic enable/disable of SRR capability
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
2017-06-27 10:29:28 -05:00
Eric Fried a68f0ef5ec Clean up log messages
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
2017-06-27 09:56:16 -05:00
OpenStack Proposal Bot a3963f445f Updated from global requirements
Change-Id: I1f661dd2f48261c9217578994ce4282e4b1ed02c
2017-06-27 12:16:59 +00:00
libing b8d58e598d Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I6af522f01a2e8c2d071bc67d7e88b771a45e2ff6
2017-06-23 16:33:51 -05:00
Jenkins a8c4202fce Merge "Use CONF.host for powervm nodename" 2017-06-21 20:05:03 +00:00
Matthew Edmonds f5b61f15d4 Use CONF.host for powervm nodename
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
2017-06-21 13:39:49 -04:00
Jenkins 1b3bd9659e Merge "Updated from global requirements" 2017-06-21 14:13:10 +00:00
Matthew Edmonds 74f92e1397 Remove volume_group_vios_name
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
2017-06-16 14:22:39 +00:00
OpenStack Proposal Bot 4199b916e1 Updated from global requirements
Change-Id: If4b28ddfa3659185d70e2003beffcc4dac667f54
2017-06-15 16:30:10 +00:00
Jenkins af5932c9b3 Merge "Add support for file-backed ephemeral disk" 2017-06-14 15:28:51 +00:00
Jenkins f2c1d2d73e Merge "Performance improvements for Lifecycle events" 2017-06-06 17:50:34 +00:00
Jenkins ebb196abf1 Merge "Fix some reST field lists in docstrings" 2017-06-06 17:47:48 +00:00
Eric Fried db759ce515 Performance improvements for Lifecycle events
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
2017-06-06 10:16:39 -05:00
Jenkins 484eaee78c Merge "Clean up orphan tap devices on migrate" 2017-05-26 19:08:02 +00:00
Eric Larese 8d00d66a83 Clean up orphan tap devices on migrate
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
2017-05-26 08:10:21 -04:00
ZhangHongtao 8cb49dd771 Fix some reST field lists in docstrings
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
2017-05-24 11:15:01 +08:00
Eric Fried 0b91811519 Consume HttpNotFound
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
2017-05-23 14:35:00 -05:00
Taylor Jakobson 20f3a9a387 Add support for file-backed ephemeral disk
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
2017-05-22 16:10:53 -05:00
Jenkins bc2b813784 Merge "Remove block_migration attribute from migration rollback call" 2017-05-17 14:59:17 +00:00
Jenkins 74945062fa Merge "Specs:Neutron Networking Guide link" 2017-05-17 13:27:02 +00:00
arunmani b07ea6602d Remove block_migration attribute from migration rollback call
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
2017-05-17 06:31:44 -04:00
OpenStack Proposal Bot 53d67813a7 Updated from global requirements
Change-Id: Id677a03ce71b3ab3d1d3b72adf2ba41129d70494
2017-05-17 03:54:01 +00:00
Jenkins 1e7e110c0e Merge "Save management switch mac address on deploy and use on rebuild" 2017-05-16 18:48:59 +00:00
Jenkins c487280464 Merge "Update host cpu util calculation to consider idle proc cycles" 2017-05-16 18:33:54 +00:00
Gautam Prasad 714dabac98 Save management switch mac address on deploy and use on rebuild
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
2017-05-16 02:50:40 -04:00
Jenkins 6f6d30e35f Merge "Fix AttributeError related to volume data check" 2017-05-10 17:54:59 +00:00