21 Commits

Author SHA1 Message Date
Riccardo Pittau
7150478cd8 Fix unbound variable in devstack plugin
The RC_DIR does not existed (and it never existed, it was SRC_DIR)
Change that to TOP_DIR which is what we use commonly in other
sections.

Change-Id: I4a400fd434a20938cd38c0bb876da21fec7473a1
2023-01-02 10:10:50 +01:00
Julia Kreger
17decbcb9b Add IPv6 ci Job
Runs the BaremetalSingleTenant tempest test, which provisions
two nodes, with slaac addressing, all provisioning traffic e.g.
iPXE, ironic api traffic and iscsi happens over IPv6 on the
provisioning network. Nodes are then deployed onto a IPv6
tenant network, where tempest verifies connections between them
with ssh (again over IPv6).

Co-authored-by: Derek Higgins <derekh@redhat.com>
Depends-On: https://review.opendev.org/722663
Change-Id: Id928df1cbd1131427ab6a911856f48f18e67f7cf
2020-05-28 11:41:25 +01:00
Riccardo Pittau
e11285c6b2 enable_python3_package should not be necessary anymore
Removing option enable_python3_package as it should not
be needed anymore.

Change-Id: I103ba68449616ca2a8609d16bee9aa89ab5f3bc7
2019-09-26 16:04:00 +02:00
Dmitry Tantsur
f06240f7dd Allow configuring global deploy and rescue kernel/ramdisk
The devstack plugin was updated to configure basic ops before
ironic starts, so that we can put links to deploy images
in the ironic.conf.

Change-Id: I305fc3712b1ac0cf2fe64569729e236c7b614bb4
Story: #2006175
Task: #35699
2019-08-06 15:31:19 +02:00
Derek Higgins
d6c9d6caed Replace use of Q_USE_PROVIDERNET_FOR_PUBLIC
This is being removed from devstack in
I23e1b98bd2839b79226b55700ee404a8fda83f83

Change-Id: I81b8cc348900837b876216065d7a2bf4a3665b8b
2019-01-18 13:26:03 +00:00
Pavlo Shchelokovskyy
20baf6913e Update the documentation links - code comments
This patch updates the old links existing in ironic code as comments.

Change-Id: I75f68b042448cc01d55fdcfec86b42ecacd8fdd3
Co-Authored-By: Chason Chan <chen.xing@99cloud.net>
2017-08-15 09:48:13 +03:00
Vasyl Saienko
ab3982eb27 Ensure we install latest libivrt
Recently infra team added UCA repositories and start installing libvirt
from it Ia4434541c71f050fe1ffb54f4c4c1e302391d00b
This patch ensures that libvirt-bin is installed later during stack.sh
phase when new repos are added.

Change-Id: Iab7bb24d0aa89cdbef40b2e60331976325a31cab
2017-04-21 08:53:39 +00:00
John L. Villalovos
6c1fd8f475 devstack: When Python 3 enabled, use Python 3
In order to have Ironic installed using Python 3 when running under a
Python 3 test job, we need to enable it as a Python 3 package.

The Python 3 job still doesn't pass. But this is needed as part of the
work.

Change-Id: I6a766bbb4250d76d458db8783631e4bd834859f3
2017-03-20 09:45:22 -07:00
Jenkins
170f7d1d1a Merge "Increase verbosity of devstack/lib/ironic" 2016-12-02 17:30:28 +00:00
Vasyl Saienko
5e50f3ad78 Add devstack setup_vxlan_network()
This patch adds devstack: setup_vxlan_network() function.
With multinode topology br_ironic_vxlan dridge is created by devstack-gate
that provides VXLAN connectivity between VMs on primary and subnode.

Related-Bug: #1622653
Change-Id: I7461a8eaab138ea6ec1deb276cab00d20ce3c9f0
2016-11-17 09:19:07 +02:00
Vasyl Saienko
485259c808 Update devstack provision net config for multihost
This patch update devstack: configure_provision_network() function to work
with multinode case:

 * Ignore creating a new provision_network on subnode, just get an uuid for
   existed provision network.
 * Update IRONIC_PROVISION_ALLOCATION_POOL default value to left first 10 IPs
   for internal usage, exclude them from Neutron.
 * Add IRONIC_PROVISION_SUBNET_SUBNODE_IP variable, by default is 10.0.5.2.
   The IP address from provisioning network that is assigned to subnode.

Related-Bug: #1622653

Change-Id: I6c3ed6901ce5c5c94b6ad63a01d2875979a38ad5
2016-11-11 11:46:49 +02:00
John L. Villalovos
a788fd72b4 Increase verbosity of devstack/lib/ironic
Increase the verbosity of devstack/lib/ironic by enabling xtrace for
when sourcing devstack/lib/ironic. This information is useful to be able
to see what variables are set to along with other information.  This
will increase the devstack log size by about 1%.

