Skip to content

Commit a437836

Browse files
committed
removed commented out tasks
1 parent 6b51b00 commit a437836

File tree

7 files changed

+5
-88
lines changed

7 files changed

+5
-88
lines changed

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-1-check-bmc-up.yml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -58,43 +58,17 @@
5858
validate_certs: false
5959
timeout: 10
6060

61-
- name: Get firmware inventory (to check redfish auth)
62-
community.general.redfish_info:
63-
category: Update
64-
command: GetFirmwareInventory
65-
baseuri: "{{ ironic_redfish_address }}"
66-
username: "{{ ironic_redfish_username }}"
67-
password: "{{ ironic_redfish_password }}"
68-
when: ironic_redfish_username is defined
69-
register: firmware_inventory
70-
failed_when: not firmware_inventory.redfish_facts.firmware.ret
71-
72-
# - name: Print fetched information
73-
# ansible.builtin.debug:
74-
# msg: "{{ firmware_inventory.redfish_facts.firmware | to_nice_json }}"
75-
61+
#TODO(ClaudiaWatson): add an optional BMC reboot into the flow
7662
- name: Reboot BMC
7763
community.general.redfish_command:
7864
category: Manager
7965
command: PowerReboot
80-
resource_id: 1
81-
baseuri: "{{ ironic_redfish_address }}"
8266
username: "{{ ironic_redfish_username }}"
8367
password: "{{ ironic_redfish_password }}"
8468
when:
8569
- kayobe_bmc_up == ""
8670
- ironic_redfish_username is defined
8771

88-
# - name: Wait 300 seconds for port 443 to become open
89-
# ansible.builtin.wait_for:
90-
# port: 443
91-
# host: "{{ ironic_redfish_address }}"
92-
# delay: 20
93-
# timeout: 300
94-
# when:
95-
# - kayobe_bmc_up == ""
96-
# - ironic_redfish_username is defined
97-
9872
- name: Check BMC back up again
9973
ansible.builtin.uri:
10074
url: "{{ ironic_driver_info['redfish_address'] }}/redfish/v1"
@@ -104,8 +78,8 @@
10478
timeout: 10
10579
register: uri_output
10680
until: uri_output.status == 200
107-
delay: 5
108-
retries: 24 # Retries for 24 * 5 seconds = 120 seconds = 2 minutes
81+
delay: 2
82+
retries: 5 # Retries for 5 * 2 seconds = 10 seconds
10983

11084
- name: Note when we are able to reach the bmc, the first time
11185
ansible.builtin.command:

etc/kayobe/environments/stackhpc-baremetal/ansible/diagnose-baremetal.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,3 @@
8181
- "{{ purge_faulty_baremetal }}"
8282
- "{{ bmnode_details.ironic_state not in ['available', 'active'] }}"
8383
- "{{ not bmnode_details.kayobe_first_provision_ts }}"
84-
85-
#- name: Build summary list
86-
# ansible.builtin.set_fact:
87-
# enrolment_report_all: "{{ (enrolment_report_all | default([])) + [ hostvars[item].enrolment_report_entry ] }}"
88-
# run_once: true
89-
# loop: "{{ groups['all'] | sort }}"
90-
91-
#- name: Pretty-print all nodes
92-
# ansible.builtin.debug:
93-
# msg: "{{ enrolment_report_all | to_nice_json }}"
94-
# run_once: true

etc/kayobe/environments/stackhpc-baremetal/ansible/download-host-image.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -43,40 +43,6 @@
4343
# delay: 60
4444
become: true
4545

