copr builds broken

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

Bug Description

The last successful copr build was 18.3+7.g802c1d51-1.el7
 18.3+9.g2e62cb8a-1.el7 is currently failing for


The rawhide errors look to all be a result of no 'python':
+ /usr/bin/python build
BUILDSTDERR: /var/tmp/rpm-tmp.OtzNu9: line 31: /usr/bin/python: No such file or directory
might be useful for figuring out how to do that the right way.

The epel issues seem to be related to get_linux_distro.
It fails with stack trace like (cleaned up the output):

| RuntimeError: Failed running ['/usr/bin/python', './tools/render-cloudcfg', 'systemd/cloud-init.service.tmpl', 'RENDERED_TEMPDan8FYU/cloud-init.service'] [rc=1] (, Traceback (most recent call last):
| File "./tools/render-cloudcfg", line 44, in <module>
| main()
| File "./tools/render-cloudcfg", line 19, in main
| platform = util.system_info()
| File "/builddir/build/BUILD/cloud-init-18.3-9-g2e62cb8a/cloudinit/", line 627, in system_info
| 'dist': get_linux_distro()
| File "/builddir/build/BUILD/cloud-init-18.3-9-g2e62cb8a/cloudinit/", line 597, in get_linux_distro
| os_release.get('VERSION'))
| File "/usr/lib/python2.6/", line 137, in match
| return _compile(pattern, flags).match(string)
| TypeError: expected string or buffer

Related branches

Revision history for this message
Scott Moser (smoser) wrote :

Possibly related to bug 1779847.

Revision history for this message
Scott Moser (smoser) wrote :

I had started poking at this a bit yesterday, and thought about starting the python2 versus python3 thing like this:
the goal was that we'd have both py2 and py3 deps listed in the spec file and then macros would render the right one. I'm not sure if you can macro-render buildrequires or not.

that commit is pushed

Chad Smith (chad.smith)
Changed in cloud-init:
status: New → In Progress
assignee: nobody → Chad Smith (chad.smith)
importance: Undecided → High
Revision history for this message
Lars Kellogg-Stedman (larsks) wrote :

Scott, I sent this to you on irc the other day, but I'm not sure you saw it:

Also some good information here:

Revision history for this message
Server Team CI bot (server-team-bot) wrote :

This bug is fixed with commit d41cc82d to cloud-init on branch master.
To view that commit see the following URL:

Changed in cloud-init:
status: In Progress → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote : Fixed in cloud-init version 18.4.

This bug is believed to be fixed in cloud-init in version 18.4. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in cloud-init:
status: Fix Committed → Fix Released
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.