rcbops / chef-cookbooks

RCB OPS - Chef Cookbooks
Other
118 stars 102 forks source link

Centos Packaging python-swiftclient #712

Closed cjoelrun closed 10 years ago

cjoelrun commented 10 years ago

Upstream centos packaging is missing pyOpenSSL

2013-12-10 10:34:34,168 rcbops.qa INFO: ================================================================================
2013-12-10 10:34:34,168 rcbops.qa INFO: Error executing action `upgrade` on resource 'package[python-swiftclient]'
2013-12-10 10:34:34,168 rcbops.qa INFO: ================================================================================
2013-12-10 10:34:34,169 rcbops.qa INFO:
2013-12-10 10:34:34,169 rcbops.qa INFO:
2013-12-10 10:34:34,169 rcbops.qa INFO: Chef::Exceptions::Exec
2013-12-10 10:34:34,170 rcbops.qa INFO: ----------------------
2013-12-10 10:34:34,170 rcbops.qa INFO: returned 1, expected 0
2013-12-10 10:34:34,170 rcbops.qa INFO:
2013-12-10 10:34:34,170 rcbops.qa INFO:
2013-12-10 10:34:34,171 rcbops.qa INFO: Resource Declaration:
2013-12-10 10:34:34,171 rcbops.qa INFO: ---------------------
2013-12-10 10:34:34,171 rcbops.qa INFO: # In /var/chef/cache/cookbooks/glance/recipes/glance-common.rb
2013-12-10 10:34:34,172 rcbops.qa INFO:
2013-12-10 10:34:34,172 rcbops.qa INFO: 42:   package pkg do
2013-12-10 10:34:34,172 rcbops.qa INFO: 43:     action node["osops"]["do_package_upgrades"] == true ? :upgrade : :install
2013-12-10 10:34:34,172 rcbops.qa INFO: 44:     options platform_options["package_options"]
2013-12-10 10:34:34,173 rcbops.qa INFO: 45:   end
2013-12-10 10:34:34,173 rcbops.qa INFO: 46: end
2013-12-10 10:34:34,173 rcbops.qa INFO:
2013-12-10 10:34:34,173 rcbops.qa INFO:
2013-12-10 10:34:34,173 rcbops.qa INFO:
2013-12-10 10:34:34,174 rcbops.qa INFO: Compiled Resource:
2013-12-10 10:34:34,174 rcbops.qa INFO: ------------------
2013-12-10 10:34:34,174 rcbops.qa INFO: # Declared in /var/chef/cache/cookbooks/glance/recipes/glance-common.rb:42:in `block in from_file'
2013-12-10 10:34:34,174 rcbops.qa INFO:
2013-12-10 10:34:34,174 rcbops.qa INFO: package("python-swiftclient") do
2013-12-10 10:34:34,175 rcbops.qa INFO: action [:upgrade]
2013-12-10 10:34:34,175 rcbops.qa INFO: retries 0
2013-12-10 10:34:34,175 rcbops.qa INFO: retry_delay 2
2013-12-10 10:34:34,175 rcbops.qa INFO: package_name "python-swiftclient"
2013-12-10 10:34:34,175 rcbops.qa INFO: version "1.8.0-1.el6"
2013-12-10 10:34:34,176 rcbops.qa INFO: cookbook_name "glance"
2013-12-10 10:34:34,176 rcbops.qa INFO: recipe_name "glance-common"
2013-12-10 10:34:34,176 rcbops.qa INFO: end

[root@qa-centos-pool825 yum.repos.d]# yum install python-swiftclient
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.cisp.com
 * epel: mirror.steadfast.net
 * extras: mirror.anl.gov
 * updates: mirrors.serveraxis.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-swiftclient.noarch 0:1.4.0-1.el6 will be updated
---> Package python-swiftclient.noarch 0:1.8.0-1.el6 will be an update
--> Processing Dependency: pyOpenSSL >= 0.12 for package: python-swiftclient-1.8.0-1.el6.noarch
--> Finished Dependency Resolution
Error: Package: python-swiftclient-1.8.0-1.el6.noarch (epel-openstack)
           Requires: pyOpenSSL >= 0.12
           Installed: pyOpenSSL-0.10-2.el6.x86_64 (@base)
               pyOpenSSL = 0.10-2.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
breu commented 10 years ago

This has been resolved upstream

[root@breu-mini-centos-api1 ~]# yum install python-swiftclient
Loaded plugins: fastestmirror
Determining fastest mirrors
 * epel: fedora-epel.mirror.lstn.net
base                                                                                                                                                 | 3.7 kB     00:00
base/primary_db                                                                                                                                      | 4.4 MB     00:00
epel                                                                                                                                                 | 4.2 kB     00:00
epel/primary_db                                                                                                                                      | 5.7 MB     00:01
epel-openstack                                                                                                                                       | 2.9 kB     00:00
epel-openstack/primary_db                                                                                                                            | 1.0 MB     00:00
extras                                                                                                                                               | 3.4 kB     00:00
extras/primary_db                                                                                                                                    |  18 kB     00:00
rpc-extras                                                                                                                                           | 1.2 kB     00:00
rpc-extras/primary                                                                                                                                   | 3.2 kB     00:00
rpc-extras                                                                                                                                                            19/19
updates                                                                                                                                              | 3.4 kB     00:00
updates/primary_db                                                                                                                                   | 128 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-swiftclient.noarch 0:1.4.0-1.el6 will be updated
---> Package python-swiftclient.noarch 0:1.8.0-1.el6 will be an update
--> Processing Dependency: pyOpenSSL >= 0.12 for package: python-swiftclient-1.8.0-1.el6.noarch
--> Running transaction check
---> Package pyOpenSSL.x86_64 0:0.10-2.el6 will be updated
---> Package pyOpenSSL.x86_64 0:0.13.1-1.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================
 Package                                       Arch                              Version                                    Repository                                 Size
============================================================================================================================================================================
Updating:
 python-swiftclient                            noarch                            1.8.0-1.el6                                epel-openstack                             54 k
Updating for dependencies:
 pyOpenSSL                                     x86_64                            0.13.1-1.el6                               epel-openstack                            129 k

Transaction Summary
============================================================================================================================================================================
Upgrade       2 Package(s)

Total download size: 184 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): pyOpenSSL-0.13.1-1.el6.x86_64.rpm                                                                                                             | 129 kB     00:00
(2/2): python-swiftclient-1.8.0-1.el6.noarch.rpm                                                                                                     |  54 kB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                       284 kB/s | 184 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : pyOpenSSL-0.13.1-1.el6.x86_64                                                                                                                            1/4
  Updating   : python-swiftclient-1.8.0-1.el6.noarch                                                                                                                    2/4
  Cleanup    : python-swiftclient-1.4.0-1.el6.noarch                                                                                                                    3/4
  Cleanup    : pyOpenSSL-0.10-2.el6.x86_64                                                                                                                              4/4
  Verifying  : python-swiftclient-1.8.0-1.el6.noarch                                                                                                                    1/4
  Verifying  : pyOpenSSL-0.13.1-1.el6.x86_64                                                                                                                            2/4
  Verifying  : pyOpenSSL-0.10-2.el6.x86_64                                                                                                                              3/4
  Verifying  : python-swiftclient-1.4.0-1.el6.noarch                                                                                                                    4/4

Updated:
  python-swiftclient.noarch 0:1.8.0-1.el6

Dependency Updated:
  pyOpenSSL.x86_64 0:0.13.1-1.el6

Complete!

Can you verify?

cloudnull commented 10 years ago

resolved in upstream packaging.