redhat-openstack / tripleo-quickstart

Ansible roles for setting up TripleO virtual environments and building images
16 stars 15 forks source link

Transient network and autostart issue #63

Open mbaldessari opened 8 years ago

mbaldessari commented 8 years ago

Just updated this morning to latest git. I am running on quickstart on the same host: ./quickstart.sh -v --working-dir ../quickstart-workdir \ --config playbooks/centosci/ha.yml \ --undercloud-image-url 'file:///usr/share/quickstart_images/mitaka/undercloud.qcow2' \ -t all localhost

It fails like the following: TASK [environment/setup : Mark libvirt networks as autostarted] ***** task path: /home/michele/quickstart-workdir/tripleo-quickstart/playbooks/roles/environment/setup/tasks/main.yml:18 Thursday 24 March 2016 10:55:00 +0000 (0:00:00.221) 0:00:05.795 ** ESTABLISH LOCAL CONNECTION FOR USER: michele localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1458816900.54-73773413224148 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1458816900.54-73773413224148 )" ) localhost PUT /tmp/tmp3W4izl TO /home/michele/.ansible/tmp/ansible-tmp-1458816900.54-73773413224148/virt_net localhost EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-qikrjvgriqozalarsqhxyahpdkpyolja; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/michele/.ansible/tmp/ansible-tmp-145 8816900.54-73773413224148/virt_net; rm -rf "/home/michele/.ansible/tmp/ansible-tmp-1458816900.54-73773413224148/" > /dev/null 2>&1'"'"'' localhost EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1458816900.62-173761948479521 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1458816900.62-173761948479521 )" ) localhost PUT /tmp/tmpJ0LQtj TO /home/michele/.ansible/tmp/ansible-tmp-1458816900.62-173761948479521/virt_net localhost EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ydjcrfdsbdfodzlwtgyeumoswmrktirs; LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/michele/.ansible/tmp/ansible-tmp-145 8816900.62-173761948479521/virt_net; rm -rf "/home/michele/.ansible/tmp/ansible-tmp-1458816900.62-173761948479521/" > /dev/null 2>&1'"'"'' failed: [localhost] => (item={u'bridge': u'brext', u'forward_mode': u'nat', u'name': u'external', u'netmask': u'255.255.255.0', u'nat_port_range': [1024, 65535], u'address': u'192.168.23.1', u'dhcp_range': [u'192.168.23.10', u'192.168.23 .50']}) => {"failed": true, "invocation": {"module_args": {"autostart": "yes", "command": null, "name": "external", "state": null, "uri": "qemu:///system", "xml": null}, "module_name": "virt_net"}, "item": {"address": "192.168.23.1", "br idge": "brext", "dhcp_range": ["192.168.23.10", "192.168.23.50"], "forward_mode": "nat", "name": "external", "nat_port_range": [1024, 65535], "netmask": "255.255.255.0"}, "msg": "Requested operation is not valid: cannot set autostart for transient network"} failed: [localhost] => (item={u'bridge': u'brovc', u'name': u'overcloud'}) => {"failed": true, "invocation": {"module_args": {"autostart": "yes", "command": null, "name": "overcloud", "state": null, "uri": "qemu:///system", "xml": null}, "module_name": "virt_net"}, "item": {"bridge": "brovc", "name": "overcloud"}, "msg": "Requested operation is not valid: cannot set autostart for transient network"}

PLAY RECAP ***** localhost : ok=16 changed=4 unreachable=0 failed=1

trown commented 8 years ago

@mbaldessari sorry I did not see this one sooner, are you still hitting this on master?

I am curious if https://github.com/redhat-openstack/tripleo-quickstart/commit/f9c5df2d9a8023f73ae887c1ab662774a0a69010 might have fixed this.

mbaldessari commented 8 years ago

Wave not seen this one recently. I'll close this, will reopen in LP should I re-see it

weshayutin commented 8 years ago

seeing this quite a bit on virthosts w/o libvirt installed initially..

looking into a fix/workaround now https://cupracer.de/libvirt-cannot-set-autostart-for-transient-network/

task path: /home/rhos-ci/jenkins/workspace/poc-whayutin-rdo-mitaka-cat/ci-ansible-tripleo/.cat/usr/local/share/tripleo-quickstart/playbooks/roles/environment/setup/tasks/main.yml:20 00:04:18.487 Friday 13 May 2016 03:15:40 +0000 (0:0:1.400) 0:1:2.750 **** 00:04:19.863 failed: [hp-dl320g8-11.lab.eng.brq.redhat.com] => (item={u'bridge': u'brext', u'forward_mode': u'nat', u'name': u'external', u'netmask': u'255.255.255.0', u'nat_port_range': [1024, 65535], u'address': u'192.168.23.1', u'dhcp_range': [u'192.168.23.10', u'192.168.23.50']}) => {"failed": true, "item": {"address": "192.168.23.1", "bridge": "brext", "dhcp_range": ["192.168.23.10", "192.168.23.50"], "forward_mode": "nat", "name": "external", "nat_port_range": [1024, 65535], "netmask": "255.255.255.0"}, "msg": "Requested operation is not valid: cannot set autostart for transient network"} 00:04:19.872 failed: [hp-dl320g8-11.lab.eng.brq.redhat.com] => (item={u'bridge': u'brovc', u'name': u'overcloud'}) => {"failed": true, "item": {"bridge": "brovc", "name": "overcloud"}, "msg": "Requested operation is not valid: cannot set autostart for transient network"}