Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Fix rhbz1654697 (#108)
Browse files Browse the repository at this point in the history
* Fix rhbz1654697

Fix rhbz1654697 by not using dmidecode on ppc64le where /proc/device-tree/system-id provides the UUID.
For reference: https://github.com/oVirt/vdsm/blob/master/lib/vdsm/ppc64HardwareInfo.py

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1654697
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
  • Loading branch information
sandrobonazzola authored and tiraboschi committed Feb 4, 2019
1 parent 5e928a1 commit 9267118
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tasks/bootstrap_local_vm/02_create_local_vm.yml
Expand Up @@ -15,7 +15,13 @@
- name: Initial tasks
block:
- name: Get host unique id
shell: if [ -e /etc/vdsm/vdsm.id ]; then cat /etc/vdsm/vdsm.id; else dmidecode -s system-uuid; fi;
shell: |
if [ -e /etc/vdsm/vdsm.id ];
then cat /etc/vdsm/vdsm.id;
elif [ -e /proc/device-tree/system-id ];
then cat /proc/device-tree/system-id; #ppc64le
else dmidecode -s system-uuid;
fi;
environment: "{{ he_cmd_lang }}"
changed_when: true
register: unique_id_out
Expand Down

0 comments on commit 9267118

Please sign in to comment.