https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Bug ID: 1306214 Summary: kubernetes for powerpc arches Product: Fedora Version: rawhide Component: kubernetes Assignee: jchaloup@redhat.com Reporter: menantea@linux.vnet.ibm.com QA Contact: extras-qa@fedoraproject.org CC: eparis@redhat.com, golang@lists.fedoraproject.org, jcajka@redhat.com, jchaloup@redhat.com, nhorman@redhat.com, vbatts@redhat.com
It seems that kubernetes have been tested upstream for powerpc64le secondary arch: https://github.com/kubernetes/kubernetes/pull/18417
Could you please update kubernetes version to have a chance to get it built on secondary arches for f24 ?
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Fixed In Version| |kubernetes-1.2.0-0.7.alpha6 | |.gitf0cd09a.fc24 Resolution|--- |CURRENTRELEASE Last Closed| |2016-02-22 09:23:28
--- Comment #1 from Jan Chaloupka jchaloup@redhat.com --- The current srpm carries support for ppc64el. Although, have not tried to build k8s on the architecture.
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Menanteau Guy menantea@linux.vnet.ibm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |NEW Version|rawhide |24 Resolution|CURRENTRELEASE |--- Keywords| |Reopened
--- Comment #2 from Menanteau Guy menantea@linux.vnet.ibm.com --- Following kubernetes k8s upstream commits are needed: 4774e7146e0980b0ab9e0a8027e50254e7f6945d c969c041e2cda926e6d582175bea565353aed040
The only way I found to get it built is to point on 1.2.0-alpha.8 version got from https://github.com/kubernetes/kubernetes/tree/v1.2.0-alpha.8
Patch keep-solid-port-for-kube-proxy.patch seems to not apply anymore. This needs to be checked.
Also to have fedora ppc64le built, I needed to add two patches and to change the spec file. This needs to be reviewed.
- ppc64le-redhat-linux-gcc-path.patch This patch to change "powerpc64le-linux-gnu-gcc" reference by "ppc64le-redhat-linux-gnu" This is specific to fedora and I guess a more elegant way exists to change this and I am not sure if the problem is not in rpm macros. rpm --eval "%{_target_platform}" returns "ppc64le-redhat-linux-gnu"
in /usr/lib/rpm/macros %host_vendor redhat
dnf list rpm Installed Packages rpm.ppc64le 4.13.0-0.rc1.25.fc24 @rawhide
- golang-1.6-kube-path.patch This patch to change the go binary path of golang 1.6 Again, it seems to be specific to ppc64le as this path is not the same for x86-64 build on primary with the same golang... This needs to be investigated.
koji build --scratch f24 /root/test/kubernetes-1.2.0-gm_0.14.alpha8.f24.src.rpm on primary: http://koji.fedoraproject.org/koji/taskinfo?taskID=13308156 on secondary: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3215054
Note that only ppc64le builds (no ppc64). I just tried to build but did not do any functional tests.
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #3 from Menanteau Guy menantea@linux.vnet.ibm.com --- Created attachment 1135225 --> https://bugzilla.redhat.com/attachment.cgi?id=1135225&action=edit changed spec
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #4 from Menanteau Guy menantea@linux.vnet.ibm.com --- Created attachment 1135226 --> https://bugzilla.redhat.com/attachment.cgi?id=1135226&action=edit target path patch
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #5 from Menanteau Guy menantea@linux.vnet.ibm.com --- Created attachment 1135227 --> https://bugzilla.redhat.com/attachment.cgi?id=1135227&action=edit golang path patch
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Dan Horák dan@danny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dan@danny.cz Blocks| |1051573 (PPC64LETracker)
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1051573 [Bug 1051573] ppc64le tracker bug
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #6 from Jan Chaloupka jchaloup@redhat.com --- ose/origin 1.1.4 release picks upstream's 91d3e753a4eca4e87462b7c9e5391ec94bb792d9 commit which already carries the patch.
Once kubernetes gets updated, supported architectures get extended to ppc64le as well.
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Fixed In Version|kubernetes-1.2.0-0.7.alpha6 |kubernetes-1.2.0-0.16.alpha |.gitf0cd09a.fc24 |6.git4a3f9c5.fc24 Resolution|--- |RAWHIDE Last Closed|2016-02-22 09:23:28 |2016-03-30 11:12:03
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Menanteau Guy menantea@linux.vnet.ibm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |NEW Resolution|RAWHIDE |---
--- Comment #7 from Menanteau Guy menantea@linux.vnet.ibm.com --- I did a scratch build on ppc64le based on primary source and it failed. see http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3315227
I applied the 2 patches I previously attached on this bug and I changed the spec file to handle the 2 new patches and add the following change on kube path and run a new koji scratch build. koji scratch build of kubernetes patched built successfully. see http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3315264
kube path changed in spec: # fix golang 1.6 kube path for fedora ppc64le %if 0%{?fedora_on_ppc64le} output_path="${KUBE_OUTPUT_BINPATH}" %else output_path="${KUBE_OUTPUT_BINPATH}/$(kube::golang::current_platform)" %endif
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #8 from Menanteau Guy menantea@linux.vnet.ibm.com --- Could it be possible to have these patches quickly in order to add kubernetes package in fedora 24 for secondary. Thanks
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Menanteau Guy menantea@linux.vnet.ibm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1071880 (PPCTracker)
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1071880 [Bug 1071880] (PPCTracker) Fedora for PowerPC architectures (ppc64,ppc64le): Bug Tracker
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #9 from Jan Chaloupka jchaloup@redhat.com --- Does the f24 build needs to be in updates or raw build in koji is enough?
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #11 from Fedora Update System updates@fedoraproject.org --- kubernetes-1.2.0-0.19.git4a3f9c5.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-2adf0b1c86
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #10 from Dan Horák dan@danny.cz --- We need all builds to go thru bodhi to be available on secondary arches.
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #12 from Fedora Update System updates@fedoraproject.org --- kubernetes-1.2.0-0.19.git4a3f9c5.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-2adf0b1c86
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Menanteau Guy menantea@linux.vnet.ibm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |NEW
--- Comment #13 from Menanteau Guy menantea@linux.vnet.ibm.com --- In the patch attachment 1135226 I proposed, I set gcc for ppc64le kubernetes. It is a an error as we need to used "go" now.
The correct patch should have been: diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh --- a/hack/lib/golang.sh +++ b/hack/lib/golang.sh @@ -222,9 +222,6 @@ kube::golang::set_platform_envs() { elif [[ ${platform} == "linux/arm64" ]]; then export CGO_ENABLED=1 export CC=aarch64-linux-gnu-gcc - elif [[ ${platform} == "linux/ppc64le" ]]; then - export CGO_ENABLED=1 - export CC=ppc64le-redhat-linux-gcc fi }
Sorry for the inconvenient.
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Jan Chaloupka jchaloup@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |menantea@linux.vnet.ibm.com Flags| |needinfo?(menantea@linux.vn | |et.ibm.com)
--- Comment #14 from Jan Chaloupka jchaloup@redhat.com --- So what is the correct path that needs to be applied?
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Menanteau Guy menantea@linux.vnet.ibm.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment|0 |1 #1135226 is| | obsolete| | Flags|needinfo?(menantea@linux.vn | |et.ibm.com) |
--- Comment #15 from Menanteau Guy menantea@linux.vnet.ibm.com --- Created attachment 1150315 --> https://bugzilla.redhat.com/attachment.cgi?id=1150315&action=edit Use golang as compiler for ppc64le
The correct patch is this one.
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #16 from Fedora Update System updates@fedoraproject.org --- kubernetes-1.2.0-0.20.git4a3f9c5.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ec72317438
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #17 from Fedora Update System updates@fedoraproject.org --- kubernetes-1.2.0-0.20.git4a3f9c5.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ec72317438
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
--- Comment #18 from Fedora Update System updates@fedoraproject.org --- kubernetes-1.2.0-0.20.git4a3f9c5.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1306214
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version|kubernetes-1.2.0-0.16.alpha |kubernetes-1.2.0-0.16.alpha |6.git4a3f9c5.fc24 |6.git4a3f9c5.fc24 | |kubernetes-1.2.0-0.20.git4a | |3f9c5.fc24 Resolution|--- |ERRATA Last Closed|2016-03-30 11:12:03 |2016-05-07 07:54:38
golang@lists.fedoraproject.org