From 459b2664d99befa452e1946a4e4cf400183dd9e3 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Tue, 11 Sep 2018 14:48:19 +1000 Subject: [PATCH] Handle missing or bad dmidecode dmidecode isn't functional on all architectures. Don't treat a missing binary or a missing DMI table as fatal from an install POV. Change-Id: I33c50ee00ac0b478839b2536f0b965e444e66e53 Related-Bug: 1790447 --- docker/services/ceph-ansible/ceph-base.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/services/ceph-ansible/ceph-base.yaml b/docker/services/ceph-ansible/ceph-base.yaml index 6ab77f49c6..d5293fc23b 100644 --- a/docker/services/ceph-ansible/ceph-base.yaml +++ b/docker/services/ceph-ansible/ceph-base.yaml @@ -412,6 +412,10 @@ outputs: - name: register machine id command: dmidecode -s system-uuid register: machine_uuid + # NOTE(tonyb): 0 == no error, 1 == -EPERM or bad data and 2 == Command not found + # 1 and 2 aren't great but shouldn't cause the deploy to fail. If we're using + # the node specific data we'll fail then. If we aren't then lets keep moving + failed_when: machine_uuid.rc not in [0, 1, 2] - name: generate host vars from nodes data local_action: module: copy