Bug 1313764

Summary: PyOpenSSL dependency missing in packstack
Product: Red Hat OpenStack Reporter: Prateek Arora <parora>
Component: openstack-packstackAssignee: Ivan Chavero <ichavero>
Status: CLOSED ERRATA QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0 (Kilo)CC: aortega, ealcaniz, lhh, mburns, nlevinki, parora, pmukhedk, rhos-flags, srevivo, vladimir.rusinov
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-packstack-2015.1-0.17.dev1589.g1d6372f.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-05 18:47:28 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:

Description Prateek Arora 2016-03-02 10:18:49 UTC
Description of problem:

Packstack fails installation when PyOpenSSL is not present in the system with the error

ImportError: No module named OpenSSL


Version-Release number of selected component (if applicable):
RHOS7, RHEL7


How reproducible:

Every time

Steps to Reproduce:
1. Take a system which does not have PyOpenSSL
or if it has the module(you can check it using below command)
 
rpm -qa|grep -i pyopenssl
pyOpenSSL-0.13.1-3.el7.x86_64

yum remove it

2. Register and subscribe to Openstack 7 Repos

3. Install openstack-packstack

4. Run packstack --allinone

Actual results:

ERROR:root:Failed to load plugin from file prescript_000.py
ERROR:root:Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 885, in loadPlugins
    moduleobj = __import__(moduleToLoad)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/prescript_000.py", line 36, in <module>
    from packstack.modules.ospluginutils import appendManifestFile
  File "/usr/lib/python2.7/site-packages/packstack/modules/ospluginutils.py", line 17, in <module>
    from OpenSSL import crypto
ImportError: No module named OpenSSL


Expected results:

Installation should be successful

Additional info:

Comment 2 Prateek Arora 2016-03-07 11:12:52 UTC
Hi

Do we have any update on this bug ?

Comment 3 Ivan Chavero 2016-03-14 16:29:59 UTC
Current packstack package for OSP 8 already has this dependency. Can you check again please?

Comment 5 Ivan Chavero 2016-03-19 20:29:20 UTC
I've added the dependency to the OSP 7 package, can i have acks in order to build it please?

Comment 6 Ivan Chavero 2016-03-19 21:33:21 UTC
I've changed the target release to 7.0

Comment 11 Ivan Chavero 2016-03-21 17:22:32 UTC
*** Bug 1319580 has been marked as a duplicate of this bug. ***

Comment 14 Prateek Arora 2016-03-23 13:07:12 UTC
Hi can you please rebuild the brew rpms ?

Comment 15 Prateek Arora 2016-04-15 11:40:29 UTC
Ivan 

The latest package with the resolution to this problem is not available right now. Please let me know by when would it be available ?

Comment 17 Vladimir Rusinov 2016-04-25 16:05:28 UTC
This duplicates: 1301361 which was reported earlier.

Looks like I don't have permissions to close this bug as duplicate, or at least can't figure out how to do that.

Comment 24 nlevinki 2016-10-05 10:39:23 UTC
Automation passed
https://rhos-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/RHOS/view/RHOS7/job/qe-7_director-rhel-7.2-virthost-1cont_1comp_1ceph-ipv4-vxlan-ceph-ssl/3/
using this rpm
openstack-packstack-2015.1-0.19.dev1589.g1d6372f.el7ost.noarch

Comment 26 errata-xmlrpc 2016-10-05 18:47:28 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.

https://rhn.redhat.com/errata/RHBA-2016-2016.html