This patch resolves a TODO in the .zuul.yaml about using common
irrelevant files in our dsvm jobs. To be able to do that we need to move
the test hooks from nova/tests/live_migraton under gate/.
Change-Id: I4e5352fd1a99ff2b4134a734eac6626be772caf1
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: I913aafeeca1569bc244347bc630762f5a6cc072e
This resolves the TODO to make the option default to True
so that the source compute service will wait for the
"network-vif-plugged" event, initiated by vif plugging during
pre_live_migration on the destination compute servie, before
initiating the guest transfer in the hypervisor. There are
certain networking backends that will not send the neutron
event for vif plugging alone (which is arguably a bug) but
OVS and linuxbridge, probably the two most widely used in
OpenStack deployments, are known to work with this config.
While in here, the Timeout message is fleshed out to give
more help with what the cause of the timeout could be and
possible recourse.
Change-Id: I8da38aec0fe4808273b8587ace3df9dbbc3ab576
Since change I81301eeecc7669a169deeb1e2c5d298a595aab94 in
devstack, nova-cpu.conf is a copy of nova.conf minus
database access. Grenade jobs also run nova-compute with
nova-cpu.conf anyway so we can just drop the conditional
which was otherwise messing up the config file that the
ceph script would write rbd configuration which is why
live block migration tests with ceph were failing.
While in here, the zuul job configuration is updated so
that changes to nova/tests/live_migration/ can be
self-testing.
Change-Id: I902e459093af9b82f9033d58cffcb2a628f5ec39
Closes-Bug: #1813216
This adds a post-test bash script to test evacuate
in a multinode job.
This performs two tests:
1. A negative test where we inject a fault by stopping
libvirt prior to the evacuation and wait for the
server to go to ERROR status.
2. A positive where we restart libvirt, wait for the
compute service to be enabled and then evacuate
the server and wait for it to be ACTIVE.
For now we hack this into the nova-live-migration
job, but it should probably live in a different job
long-term.
Change-Id: I9b7c9ad6b0ab167ba4583681efbbce4b18941178
The glance_api_version config option was removed from cinder
in Queens [1] so we can stop setting it during the
nova-live-migration CI job.
[1] https://docs.openstack.org/releasenotes/cinder/queens.html
Change-Id: Ifbadce909393268b340b7a08c78a6faa2d7888b2
The nova-live-migration CI job uses OVS which sends
vif plugged events to the source host during live
migration when the destination host plugs vifs
during pre_live_migration. We can set the
live_migration_wait_for_vif_plug option to True
so that the source host waits for the vif to be
plugged and get the event from neutron before
starting the actual guest transfer in the hypervisor.
This is really just about coverage of this code
in a live environment so we don't regress it.
Change-Id: I3d7770589a1526e851d5764214c26ec1a9a8fd43
Grenade runs in singleconductor mode for queens
as of change:
If4c82ca12fe7b8b1ca7cfd8181d24dbd8dad3baa
However, the nova configuration during ceph setup
was using NOVA_CPU_CONF which is /etc/nova/nova-cpu.conf,
which is not what we want when configuring nova.conf
for the compute service in singleconductor mode.
Devstack has similar logic for stuff like this, so
we just have to handle it here since we're in a special
snowflake.
The stable/queens systemd stuff is all removed too since
we run with systemd on the old pike side and can restart
services properly with systemd on the new queens side
during grenade live migration CI job runs.
Change-Id: Iccb8eb55a5cc2a3d08e7fd6e31c89b3b5f8d0c70
Closes-Bug: #1720191
This reverts commit 1032c79238.
This wasn't actually ready to merge, and now that it has
we're seeing a spike in failures of test_iscsi_volume.
Change-Id: I74649dd63ef82a356b829ea01b2e74640dc6f11c
Related-Bug: #1398999
The block_migrate_cinder_iscsi config option in Tempest says
the libvirt driver doesn't support live migration with an attached
volume because of bug 1398999 where volumes live on a network share
like RBD. However, I8fcc3ef3cb5d9fd3a95067929c496fdb5976fd41 in
nova says that this is possible with libvirt >= 1.2.17. Since we are
using libvirt 2.5.0 from the Ubuntu Cloud Archive on Xenial nodes
now, we should be able to enable this test.
Change-Id: I7d7a708b231070468616ae852d81d2f8b01ba568
Related-Bug: #1398999
This just fixes up the ceph live migration test hook code to use the
config that nova-compute is using if we're in a multicell environment.
Change-Id: Ibc4b21089ef86ab2430874c39d63174528c9a83e
Chnage I914430d68f64d29932c9409d055b15e4cb384ec4 made the
live migration scripts assume everything is running under systemd,
which is fine for the non-grenade job since devstack on master (pike)
defaults to run everything under systemd.
We missed, however, that the grenade live migration job is starting
from Ocata where screen is used by default, so when we get to the ceph
part of this job in the grenade setup, trying to restart glance-api
via systemctl fails since it's running under screen, not systemd.
For now we'll just skip the ceph live migration setup in the grenade
run until either the bug is fixed or until Queens is our master branch,
at which point the old side for grenade is Pike and running under
systemd.
Change-Id: Ia0ec32dc7cfe744b21b926949c4ab046f9417bc7
Related-Bug: #1691769
The restart code for the live migration configure on the fly tests was
really really fragile clippings of old bits of devstack code that
barely worked (and assumed a very specific run environment).
Given that we're going to get rid of everything other than systemd in
devstack, just jump straight to using systemd primitives here. This
dramatically simplifies the code, and will ensure things actually
restart correctly.
Closes-Bug: #1687511
Change-Id: I914430d68f64d29932c9409d055b15e4cb384ec4
The custom start scripting for the nova compute service assumed that the
libvirt group is "libvirtd". Unforately libvirtd is no longer used by
debuntu as they use "libvirt". Add a simple check against /etc/group
for an existing libvirtd user otherwise use libvirt.
Change-Id: Idbda49587f3b62a0870d10817291205bde0e821e
Depends-On: If2dbc53d082fea779448998ea12b821bd037a14e
Commit 9293ac0 to devstack-plugin-ceph altered
CEPH_LOOPBACK_DISK_SIZE_DEFAULT variable initialization
This fix added source for setting this variable in correct way.
Closes-Bug: #1646418
Change-Id: I84c3b78c53cfa283e9bcb7cf4b70ec6c95044e9c
Since ceph installation and initial config is done
by devstack-ceph-plugin, duplicate functions could be
safely removed from l-m hook
Change-Id: I23a8a8d414fb43b6758485a5a6df4a771abdefce
This commit add regex first while running tempest tox
There is changes in way tempest tox runs tests by using the tempest run
command directly instead of some bash script.
With tempest run you specify a regex with a '--regex' parameter and to
keep backwards compatibility this is added to the tempest tox
definitions.
But in Nova tests scripts it is being used after concurrency and ends up
having a call equivalent to:
tempest run --regex --concurrency=2 $tempest_regex
which obviously is incorrect. Simply switching the arg order should work here.
Change-Id: If0064b9e8358332972ef4a1eee8f150e66f8c50f
Needed-by: I3684fce66a799579fa68af119652cafef25a9f03
For non-shared storage live-migration job is unstable due to
https://bugs.launchpad.net/nova/+bug/1524898. This patch temporary
exclude this test from tests to be run.
Related-Bug: #1524898
Change-Id: I87559b8e90855837ad7b5f291bd9a8fc646421d3
The NFS and Ceph setup is currently broken on the Ubuntu 16.04 nodes
so until that's sorted out let's skip them.
Related-Bug: #1590929
Change-Id: I454ffb43450490503d988eff2654878670e5c35c
The rule_id line is formatted as:
"rule_id": 0,
Which means the id integer is the second column of the parsed output,
not the third.
Since a third column doesn't exist, the call to cut returns nothing,
leaving $RULE_ID invalid, which then causes the subsequent ruleset
commands to fail.
We don't see this normally because $CEPH_REPLICAS is set to 1 by
default.
Change-Id: I3255f9421119aafb7407ba7443400bd3ace0d827
Closes-Bug: #1581159
since ansible 2.0 is released replace module need to be changed with
ini_file and '=' symbols require escaping to make hook works again
Change-Id: I51e6336a4766cb62d4bce76d30d51280f12c578a
This patch add nfs shared storage for ephemerals
and run tempest tests again.
This is used in the gate-tempest-dsvm-multinode-live-migration job
which is run on the experimental queue only right now.
Change-Id: Ief89e614dd0cb218ab816da506e627b01f2ec5c1
Basic enablement and clean-up of live-migration tests.
First attempt was to configure tempest in a hook, which
wasn't good idea, this patch actually fixes this. So d-g
make all configuration, and current hook only executes tests.
This is used in the gate-tempest-dsvm-multinode-live-migration job
which is run on the experimental queue only right now.
Change-Id: Ie28823fa1e8863b24391e503d04b031c421f0cd2
Live-migration multinode job should check different configurations.
To implement this new hook in nova should be used. Current patch adds
execution of live-migration specific use-cases.
Change-Id: I3ad9287b8f103a874f88100df82fa9e1f8617d6f