Error running os-nova-install with nova-config tag in 15.0.0

Bug #1667337 reported by James Denton on 2017-02-23
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
openstack-ansible
Low
Bjoern Teipel

Bug Description

OS: Ubuntu 16.04 LTS
Release: Ocata 15.0.0

Running "openstack-ansible os-nova-install.yml --tags nova-config" results in the following:

TASK [os_nova : Install pip packages] ******************************************
Thursday 23 February 2017 09:22:14 -0500 (0:00:00.211) 0:02:05.485 *****
fatal: [i812847]: FAILED! => {"failed": true, "msg": "The conditional check 'nova_get_venv | failed or nova_get_venv | skipped' failed. The error was: |failed expects a dictionary\n\nThe error appears to have been in '/etc/ansible/roles/os_nova/tasks/nova_compute_kvm_install.yml': line 54, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Install pip packages\n ^ here\n"}
fatal: [i812846]: FAILED! => {"failed": true, "msg": "The conditional check 'nova_get_venv | failed or nova_get_venv | skipped' failed. The error was: |failed expects a dictionary\n\nThe error appears to have been in '/etc/ansible/roles/os_nova/tasks/nova_compute_kvm_install.yml': line 54, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Install pip packages\n ^ here\n"}

nova_get_venv is registered in /etc/ansible/roles/os_nova/tasks/nova_install.yml, and does not appear to be registered by the time this task is run (if at all when using this tag). Commented out the conditional to work around it.

Egle (ushnishtha) wrote :

I get similar error on stable/newton, Ubuntu 14.04 and 16.04 when building AIO:

fatal: [aio1]: FAILED! => {"failed": true, "msg": "The conditional check 'nova_get_venv | failed or nova_developer_mode | bool' failed. The error was: |failed expects a dictionary\n\nThe error appears to have been in '/etc/ansible/roles/os_nova/tasks/nova_compute_kvm_install.yml': line 48, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Install pip packages\n ^ here\n"}

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Low
Changed in openstack-ansible:
assignee: nobody → Bjoern Teipel (bjoern-teipel)

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

Changed in openstack-ansible:
status: Confirmed → In Progress

FYI, I don't think we ever ensured that -config tag will "only reconfigure" service (like templating files?)

If that's the case, I think it deserves documentation.

Currently we are focusing on having a reliable -install as first base.

Bjoern Teipel (bjoern-teipel) wrote :

Closing

Changed in openstack-ansible:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers