missing python library pycrypto in requireements.txt

Bug #1578047 reported by Seungkyu Ahn
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Davanum Srinivas (DIMS)
Nominated for Mitaka by Takashi Natsume

Bug Description

When I tried to install a nova-compute the way which is using python source,
you would meet following log.

It needs to be pycrypto in requirements.txt file.

May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova sys.exit(main())
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova File "/opt/stack/nova/nova/cmd/compute.py", line 73, in main
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova db_allowed=CONF.conductor.use_local)
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova File "/opt/stack/nova/nova/service.py", line 225, in create
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova db_allowed=db_allowed)
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova File "/opt/stack/nova/nova/service.py", line 101, in __init__
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova manager_class = importutils.import_class(self.manager_class_name)
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 30, in import_clas
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova __import__(mod_str)
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova File "/opt/stack/nova/nova/compute/manager.py", line 56, in <module>
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova from nova.cloudpipe import pipelib
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova File "/opt/stack/nova/nova/cloudpipe/pipelib.py", line 33, in <module>
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova from nova import crypto
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova File "/opt/stack/nova/nova/crypto.py", line 29, in <module>
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova from Crypto.PublicKey import RSA
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova ImportError: No module named Crypto.PublicKey
May 04 11:39:04 compute01 nova-compute[6270]: 2016-05-04 11:39:04.822 6270 ERROR nova

Seungkyu Ahn (seungkyua)
Changed in nova:
assignee: nobody → Seungkyu Ahn (seungkyua)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/313002

Changed in nova:
assignee: Seungkyu Ahn (seungkyua) → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/313002
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=82b525f1fa3d279bc2558a941067d0f02b60fac2
Submitter: Jenkins
Branch: master

commit 82b525f1fa3d279bc2558a941067d0f02b60fac2
Author: Davanum Srinivas <email address hidden>
Date: Thu May 5 10:29:03 2016 -0400

    Add pycrypto explicitly

    Running "tox -e pip-missing-reqs" was broken around the
    time of the Mitaka release and we missed this requirement.

    nova/crypto.py:29 dist=pycrypto module=Crypto.PublicKey.RSA

    Essentially, since we are constrained using upper-constraints.txt
    and the upper-constraints.txt has an entry for pycrypto, we
    do not see a problem anywhere.

    The dependency was introduced in:
    If88beeb3983705621fe736995939ac20b2daf1f3

    Closes-Bug: #1578047
    Change-Id: I12978a6ca49524aa2256930617a259023e6908eb

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/313224

Revision history for this message
Seungkyu Ahn (seungkyua) wrote :

hmm. I'll trying to fix that today. but someone already fixed that.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/mitaka)

Reviewed: https://review.openstack.org/313224
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b79eec04ab75fa5e4c9a6aaedbcfb82ecd9c4444
Submitter: Jenkins
Branch: stable/mitaka

commit b79eec04ab75fa5e4c9a6aaedbcfb82ecd9c4444
Author: Davanum Srinivas <email address hidden>
Date: Thu May 5 10:29:03 2016 -0400

    Add pycrypto explicitly

    Running "tox -e pip-missing-reqs" was broken around the
    time of the Mitaka release and we missed this requirement.

    nova/crypto.py:29 dist=pycrypto module=Crypto.PublicKey.RSA

    Essentially, since we are constrained using upper-constraints.txt
    and the upper-constraints.txt has an entry for pycrypto, we
    do not see a problem anywhere.

    The dependency was introduced in:
    If88beeb3983705621fe736995939ac20b2daf1f3

    Closes-Bug: #1578047
    Change-Id: I12978a6ca49524aa2256930617a259023e6908eb
    (cherry picked from commit 82b525f1fa3d279bc2558a941067d0f02b60fac2)

tags: added: in-stable-mitaka
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/nova 14.0.0.0b1

This issue was fixed in the openstack/nova 14.0.0.0b1 development milestone.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/nova 13.1.0

This issue was fixed in the openstack/nova 13.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.