oslo.config.generator has been removed from olso-incubator so
we need to adopt it in order to generated up-to-date config
files.
Changes introduced:
- Move config/generator.py from openstack.common to ironic.common
- Update config generator to use new style list_opts discovery
- Split _print_opt function to reduce complexity and pass pep8 tests
Change-Id: I397504bf0604a86082f26e46952720117611f3a8
This patch updates the documentation about the Nodes and Drivers Vendor
Passthru. It talks about the discoverability of the vendor methods via
the Ironic API, the support for multiple HTTP methods and what to expect
of a asynchrounous or synchrounous method.
Change-Id: I6a3c971dfe53cc7148ea2a51c6449bf729d39fa5
The 'spec_set' option of Mock object directs stricter checking than
'spec' option.
The commit 926a6d2521de5cad2221e4acade7b4af2eb37dc0 assigned
'spec_set' to the external functions of PYWSMAN, but it assigned
'spec' to the internal functions.
This patch makes strictness of the error checking consistent among
DRAC test cases.
Change-Id: I96eba89b3360668afa628a8ac0880c866bec7e5c
Instead of requiring manual understanding of how to generate
the states diagram, add an explicit virtualenv that can be
used to create and generate that docs diagram (and replace the
existing file with it).
Change-Id: I1738da9bf08bfda9b9be01489e8456569a31709e
This commit adds some logging for errors encountered
during periodic task of syncing power state. It logs the
error encountered by the power driver on each attempt.
Change-Id: I9a879aaa64a12570c4b3558d4a5fc39ca8bfa1b8
Disabling erase_devices clean_step in agent_ilo driver doesn't work
even though the configuration option is updated to 0.
Change-Id: I72501793b9a0d384555bec2bbe2ddfdb2f1c2c2f
Closes-Bug:#1448103
This patch just add some DEBUG and INFO logs for the iSCSI deployment
methodology, so that the operator knows what's the steps the ramdisk is
taken by looking at the conductor logs.
The patch add logs for Ironic when working with both supported ramdisks
DIB and IPA.
Change-Id: Iaee09643b03877a1a735b6019def47445bf3e16f
This patch adds the optional runtime dependency to support db2
for alembic migration, will not break the default mysql path.
And I did the testing in db2 env, works fine.
Change-Id: I59deff0d82bc9e2e7ceaa157c626cd2bb7a36f0d
Closes-Bug: 1444270
This commit updates the iLO documentation with the
nova flavor examples for how the iLO capabilities
can be used for scheduling.
It also updates the documentation for automatic
boot ISO creation for iscsi_ilo driver.
Change-Id: I392d3e5d46b62fa195d176b54e150258880f061f
Added autospec=True or spec_set= to mocks
Fixed one incorrect call to has_calls() and changed to assert_has_calls()
Change-Id: I01756a4db88e50a8a663a164644feebd9be90f2c
Create third_party_driver_mock_specs.py with an initial mock spec for
the pywsman 3rd party library.
Enable initial use of this mock spec.
Change-Id: I387d26ef490833f5e833ca214dbce009c5edff0d
In order to use iPXE with neutron we need to create a tag in Neutron,
this patch document how to do it.
Change-Id: I313eb3600e864ff7a868154fe2d0aa6fb8cc69a2
The state machine incorrectly models the transition from CLEANFAIL to
to CLEANING state. The spec [1] mentions that management of CLEANING
tasks should be handled in the same fashion as ZAPPING tasks. For
ZAPFAIL:
Nodes that transition into ZAPFAIL will automatically enter
maintenance mode, as failure to ZAP a machine usually indicates
a hardware failure or something else that requires remote hands
to fix.
Nodes in CLEANFAIL should do a similar thing as ZAPFAIL; they are
put in maintenance mode, but shouldn't be able to transition directly
to CLEANING.
This patch also clarifies the documentation for the transition
CLEANFAIL -> MANAGEABLE.
[1] http://specs.openstack.org/openstack/ironic-specs/specs/kilo/new-ironic-state-machine.html#proposed-change
Change-Id: Ieda2fcd78332a063c51685cd01bb824014f0f4a8
Closes-Bug: #1446758
The API should not need to reboot for a neutron config option.
Follow up to 03d9dec4e4d94b598d54dd6a0d1b22d8be40b597.
Change-Id: Ic6462f31cef49fa943046b963989680240f292cf
In juno, ironic provided support for migrating from nova's
"baremetal" driver to its "ironic" driver. These scripts
were used for that.
The baremetal driver was removed from nova in kilo. Ironic
doesn't support migrating from pre-kilo nova's baremetal
driver to post-juno nova's ironic driver.
Hence, deleting these migration scripts.
Closes-Bug: #1446330
Change-Id: Ic4990caa83a2eca3ee9fbd105bfe0a12bdaa7efe
is_glance_image() returned True if image_href was a normal file like
"deploy.iso". It should return False for this case.
This patch fixed is_glance_image() predicate logic so that it returns
True only if image_href is glance URL or glance UUID.
Change-Id: I338964d05280175dd86bb2b6e1c7073871382277
Closes-Bug: #1446052