-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Enable federation for origin clusters #14239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@marun -- so far looks fine. i thought the second commit would have a dockerfile? |
@stevekuznetsov I can't seem to get ldflags to work, the federation image names end up blank. Help? |
hack/common.sh
Outdated
@@ -669,6 +669,8 @@ readonly -f os::build::save_version_vars | |||
function os::build::get_product_vars() { | |||
export OS_BUILD_LDFLAGS_IMAGE_PREFIX="${OS_IMAGE_PREFIX:-"openshift/origin"}" | |||
export OS_BUILD_LDFLAGS_DEFAULT_IMAGE_STREAMS="${OS_BUILD_LDFLAGS_DEFAULT_IMAGE_STREAMS:-"centos7"}" | |||
export OS_BUILD_LDFLAGS_FEDERATION_SERVER_IMAGE_NAME="${OS_BUILD_LDFLAGS_FEDERATION_SERVER_IMAGE_openshift:-"openshift/origin-federation"}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be "${OS_BUILD_LDFLAGS_IMAGE_PREFIX}-federation"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
hack/common.sh
Outdated
@@ -716,6 +718,8 @@ function os::build::ldflags() { | |||
ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/vendor/k8s.io/client-go/pkg/version.gitVersion" "${KUBE_GIT_VERSION}")) | |||
ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/vendor/k8s.io/client-go/pkg/version.buildDate" "${buildDate}")) | |||
ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/vendor/k8s.io/client-go/pkg/version.gitTreeState" "clean")) | |||
ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/cmd/kubefed.serverImageName" "${OS_BUILD_LDFLAGS_FEDERATION_SERVER_IMAGE_NAME}")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should work -- maybe it's weird since it's also the entrypoint? @smarterclayton thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've switched to target the pkg instead of the entrypoint. Not that I can test it - the new release build mechanism has hosed what was formerly a working dev setup.
# | ||
# The standard name for this image is openshift/origin-federation | ||
# | ||
FROM openshift/origin-base |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you expect the hyperkube
binary to be shipped to customers it will be in the RPM so install using yum
a la origin-pod
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smarterclayton I'm not sure there's a point in packaging hyperkube, given that this is unlikely to be the method for shipping the federation servers in the future. What's the simplest acceptable solution to getting this image built for 3.6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the simplest acceptable solution to getting this image built for 3.6?
To be clear... my comment is prefixed with that "IF" for a reason. If we are shipping this, we need to RPM install it. If we are not, just keep doing what you're doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is hyperkube a symlink?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is not a symlink.
@stevekuznetsov Where are the docs for the new build mechanisms? In addition to requiring the manual installation of a bunch of dependencies via yum and imagebuilder via go get, there is apparently a dependency on being able to an authorized pull of the openshift/source image?
|
@marun I needed to run hack/build-base-images.sh before I could run make release (with the same error you are seeing). |
@marun you should be able to divorce yourself from any dependencies with our release container: OS_BUILD_ENV_PRESERVE="_output/local" hack/env OS_ONLY_BUILD_PLATFORMS="linux/amd64" make release I'll open a PR to see if we can make at least some of those env vars default so you don't have to set them. |
[test] |
Evaluated for origin test up to cac7f93 |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1708/) (Base Commit: 483738e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM
LGTM |
[merge][severity: bug] eparis: I'm really sorry if this does break the actual build... |
Evaluated for origin merge up to cac7f93 |
@marun seeing the following error when trying to join clusters to the federation:
|
@marun I was able to resolve by running:
I suspect there are more limited permissions rather than admin that I could have added, but this unblocked my testing. |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/801/) (Base Commit: 1d30fc4) (Extended Tests: bug) (Image: devenv-rhel7_6273) |
woot! |
well done Maru
…On Fri, May 26, 2017 at 10:34 AM, Derek Carr ***@***.***> wrote:
woot!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14239 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_p-LOXPZb461mc9S3xgdfEsYzSqCSks5r9uL5gaJpZM4Ne3vA>
.
|
Follow up item: the federation image is 800M of unshared layers with the rest of OpenShift (i.e. if you download origin onto a node, to get federation you have to get 800M of additional content). That sucks and we need to fix it in a follow up. |
TODO