Switches to the built-in inspection by default and deprecates support
for ironic-inspector. The actual removal should happen after we get
inspection rules in since it's the last feature that is relevant for
bifrost.
Depends-On: https://review.opendev.org/c/openstack/ironic/+/907398
Change-Id: Id157d5ada2ff3f87f3f4d161423b1f3989f73194
This is the first in a series of commits to add support for codespell. This is continuning the process completed in ironic-python-agent.
Future Commits will add a Tox Target, CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame.
Change-Id: I41b2db35cdf21917ac20ed0866af3b9c94789f0b
Fixes bifrost so it utilizes:
* The admin role, instead of the long deprecated baremetal_admin
role.
* Utilizes system scope and admin scoped access where needed
for during installation self-test commands to execute
as expected.
* The user utilized for inspector's keystone access
now utilizes the "admin" role instead of the
baremetal_admin role.
Closes-Bug: 2051168
Change-Id: I090520547846a7a8d85bd032a52d6da039761186
Its Python 3.8 is not supported by any active version of Ansible.
Focal has been best-effort for a while already.
Change-Id: Id04f9b9835cc705716a797caa7beef2536027186
After the switch to newer ansible collection, the enrollment workflow
started running automated cleaning (before that, it would use the old
API version resulting in immediate "available"). However, the static
DHCP configuration only happened in the inspect and deploy workflows,
which are run after enrollment.
This change extracts a new small role for the DHCP config and includes
it in all 3 workflows that use DHCP.
While here, make sure that dnsmasq_dhcp_hostsdir is respected.
Change-Id: Idf6f24dde11d600698d45a218812cba8134fb73f
The enable_dhcp variable is still pointing to the removed variable
include_dhcp_server while it should use enable_dhcp instead.
Change-Id: I60992fa7286766f4fac935e53207f49a98cd77cd
Previously online data migrations were not performed in the default
configuration where the database address is 'localhost'. I'm not sure
why this condition was used, but it was present in the original
change I685efd14bf3567a126311b676a50b0abb0f043db submitted adding the
online data migrations back in the Stein release.
This change removes the condition to perform online data migrations
regardless of the database address.
Change-Id: I60d0f61a3c6fd3573b2031f7dba5d8a29e178394
Closes-Bug: #2036772
Often it is beneficial to use the functionality provided by `use_cirros`
and `cirros_deploy_image_upstream_url` to download and test with images
of other OS distributions. This patch changes the variable names to
reflect that use case.
`use_cirros` -> `download_custom_deploy_image`
`cirros_deploy_image_upstream_url` -> `custom_deploy_image_upstream_url`
The functionality of the old variables is retained for backwards
compatability.
Co-Authored-By: Alex Welsh <alex@stackhpc.com>
Change-Id: I8b3a973bd5ef19333af563c170b2a28fbbfb5c76
This feature allow custom user-data's file generation by the user.
It is usefull for example when user needs to set up an advanced ssh configuration (special user, SSH certificate-based authentication)
Signed-off-by: vguillard <vincent.guillard@b-com.com>
Story: 2010475
Task: 47036
Change-Id: I2831e58d84f1da03485f8315eccdd2e79231e584
It is now possible to do a PXE network boot with grub as an
alternative to iPXE. Grub is loaded via the signed shim, so it may
allow end-to-end automated deployments with secure-boot enabled.
To use grub network boot, deploy bifrost with variable
``default_boot_interface`` set to ``pxe``.
This feature is tested by job
bifrost-integration-redfish-uefi-fedora-latest.
test-bifrost.sh is also modified to only enable the hardware-type
driver which matches driver used for test nodes. This allows a default
interface to be set which is not supported by one of the enabled
drivers (for example, ironic will exit because the ilo driver doesn't
support the pxe boot interface)
Change-Id: I8ac33d0aa0f71b092d2c0538ac3a73491ff44921
Parameter ``enable_uefi_ipxe`` has been removed, instead
``enabled_boot_interfaces`` is checked for containing ``ipxe``.
Change-Id: Id47d596750319d8e2889dff9741c6ef4e790ad56
At least on the CI nodes it causes issues with grub-pc on Debian since
the CI nodes don't have bootloader configured. Download and extract
packages instead.
To account for Kolla (which has a split between the install and the
bootstrap phases), the downloaded files are cached in /use/lib/ironic.
Change-Id: I9307366db9579b194dcb88818ed0ce2fedb4baaf
Sometimes MariaDB changes the format of database tables between
releases. A mysql_upgrade tool is provided that will attempt to repair
the tables to make them compatible with the new version of MariaDB.
Upgrading from Ubuntu Focal 20.04 to Ubuntu Jammy 22.04 will trigger
such an issue:
TASK [bifrost-ironic-install : MySQL - Creating user for Ironic]
The user specified as a definer ('mariadb.sys'@'localhost') does not exist
This change runs mysql_upgrade after installing MariaDB.
Story: 2010208
Task: 45935
Change-Id: Iabcb8296489b0915bdb6a2a8a0de4dfe87853482
This change adds ironic_tftp_master_path to the list of paths to get
the tftpdir_t context, so that images copied from here to
tftp_boot_folder will have a context which allows the file to be read.
This change also applies the context changes when SELinux is in
Permissive mode, as well as Enforcing.
Change-Id: I43dd4a2f7cf47934bc9f5cdee85acf53a40dd468
* Downgrade openstacksdk instead of the collections since some keystone
code does not work on old collection and new SDK.
* Force checkout on upgrade since we have local changes to requirements
Reverts commit c12b7fafe8.
Change-Id: I14a83b703c1c76fd311c60aa23880b5708105165
This is a documented feature, we need to validate it.
Rename a variable to prevent it from clashing with one in the roles.
Pull cloud configuration to be able to work with TLS.
Change-Id: Ie41060dba2ae8c2dd88e0e6f9b574b7214302983