Hi there,

I am trying to build OpenShift Origin v3.6 on s390x architecture and
getting this error:

/============================================/
# make release
OS_ONLY_BUILD_PLATFORMS='linux/s390x' hack/build-rpm-release.sh
[INFO] Building Origin release RPMs with tito...
Creating output directory: /tmp/tito
OS_GIT_VERSION::v3.6.0+5dd3b20-1
OS_GIT_MINOR::6+
OS_GIT_COMMIT::5dd3b20
OS_GIT_MAJOR::3
OS_GIT_TREE_STATE::clean
Tagging new version of origin: 0.0.1 -> 3.6.0-1.1.5dd3b20
Traceback (most recent call last):
  File "/usr/bin/tito", line 5, in <module>
    pkg_resources.run_script('tito==0.6.10', 'tito')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in
run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1462, in
run_script
    exec_(script_code, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 41, in
exec_
    exec("""exec code in globs, locs""")
  File "<string>", line 1, in <module>
  File
"/usr/lib/python2.7/site-packages/tito-0.6.10-py2.7.egg/EGG-INFO/scripts/tito",
line 23, in <module>

  File "build/bdist.linux-s390x/egg/tito/cli.py", line 203, in main
  File "build/bdist.linux-s390x/egg/tito/cli.py", line 671, in main
  File "build/bdist.linux-s390x/egg/tito/tagger/main.py", line 114, in run
  File "/root/go/src/
github.com/openshift/origin/.tito/lib/origin/tagger/__init__.py", line 40,
in _tag_release
    super(OriginTagger, self)._tag_release()
  File "build/bdist.linux-s390x/egg/tito/tagger/main.py", line 136, in
_tag_release
  File "build/bdist.linux-s390x/egg/tito/tagger/main.py", line 555, in
_get_new_tag
TypeError: _get_tag_for_version() takes exactly 2 arguments (3 given)
[ERROR] PID 16246: hack/build-rpm-release.sh:22: `tito tag
--use-version="${OS_RPM_VERSION}" --use-release="${OS_RPM_RELEASE}"
--no-auto-changelog --offline` exited with status 1.
[INFO]          Stack Trace:
[INFO]            1: hack/build-rpm-release.sh:22: `tito tag
--use-version="${OS_RPM_VERSION}" --use-release="${OS_RPM_RELEASE}"
--no-auto-changelog --offline`
[INFO]   Exiting with code 1.
make: *** [build-rpms] Error 1
/============================================/

I am not sure what could be going on - few things I tried unsuccessfully
are:

1)  Edited /root/go/src/
github.com/openshift/origin/.tito/lib/origin/tagger/__init__.py to change
the signature of _get_tag_for_version to take another argument (it went
further but failed elsewhere with similar error)
2) Modified get_tag as follows but error prevailed (although slightly
different):
    def _get_tag_for_version(self, version, dummy):
        return "v{}*-1.1.5dd3b20*".format(version)

Is there a way around this error?  Can I possibly skip rpm build and focus
just on image builds (image builds seem to rely on rpm builds though)?

Thanks for any pointers.
_______________________________________________
dev mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

Reply via email to