When deploy by IPA on devstack, error message without SWIFT_ENABLE_TEMPURLS
is "SWIFT_ENABLE_TEMPURLS must be True to use agent_ssh driver in Ironic.".
But this error occurs not only using agent_ssh driver, but also
using agent_ipmitool.
This patch set fixes this error message to
"SWIFT_ENABLE_TEMPURLS must be True to use agent_* driver in Ironic.".
Change-Id: I21ce85d00485037d5c86dcd28aa1c95d6dc308b7
Nova compute may fail if it was unable to fetch nodes list from Ironic
during startup. This change makes sure we restart it.
Change-Id: Ibddd34faa0eeb9b42fe0e8d73f14907b1df11734
Closes-Bug: #1537076
On some distros releases (Fedora 22 for example) interface is in DOWN state
after creation. Bring it UP.
Change-Id: I402d80ca06bff1012cf45b19e05f38314cca54dc
When unstack'ing, cleanup-node.sh needs to also remove the ovs bridges
which were added when creating the node.
Failing to do this will cause subsequent runs of stack.sh to fail
because the bridge can't be re-created.
Change-Id: I5cc36e675d272f6dee3bc667133d1e7e082b0a55
Partial-bug: #1526403
Before copying the QEMU hook to the libvirt's hooks directory, make sure
that the path exists. Some distros do not create it by default (e.g
Fedora 23).
Closes-Bug: #1531489
Change-Id: I64d498e4e42b4e313f402aaf5bf22ebfa78511b9
Users now can set architecture for target node and flavor by adding
IRONIC_HW_ARCH in the local.conf file. The option defaults to x86_64
Change-Id: Id12420193ca32f63aa526c084b1d55ecaaf29b58
The configuration option [agent] agent_erase_devices_priority was
deprecated and renamed to [deploy] erase_devices_priority as part of the
commit 9a35ca19b4872af2e02cb83b21a3746732802e74.
This patch also fixes the FIXME comment because it's wrong, cleaning is
not disabled in gate, only the erase_devices step.
Change-Id: Iae25a5c672896af77fdd2005371d2515aabaa830
This patch allows flake8 to run against the scripts under tools/ and
devstack/tools directories.
It also fix the current pep8 errors where it's needed.
Change-Id: I3f447564dd528c6efdee10a4a13f1ff1d7e1c3b1
In order to easily determine the file type of the scripts in
devstack/tools/ironic/scripts directory, this patch is adding the
correspoding extension to each script.
Change-Id: Ifb53b768b7a3b38561031c92c279fa520e289b3d
Remove the libvirt QEMU hook to rotate the logs when ./unstack is
invoked. Otherwise it will always rotate the logs even if the
IRONIC_VM_LOG_ROTATE is set to False in a subsequently ran.
This commit also makes the path to the hook configurable.
Change-Id: Ic0c32e7809f4f0632b6a0bd1e12213aec2a50f84
This patch is fixing the syntax errors/warnings in the shell scripts
under devstack/tools and add that directory to the tox bashate command.
Change-Id: I957a88f5b7009fe92078eb3d53e225943d28a539
Partial-Bug: #1526518
There's an apache-ironic.template in the Ironic tree and in the Devstack
tree, prior to this patch only the one in Devstack was being used.
Closes-Bug: #1527222
Change-Id: I2808001356542adb306a7b7ad5dd84d0d7167ab6
This patch adds a libvirt hook that saves the VM console log everytime
it shutdown. This is great for troubleshooting because it allow us to
see what happened with the VM on every boot instead of only the last one.
Closes-Bug: #1506829
Related-Bug: #1393099
Change-Id: I4881dfc816a05c0fd2610b0b977e41c44a7e9517
These are defined in lib/ironic, so use them there instead of plugin.sh
to make the plugin a bit cleaner.
Change-Id: I0d536ad7ba9b4ff4473a973ea13100e924ee9ce5
We no longer need this now that the code in devstack is removed.
Change-Id: I2545e49a6b7490b21ec7c35ff6984533d0692a0d
Depends-On: I5125fce295c79600781469c2f48bea80e7600081
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
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
This begins work toward moving our devstack code to a devstack plugin
within our tree. This allows us to experiment with the devstack code
more easily, as well as take some load off of the devstack team.
Note that the plugin is not enabled until we enable it in
project-config, so this doesn't actually affect devstack runs yet.
The files that exist for us in devstack are listed below.
$ find . -name *ironic*
./lib/ironic
./lib/nova_plugins/hypervisor-ironic
./files/rpms/ironic
./files/apache-ironic.template
./files/debs/ironic
./extras.d/50-ironic.sh
./tools/ironic
$ tree tools/ironic
tools/ironic
├── scripts
│ ├── cleanup-node
│ ├── configure-vm
│ ├── create-node
│ └── setup-network
└── templates
├── brbm.xml
├── tftpd-xinetd.template
└── vm.xml
All of these files are copied here, except:
lib/nova_plugins/hypervisor-ironic: this is nova code and will not move.
extras.d/50-ironic.sh: this will become the base for plugin.sh.
Change-Id: I3fabefa686cad4bc50f6a5603fd95c96d1a21e68
Depends-On: Id01d97fd13fa9f866d645ec5077834ddb78b2b89