46-
#NOTE(jake): It would be nice to get the *real* checksum from Ark eventually.
47-
# - name: Get checksum of file
48-
# ansible.builtin.stat:
49-
# path: /tmp/{{ overcloud_host_image_name }}.qcow2
50-
# checksum_algorithm: sha256
51-
# register: host_image
52-
53-
# - name: Write checksum to vars file
54-
# ansible.builtin.copy:
55-
# content: |
56-
# ---
57-
# # This file is autogenerated by Ansible; DO NOT EDIT!
58-
59-
# stackhpc_overcloud_host_image_name: "{{ overcloud_host_image_name }}"
60-
# stackhpc_overcloud_host_image_checksum: "{{ host_image.stat.checksum }}"
61-
# dest: "{{ kayobe_env_config_path }}/stackhpc-overcloud-host-image.yml"
62-
# delegate_to: localhost
63-
# run_once: true
64-
65-
# - block:
66-
# - name: Copy the image to the Ironic volume
67-
# ansible.builtin.copy:
68-
# src: /tmp/{{ overcloud_host_image_name }}.qcow2
69-
# dest: /var/lib/docker/volumes/ironic/_data/{{ overcloud_host_image_name }}.qcow2
70-
# remote_src: true
71-
# become: true
72-
73-
# - name: Make the image available to the Ironic HTTP container
74-
# community.docker.docker_container_exec:
75-
# container: ironic_http
76-
# command: "mv /var/lib/ironic/{{ overcloud_host_image_name }}.qcow2 /var/lib/ironic/httpboot"
77-
# become: true
78-
# when: overcloud_host_image_ironic | bool
79-
8046
- name: Upload an image to Glance
8147
openstack.cloud.image:
8248
name: "{{ overcloud_host_image_name }}"

etc/kayobe/environments/stackhpc-baremetal/ansible/provision-overcloud-nova.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
when:
4848
- bmnode.provision_state not in ["active", "available"]
4949

50-
## flavor creation only seems to show in openstack flavor list when
51-
## is_public: true, deploy server still can't find flavor.
5250
- name: Create flavor for baremetal
5351
openstack.cloud.compute_flavor:
5452
state: present

etc/kayobe/environments/stackhpc-sushy-baremetal/ansible/auto-setup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
args:
1515
executable: /bin/bash
1616

17-
- name: Run Generate mac addresses playbook
17+
- name: Run Generate Mac Addresses playbook
1818
ansible.builtin.shell: |
1919
source "$VIRTUAL_ENV/bin/activate"
2020
kayobe playbook run "$KAYOBE_CONFIG_PATH/environments/stackhpc-sushy-baremetal/ansible/generate-mac-addresses.yml"
2121
args:
2222
executable: /bin/bash
2323

24-
- name: Run Create virtual baremetal playbook
24+
- name: Run Create Virtual Baremetal playbook
2525
ansible.builtin.shell: |
2626
source "$VIRTUAL_ENV/bin/activate"
2727
kayobe playbook run "$KAYOBE_CONFIG_PATH/environments/stackhpc-sushy-baremetal/ansible/create-virtual-baremetal.yml"

etc/kayobe/environments/stackhpc-sushy-baremetal/ansible/vbmc-node.xml.j2

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232
<os firmware='efi'>
3333
<type arch='x86_64' machine='pc-q35-rhel9.4.0'>hvm</type>
3434
<firmware>
35-
{% if bikolla_enable_secureboot %}
36-
<feature enabled='yes' name='secure-boot'/>
37-
<feature enabled='yes' name='enrolled-keys'/>
38-
{% else %}
3935
<feature enabled='no' name='secure-boot'/>
40-
{% endif %}
4136
</firmware>
4237
</os>
4338
<features>

etc/kayobe/ipa.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ ipa_build_dib_elements_extra:
3535
- extra-hardware
3636
- mellanox
3737
- burn-in
38-
- devuser
3938

4039
# List of Diskimage Builder (DIB) elements to use when building IPA images.
4140
# Default is combination of ipa_build_dib_elements_default and
@@ -48,10 +47,6 @@ ipa_build_dib_elements_extra:
4847

4948
# Dictionary of additional environment variables to provide to Diskimage
5049
# Builder (DIB) during IPA image build.
51-
ipa_build_dib_env_extra:
52-
DIB_DEV_USER_USERNAME: devuser
53-
DIB_DEV_USER_PWDLESS_SUDO: yes
54-
DIB_DEV_USER_PASSWORD: yes
5550
#TODO(ClaudiaWatson): remove DIB_IPA_COMPRESS_CMD for Flamingo
5651
ipa_build_dib_env_extra:
5752
DIB_IPA_COMPRESS_CMD: 'zstd -19'

0 commit comments

Comments
 (0)