Bug 1280076

Summary: instack-virt-setup -- call to `virsh start instack` failing with improper status code
Product: Red Hat OpenStack Reporter: Harry Rybacki <hrybacki>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED INSUFFICIENT_DATA QA Contact: yeylon <yeylon>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0 (Kilo)CC: mburns, rhel-osp-director-maint, srevivo, whayutin
Target Milestone: ---Keywords: Automation
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Local machine (running Khaleesi): Fedora 22 Test machine (on which OS is being installed): RHEL 7.1 RPM list attached
Last Closed: 2015-11-10 21:53:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
instack-virt-setup log
none
RPM list for bare metal machine
none
ksgen_settings file used by Khaleesi to execute the build none

Description Harry Rybacki 2015-11-10 21:49:12 UTC
Created attachment 1092473 [details]
instack-virt-setup log

Description of problem:

While using Khaleesi to build a minimal cloud, instack-virt-setup is failing perform as expected and not returning an appropriate status code. As a result, ansible continues down the list of tasks until ambiguously failing when getting to one that requires a complete and proper build from instack-virt-setup. 

How reproducible:

Easy but requires a baremetal machine to run Khaleesi against

Follow the steps outlined in the Khaleesi cookbook -- http://rdo-ci-doc.usersys.redhat.com/cookbook.html 

Steps to Reproduce:
1. Follow steps outlined in http://rdo-ci-doc.usersys.redhat.com/cookbook.html through # Deployment Execution
2. run $ ansible-playbook -vv --extra-vars @ksgen_settings.yml -i local_hosts playbooks/full-job-no-test.yml

Actual results:
ansible-playbook fails with output: 
    fatal: [host0] => SSH Error: ssh.config.ansible line 16: Missing argument.

(assumed) instack-virt-setup is returning a status code zero upon failing `sudo virsh start instack`

Expected results:
instack-virt-setup should return an appropriate status code to prevent ansible from continuing execution

Comment 2 Harry Rybacki 2015-11-10 21:50:07 UTC
Created attachment 1092475 [details]
RPM list for bare metal machine

Comment 3 Harry Rybacki 2015-11-10 21:50:40 UTC
Created attachment 1092476 [details]
ksgen_settings file used by Khaleesi to execute the build