This patch set nomulitcell flag when starting nova-compute because
multi-cell rabbit setup is not necessary in Grenade. This nomulticell
flag will be introduced with I08d7da843d18b426dda8a8a231039d950a4c0ce5.
Closes-Bug: 1700548
Change-Id: Ib55f6359751052d41b46e31ec8e15f46e33c1193
Ironic upgrade process has pre-requirement that ironic-conductors
should be upgraded before ironic-api. Grenade is launched on primary
node, where we have ir-api and ir-cond runnning. Do not start ir-api
on primary node after upgrade to avoid situation when we have new ir-api
(primary) and old ir-cond (subnode) as it is not allowed by upgrade
procedure. Instead redirect all requests destinied to ir-api on primary
node to subnode.
Depends-On: I026121121059768aa74389add7eee6e63fdb214d
Change-Id: I9e496353a1d3d6547e4881f96fb187e488cff83f
We enable plugin and services in project-config.
Drop those duplications from devstack/upgrade/settings
Change-Id: I95d83d6b1f2914cbb0373099e128ab462fc3b492
Depends-On: Icdd89453ec3ebecd8375a5f2efd1a0d4bf6b4064
To support multi-node grenade jobs we need to move enabling of the
ironic devstack plugin out of the ironic grenade settings file
devstack/upgrade/settings. But if we add enabling of the ironic devstack
plugin to project-config it will cause the gate to break as the plugin
will be enabled twice.
This checks to see if the ironic devstack plugin has already been
enabled:
* If it has already been enabled it will not enable it again.
* If it has not yet been enabled it will enable it.
This will allow us to update project-config to enable the ironic
devstack plugin and not break the gate.
After all the changes have landed we will propose a follow-up patch to
remove all this additonal logic and the enabling of the ironic devstack
plugin.
Change-Id: I09ed78ef918eb0359045350e89d42c6df9f3e490
Adds handling of running ironic API under Apache as WSGI app to
devstack plugin.
New variable IRONIC_USE_MOD_WSGI (False by default) is added.
Another new variable IRONIC_WSGI_DIR (default is distro specific) is
also added, which specifies location for WSGI scripts.
Change-Id: I9c5ad56e1acd292ff0f9cc9b460125fc420abda5
Closes-Bug: #1513005
We set global variables in Ironic devstack plugin like
DEFAULT_IMAGE_NAME. Ensure that grenade uses them by
sourcing lib/ironic from upgrade/settings.
Set IRONIC_DEPLOY_DRIVER by default to pxe_ipmitool. As we no longer
add IRONIC_DEPLOY_DRIVER to IRONIC_ENABLED_DRIVERS and defaults are
conflicting.
Closes-Bug: #1663371
Change-Id: I462ac792ad7920beff64c15a7c005406fcfa5cce
When running grenade with multitenancy, we are able to boot instances
in the network neutron has created in its upgrade phase, and we don't
have to change that setup.
Change-Id: I1038548ad4f93788fca3e2b7dd8ed93da0ce7702
Starting with Idede322190d57491d4f7e18090aa8c29b5b87353 base and target
releases has the same tempest config file. This patch drops setting
fixed_network_name in target tempest.conf workaround.
Change-Id: I661ace60bf9b4817f73aaccda9c18e24adfc4e56
Grenade is designed to upgrade services. We shouldn't add them during
upgrade. This patch removes case when we trying to add Ironic to cluster
on upgrade.
Change-Id: Id7159aac8c8a343e3d20561cedc4722d87d3e776
By sourcing localrc second time we try to enable ironic plugin
one more time witch is not allowed by [0]
This patch checks if ironic was enabled or not in base environment
without sourcing localrc.
[0] https://review.openstack.org/#/c/396794/
Change-Id: I432c243c66c0d11adcf4c6568968fbeaaf9acdcd
This changes up devstack code to make sure OVS does the right thing
after upgrading. After the neutron upgrade, it uses a new OVS tag for
networking, so this changes things over to the new one.
Make sure that we remove all resources that were created during
resources phase.
Set tempest fixed_network_name explicitly as it is prerequirement for
ironic, see reference.
Reference:
https://github.com/openstack/tempest/blob/039b2fe/tempest/scenario/manager.py#L1161
Change-Id: I35789602fb542bb33533211a742c3e4d265a3b91
During resources phase resources subnet is created with the same CIDR
as during setup. Ironic requires to have a route to this network from
control plane (ironic-conductor).
This patch creates a new network with has an unique CIDR and GATEWAY
defined by RESOURCES_FIXED_RANGE and RESOURCES_NETWORK_GATEWAY.
Default value for RESOURCES_FIXED_RANGE is 10.2.0.0/24 and
for RESOURCES_NETWORK_GATEWAY is 10.2.0.1
Change-Id: I83f9f90809bbf2e6d73c7282bbb9b2be084b6a66
Co-Authored-By: vsaienko <vsaienko@mirantis.com>
Commit Id229617ec5cf2820c1033fd2c34fc160a75c46d6 recently introduced a
hard-coded identity API version in the setup script. This patch switches
the /v2.0/ to /v$IDENTITY_API_VERSION/ so we can work when v2 is
disabled as well.
Change-Id: Ib6fd666930bf45170f69d5f64ccadf617899f7c7
Ironic install initiates apache restart, it may cause nova-compute
failed to start.
This patch restart nova-compute after Ironic install for new phase.
And ensures that keystone is responding before starting n-cpu.
Related-Bug: 1537076
Change-Id: Id229617ec5cf2820c1033fd2c34fc160a75c46d6
This reverts commit cb7d8d7f4e0d06161ee6a30e22a2ebfe1d54ff14.
We will be running smoke tests anyway after upgrade, no need to do this twice.
Change-Id: I9452e0be44a038b37e2d26ffa32d5d012e9c1bad
tempest is looking for project name in enabled_services to mark service as
enabled in tempest.conf [0]
This patch adds ironic to enabled_services to update value in
tempest.conf
Reference:
[0] 59ed73a3d4/lib/tempest (L500)
Co-Authored-By: John L. Villalovos <john.l.villalovos@intel.com>
Co-Authored-By: Jim Rollenhagen <jim@jimrollenhagen.com>
Change-Id: I525a3816f8b9c71d4ae97afd18c4ddbc2a1aca13
The shutdown.sh & upgrade.sh scripts were attempting to load a file
which no longer exists. Have them load the correct file.
Change-Id: I864023880062fde0e84df81b7c7a6a17c0b09428
* Create a 'devstack/upgrade/resources.sh' file to be used by
Grenade.
* Create an 'early_create' phase to call the create_ovs_tap()
function.
* Refactor the create_ovs_tap() function to accept an argument for
the network to use.
Change-Id: I0efe427a7023d0336f25856c362c655c138102df
Enable Grenade to run tests for Ironic using the plugin method.
Also provide some documentation on the fact that
openstack-infra/project-config will need to be updated for these changes
to take effect.
Change-Id: I49cf37333c55dbbdbb75737f1c7fd2ecaf983f21
This is a straight copy of the ironic code in grenade's tree to here.
This is necessary to drop ironic code from devstack and complete the
devstack plugin work, as well as just the right thing to do, and will
help us move faster on grenade work.
Note that I'm not sure if this will or will not, and it may make our
grenade jobs explode during the transition. However, our grenade jobs
don't work right now anyway, so nothing of value was lost. :)
Change-Id: I8b065c60e9e06cd7fc10749c49bdf79d878fcc12