upcoming policy-related changes need a properly initialized
global oslo_config's CONF instance, which inspector's unit tests
currently lack.
As a side effect of implementing this, the 'dbsync' module was
changed to not register it's CLI options right on its import.
Also, setting default log levels was moved to a function which
is already registered as the one providing defaults to options
in oslo_config's entrypoints. Config sample is updated accordingly.
Change-Id: I20bc537605062900d00fcc0343172774c1cd1363
To avoid multiple racing calls to start node introspection.
A node is anyways locked by ironic during the reboot request.
Change-Id: I62b94932b06ce48450200ba353dd02b0d12a113f
Closes-Bug: #1721512
This patch moves ironic-inspector to use 'stestr' test runner
via 'ostestr' wrapper.
Effective changes:
- unit tests are now being run in parallel by default
- 'py*' jobs are not running code coverage measurements,
which is left for 'cover' job only
- 'cover' job now also produces html reports consumable by upstream CI,
and fails under 90% of code coverage
- users can leverage all the ostestr/stestr features
Change-Id: I75f539457dbb1d811fdee69de52d1bcee4c6ebe6
Depends-On: Ica838db23b5714c2da1e4313e1a7ece0ca241d44
Closes-Bug: #1666232
In tempest, alias 'admin_manager' has been moved to 'os_admin'in
version Pike, and it will be removed in version Queens[1].
[1]I5f7164f7a7ec5d4380ca22885000caa0183a0bf7
Change-Id: Ic29cb510a558ceee832fbfae7853106decffbb41
Closes-bug: 1697588
We need to always use bmc_address from inventory, the ipmi_address field is
there only for compatibility with older processing hooks.
Change-Id: Ibf00ecd9278af4ee9318ada44c7c670d13ac22aa
Closes-Bug: #1714944
As described in https://bugs.launchpad.net/puppet-ironic/+bug/1714320,
a loop can occur in which dnsmasq always indicates ipxe.efi as the
bootfile if the client request has both UEFI and iPXE options set.
This fixes the documentation for the example dnsmasq.conf so that
loop won't occur.
In addition, some UEFI clients use architecture type 9 so that is
added to the example dnsmasq.conf.
Related-Bug: 1714320
Change-Id: Icdefba2b1be47622c9bd9c3bfb9b3413964c9dac
This patch allows a periodic task to shut down the inspector upon a
(critical) failure. This is needed in case of a (future) PXE filter driver
malfunction to avoid inspector running with a broken filter.
The test_wsgi_service unit test module was refactored to address test
ordering dependency issues and to enhance the mocking.
Change-Id: I50e6408bf30416d8c7ff9e30be0e938cec12b7cd
Related-Bug: 1665666
We now run services under systemd, and this check is not necessary in
this case. Follow-up to commit ee538d1e7c1a92cb8412713e03cdfbcdacad7fab
to grenade.
Change-Id: I6371b7a244c1aebfba5cb46a595a7bf43a4ee454
Depends-On: I0d6d3e9e60785bb9b6a10c8c7a07867a5b2a5e6e
Updating the CONTRIBUTING.rst, config.py and example.conf to inform the
Operator (and Developer) that the PXE filter options have no effect yet.
Change-Id: I032114934e300af1e1908369552f1b06c939002f
It became apparent in https://review.openstack.org/#/c/480679/ that these are
correct values for ipmitool to return.
Change-Id: Ied18a81dc899d8fc5290a2756f412e5075e923c4
Documentation layout aligned with the OS standards.
The configuration page refactored, configuration options
documentation automatically generated by
oslo_config.sphinxext.
Closes-Bug: #1706175
Change-Id: I544d92d64833c0887b14509063334c39a0c428f1
If node receiving DHCP address and failing to get kernel and/or
ramdisk, it maybe the selinux is enforcing.
We can let TFTP packet through selinux by setting:
setsebool -P tftp_home_dir 1
Change-Id: I574f8fdf819ea65dd9177c5ce9a78825ea4feec1