bifrost/scripts
Pavlo Shchelokovskyy 3aaed64e88 Use JSON baremetal data in testing
To move bifrost testing to *_ipmitool drivers + virtualbmc, we need
the baremetal data file to support ipmi port setting, as in the case of
virtualbmc, all test VM nodes use the same local IPMI address with
different port per-node.

Unfortunately, the CSV baremetal inventory format that is used in our
testing procedures does not support setting IPMI ports.

As the CSV format is considered a legacy format, let's move testing to use
JSON-formatted baremetal data instead of fixing the legacy format parser.

Changes are mostly to 'bifrost-create-vm-nodes' role and it's callers.
Some level of backward compatibility is provided:
- baremetal_csv_file var is still accepted, and its value is used as
  path to write data, although the data will nevertheless be in JSON format.

An extra helper script is added to reduce the number of nodes in
inventory when testing DHCP.
Also the script in 'bifrost-test-dhcp' role is changed to support
loading data from JSON.

This change officially deprecates using CSV formatted baremetal inventory
files.
Handling CSV baremetal inventory files will be removed in the Queens
release.

Change-Id: If2dcf43857195611ef342fe602330878378b021b
Partial-Bug: #1659876
2017-03-06 17:06:30 +02:00
..
ansible-pip-str.py Fix ansible-pip-version.py script 2017-02-14 16:25:34 +02:00
collect-test-info.sh scripts: Collect logs even if deployment fails. 2017-02-14 09:37:41 +00:00
env-setup.sh Always install Ansible with pip 2017-02-13 13:10:54 +02:00
install-deps.sh Add '-E' options to pass proxy env for sudo 2017-02-28 10:07:58 +00:00
README.md Unify testing scripts 2016-06-01 10:42:28 -07:00
split_json.py Use JSON baremetal data in testing 2017-03-06 17:06:30 +02:00
test-bifrost-build-images.sh Unify testing scripts 2016-06-01 10:42:28 -07:00
test-bifrost-inventory-dhcp.sh Unify testing scripts 2016-06-01 10:42:28 -07:00
test-bifrost-keystone-auth.sh Add test script for Bifrost using keystone 2016-12-02 18:33:05 +00:00
test-bifrost-venv.sh Unify testing scripts 2016-06-01 10:42:28 -07:00
test-bifrost.sh Use JSON baremetal data in testing 2017-03-06 17:06:30 +02:00

Scripts

This directory contains several scripts used in the OpenStack CI environment for CI testing of Bifrost, or CI testing that uses Bifrost to test other projects.

The env-setup.sh script is often used to install initial dependencies. These are generally not intended for use outside of the OpenStack CI environment (or similar).

test-bifrost-build-image.sh, test-bifrost-venv.sh, and test-bifrost-inventory-dhcp.sh are symlinks to test-bifrost.sh intended to provide backwards compatibility now that all functionality has been moved to test-bifrost.sh.