From 51d336aa1266852f9bca8fda44fb3861f67de8d5 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Wed, 6 Jan 2016 16:27:03 -0800 Subject: [PATCH] Fix command used to auto-detect virt type If egrep is not located at /usr/bin/egrep, the os_nova "Get virt type value and store as var" task will silently fail causing the nova_virt_type to always default to qemu. Update the command to include a lookup for the correct path to egrep. Change-Id: I378b555d157ee3f39d682c3ddadb6e3ffd933503 Closes-Bug: #1531670 --- playbooks/roles/os_nova/tasks/nova_virt_detect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/os_nova/tasks/nova_virt_detect.yml b/playbooks/roles/os_nova/tasks/nova_virt_detect.yml index 238ff19339..d2ff392c29 100644 --- a/playbooks/roles/os_nova/tasks/nova_virt_detect.yml +++ b/playbooks/roles/os_nova/tasks/nova_virt_detect.yml @@ -15,7 +15,7 @@ - name: Get virt type value and store as var shell: | - /usr/bin/egrep -c '(vmx|svm)' /proc/cpuinfo + `which egrep` -c '(vmx|svm)' /proc/cpuinfo register: virt_type_value changed_when: false failed_when: false