Also print which stage the ironic devstack plugin is being called for.

Change-Id: Ibd2530720f21c0b0c03af5c7ed2a6d7aa68eda65
2016-11-08 18:15:12 -08:00
Pavlo Shchelokovskyy
15de01a5f6 Configure clean network to provision network
Currently when setting up Ironic with multi-tenancy support,
the DevStack plugin by default still sets the cleaning network
to the default private network of the demo project,
which is not exactly correct.

Change the DevStack plugin so that the cleaning network
is the same as provisioning network if IRONIC_CLEAN_NET_NAME is not set:

- In case of multi-tenancy support enabled, use the created separate
provisioning network
- w/o multi-tenancy support use the default private network.

If the IRONIC_CLEAN_NET_NAME is provided, use that.

Change-Id: I9db8f5e3000f05d27a3fa8fc94cfdafe34a6f48a
2016-09-12 11:50:56 +03:00
Vasyl Saienko
dcd93a58e4 Use devstack test-config phase
New phase 'test-config' has been introduced by [0].
'test-config' is called at the end of devstack used to configure
tempest or any other test environments.
This patch uses new phase to configure tempest if it is enabled.

Reference:
[0] https://review.openstack.org/#/c/311797/

Change-Id: I8a6a3aeee89c1c08bfa5e630b1cdd8f8a5fa2007
2016-08-08 06:38:47 +00:00
Vladyslav Drok
56d75b9654 Do the VM setup only when requested
After the recent change, we started calling create_bridge_and_vms
no matter if it was requested by setting IRONIC_BAREMETAL_BASIC_OPS
to True or not. This breaks the ironicclient functional job that
does not need any vms created.

Change-Id: Iabd2794fc0aad2ca752e04d87d53f641f26e9ffb
Closes-bug: #1605194
2016-07-21 14:39:43 +03:00
vsaienko
75fc071b54 Add configure_provision_network function
This change allows to configure ironic provision network by setting
IRONIC_PROVISION_NETWORK_NAME variable. In this case additional
interface $OVS_PHYSICAL_BRIDGE.$IRONIC_PROVISION_SEGMENTATION_ID
will be configured with IRONIC_PROVISION_SUBNET_GATEWAY ip address.

Additional configuration parameters are:

IRONIC_PROVISION_PROVIDER_NETWORK_TYPE
IRONIC_PROVISION_SEGMENTATION_ID
IRONIC_PROVISION_ALLOCATION_POOL
IRONIC_PROVISION_SUBNET_GATEWAY
IRONIC_PROVISION_SUBNET_PREFIX

Change-Id: I619f2fb92aafe7348b0a47eaaaad1790df5ae5c7
Partial-bug: #1526403
2016-07-14 14:00:42 +03:00
Vasyl Saienko
7b2beb604e Move all cleanups to cleanup_ironic
stop_ironic is called during upgrade process and it should not
clean any Ironic files, as they will be used after upgrade.
This patch moves cleaning ironic http configuration and qemu
hooks to cleanup_ironic function.

Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com>

Change-Id: I45f2d23eb1e182a87fb41a79a3a7b7527948bf35
2016-05-23 13:18:07 -07:00
John L. Villalovos
155b32dd1e Add some docs/comments to devstack/plugin.sh
Added some docs/comments to devstack/plugin.sh

Restructured if block

Change-Id: If57d15e1ded2a46e0ba320384f610d4f779d019c
2016-05-12 12:37:34 -07:00
vsaienko
ba15202d99 Update tempest compute flavor_ref/flavor_ref_alt
After Ironic is moved to devstack plugin the tempest is always
executed before ironic devstack plugin. Unfortunatly there is no quick
way to change order.
This change introduce new function ironic_configure_tempest that is
called from Ironic's devstack plugin. It updated flavor_ref and
flavor_ref_alt compute tempest options.

Change-Id: I85a77dd2193bac0ea4bd4fc1985c82d9f598b06b
2016-03-28 16:04:06 +00:00
Jim Rollenhagen
778fcdafa4 Clean up variables in plugin.sh
These are defined in lib/ironic, so use them there instead of plugin.sh
to make the plugin a bit cleaner.

Change-Id: I0d536ad7ba9b4ff4473a973ea13100e924ee9ce5
2015-12-14 08:49:13 -08:00
Jim Rollenhagen
a0dcef410e Add devstack plugin
This adds the actual devstack plugin, with a signal to devstack that the
plugin is in use, and devstack should not run the ironic code in the
devstack tree.

Note that this is not yet configured to run in the gate.

Change-Id: I147ea059f75720132dd82ff9e7cd3bfdff7fa584
2015-12-10 15:33:33 +00:00