Adding ironic-delete to test-bifrost sequence

Added ironic-delete step into the test-bifrost.yaml playbook sequence
and updated documentation to indicate that the node was being removed
from active use and then deleted from ironic.

Additionally noted in the README that cleaning is disabled for the
bifrost-test playbook.
This commit is contained in:
Julia Kreger 2015-03-26 09:40:28 -04:00
parent 76a23b09f9
commit 79d03f67cd
2 changed files with 12 additions and 3 deletions

View File

@ -182,11 +182,13 @@ will use this key to connect to the host machine and run virsh commands.
Testing with a single command Testing with a single command
============================= =============================
Once Ansible is present and available for use, a single test-bifrost playbook can be invoked which will automatically install the pre-requisite software for creating virtual machines, create a virutal machine, save the baremetal.csv file out, and then utilize it to execute the remaining roles. Two additional roles are invoked by this playbook which enables Ansible to connect to the new nodes by adding them to the inventory, and then logging into the remote machine via the user's ssh host key. Once Ansible is present and available for use, a single test-bifrost playbook can be invoked which will automatically install the pre-requisite software for creating virtual machines, create a virutal machine, save the baremetal.csv file out, and then utilize it to execute the remaining roles. Two additional roles are invoked by this playbook which enables Ansible to connect to the new nodes by adding them to the inventory, and then logging into the remote machine via the user's ssh host key. Once that has successfully occured, additional roles will unprovision the host(s) and delete them from Ironic.
Command:: Command::
ansible-playbook -i ./inventory/localhost test-bifrost.yaml -vvvv -e testing=true ansible-playbook -i ./inventory/localhost test-bifrost.yaml -vvvv -e testing=true
NB: This command MUST be executed from the main bifrost folder as it directly invokes, and the testing=true variable MUST be set. Note:
- This command MUST be executed from the main bifrost folder as it directly invokes, and the testing=true variable MUST be set.
- Cleaning mode is explicitly disabled in the test-bifrost.yaml playbook due to the fact that is an IO intensive operation that can take a great deal of time.

View File

@ -49,6 +49,13 @@
connection: local connection: local
name: "Unprovisions the test node" name: "Unprovisions the test node"
sudo: no sudo: no
gather_facts: yes gather_facts: no
roles: roles:
- role: bifrost-unprovision-nodes - role: bifrost-unprovision-nodes
- hosts: localhost
connection: local
name: "Unprovisions the test node"
sudo: no
gather_facts: no
roles:
- role: ironic-delete