Files owned by root in ~/.cache directory on the undercloud

Bug #1668939 reported by Sagi (Sergey) Shnaidman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Sagi (Sergey) Shnaidman

Bug Description

When running instack with sudo there are created directories in
~/.cache folder with is default for DIB_IMAGE_CACHE and then it's
impossible to run DIB as user using the same cache dir.

https://github.com/openstack/instack-undercloud/blob/master/instack_undercloud/undercloud.py#L1160

https://github.com/openstack/instack/blob/d1a5d5a996eb76fba638224a0a2f16e378a592b2/instack/main.py#L94-L95

There is a hack in tripleo-ci to workaround it:

https://github.com/openstack-infra/tripleo-ci/blob/905eac0eee99521336372a3400c5a17a3bea5a47/scripts/deploy.sh#L151-L151

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (master)

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

Changed in tripleo:
assignee: nobody → Sagi (Sergey) Shnaidman (sshnaidm)
status: New → In Progress
Attila Darazs (adarazs)
summary: - Files owned by root in ~/.cache directory
+ Files owned by root in ~/.cache directory on the undercloud
Changed in tripleo:
importance: Undecided → Medium
milestone: none → ocata-rc2
tags: added: ocata-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack (master)

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

Changed in tripleo:
milestone: ocata-rc2 → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on instack-undercloud (master)

Change abandoned by Sagi Shnaidman (<email address hidden>) on branch: master
Review: https://review.openstack.org/439536
Reason: in favor of https://review.openstack.org/#/c/441706/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack (master)

Reviewed: https://review.openstack.org/441706
Committed: https://git.openstack.org/cgit/openstack/instack/commit/?id=47c2bc4b4dd69005892aef3b86681ebcaf1b3b87
Submitter: Jenkins
Branch: master

commit 47c2bc4b4dd69005892aef3b86681ebcaf1b3b87
Author: Sagi Shnaidman <email address hidden>
Date: Sun Mar 5 22:25:59 2017 +0200

    Don't use cache directory in home user dir with sudo

    When running instack with sudo there are created directories owned
    by root in users ~/.cache folder with is default for
    DIB_IMAGE_CACHE. Then it's impossible to run DIB as user using
    the same cache dir.

    Change-Id: I42f5e6db85b3571ed2f393160214928f18c0b145
    Closes-Bug: #1668939

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

This issue was fixed in the openstack/instack 7.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-quickstart-extras (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/531523

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/531523
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=660b181c0617e50b6ffd6256c3b1b5c6da40583e
Submitter: Zuul
Branch: master

commit 660b181c0617e50b6ffd6256c3b1b5c6da40583e
Author: Sagi Shnaidman <email address hidden>
Date: Sat Jan 6 02:38:17 2018 +0200

    Remove workaround for bug 1668939

    Since 1668939 is resolved, no need anymore to change ownership
    on .cache directory for building images.

    Change-Id: I5b058331457ad1c23c67a9d0a426432a147676e7
    Related-Bug: #1668939

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.