tripleo-quickstart-extras/roles/overcloud-deploy/tasks/deploy-overcloud.yml
Sandeep Yadav 04434b3cee Don't pass --network-ports in node provision
Since [0] --network-ports is deprecated.

We are currently receiving a deprecated warning[1]
~~~
DEPRECATED option "--network-ports" detected.
This option is no longer used, network ports are always managed.
~~~

It is not needed to tripleo_overcloud_node_provision_network_ports
in tripleo_overcloud_node_provision role anymore.

[0] https://review.opendev.org/c/openstack/python-tripleoclient/+/803946
[1] https://logserver.rdoproject.org/openstack-periodic-integration-stable1/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-centos-8-ovb-3ctlr_1comp-featureset001-wallaby/7b85778/logs/undercloud/home/zuul/overcloud_node_provision.log.txt.gz

Change-Id: I136b6d62a78ddb4926ce05b2b93f47b47b407bbe
2021-10-07 23:21:20 +05:30

67 lines
2.4 KiB
YAML

---
- name: "Check hypervisors available"
when:
- hypervisor_wait | bool
shell: >-
source {{ working_dir }}/stackrc && \
openstack hypervisor stats show -c count -f value
register: osp_hypervisor_status
until: osp_hypervisor_status.stdout | int > 0
retries: 100
delay: 10
- name: "Provision overcloud network"
when:
- network_provision | bool
collections:
- tripleo.operator
include_role:
name: tripleo_overcloud_network_provision
vars:
tripleo_overcloud_network_provision_debug: true
tripleo_overcloud_network_provision_output_file: "{{ working_dir }}/overcloud-networks-deployed.yaml"
tripleo_overcloud_network_provision_deployment_file: "{{ network_data_yaml }}"
tripleo_overcloud_network_provision_rc_file: "{{ working_dir }}/stackrc"
- name: "Run overcloud network vip provision"
when:
- network_provision | bool
collections:
- tripleo.operator
include_role:
name: tripleo_overcloud_network_vip_provision
vars:
tripleo_overcloud_network_vip_provision_debug: true
tripleo_overcloud_network_vip_provision_output_file: "{{ working_dir }}/overcloud-vips-deployed.yaml"
tripleo_overcloud_network_vip_provision_deployment_file: "{{ vip_data_yaml }}"
tripleo_overcloud_network_vip_provision_rc_file: "{{ working_dir }}/stackrc"
tripleo_overcloud_network_vip_provision_stack: "{{ stack_name }}"
- name: "Provision overcloud baremetal node"
when:
- baremetal_provision | bool
collections:
- tripleo.operator
include_role:
name: tripleo_overcloud_node_provision
vars:
tripleo_overcloud_node_provision_debug: true
tripleo_overcloud_node_provision_deployment_file: "{{ working_dir }}/overcloud_baremetal_deploy.yaml"
tripleo_overcloud_node_provision_output_file: "{{ working_dir }}/overcloud-baremetal-deployed.yaml"
tripleo_overcloud_node_provision_rc_file: "{{ working_dir }}/stackrc"
tripleo_overcloud_node_provision_stack: "{{ stack_name }}"
- name: Deploy the overcloud
shell: >
set -o pipefail &&
{{ working_dir }}/{{ stack_name }}-deploy.sh 2>&1 {{ timestamper_cmd }} > {{ deploy_log }}
register: deploy_script_result
ignore_errors: true
when: step_deploy_overcloud|bool
- name: Export actual used deploy args for persistence to other plays
set_fact:
# deploy_args end with a newline, remove to make deploy_args_used easier to use
deploy_args_used: "{{ deploy_args | replace('\n', ' ') }}"
cacheable: true