CentOS7: Can't build rpms without python-oauthlib

Bug #1713760 reported by Chad Smith
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Chad Smith

Bug Description

python-oathlib is not a strict dependency of the cloud-init package, but url_helper imports it without handling ImportErrors. This causes breaks on CentOS 7 when trying to build an RPM in an environment which doesn't have oauthlib.

make rpm
python3 ./packages/brpm --distro=redhat
Traceback (most recent call last):
  File "./packages/brpm", line 27, in <module>
    from cloudinit import templater
  File "/root/cloud-init/cloudinit/templater.py", line 31, in <module>
    from cloudinit import util
  File "/root/cloud-init/cloudinit/util.py", line 48, in <module>
    from cloudinit import url_helper
  File "/root/cloud-init/cloudinit/url_helper.py", line 20, in <module>
    import oauthlib.oauth1 as oauth1
ImportError: No module named 'oauthlib'
make: *** [rpm] Error 1

Related branches

Chad Smith (chad.smith)
Changed in cloud-init:
assignee: nobody → Chad Smith (chad.smith)
status: New → In Progress
Chad Smith (chad.smith)
Changed in cloud-init:
status: In Progress → Fix Committed
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
Scott Moser (smoser) wrote : Fixed in Cloud-init 17.1

This bug is believed to be fixed in cloud-init 17.1.

If you believe otherwise, please give a justification and move the bug state to New.

Revision history for this message
James Falcon (falcojr) wrote :
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.