[bifrost] install ironic failed

Bug #1455334 reported by Haomeng,Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bifrost
Fix Released
Undecided
Unassigned

Bug Description

I just followed the steps to install standalone ironic via bifrost

https://github.com/juliakreger/bifrost

All run well excluding one below error message

"fatal: [localhost] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_virbr0'", 'failed': True}"

in birforst console logs, after the installation, there is no ironic api and conductor process, not sure if I am missing something or there is bug in bifrost scripts, any comments?

birfrost Console Logs:

ubuntu@hm-ubuntu-standalone-ironic:~/bifrost/playbooks$ ansible-playbook -vvvv -i inventory/localhost install.yaml
...

TASK: [ironic-install | Ensure /etc/ironic exists] ****************************
<localhost> REMOTE_MODULE file name=/etc/ironic state=directory
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1431661507.81-202651430376769 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1431661507.81-202651430376769 && echo $HOME/.ansible/tmp/ansible-tmp-1431661507.81-202651430376769']
<localhost> PUT /tmp/tmpCK8M2V TO /home/ubuntu/.ansible/tmp/ansible-tmp-1431661507.81-202651430376769/file
<localhost> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=ubekqrhjfoaxsptlnvdjpwdnwxkdsniw] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ubekqrhjfoaxsptlnvdjpwdnwxkdsniw; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1431661507.81-202651430376769/file; rm -rf /home/ubuntu/.ansible/tmp/ansible-tmp-1431661507.81-202651430376769/ >/dev/null 2>&1'"'"''
changed: [localhost] => {"changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/ironic", "size": 4096, "state": "directory", "uid": 0}

TASK: [ironic-install | Place Ironic Config file] *****************************
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1431661507.9-243549201542409 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1431661507.9-243549201542409 && echo $HOME/.ansible/tmp/ansible-tmp-1431661507.9-243549201542409']
fatal: [localhost] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_virbr0'", 'failed': True}
fatal: [localhost] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_virbr0'", 'failed': True}

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/home/ubuntu/install.yaml.retry

localhost : ok=30 changed=25 unreachable=1 failed=0

ubuntu@hm-ubuntu-standalone-ironic:~/bifrost/playbooks$
ubuntu@hm-ubuntu-standalone-ironic:~/bifrost/playbooks$

ubuntu@hm-ubuntu-standalone-ironic:~/bifrost/playbooks$ ps -ef|grep ironic
rabbitmq 16046 16037 0 03:36 ? 00:00:53 /usr/lib/erlang/erts-5.10.4/bin/beam.smp -W w -K true -A30 -P 1048576 -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin/../ebin -noshell -noinput -s rabbit boot -sname rabbit@hm-ubuntu-standalone-ironic -boot start_sasl -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/<email address hidden>"} -rabbit sasl_error_logger {file,"/<email address hidden>"} -rabbit enabled_plugins_file "/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/lib/rabbitmq_server-3.2.4/sbin/../plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@hm-ubuntu-standalone-ironic-plugins-expand" -os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@hm-ubuntu-standalone-ironic"
ubuntu 22647 1397 0 05:51 pts/0 00:00:00 grep --color=auto ironic
ubuntu@hm-ubuntu-standalone-ironic:~/bifrost/playbooks$

Haomeng,Wang (whaom)
summary: - biforst install ironic failed
+ [biforst] install ironic failed
description: updated
description: updated
Revision history for this message
Haomeng,Wang (whaom) wrote : Re: [biforst] install ironic failed

I just set network_interface=eth0 in ./playbooks/inventory/group_vars/all to have a try.

Revision history for this message
Haomeng,Wang (whaom) wrote :

New issue found:

failed: [localhost] => {"changed": true, "cmd": "disk-image-create -a amd64 -o \"/httpboot/deployment_image.qcow2\" -t qcow2 vm ubuntu serial-console cloud-init-datasources \"\"", "delta": "0:00:00.049515", "end": "2015-05-20 03:33:09.298298", "rc": 1, "start": "2015-05-20 03:33:09.248783", "warnings": []}
stdout: Building elements: base vm ubuntu serial-console cloud-init-datasources
Expanded element dependencies to: cloud-init-datasources install-types dib-run-parts enable-serial-console vm manifests cache-url pkg-map serial-console base ubuntu dib-init-system package-installs dpkg dkms
qcow2 output format specified but qemu-img executable not found.

FATAL: all hosts have already failed -- aborting

Maybe qemu-img should be added into the requirements to install first.

Dmitry Tantsur (divius)
no longer affects: ironic
Revision history for this message
Haomeng,Wang (whaom) wrote :
Changed in bifrost:
status: New → Fix Committed
summary: - [biforst] install ironic failed
+ [bifrost] install ironic failed
Changed in bifrost:
milestone: none → 0.0.1
status: Fix Committed → Fix Released
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.