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

Bug #1668939 reported by Sagi (Sergey) Shnaidman on 2017-03-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
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

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) on 2017-03-01
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
Changed in tripleo:
milestone: ocata-rc2 → pike-1

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/

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

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

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  Edit
Everyone can see this information.

Other bug subscribers