381 Commits

Author SHA1 Message Date
Jenkins
0d6c0c48d3 Merge "Fix error message in devstack" 2016-02-03 14:25:21 +00:00
Jenkins
6b2a1c46e5 Merge "devstack 'cleanup-node' script should delete OVS bridges" 2016-02-02 18:07:01 +00:00
Yuiko Takada
6bed11503f Fix error message in devstack
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
2016-01-28 12:52:10 +09:00
Dmitry Tantsur
fde62528af [devstack] Restart nova compute before checking hypervisor stats
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
2016-01-27 17:10:58 +01:00
Zhenguo Niu
6dd534efe3 Devstack: replace 'http' with SERVICE_PROTOCOL
Change-Id: I0431c7f2b63ac4069380a927a7efb97797eda476
2016-01-12 17:31:12 +08:00
vsaienko
ed3d71c658 Bring UP baremetal bridge
On some distros releases (Fedora 22 for example) interface is in DOWN state
after creation. Bring it UP.

Change-Id: I402d80ca06bff1012cf45b19e05f38314cca54dc
2016-01-08 15:20:41 +02:00
Jenkins
4d7f766469 Merge "Devstack: Make sure libvirt's hooks directory exists" 2016-01-07 18:30:17 +00:00
Devananda van der Veen
968e8329f4 devstack 'cleanup-node' script should delete OVS bridges
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
2016-01-07 04:15:50 +00:00
Yuiko Takada
bab0835a78 Change default IRONIC_VM_SPECS_RAM to 1024
Currently, both simple ramdisk and IPA require 1G of RAM
(See [1] and [2]).
This patch set fixes default value of
IRONIC_VM_SPECS_RAM from 512 to 1024.

[1] http://docs.openstack.org/developer/ironic-inspector/contributing.html#using-simple-ramdisk
[2] http://docs.openstack.org/developer/ironic-inspector/contributing.html#using-ipa

Change-Id: I4174bc79a472ca6d4082afd77190381d2021a764
2016-01-07 10:35:05 +09:00
Lucas Alvares Gomes
ac54456a8e Devstack: Make sure libvirt's hooks directory exists
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
2016-01-06 13:15:27 +00:00
Mauro S. M. Rodrigues
2cde492207 Allow user to set arch for the baremetal flavor and ironic node
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
2016-01-05 08:10:17 -05:00
Lucas Alvares Gomes
96ad1a14f4 Devstack: Use [deploy] erase_devices_priority config option
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
2016-01-04 17:05:20 +00:00
Jenkins
4f9f6e47f6 Merge "Remove override-defaults" 2016-01-04 15:46:25 +00:00
Zhenguo Niu
181e3de147 Install 'shellinabox' package for Ironic
As we already added console feature support for ssh driver,
devstack should install it.

Change-Id: I8946aca2eceb6c8440af44e45e9ce56637a1da63
2015-12-25 17:13:58 +08:00
Jenkins
fa20ceb739 Merge "Run flake8 against the python scripts under tools/ and devstack/tools" 2015-12-24 08:57:22 +00:00
Jenkins
503284a81c Merge "Use the apache-ironic.template from our tree" 2015-12-24 08:54:47 +00:00
Lucas Alvares Gomes
b51f7d4d8c Run flake8 against the python scripts under tools/ and devstack/tools
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
2015-12-24 01:56:39 +00:00
Lucas Alvares Gomes
cd9975dc0a Add extensions to the scripts at devstack/tools/ironic/scripts
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
2015-12-21 11:55:56 +00:00
Jenkins
af95d0edf3 Merge "Clean up variables in plugin.sh" 2015-12-19 13:24:26 +00:00
Jenkins
35e9e24e93 Merge "Devstack: Remove QEMU hook at ./unstack" 2015-12-19 13:22:36 +00:00
Lucas Alvares Gomes
d9a2a62ac0 Devstack: Remove QEMU hook at ./unstack
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
2015-12-17 17:59:07 +00:00
Jim Rollenhagen
f047ea0f7e Fix bashate errors in grenade plugin
Fixes one bashate error in devstack/upgrade/upgrade.sh.

Change-Id: I347e39cd8055811d2ac22ed744b1d9e9f3ca37fa
2015-12-17 17:44:38 +00:00
Lucas Alvares Gomes
49e273b1a5 Fix syntax errors in the shell scripts under devstack/tools
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
2015-12-17 17:26:48 +00:00
Lucas Alvares Gomes
3bd1ecbcc7 Use the apache-ironic.template from our tree
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
2015-12-17 11:53:39 +00:00
Jenkins
2a5f6ded69 Merge "Keep the console logs for all boots" 2015-12-17 04:53:35 +00:00
Lucas Alvares Gomes
2f6dce9738 Keep the console logs for all boots
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
2015-12-16 15:58:17 +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
19fc22d556 Remove override-defaults
We no longer need this now that the code in devstack is removed.

Change-Id: I2545e49a6b7490b21ec7c35ff6984533d0692a0d
Depends-On: I5125fce295c79600781469c2f48bea80e7600081
2015-12-11 14:17:11 +00:00
Jim Rollenhagen
c0a72cf749 Add grenade plugin
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
2015-12-10 17:52:24 -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
Jim Rollenhagen
b21873588a Copy devstack code to ironic tree
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
2015-12-10 15:32:01 +00:00