CentOS7: Can't build rpms without python-oauthlib
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Undecided
|
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/
from cloudinit import util
File "/root/
from cloudinit import url_helper
File "/root/
import oauthlib.oauth1 as oauth1
ImportError: No module named 'oauthlib'
make: *** [rpm] Error 1
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 28 lines (+9/-1)1 file modifiedcloudinit/url_helper.py (+9/-1)
Changed in cloud-init: | |
assignee: | nobody → Chad Smith (chad.smith) |
status: | New → In Progress |
Changed in cloud-init: | |
status: | In Progress → Fix Committed |
Changed in cloud-init: | |
status: | Fix Committed → Fix Released |
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.