bifrost/playbooks/roles/bifrost-test-dhcp
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
..
defaults Add script and playbook to test dhcp 2016-03-01 13:45:26 +01:00
files Use JSON baremetal data in testing 2017-03-06 17:06:30 +02:00
handlers Add script and playbook to test dhcp 2016-03-01 13:45:26 +01:00
meta Add script and playbook to test dhcp 2016-03-01 13:45:26 +01:00
tasks Add script and playbook to test dhcp 2016-03-01 13:45:26 +01:00
vars Add script and playbook to test dhcp 2016-03-01 13:45:26 +01:00
README.md Add script and playbook to test dhcp 2016-03-01 13:45:26 +01:00

bifrost-test-dhcp

Perform checks on dnsmasq generated files to ensure that it behaves as expected on bifrost.

Requirements

None at this time. See Dependencies.

Role Variables

None at this time. See Dependencies.

Dependencies

This role is intended to be executed as part of bifrost, as part of bifrost-test-dhcp scripts.

Example Playbook

hosts: localhost name: "Tests DCHP settings" become: no gather_facts: yes remote_user: root roles: - role: bifrost-test-dhcp

License

Copyright (c) 2016 Hewlett-Packard Enterprise Development Company LP

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author Information

Infra-cloud Developers