Bug 1052163 - qpidd.sasldb is owned by root
Summary: qpidd.sasldb is owned by root
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openstack-packstack
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Magr
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-13 12:32 UTC by Matthias Runge
Modified: 2014-01-23 11:05 UTC (History)
6 users (show)

Fixed In Version: openstack-packstack-2013.2.1-0.29.dev956.fc20
Clone Of:
Environment:
Last Closed: 2014-01-23 11:05:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 66169 0 None None None Never

Description Matthias Runge 2014-01-13 12:32:35 UTC
Description of problem:

when configuring to use a qpidd user, packstack creates a sasldb (which is great!)

Sadly, the file is not accessible for the qpidd user:
[root@turing ~(keystone_admin)]# ls -lZ /var/lib/qpidd/qpidd.sasldb 
-rw-r-----. root root unconfined_u:object_r:qpidd_var_lib_t:s0 /var/lib/qpidd/qpidd.sasldb


[root@turing ~(keystone_admin)]# chown qpidd:qpidd /var/lib/qpidd/qpidd.sasldb 
[root@turing ~(keystone_admin)]# service qpidd restart

fixes that issue.

I expect this kind of issue to be in all packstack deployments, and it results in no service being able to authenticate with qpidd.

The tested version is openstack-packstack-2013.2.1-0.27.dev936.fc21.noarch

Comment 1 Martin Magr 2014-01-13 13:37:29 UTC
In qpid::server Puppet class implementation sasldb is created with qpidd:qpidd ownership: https://github.com/dprince/puppet-qpid/blob/master/manifests/server.pp#L76

Isn't there any other way the ownership could be changed back to root? Would you be so kind and run packstack again with --debug and include <ip>_qpid.pp.log file from your /var/tmp/packstack/<timestamp>-<hash>/ directory?

Comment 2 Ivan Chavero 2014-01-13 14:47:15 UTC
Martin, that's the SSL certificate database, we're actually not ensuring that the /var/lib/qpidd/qpidd.sasldb is beign owned by the qpidd user.

we create the user inside the qpidd.sasldb file but we don't ensure the ownership of the file.

https://github.com/stackforge/packstack/blob/master/packstack/puppet/templates/qpid_auth.pp

Comment 3 Martin Magr 2014-01-13 14:55:20 UTC
Ah, ok. I mistaken those two, sorry for that.

Comment 4 Ivan Chavero 2014-01-13 15:14:58 UTC
problem fixed in this review: https://review.openstack.org/#/c/66169

Comment 5 Matthias Runge 2014-01-14 10:19:38 UTC
awesome, thank you!

Comment 7 Fedora Update System 2014-01-22 13:55:27 UTC
openstack-packstack-2013.2.1-0.29.dev956.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/openstack-packstack-2013.2.1-0.29.dev956.fc20

Comment 8 Fedora Update System 2014-01-23 11:05:52 UTC
openstack-packstack-2013.2.1-0.29.dev956.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.