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

Bug #1667337 reported by James Denton
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Invalid
Low
Bjoern

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.

Revision history for this message
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
Bjoern (bjoern-t)
Changed in openstack-ansible:
assignee: nobody → Bjoern Teipel (bjoern-teipel)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (master)

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

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

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.

Revision history for this message
Bjoern (bjoern-t) wrote :

Closing

Changed in openstack-ansible:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-ansible-os_nova (master)

Change abandoned by Bjoern Teipel (<email address hidden>) on branch: master
Review: https://review.opendev.org/446214

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.