Bug 888725 - packstack puppet recipes should set authtoken parameters in *.conf not paste.ini
Summary: packstack puppet recipes should set authtoken parameters in *.conf not paste.ini
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 2.0 (Folsom)
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: snapshot4
: 2.1
Assignee: Martin Magr
QA Contact: Nir Magnezi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-19 10:48 UTC by Alan Pevec
Modified: 2022-07-09 06:23 UTC (History)
3 users (show)

Fixed In Version: openstack-packstack-2012.2.3-0.1.dev454
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-21 18:22:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-16373 0 None None None 2022-07-09 06:23:49 UTC
Red Hat Product Errata RHSA-2013:0671 0 normal SHIPPED_LIVE Moderate: openstack-packstack security and bug fix update 2013-03-21 22:22:21 UTC

Description Alan Pevec 2012-12-19 10:48:20 UTC
Description of problem:
After packstack installation I see that some components have authtoken middleware parameters set in paste.ini instead of application's main .conf

e.g. BAD
/etc/cinder/cinder.conf:admin_tenant_name = %SERVICE_TENANT_NAME%
/etc/cinder/cinder.conf:admin_user = %SERVICE_USER%
/etc/cinder/cinder.conf:admin_password = %SERVICE_PASSWORD%
/etc/cinder/api-paste.ini:admin_password=cinder_default_password
/etc/cinder/api-paste.ini:admin_tenant_name=services
/etc/cinder/api-paste.ini:admin_user=cinder
/etc/nova/api-paste.ini:admin_user=nova
/etc/nova/api-paste.ini:admin_password=nova_default_password
/etc/nova/api-paste.ini:admin_tenant_name=services

vs GOOD
/etc/glance/glance-api.conf:admin_tenant_name = services
/etc/glance/glance-api.conf:admin_user = glance
/etc/glance/glance-api.conf:admin_password = glance_default_password
/etc/glance/glance-registry.conf:admin_tenant_name = services
/etc/glance/glance-registry.conf:admin_user = glance
/etc/glance/glance-registry.conf:admin_password = glance_default_password


Version-Release number of selected component (if applicable):
openstack-packstack-2012.2.2-0.1.dev205.el6ost

Related docs bug 876763

Comment 1 Alan Pevec 2013-01-23 11:24:58 UTC
Also related bug 887334
dumping puppet templates over distributed config files removes that effort
ideally augeas or something could be used to edit them instead?

Comment 3 Derek Higgins 2013-02-14 20:54:45 UTC
Fix for the nova part of this submitted upstream
https://review.openstack.org/21995

Comment 4 Derek Higgins 2013-02-14 21:26:52 UTC
Fix for the cinder part of this submitted upstream
https://review.openstack.org/21997

Comment 6 Nir Magnezi 2013-03-11 13:36:39 UTC
Verified NVR: openstack-packstack-2012.2.3-0.1.dev454.el6ost.noarch

Installed Openstack using packstack.

/etc/cinder/cinder.conf
=======================
admin_tenant_name = services
admin_user = cinder
admin_password = 46b82b2e07984345

/etc/cinder/api-paste.ini
=========================
admin_password, admin_tenant_name and admin_user are no longer present in this file.

/etc/nova/api-paste.ini
=======================
admin_user, admin_password and admin_tenant_name are no longer present in this file.

Comment 9 errata-xmlrpc 2013-03-21 18:22:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0671.html


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