Playbook fails to create required directory

Bug #1711335 reported by Syed Armani
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Jesse Pretorius

Bug Description

Host OS: Trusty
OSA checkout: 14.2.7 tag

During the Mitaka -> Newton upgrade process as described here[0] the deploy-config-changes.yml fails with this[1] error.

Fixed it by creating a "/etc/openstack_deploy.NEWTON" directory manually before running the playbook again.

[0] https://docs.openstack.org/openstack-ansible/newton/upgrade-guide/manual-upgrade.html
[1] http://paste.openstack.org/show/618559/

Revision history for this message
Alex (akrohn) wrote :

Ran into this as well:

https://github.com/openstack/openstack-ansible/blob/14.2.8/scripts/upgrade-utilities/playbooks/deploy-config-changes.yml#L62

creates /etc/openstack_deploy.MITAKA (as source_series on line 24 is mitaka), but it checks for NEWTON. I think proper fix is to change:

https://github.com/openstack/openstack-ansible/blob/14.2.8/scripts/upgrade-utilities/scripts/migrate_openstack_vars.py#L68

to MITAKA. It doesn't really matter though as there are no variables getting changed as far as I can see.

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Low
tags: added: low-hanging-fruit
Changed in openstack-ansible:
assignee: nobody → Jesse Pretorius (jesse-pretorius)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/498871

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/newton)

Reviewed: https://review.openstack.org/498871
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=47ec9353d8a741d276bdcbf5a832c06a2d2926e3
Submitter: Jenkins
Branch: stable/newton

commit 47ec9353d8a741d276bdcbf5a832c06a2d2926e3
Author: Jesse Pretorius <email address hidden>
Date: Tue Aug 29 17:53:04 2017 +0100

    migrate_openstack_vars.py: Correct folder name

    In https://review.openstack.org/443579 the backport
    unintentionally left out the folder name change.

    This patch corrects that to ensure that the script
    runs successfully.

    Closes-Bug: #1711335
    Change-Id: I604a42c0edc5a88e1fd84d263f77c24da88ac441

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 14.2.9

This issue was fixed in the openstack/openstack-ansible 14.2.9 release.

Changed in openstack-ansible:
status: Confirmed → 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.