# ansible-openstack-redhat task "create the external network" Error in listing quantum networks:

**URL:** <https://forum.ansible.com/t/ansible-openstack-redhat-task-create-the-external-network-error-in-listing-quantum-networks/13249>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [August 2, 2013, 4:32pm UTC](https://forum.ansible.com/t/ansible-openstack-redhat-task-create-the-external-network-error-in-listing-quantum-networks/13249 "2013-08-02T16:32:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kesten\_Broughton2](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Post date:** [August 2, 2013, 4:32pm UTC](https://forum.ansible.com/t/ansible-openstack-redhat-task-create-the-external-network-error-in-listing-quantum-networks/13249/1 "2013-08-02T16:32:55Z")

</div>

I re-instanced my vms and started from scratch.  
I am still getting stuck on this step “create the external network”

I have 2 centos 6.4 nodes each with 2 nics.  
I’m running the playbook from my mac.

quantum\_network is being executed on the admin node when it fails.

the quantum server log contains the following:

[root@Linux-OpenStack-Admin ~]# cat /var/log/quantum/server.log  
2013-08-02 11:16:09 ERROR [quantum.openstack.common.rpc.impl\_qpid] Unable to connect to AMQP server: Error in sasl\_client\_start (-1) SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Credentials cache file ‘/tmp/krb5cc\_164’ not found). Sleeping 1 seconds

If i  
touch /tmp/krb5cc\_164

the error becomes:  
2013-08-02 11:31:12 ERROR [quantum.openstack.common.rpc.impl\_qpid] Unable to connect to AMQP server: Error in sasl\_client\_start (-1) SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Bad format in credentials cache). Sleeping 60 seconds

Here is the debug output from the ansible playbook:

kbroughton:ansible-redhat-openstack$ ansible-playbook -i hosts site.yml --start-at-task=“create the external network” -vvv

PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
\<10.0.9.172\> ESTABLISH CONNECTION FOR USER: root  
\<10.0.9.170\> ESTABLISH CONNECTION FOR USER: root  
\<10.0.9.172\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/tmp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘10.0.9.172’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-1375460700.04-134418691941573 && echo $HOME/.ansible/tmp/ansible-1375460700.04-134418691941573’”]  
\<10.0.9.170\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/tmp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘10.0.9.170’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-1375460700.04-174703238053514 && echo $HOME/.ansible/tmp/ansible-1375460700.04-174703238053514’”]  
\<10.0.9.172\> REMOTE\_MODULE setup  
\<10.0.9.172\> PUT /var/folders/t2/h22337c12hn279xwd4s9fk7s8\_088c/T/tmpyEUqoY TO /root/.ansible/tmp/ansible-1375460700.04-134418691941573/setup  
\<10.0.9.170\> REMOTE\_MODULE setup  
\<10.0.9.170\> PUT /var/folders/t2/h22337c12hn279xwd4s9fk7s8\_088c/T/tmpx8zHjY TO /root/.ansible/tmp/ansible-1375460700.04-174703238053514/setup  
\<10.0.9.172\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/tmp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘10.0.9.172’, “/bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-1375460700.04-134418691941573/setup; rm -rf /root/.ansible/tmp/ansible-1375460700.04-134418691941573/ \>/dev/null 2\>&1’”]  
\<10.0.9.170\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/tmp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘10.0.9.170’, “/bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-1375460700.04-174703238053514/setup; rm -rf /root/.ansible/tmp/ansible-1375460700.04-174703238053514/ \>/dev/null 2\>&1’”]  
ok: [Linux-OpenStack-Controller]  
ok: [Linux-OpenStack-Admin]

