Bug 1114262
| Summary: | swift proxy server failed to install due to error in configuration file /etc/swift/proxy-server.conf | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | bkopilov <bkopilov> |
| Component: | openstack-packstack | Assignee: | Martin Magr <mmagr> |
| Status: | CLOSED ERRATA | QA Contact: | nlevinki <nlevinki> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.0 (RHEL 7) | CC: | acathrow, adahms, aortega, derekh, nlevinki, pematous, psedlak, sclewis, yeylon |
| Target Milestone: | rc | ||
| Target Release: | 5.0 (RHEL 7) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-packstack-2014.1.1-0.29.dev1196.el7ost | Doc Type: | Bug Fix |
| Doc Text: |
Previously, the Swift proxy service would fail to start in Red Hat OpenStack environments installed using the PackStack all-in-one installation process. This was caused by the Swift proxy service attempting to read filters in the proxy-server.conf using names different to those actually written to that file. Now, the names of those filters have been standardized so that the Swift proxy service starts successfully under these conditions.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-07-08 15:39:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1109087 | ||
|
Description
bkopilov
2014-06-29 09:40:34 UTC
diff of config bellow, versions used both swift-broken and swift-working has openstack-swift.noarch 1.13.1-2.el7ost openstack-swift-account.noarch 1.13.1-2.el7ost openstack-swift-container.noarch 1.13.1-2.el7ost openstack-swift-object.noarch 1.13.1-2.el7ost openstack-swift-plugin-swift3.noarch 1.7-3.el7ost openstack-swift-proxy.noarch 1.13.1-2.el7ost swift-working: openstack-puppet-modules.noarch 2014.1-17.1.el7ost openstack-packstack.noarch 2014.1.1-0.27.dev1184.el7ost openstack-packstack-puppet.noarch 2014.1.1-0.27.dev1184.el7ost swift-broken: openstack-puppet-modules.noarch 2014.1-18.el7ost openstack-packstack.noarch 2014.1.1-0.28.dev1194.el7ost openstack-packstack-puppet.noarch 2014.1.1-0.28.dev1194.el7ost > $ diff swift-broken/node1/etc/swift/proxy-server.conf swift-working/node1/etc/swift/proxy-server.conf > 6c6 > < bind_ip = 172.16.32.79 > --- > > bind_ip = 172.16.32.12 > 19c19 > < pipeline = catch_errors bulk healthcheck cache crossdomain ratelimit authtoken keystone staticweb tempurl slo formpost account-quotas container-quotas proxy-server > --- > > pipeline = catch_errors bulk healthcheck cache ratelimit authtoken keystone staticweb tempurl slo formpost account-quotas container-quotas proxy-server > 31,33d30 > < > < > < > 45c42 > < auth_host = 172.16.32.79 > --- > > auth_host = 172.16.32.12 > 48c45 > < auth_uri = http://172.16.32.79:5000 > --- > > auth_uri = http://172.16.32.12:5000 > 52c49 > < admin_password = 5621ab0e99ca4837 > --- > > admin_password = a21e47ca02904001 > 86,89d82 > < [filter:crossdomain] > < use = egg:swift#crossdomain > < cross_domain_policy = <allow-access-from domain="*" secure="false" /> > < > 104c97 > < [filter:account_quotas] > --- > > [filter:account-quotas] > 108c101 > < [filter:container_quotas] > --- > > [filter:container-quotas] So based on that in pipeline both account-quotas and container-quotas are with dash, not underscore, both changes visible at the end of diff are invalid. in https://github.com/stackforge/packstack/blob/master/packstack/puppet/templates/swift_proxy.pp list for pipeline has dashes, template in https://github.com/stackforge/puppet-swift/blob/master/templates/proxy/account_quotas.conf.erb contains underscore lp bug was reason for the change of pipeline name in swift puppets https://bugs.launchpad.net/openstack-cisco/+bug/1323761 Noting one of possible workarounds: on aio node, or all nodes where > systemctl is-enabled openstack-swift-proxy do > sed -ri "s/(account|container)-quotas/\1_quotas/g" /etc/swift/proxy-server.conf && openstack-service restart swift-proxy then you can check with > openstack-service status swift that all services are running there as expected Tested on Puddle Root Directory: http://download.lab.bos.redhat.com/rel-eng/OpenStack/5.0-RHEL-7/2014-07-01.2 == Swift services == openstack-swift-proxy: active openstack-swift-account: active openstack-swift-container: active openstack-swift-object: active [root@dhcp163-70 ~(keystone_admin)]# rpm -qa | grep swift openstack-swift-account-1.13.1-2.el7ost.noarch openstack-swift-plugin-swift3-1.7-3.el7ost.noarch openstack-swift-object-1.13.1-2.el7ost.noarch openstack-swift-container-1.13.1-2.el7ost.noarch python-swiftclient-2.0.2-1.el7ost.noarch openstack-swift-proxy-1.13.1-2.el7ost.noarch openstack-swift-1.13.1-2.el7ost.noarch 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/RHEA-2014-0846.html |