Reinstall openstack-dashboard will cause /usr/share/openstack folder lost its default ownership

Bug #1536240 reported by JohnsonYi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Medium
MOS Packaging Team

Bug Description

In fuel 6.0 environment, while I tried to reinstall package "openstack-dashboard_2014.2-fuel6.0~mira13_all.deb" with command apt-get --reinstall install openstack-dashboard, the ownership for folder /usr/share/openstack-dashboard changed to root:root instead of default horizon:horizon.

Revision history for this message
JohnsonYi (yichengli) wrote :

openstack-dashboard_2014.2-fuel6.0~mira13_all.deb

Revision history for this message
JohnsonYi (yichengli) wrote :

I added two lines to postinst script to fix it, so that I can rebuild the package and install it.

...

# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
        pycompile -p openstack-dashboard /usr/share/openstack-dashboard
fi

# Change owner for /usr/share/openstack-dashboard
chown -R horizon:horizon /usr/share/openstack-dashboard

# End automatically added section

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Could you please clarify if this really breaks anything? Or it's just about getting permissions "correct".

Changed in mos:
assignee: nobody → JohnsonYi (yichengli)
status: New → Incomplete
Revision history for this message
JohnsonYi (yichengli) wrote :

Roman, sorry for reply a bit late, I will have a test first

Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

MOS Packaging, please take a look at this.

tags: added: area-packaging
Changed in mos:
assignee: JohnsonYi (yichengli) → MOS Packaging Team (mos-packaging)
milestone: none → 6.0-updates
status: Incomplete → Confirmed
importance: Undecided → Medium
Revision history for this message
Ivan Udovichenko (iudovichenko) wrote :

Build scripts for Horizon were taken originally from Ubuntu Utopic release which is not available anymore (with our minor changes [2]) and are compatible with Puppet manifests and should not break anything.

I've installed package from 6.1 [3] just to check that this a default behavior:
http://pastebin.com/WARGLS59

So if you're still facing any issues, please just let us know.

[1] https://review.fuel-infra.org/gitweb?p=openstack-build/horizon-build.git;a=blob_plain;f=debian/changelog;hb=refs/heads/openstack-ci/fuel-6.0/2014.2
[2] https://review.fuel-infra.org/gitweb?p=openstack-build/horizon-build.git;a=log;h=refs/heads/openstack-ci/fuel-6.0/2014.2
[3] https://review.fuel-infra.org/gitweb?p=openstack-build/horizon-build.git;a=blob_plain;f=trusty/debian/openstack-dashboard.postinst;hb=refs/heads/openstack-ci/fuel-6.1/2014.2

Changed in mos:
status: Confirmed → Incomplete
Revision history for this message
JohnsonYi (yichengli) wrote :

I had tested on my local ha environment, horizon was not affected while ownership changed. This bug should be invalid.

Changed in mos:
status: Incomplete → Invalid
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.