PLAY [openstack\_controller] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK: [create the external network] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
\<10.0.9.170\> ESTABLISH CONNECTION FOR USER: root  
\<10.0.9.170\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/tmp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘10.0.9.170’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-1375460701.17-22216503000446 && echo $HOME/.ansible/tmp/ansible-1375460701.17-22216503000446’”]  
\<10.0.9.170\> REMOTE\_MODULE quantum\_network state=present login\_username=admin login\_password=secret provider\_network\_type=local login\_tenant\_name=admin name=external\_network router\_external=true  
\<10.0.9.170\> PUT /var/folders/t2/h22337c12hn279xwd4s9fk7s8\_088c/T/tmpyEUqoY TO /root/.ansible/tmp/ansible-1375460701.17-22216503000446/quantum\_network  
\<10.0.9.170\> EXEC [‘ssh’, ‘-tt’, ‘-q’, ‘-o’, ‘ControlMaster=auto’, ‘-o’, ‘ControlPersist=60s’, ‘-o’, ‘ControlPath=/tmp/ansible-ssh-%h-%p-%r’, ‘-o’, ‘Port=22’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘10.0.9.170’, “/bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-1375460701.17-22216503000446/quantum\_network; rm -rf /root/.ansible/tmp/ansible-1375460701.17-22216503000446/ \>/dev/null 2\>&1’”]  
failed: [Linux-OpenStack-Admin] =\> {“failed”: true, “item”: “”}  
msg: Error in listing quantum networks: [Errno 111] Connection refused

FATAL: all hosts have already failed – aborting

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
to retry, use: --limit @/var/tmp/ansible/site.retry

Linux-OpenStack-Admin : ok=1 changed=0 unreachable=0 failed=1  
Linux-OpenStack-Controller : ok=1 changed=0 unreachable=0 failed=0

any suggestions?

thanks  
kesten

---

<div class="post-metadata">

**Author:** ![benno\_joy](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@benno\_joy](https://forum.ansible.com/u/benno_joy)\
**Post date:** [August 5, 2013, 7:04am UTC](https://forum.ansible.com/t/ansible-openstack-redhat-task-create-the-external-network-error-in-listing-quantum-networks/13249/2 "2013-08-05T07:04:22Z")

</div>

Hi Kesten,

Can you check if the activemq is running and accepting connections, also can you send the quantum.conf and nova.conf file so that we check if the mq configurations are proper in the file.

Regards,  
Benno

---

<div class="post-metadata">

**Author:** ![Kesten\_Broughton2](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Post date:** [August 5, 2013, 5:44pm UTC](https://forum.ansible.com/t/ansible-openstack-redhat-task-create-the-external-network-error-in-listing-quantum-networks/13249/3 "2013-08-05T17:44:15Z")

</div>

Activemq is NOT running. In fact, it appears to not even be installed. I received no errors about it though. Based on the errors and config files,

There are a bunch of qpid files installed, and i can reproduce the error I see in quantum/server.log like so:

[root@Linux-OpenStack-Admin bin]# /usr/bin/qpid-config  
Failed: ConnectionFailed: (None, “Error in sasl\_client\_start (-1) SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Credentials cache file ‘/tmp/krb5cc\_0’ not found)”)

[root@Linux-OpenStack-Admin bin]# which activemq  
/usr/bin/which: no activemq in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

Attached are the requested nova and quantum .conf files.

kesten

> **(attachments)**
>
> [nova.conf](https://forum.ansible.com/uploads/short-url/akW5oTXWANSGFlzkkLNpNcZI9IW.conf) (2.07 KB)  
> [quantum.conf](https://forum.ansible.com/uploads/short-url/tqGHela6krySlPx0lTFJgcHHGkk.conf) (632 Bytes)

---

<div class="post-metadata">

**Author:** ![Kesten\_Broughton2](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Post date:** [August 5, 2013, 6:13pm UTC](https://forum.ansible.com/t/ansible-openstack-redhat-task-create-the-external-network-error-in-listing-quantum-networks/13249/4 "2013-08-05T18:13:14Z")

</div>

Perhaps it is realted to these filed bugs

[https://bugzilla.redhat.com/show\_bug.cgi?id=693840](https://bugzilla.redhat.com/show_bug.cgi?id=693840)  
[https://bugzilla.redhat.com/show\_bug.cgi?id=693840](https://bugzilla.redhat.com/show_bug.cgi?id=693840)

cyrus-sasl-gssapi is installed on my system (presumably as a result of the ansible script - it was a pretty minimal system, freshly installed centos 6.4)

[root@Linux-OpenStack-Admin bin]# locate cyrus-sasl-gssapi  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/changed\_by  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/checksum\_data  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/checksum\_type  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/command\_line  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/from\_repo  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/from\_repo\_revision  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/from\_repo\_timestamp  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/installed\_by  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/reason  
/var/lib/yum/yumdb/c/546f0e164a406b4e6842ec6c503377360deabb1d-cyrus-sasl-gssapi-2.1.23-13.el6\_3.1-x86\_64/releasever
