run_upgrade.sh mitaka to newton failing, missing nginx log folder

Bug #1623778 reported by Luz Cazares
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Kevin Carter

Bug Description

Running upgrade via openstack-ansible/scripts/run-upgrade.sh. stable/mitaka to master fails on playbook repo-server.yml due to nginx log folder does not exists.

https://github.com/openstack/openstack-ansible/blob/fa9c114e51294828ddaeec5f6b8b1d1c92aa8fad/playbooks/repo-server.yml#L54l

TASK [rsyslog_client : Find all log files] *************************************
fatal: [infra01_repo_container-0e1659f2]: FAILED! => {"changed": true, "cmd": "find -L '/var/log/nginx' -type f -name '*.log'", "delta": "0:00:00.003456", "end": "2016-09-12 23:24:55.995569", "failed": true, "rc": 1, "start": "2016-09-12 23:24:55.992113", "stderr": "find: `/var/log/nginx': No such file or directory", "stdout": "", "stdout_lines": [], "warnings": []}
cmd: find -L '/var/log/nginx' -type f -name '*.log'
start: 2016-09-12 23:24:55.992113
end: 2016-09-12 23:24:55.995569
delta: 0:00:00.003456
stderr: find: `/var/log/nginx': No such file or directory

Tags: nginx upgrade
Changed in openstack-ansible:
status: New → Confirmed
assignee: nobody → Kevin Carter (kevin-carter)
Changed in openstack-ansible:
status: Confirmed → In Progress
Changed in openstack-ansible:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-repo_server (master)

Reviewed: https://review.openstack.org/370931
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-repo_server/commit/?id=182da652ea347d2740456672f2e31738dfe9b3d3
Submitter: Jenkins
Branch: master

commit 182da652ea347d2740456672f2e31738dfe9b3d3
Author: Kevin Carter <email address hidden>
Date: Thu Sep 15 10:08:32 2016 -0500

    Ensure the repo server has a valid log directory

    This change is simply making sure that the repo server has a valid
    log directory at "/var/log/nginx". In some cases, generally when
    upgrading, this directory may not exists and because the package
    is already installed the directory will not be recreated. This
    change simply makes sure the log directory is created regardless.

    Closes-Bug: #1623778
    Change-Id: I823aff32417804d494c46b0d444a518e2601118d
    Signed-off-by: Kevin Carter <email address hidden>

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