Swift disk preparation fails with metadata servers

Bug #1652331 reported by Samuel Matzek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
open-power-ref-design
Fix Released
High
Samuel Matzek

Bug Description

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.

Samuel Matzek (smatzek)
Changed in open-power-ref-design:
importance: Undecided → High
status: New → In Progress
Revision history for this message
Samuel Matzek (smatzek) wrote :
Changed in open-power-ref-design:
status: In Progress → Opinion
status: Opinion → Fix Released
assignee: nobody → Samuel Matzek (smatzek)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.