Observed this problem on VM when trying a bootstrap replay before controller0 unlocked.
Steps to reproduce this issue is pretty simple & straightforward.
1. Create a AIO-SX VM using the VDM with the last step of ‘unlock_controller_0’ commented out. Environment: Windows & Cygwin running Virtual Box 6.1.
2. Once the installation is completed, run following command:
Observed this problem on VM when trying a bootstrap replay before controller0 unlocked.
Steps to reproduce this issue is pretty simple & straightforward.
1. Create a AIO-SX VM using the VDM with the last step of ‘unlock_ controller_ 0’ commented out. Environment: Windows & Cygwin running Virtual Box 6.1.
2. Once the installation is completed, run following command:
ansible-playbook /usr/share/ ansible/ stx-ansible/ playbooks/ bootstrap. yml
Following error is seen on bootstrap replay:
TASK [bootstrap/ validate- config : Check for ssl_ca_cert file] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* *** validate- config : Check OpenID Connect parameters] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ***** validate- config : Check for Ceph data wipe flag] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* validate- config : Wipe ceph osds] ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* *fatal: [localhost]: FAILED! => {"msg": "privilege output closed while waiting for password prompt:\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:01.1- ata-2.0 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:01.1- ata-2.0\ n+ dev=/dev/sr0\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sr0\n+ '[' 1 -ne 0 ']'\n+ continue\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0\ n+ dev=/dev/sda\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sda\n+ '[' 0 -ne 0 ']'\n+ set -e\n+ part_no=1\n+ ceph_disk=false\n++ awk '$1 == \"part\" {print $2}'\n++ lsblk -rip /dev/sda -o TYPE,NAME\n+ for part in '$(lsblk -rip ${dev} -o TYPE,NAME | awk '\\''$1 == \"part\" {print $2}'\\'')'\n++ flock /dev/sda sgdisk -i 1 /dev/sda\n+ sgdisk_ part_info= 'Partition GUID code: 21686148- 6449-6E6F- 744E-6565644546 49 (BIOS boot partition) \nPartition unique GUID: 13E4D3EB- 3CC3-4F95- A700-5920B722C2 6B\nFirst sector: 2048 (at 1024.0 KiB)\nLast sector: 4095 (at 2.0 MiB)\nPartition size: 2048 sectors (1024.0 KiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''primary' \\'''\n+ + grep 'Partition GUID code'\n++ awk '{print $4;}'\n++ echo 'Partition GUID code: 21686148- 6449-6E6F- 744E-6565644546 49 (BIOS boot partition) \nPartition unique GUID: 13E4D3EB- 3CC3-4F95- A700-5920B722C2 6B\nFirst sector: 2048 (at 1024.0 KiB)\nLast sector: 4095 (at 2.0 MiB)\nPartition size: 2048 sectors (1024.0 KiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''primary' \\'''\n+ guid=21686148- 6449-6E6F- 744E-6565644546 49\n+ '[' 21686148- 6449-6E6F- 744E-6565644546 49 == 4FBD7E29- 9D25-41B8- AFD0-062C0CEFF0 5D ']'\n+ '[' 21686148- 6449-6E6F- 744E-6565644546 49 == 45B0969E- 9B03-4F30- B4C6-B4B80CEFF1 06 ']'\n+ part_no=2\n+ for part in '$(lsblk -rip ${dev} -o TYPE,NAME | awk '\\''$1 == \"part\" {print $2}'\\'')'\n++ flock /dev/sda sgdisk -i 2 /dev/sda\n+ sgdisk_ part_info= 'Partition GUID code: BA5EBA11- 0000-1111- 2222-0000000000 02 (Unknown) \nPartition unique GUID: 82174DF2- 2989-41A4- BC88-CB8FF9987B 9E\nFirst sector: 4096 (at 2.0 MiB)\nLast sector: 20484095 (at 9.8 GiB)\nPartition size: 20480000 sectors (9.8 GiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''Platform Backup'\\'''\n++ grep 'Partition GUID code'\n++ awk '{print $4;}'\n++ echo 'Partition GUID code: BA5EBA11- 0000-1111- 2222-0000000000 02 (Unknown) \nPartition unique GUID: 82174DF2- 2989-41A4- BC88-CB8FF9987B 9E\nFirst sector: 4096 (at 2.0 MiB)\nLast sector: 20484095 (at 9.8 GiB)\nPartition size: 20480000 sectors (9.8 GiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''Platform Backup'\\'''\n+ guid=BA5EBA11- 0000-1111- 2222-0000000000 02\n+ '[' BA5EBA11- 0000-1111- 2222-0000000000 02 == 4FBD7E29- 9D25-41B8- AFD0-062C0CEFF0 5D ']'\n+ '[' BA5EBA11- 0000-1111- 2222-0000000000 02 == 45B0969E- 9B03-4F30- B4C6-B4B80CEFF1 06 ']'\n+ part_no=3\n+ for part in '$(lsblk -rip ${dev} -o TYPE,NAME | awk '\\''$1 == \"part\" {print $2}'\\'')'\n++ flock /dev/sda sgdisk -i 3 /dev/sda\n+ sgdisk_ part_info= 'Partition GUID code: EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7 (Microsoft basic data)\nPartition unique GUID: B16506C6- DE1E-4801- BEAC-D531DE50B1 35\nFirst sector: 20484096 (at 9.8 GiB)\nLast sector: 21508095 (at 10.3 GiB)\nPartition size: 1024000 sectors (500.0 MiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''primary' \\'''\n+ + awk '{print $4;}'\n++ grep 'Partition GUID code'\n++ echo 'Partition GUID code: EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7 (Microsoft basic data)\nPartition unique GUID: B16506C6- DE1E-4801- BEAC-D531DE50B1 35\nFirst sector: 20484096 (at 9.8 GiB)\nLast sector: 21508095 (at 10.3 GiB)\nPartition size: 1024000 sectors (500.0 MiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''primary' \\'''\n+ guid=EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7\n+ '[' EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7 == 4FBD7E29- 9D25-41B8- AFD0-062C0CEFF0 5D ']'\n+ '[' EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7 == 45B0969E- 9B03-4F30- B4C6-B4B80CEFF1 06 ']'\n+ part_no=4\n+ for part in '$(lsblk -rip ${dev} -o TYPE,NAME | awk '\\''$1 == \"part\" {print $2}'\\'')'\n++ flock /dev/sda sgdisk -i 4 /dev/sda\n+ sgdisk_ part_info= 'Partition GUID code: EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7 (Microsoft basic data)\nPartition unique GUID: 583CF5A4- B070-4D94- A655-8C5CCD364F A3\nFirst sector: 21508096 (at 10.3 GiB)\nLast sector: 62468095 (at 29.8 GiB)\nPartition size: 40960000 sectors (19.5 GiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''primary' \\'''\n+ + grep 'Partition GUID code'\n++ awk '{print $4;}'\n++ echo 'Partition GUID code: EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7 (Microsoft basic data)\nPartition unique GUID: 583CF5A4- B070-4D94- A655-8C5CCD364F A3\nFirst sector: 21508096 (at 10.3 GiB)\nLast sector: 62468095 (at 29.8 GiB)\nPartition size: 40960000 sectors (19.5 GiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''primary' \\'''\n+ guid=EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7\n+ '[' EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7 == 4FBD7E29- 9D25-41B8- AFD0-062C0CEFF0 5D ']'\n+ '[' EBD0A0A2- B9E5-4433- 87C0-68B6B72699 C7 == 45B0969E- 9B03-4F30- B4C6-B4B80CEFF1 06 ']'\n+ part_no=5\n+ for part in '$(lsblk -rip ${dev} -o TYPE,NAME | awk '\\''$1 == \"part\" {print $2}'\\'')'\n++ flock /dev/sda sgdisk -i 5 /dev/sda\n+ sgdisk_ part_info= 'Partition GUID code: E6D6D379- F507-44C2- A23C-238F2A3DF9 28 (Linux LVM)\nPartition unique GUID: D6CB0F59- 0D0D-449B- A5C2-F41AE575D1 96\nFirst sector: 62468096 (at 29.8 GiB)\nLast sector: 437858303 (at 208.8 GiB)\nPartition size: 375390208 sectors (179.0 GiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''extended' \\'''\n+ + grep 'Partition GUID code'\n++ awk '{print $4;}'\n++ echo 'Partition GUID code: E6D6D379- F507-44C2- A23C-238F2A3DF9 28 (Linux LVM)\nPartition unique GUID: D6CB0F59- 0D0D-449B- A5C2-F41AE575D1 96\nFirst sector: 62468096 (at 29.8 GiB)\nLast sector: 437858303 (at 208.8 GiB)\nPartition size: 375390208 sectors (179.0 GiB)\nAttribute flags: 000000000000000 0\nPartition name: '\\''extended' \\'''\n+ guid=E6D6D379- F507-44C2- A23C-238F2A3DF9 28\n+ '[' E6D6D379- F507-44C2- A23C-238F2A3DF9 28 == 4FBD7E29- 9D25-41B8- AFD0-062C0CEFF0 5D ']'\n+ '[' E6D6D379- F507-44C2- A23C-238F2A3DF9 28 == 45B0969E- 9B03-4F30- B4C6-B4B80CEFF1 06 ']'\n+ part_no=6\n+ '[' false == true ']'\n+ set +e\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part1 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part1\n+ dev=/dev/sda1\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sda1\n+ '[' 1 -ne 0 ']'\n+ continue\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part2 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part2\n+ dev=/dev/sda2\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sda2\n+ '[' 1 -ne 0 ']'\n+ continue\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part3 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part3\n+ dev=/dev/sda3\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sda3\n+ '[' 1 -ne 0 ']'\n+ continue\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part4 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part4\n+ dev=/dev/sda4\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sda4\n+ '[' 1 -ne 0 ']'\n+ continue\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part5 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-1.0- part5\n+ dev=/dev/sda5\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sda5\n+ '[' 1 -ne 0 ']'\n+ continue\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-2.0 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-2.0\ n+ dev=/dev/sdb\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sdb\n+ '[' 0 -ne 0 ']'\n+ set -e\n+ part_no=1\n+ ceph_disk=false\n++ awk '$1 == \"part\" {print $2}'\n++ lsblk -rip /dev/sdb -o TYPE,NAME\n+ '[' false == true ']'\n+ set +e\n+ for f in '/dev/disk/ by-path/ *'\n+ '[' '!' -e /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-3.0 ']'\n++ readlink -f /dev/disk/ by-path/ pci-0000: 00:0d.0- ata-3.0\ n+ dev=/dev/sdc\n+ grep -q 'TYPE=\"disk\"'\n+ lsblk --nodeps --pairs /dev/sdc\n+ '[' 0 -ne 0 ']'\n+ set -e\n+ part_no=1\n+ ceph_disk=false\n++ awk '$1 == \"part\" {print $2}'\n++ lsblk -rip /dev/sdc -o TYPE,NAME\n+ '[' false == true ']'\n+ set +e\n"} ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* ******* *****localhost : ok=117 changed=28 unreachable=0 failed=1
TASK [bootstrap/
TASK [bootstrap/
TASK [bootstrap/
PLAY RECAP *******
controller-0:~$