Bug 882977 - When Installing openstack-swift, The packages python-keystone-auth-token should be installed by dependency.
Summary: When Installing openstack-swift, The packages python-keystone-auth-token shou...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-swift
Version: 2.0 (Folsom)
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Martin Magr
QA Contact: Omri Hochman
URL:
Whiteboard:
: 827580 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-03 14:30 UTC by Nir Magnezi
Modified: 2021-03-09 19:07 UTC (History)
3 users (show)

Fixed In Version: openstack-swift-1.7.4-3.el6ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-14 18:23:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
swift startup log (1.95 KB, text/x-log)
2012-12-03 14:41 UTC, Nir Magnezi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0260 0 normal SHIPPED_LIVE Red Hat OpenStack 2.0 (Folsom) Preview bug fix and enhancement update 2013-02-14 23:21:02 UTC

Description Nir Magnezi 2012-12-03 14:30:40 UTC
Description of problem:
=======================

When Installing openstack-swift, The packages python-keystone-auth-token should be installed by dependency.
I installed openstack in a distributed way, Meaning a single service per Host/VM.
I'd expect that all the packages needed for me to configure and run that service, to be installed by dependency.

Based on Chapter 9. Swift (Object Storage):
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_OpenStack_Preview/2/html-single/Getting_Started_Guide/index.html
I installed swift on a single host, Started the openstack-swift-proxy and noticed errors at /var/log/swift-startup.log


Version-Release number of selected component (if applicable):
=============================================================
Folsom.

How reproducible:
=================
Always.

Steps to Reproduce:
===================
1. Chapter 9. Swift (Object Storage)  on: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_OpenStack_Preview/2/html-single/Getting_Started_Guide/index.html
2. While starting openstack-swift-proxy, tail -f /var/log/swift-startup.log (output attached to this bug)
 
Actual results:
===============
1. The package python-keystone-auth-token not installed.
2. /var/log/swift-startup.log:

ImportError: No module named keystone.middleware.auth_token

*Log attached to this bug

Expected results:
=================
1. The package python-keystone-auth-token should be installed.
2. No Errors in swift-startup.log.

Comment 2 Nir Magnezi 2012-12-03 14:41:17 UTC
Created attachment 656692 [details]
swift startup log

Comment 3 Alan Pevec 2012-12-13 19:29:10 UTC
*** Bug 827580 has been marked as a duplicate of this bug. ***

Comment 4 Pete Zaitcev 2012-12-21 19:50:53 UTC
What if I am installing a SAIO, for example?

Comment 5 Pete Zaitcev 2012-12-21 19:58:39 UTC
To elucidate on the assumptions I'm making above: the downside of adding
the dependencies that _might_ be used, even in a reasonable common case
like the Keystone client, is that we cannot foresee what else the
ostensibly harmless dependency is going to pull. I recall hearing
complaints about this specific case: pulling almost whole of Keystone
onto Swift nodes of operators using swauth.

Comment 6 Alan Pevec 2013-01-11 18:15:07 UTC
Done by Martin in openstack-swift-1.7.4-3.el6ost

Comment 8 Nir Magnezi 2013-01-17 15:24:22 UTC
Verified. with openstack-swift Version: 1.7.4-4.el6ost


[root@nmagnezi_swift_proxy ~]# yum install openstack-swift
Loaded plugins: product-id, rhnplugin, security, subscription-manager
...

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                                    Arch                                Version                                                Repository                                             Size
===================================================================================================================================================================================================================
Installing:
 openstack-swift                                            noarch                              1.7.4-4.el6ost                                         OpenStack-Folsom-Puddle                               275 k
Installing for dependencies:
 MySQL-python                                               x86_64                              1.2.3-0.3.c1.1.el6                                     rhel-x86_64-server-6.3.z                               86 k
 mysql-libs                                                 x86_64                              5.1.66-2.el6_3                                         rhel-x86_64-server-6.3.z                              1.2 M
 openstack-swift-plugin-swift3                              noarch                              1.0.0-0.20120711git.el6                                OpenStack-Folsom-Puddle                                20 k
 python-keystone                                            noarch                              2012.2.1-1.el6ost                                      OpenStack-Folsom-Puddle                               259 k
 python-swiftclient                                         noarch                              1.2.0-2.el6                                            OpenStack-Folsom-Puddle                                46 k

Transaction Summary
===================================================================================================================================================================================================================
Install       6 Package(s)

Total download size: 1.9 M
Installed size: 2.3 M
Is this ok [y/N]: N
Exiting on user Command



The package python-keystone-auth-token installed as python-keystone

Comment 9 Pete Zaitcev 2013-01-19 05:38:01 UTC
Actually, it's more like this:

================================================================================
 Package                 Arch      Version               Repository        Size
================================================================================
Installing:
 python-keystone         noarch    2012.2.1-1.el6        epel             260 k
Installing for dependencies:
 MySQL-python            x86_64    1.2.3-0.3.c1.1.el6    rhel-internal     86 k
 PyPAM                   x86_64    0.5.0-12.el6          rhel-internal     23 k
 python-decorator        noarch    3.0.1-3.1.el6         rhel-internal     14 k
 python-iso8601          noarch    0.1.4-2.el6           epel              12 k
 python-memcached        noarch    1.43-6.el6            rhel-internal     32 k
 python-migrate          noarch    0.6-6.el6             epel             208 k
 python-passlib          noarch    1.5.3-1.el6           epel             290 k
 python-routes1.12       noarch    1.12.3-4.el6          epel             691 k
 python-sqlalchemy       noarch    0.5.5-3.el6_2         rhel-internal    1.3 M
 python-sqlalchemy0.7    x86_64    0.7.8-1.el6           epel             2.1 M

Transaction Summary
================================================================================
Install      11 Package(s)

Total download size: 5.0 M
Installed size: 25 M
Is this ok [y/N]: 

And none of that junk is actually needed to run Swift (the box where it's
demonstrated ran Swift just fine without). It's ridiculous.

Comment 11 errata-xmlrpc 2013-02-14 18:23:03 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/RHBA-2013-0260.html


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