Xenial: AIO run fails on 'lxc basic host setup'

Bug #1612374 reported by Michael Gugino
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Ravi Gummadi

Bug Description

On the first run of the AIO build, using scripts/run_playbooks.sh, Ansible fails with:

TASK [Move the existing folder to the log aggregation parent] ******************
task path: /opt/openstack-ansible/playbooks/lxc-hosts-setup.yml:26
<172.29.236.100> ESTABLISH SSH CONNECTION FOR USER: root
<172.29.236.100> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=6 -o UserKnownHostsFile=/dev/null -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r 172.29.236.100 '/bin/sh -c '"'"'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python && sleep 0'"'"''
fatal: [aio1]: FAILED! => {"changed": true, "cmd": ["mv", "/var/log/lxc", "/openstack/log/aio1-lxc"], "delta": "0:00:00.003077", "end": "2016-08-11 14:04:48.548226", "failed": true, "invocation": {"module_args": {"_raw_params": "mv /var/log/lxc /openstack/log/aio1-lxc", "_uses_shell": false, "chdir": null, "creates": null, "executable": null, "removes": null, "warn": true}, "module_name": "command"}, "rc": 1, "start": "2016-08-11 14:04:48.545149", "stderr": "mv: cannot move '/var/log/lxc' to '/openstack/log/aio1-lxc': No such file or directory", "stdout": "", "stdout_lines": [], "warnings": []}

This tasks succeeds on a second, manual run of the playbook.

Qin Wang (qwang)
Changed in openstack-ansible:
assignee: nobody → Qin Wang (qwang)
Qin Wang (qwang)
Changed in openstack-ansible:
status: New → Confirmed
Qin Wang (qwang)
Changed in openstack-ansible:
status: Confirmed → New
assignee: Qin Wang (qwang) → nobody
Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

We could indeed add a check if /openstack/log is well created before attempting the move.

Thanks for the bug report!

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Low
Ravi Gummadi (ravigumm)
Changed in openstack-ansible:
assignee: nobody → Ravi Gummadi (ravigumm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

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

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/387012
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=a4f8e287b68b87036fa6adb742b280697f55ffb0
Submitter: Jenkins
Branch: master

commit a4f8e287b68b87036fa6adb742b280697f55ffb0
Author: Ravi Gummadi <email address hidden>
Date: Sun Oct 16 05:07:57 2016 -0400

    Create log aggregation parent directory

    During lxc hosts setup, mv command fails if the log aggregation
    parent /openstack/log/ does not exist. This patch makes sure that
    the directory exists before calling mv command.

    Change-Id: I3a337b73fcaa446164d1bc8bbae73dbeea694d7d
    Closes-Bug: #1612374

Changed in openstack-ansible:
status: In Progress → Fix Released
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/387452

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

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

commit f7adda94961134cc83753e8bb960253e4ca987cb
Author: Ravi Gummadi <email address hidden>
Date: Sun Oct 16 05:07:57 2016 -0400

    Create log aggregation parent directory

    During lxc hosts setup, mv command fails if the log aggregation
    parent /openstack/log/ does not exist. This patch makes sure that
    the directory exists before calling mv command.

    Change-Id: I3a337b73fcaa446164d1bc8bbae73dbeea694d7d
    Closes-Bug: #1612374
    (cherry picked from commit a4f8e287b68b87036fa6adb742b280697f55ffb0)

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

This issue was fixed in the openstack/openstack-ansible 14.0.0.0rc4 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 15.0.0.0b1

This issue was fixed in the openstack/openstack-ansible 15.0.0.0b1 development milestone.

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.