[promotion][pike/queens/Rocky] Ensure DLRN dir is present failed with permission denied

Bug #1802825 reported by chandan kumar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
wes hayutin

Bug Description

Multiple 24-hr periodic jobs are failing for pike and queens branch while building packages and giving following errors:
2018-11-12 05:21:46.377440 | primary | TASK [build-test-packages : Ensure DLRN dir is present] ************************
2018-11-12 05:21:46.390230 | primary | Monday 12 November 2018 05:21:46 +0000 (0:00:00.684) 0:05:20.107 *******
2018-11-12 05:21:47.014996 | primary | fatal: [undercloud]: FAILED! => {
2018-11-12 05:21:47.015073 | primary | "changed": false,
2018-11-12 05:21:47.015124 | primary | "path": "/root/DLRN/",
2018-11-12 05:21:47.015169 | primary | "state": "absent"
2018-11-12 05:21:47.015187 | primary | }
2018-11-12 05:21:47.015203 | primary |
2018-11-12 05:21:47.015224 | primary | MSG:
2018-11-12 05:21:47.015240 | primary |
2018-11-12 05:21:47.015365 | primary | There was an issue creating /root/DLRN as requested: [Errno 13] Permission denied: '/root/DLRN'

https://github.com/openstack/tripleo-quickstart-extras/blob/master/roles/build-test-packages/defaults/main.yml#L3

build_repo_dir: "{{ ansible_user_dir }}" and ansible_user_dir is pointing to /root somehow and in order to create that directory at /root/DLRN the user does not have permission.
ansible_user_dir should point to home dir of the user not the root one.

Below is the list of logs
http://logs.rdoproject.org/openstack-periodic-24hr/git.openstack.org/openstack-infra/tripleo-ci/master/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset020-queens/e720e5e/job-output.txt.gz

http://logs.rdoproject.org/openstack-periodic-24hr/git.openstack.org/openstack-infra/tripleo-ci/master/periodic-tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset035-queens/8e4d02c/job-output.txt.gz

http://logs.rdoproject.org/openstack-periodic-24hr/git.openstack.org/openstack-infra/tripleo-ci/master/periodic-tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset001-pike/9438984/job-output.txt.gz

http://logs.rdoproject.org/openstack-periodic-24hr/git.openstack.org/openstack-infra/tripleo-ci/master/periodic-tripleo-ci-centos-7-ovb-1ctlr_1comp-featureset002-queens-upload/88514a6/job-output.txt.gz

http://logs.rdoproject.org/openstack-periodic-24hr/git.openstack.org/openstack-infra/tripleo-ci/master/periodic-tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset001-queens/7b5ed2a/job-output.txt.gz

http://logs.rdoproject.org/32/614632/2/openstack-check/tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset001-rocky-vexxhost/2dfb3f7/job-output.txt.gz

Last patch merged related to ovb job setup: https://review.openstack.org/#/c/615357/8/playbooks/ovb-setup.yml@16

Changed in tripleo:
assignee: nobody → chandan kumar (chkumar246)
status: Triaged → In Progress
description: updated
Revision history for this message
chandan kumar (chkumar246) wrote :
description: updated
Changed in tripleo:
assignee: chandan kumar (chkumar246) → Sorin Sbarnea (ssbarnea)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart-extras (master)

Change abandoned by Chandan Kumar (<email address hidden>) on branch: master
Review: https://review.openstack.org/617227
Reason: not needed

Changed in tripleo:
assignee: Sorin Sbarnea (ssbarnea) → chandan kumar (chkumar246)
Revision history for this message
Martin Schuppert (mschuppert) wrote :
Changed in tripleo:
assignee: chandan kumar (chkumar246) → wes hayutin (weshayutin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/616937
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=2ded6f1df1d911bcaa6a8fa6ffd90ba8c36de994
Submitter: Zuul
Branch: master

commit 2ded6f1df1d911bcaa6a8fa6ffd90ba8c36de994
Author: Sorin Sbarnea <email address hidden>
Date: Fri Nov 9 13:55:22 2018 +0000

    Make build-test-packages more resilient

    OVB failures due to
    - ansible_user variable was used instead of ansible_user_id, the first
    one being unreliable as is may only be user defined (or undefined).
    - lack of become on tasks that needed it

    Fixes problem identified by molecule testing
    - lack of idempotence on few tasks
    - failure when ansible_user variale was not defined

    Change-Id: I11adec7104a59bfa29b00c702eb9b7eb6a5c6766
    Depends-On: Iade08ee92d7f48e07a625678d2a1c6ac1cd1982b
    Partial-Bug: https://tree.taiga.io/project/tripleo-ci-board/task/358
    Closes-Bug: #1802825

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart-extras 2.1.1

This issue was fixed in the openstack/tripleo-quickstart-extras 2.1.1 release.

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.