RHEL virthost unable to autostart vm's with ansible module

Bug #1689620 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
wes hayutin

Bug Description

TASK [setup/undercloud : Configure undercloud vm to start at virthost boot] *****************************************************************************************************************************************
task path: /home/whayutin/git/RDO-CI/TRIPLEO-QUICKSTART/tripleo-quickstart/roles/libvirt/setup/undercloud/tasks/main.yml:297
Tuesday 09 May 2017 12:47:56 -0400 (0:00:03.110) 0:19:27.434 ***********
fatal: [rhev-i8c-03.mpc.lab.eng.bos.redhat.com]: FAILED! => {"changed": false, "failed": true, "msg": "value of command must be one of: create,status,start,stop,pause,unpause,shutdown,undefine,destroy,get_xml,define,freemem,list_vms,info,nodeinfo,virttype, got: autostart"}

** running from the cli this works fine.

[root@rhev-i8c-03 ~]# su - stack
Last login: Tue May 9 12:47:10 EDT 2017 from ovpn-120-37.rdu2.redhat.com on pts/0
[stack@rhev-i8c-03 ~]$ virsh list --all
 Id Name State
----------------------------------------------------
 1 undercloud running
 - compute_0 shut off
 - control_0 shut off

[stack@rhev-i8c-03 ~]$ virsh autostart undercloud
Domain undercloud marked as autostarted

[stack@rhev-i8c-03 ~]$

Attempting a solution to change the task from using the ansible module to the CLI.

Tags: ci quickstart
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

Fix proposed to branch: master
Review: https://review.openstack.org/463614

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/467564

Changed in tripleo:
assignee: wes hayutin (weshayutin) → Matthias Runge (mrunge)
Changed in tripleo:
assignee: Matthias Runge (mrunge) → wes hayutin (weshayutin)
Revision history for this message
wes hayutin (weshayutin) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart (master)

Change abandoned by wes hayutin (<email address hidden>) on branch: master
Review: https://review.openstack.org/463614
Reason: in favor of https://review.openstack.org/#/c/458193/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Matthias Runge (<email address hidden>) on branch: master
Review: https://review.openstack.org/467564
Reason: abandoning in favor of https://review.openstack.org/#/c/458193/

Revision history for this message
wes hayutin (weshayutin) wrote :
Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

Fix proposed to branch: master
Review: https://review.openstack.org/495827

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/495827
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=45e032164167dd33a01ed280cd9b49abeddd1102
Submitter: Jenkins
Branch: master

commit 45e032164167dd33a01ed280cd9b49abeddd1102
Author: Juan Badia Payno <email address hidden>
Date: Mon Aug 21 13:34:10 2017 +0200

    Handle undercloud autostart dependant on ansible version

    On ansible version lower than 2.3:
     1.- Start undercloud vm
     2.- Make the vm automatically start

    On ansible version equal or grater than 2.3:
     1.- Start the undercloud vm and make it automatically start

    Change-Id: I57168f15d63f638bd0217955a3a3c245a986c541
    Closes-bug: #1689620

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart 2.1.1

This issue was fixed in the openstack/tripleo-quickstart 2.1.1 release.

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.