4bb71fc481
This corrects the path handling in the CI and removes a lot of redundancy in the CI definitions. Also adds fixed log collection from https://review.opendev.org/#/c/649526/ to make the CI pass. Removes handling of ZUUL_CHANGES. It is not present in new jobs, and its use case in Bifrost is completely unclear. Eventually, we should rewrite the whole test-bifrost.sh in ansible, but that's a much bigger task. Change-Id: Id893e816a7806e7d75282628817288d8a34ab8af
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
# Create a default VM
|
|
---
|
|
- hosts: localhost
|
|
connection: local
|
|
name: "Executes install, enrollment, and testing in one playbook"
|
|
become: yes
|
|
gather_facts: yes
|
|
pre_tasks:
|
|
- name: "Warn if baremetal_csv_file is defined"
|
|
debug:
|
|
msg: >
|
|
"WARNING - 'baremetal_csv_file' variable is defined.
|
|
Its use is deprecated. The file created will be in JSON format.
|
|
Use 'baremetal_json_file' variable instead."
|
|
when: baremetal_csv_file is defined
|
|
- name: "Re-set baremetal json to csv file if defined"
|
|
set_fact:
|
|
baremetal_json_file: "{{ baremetal_csv_file }}"
|
|
when: baremetal_csv_file is defined
|
|
- name: "Set default baremetal.json file if not already defined"
|
|
set_fact:
|
|
baremetal_json_file: "/tmp/baremetal.json"
|
|
when: baremetal_json_file is not defined
|
|
- name: "Set ci_testing flag if running in the CI"
|
|
set_fact:
|
|
ci_testing: true
|
|
ci_testing_zuul: true
|
|
when: lookup('env', 'ZUUL_BRANCH') | length > 0
|
|
- name: "Collect process list if running in OpenStack CI"
|
|
command: ps aux
|
|
when: ci_testing_zuul is defined
|
|
- name: "Collect list of listening network sockets if running in OpenStack CI"
|
|
shell: netstat -apn|grep LISTEN
|
|
when: ci_testing_zuul is defined
|
|
roles:
|
|
- role: bifrost-create-vm-nodes
|