Packaging Issues into Ubuntu 12.04

Bug #1047059 reported by Emilien Macchi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cinder (Ubuntu)
Fix Released
High
stelford

Bug Description

I'm using Folsom testing packages PPA [1]

1) /var/log/cinder has not good owner by default, so not possible to save the logs. We need to chown manually.
2) We need to create manually :
/usr/lib/python2.7/dist-packages/volumes
chown -R cinder:cinder /usr/lib/python2.7/dist-packages/volumes

[1] https://launchpad.net/~openstack-ubuntu-testing/+archive/folsom-trunk-testing

stelford (stef-ummon)
Changed in cinder:
assignee: nobody → stelford (stef-ummon)
Changed in cinder (Ubuntu):
assignee: nobody → stelford (stef-ummon)
Revision history for this message
stelford (stef-ummon) wrote :

hello Emilien, a few questions :)

1) is /var/log/cinder not owned by cinder:adm ? if it is, that's the correct owner/group. What makes you think it's wrong ?

2) that is inside the python 2.7 distribution, that's almost assuredly the wrong place for it. I have submitted a patch that makes a directory under /var/lib/cinder/volumes with the owner of cinder:cinder. I am curious though, how did the volumes end up pointed there ? do you have anything in your cinder.conf perhaps ?

Regards
S.

Revision history for this message
Emilien Macchi (emilienm) wrote :

@stelford

Thx for repply.

1) Post-install, /var/log/cinder is owned by root:root. It must be cinder:adm, (I said cinder:cinder, by bad).

2) Regarding /usr/lib/python2.7/dist-packages/volumes, I could see in the log that cinder-volume tried to write inside, but did not have the rights. I created /usr/lib/python2.7/dist-packages/volumes directory and chown cinder:cinder it, and I did not have this error anymore.

My cinder.conf : http://paste.openstack.org/show/SebfzeLcKXGwaZE2squh/

I'm running : 2012.2+git201209051900~precise-0ubuntu1

Regards

Revision history for this message
stelford (stef-ummon) wrote :

Hey again,
  1) there was definitely a perms problem, which I have fixed here.
  2) the path for where local volumes are stored is (I believe) controlled by tgt. Have a look inside /etc/tgt/ folder but it should have a cinder.conf with the path in there. This assumes that you have installed tgt, and I am not sure if it's cinders place to 'stomp' on any configuration you may have in there. Regardless, I also put in a fix for the folder for cinder volumes to be created in /var/lib/cinder/volumes

  Regards
  S.

Changed in cinder (Ubuntu):
status: New → In Progress
importance: Undecided → High
Revision history for this message
Emilien Macchi (emilienm) wrote :

It's true, we should install TGT.

I've updated the packages and it's fixed now. Thank's !

Revision history for this message
Joe T (joe-topjian-v) wrote :

Hello,

The latest cinder-common package seem to set the ownership of /var/lib/cinder and /var/log/cinder as "750:adm".

750 is an unresolvable uid. The "cinder" user is added to the system using the next consecutive uid -- in my current test server, it is 117.

Thanks,
Joe

Revision history for this message
stelford (stef-ummon) wrote :

Hey Joe,
   This is fixed in the latest testing packages. Chuck (Short) added in a patch (#38) at the sametime I did - fixing the exact problem. In light of Emilien's problem being fixed, I am moving that this is, therefore, closed.

   Regards
   S.

Revision history for this message
stelford (stef-ummon) wrote :
Changed in cinder (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Emilien Macchi (emilienm) wrote :

@stelford: Is it fixed also for Precise into Folsom Testing PPA I'm using ?

Thank's a lot for your help

Chuck Short (zulcss)
Changed in cinder (Ubuntu):
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
no longer affects: cinder
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.