copr builds broken

Bug #1781229 reported by Scott Moser on 2018-07-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
High
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
https://copr.fedorainfracloud.org/coprs/g/cloud-init/cloud-init-dev/build/775930/

epel-6-i386
epel-6-x86_64
fedora-rawhide-i386
fedora-rawhide-x86_64
fedora-rawhide-ppc64le

The rawhide errors look to all be a result of no 'python':
+ /usr/bin/python setup.py build
BUILDSTDERR: /var/tmp/rpm-tmp.OtzNu9: line 31: /usr/bin/python: No such file or directory

https://fedoraproject.org/wiki/Packaging:Python#Requires_and_BuildRequires_with_standardized_names
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/util.py", line 627, in system_info
| 'dist': get_linux_distro()
| File "/builddir/build/BUILD/cloud-init-18.3-9-g2e62cb8a/cloudinit/util.py", line 597, in get_linux_distro
| os_release.get('VERSION'))
| File "/usr/lib/python2.6/re.py", line 137, in match
| return _compile(pattern, flags).match(string)
| TypeError: expected string or buffer
|

Related branches

Scott Moser (smoser) wrote :

Possibly related to bug 1779847.

Scott Moser (smoser) wrote :

I had started poking at this a bit yesterday, and thought about starting the python2 versus python3 thing like this:
 http://paste.ubuntu.com/p/JbMY5wD75V/
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 https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+ref/fix/redhat-py3-spec

Chad Smith (chad.smith) on 2018-07-11
Changed in cloud-init:
status: New → In Progress
assignee: nobody → Chad Smith (chad.smith)
importance: Undecided → High
Lars Kellogg-Stedman (larsks) wrote :

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

https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package

Also some good information here:

https://fedoraproject.org/wiki/Packaging:Python

This bug is fixed with commit d41cc82d to cloud-init on branch master.
To view that commit see the following URL:
https://git.launchpad.net/cloud-init/commit/?id=d41cc82d

Changed in cloud-init:
status: In Progress → Fix Committed

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers