When the cluster contains swift-metadata servers the os-services bootstrap-cluster.sh command fails with an error like this on a metadata node:
TASK [swift_hosts : Update genesis inventory with object disk list.] ***********
fatal: [192.168.0.41 -> localhost]: FAILED! => {"changed": true, "cmd": ["/root/os-services/osa/playbooks/roles/swift_hosts/files/swift_update_disk_lists.py", "-n", "192.168.0.41", "-i", "/var/oprc/inventory.yml.updating", "-o", "/var/oprc/inventory.yml.updating", "-d", "/tmp/swiftdiscovery/output.object.diskprep.192.168.0.41", "-t", "object"], "delta": "0:00:00.185053", "end": "2016-12-23 13:19:19.421014", "failed": true, "rc": 1, "start": "2016-12-23 13:19:19.235961", "stderr": "Traceback (most recent call last):\n File \"/root/os-services/osa/playbooks/roles/swift_hosts/files/swift_update_disk_lists.py\", line 155, in <module>\n main()\n File \"/root/os-services/osa/playbooks/roles/swift_hosts/files/swift_update_disk_lists.py\", line 150, in main\n process_disklist(args)\n File \"/root/os-services/osa/playbooks/roles/swift_hosts/files/swift_update_disk_lists.py\", line 104, in process_disklist\n sdp._read_dl_file()\n File \"/root/os-services/osa/playbooks/roles/swift_hosts/files/swift_update_disk_lists.py\", line 68, in _read_dl_file\n with open(self.dl_file, 'r') as fp:\nIOError: [Errno 2] No such file or directory: '/tmp/swiftdiscovery/output.object.diskprep.192.168.0.41'", "stdout": "", "stdout_lines": [], "warnings": []}
The root cause of the error seems to be that the inventory is trying to be updated with object disk lists on the metadata node when the metadata node does not have object disks.
The fix has been released to the os-services master branch under commit: /github. com/open- power-ref- design/ os-services/ commit/ 1c02e48b9c8d135 1a38e40328934be b3e98fc534
https:/
and to the mitaka branch under commit: /github. com/open- power-ref- design/ os-services/ commit/ 0463aaad6578321 e323035bece330b 913fc6e6ec
https:/