Skip to content
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

Updating e2e docs with instructions on running federation tests #27072

Merged
merged 2 commits into from
Jun 10, 2016

Conversation

colhom
Copy link

@colhom colhom commented Jun 8, 2016

Last two commits are for review. Depends on #26951

\cc @madhusudancs @quinton-hoole @nikhiljindal

Analytics

@k8s-bot
Copy link

k8s-bot commented Jun 8, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

Otherwise, if this message is too spammy, please complain to ixdy.

2 similar comments
@k8s-bot
Copy link

k8s-bot commented Jun 8, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

Otherwise, if this message is too spammy, please complain to ixdy.

@k8s-bot
Copy link

k8s-bot commented Jun 8, 2016

Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test".
(Note: "add to whitelist" is no longer supported. Please update configurations in kubernetes/test-infra/jenkins/job-configs/kubernetes-jenkins-pull instead.)

This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry.

Otherwise, if this message is too spammy, please complain to ixdy.

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. release-note-label-needed labels Jun 8, 2016
@nikhiljindal
Copy link
Contributor

ok to test

@nikhiljindal nikhiljindal assigned nikhiljindal and ghost and unassigned brendandburns Jun 8, 2016
@nikhiljindal nikhiljindal added this to the v1.3 milestone Jun 8, 2016
@nikhiljindal nikhiljindal added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Jun 8, 2016
@nikhiljindal nikhiljindal changed the title Federation e2e docs Updating e2e docs with instructions on running federation tests Jun 8, 2016
@nikhiljindal
Copy link
Contributor

Added the release note label and updated the title accordingly

@nikhiljindal
Copy link
Contributor

@colhom Is it possible to remove dependency on #26951?
That way will be able to merge this PR independently.

@nikhiljindal
Copy link
Contributor

cc @kubernetes/sig-cluster-federation

@colhom colhom force-pushed the federation-e2e-docs branch from ce97237 to 546fde3 Compare June 8, 2016 21:45
@colhom
Copy link
Author

colhom commented Jun 8, 2016

@nikhiljindal dependency has been removed with some minor re-wording.

@colhom
Copy link
Author

colhom commented Jun 8, 2016

I was thinking I would squash this in two commits. one separating out the federation image push logic, the second with the docs additions


* You can quickly recompile the e2e testing framework via `go install ./test/e2e`. This will not do anything besides allow you to verify that the go code compiles.

* If you want to run your run e2e testing framework, you can do so via `make WHAT=test/e2e/e2e.test` and then re-running the ginkgo tests.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run your run -> run your?

@nikhiljindal
Copy link
Contributor

Yes squashing to 2 commits sg.

Also you need to run the standard scripts to regenerate the TOC in this doc (unit tests are failing)

@colhom
Copy link
Author

colhom commented Jun 9, 2016

@nikhiljindal review items have been addressed.


* **If `KUBERNETES_PROVIDER=gce` or `KUBERNETES_PROVIDER=gke`**:

You can simply set your push repo base based on your project name, and the necessary repositorieswill be auto-created when you
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repositories will

@colhom colhom force-pushed the federation-e2e-docs branch from 67cc9e9 to d1be7fb Compare June 9, 2016 22:02

source "${KUBE_ROOT}/federation/cluster/common.sh"

FEDERATION_IMAGE_TAG="$(kube::release::semantic_image_tag_version)" push-federated-images
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for being picky, but while you are at it, will be great if you can rename "push-federated-images" to push-federation-images" :)

@colhom colhom force-pushed the federation-e2e-docs branch from d1be7fb to 83907c7 Compare June 9, 2016 22:06
@colhom colhom force-pushed the federation-e2e-docs branch from 83907c7 to 5f7c7ad Compare June 9, 2016 22:12
@colhom
Copy link
Author

colhom commented Jun 9, 2016

@nikhiljindal picky nits have been addressed ;) All squashed up.

@@ -36,14 +36,14 @@ if [[ "${FEDERATION:-}" == "true" ]];then
# select each one and call federated-up
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix this to say federation-up

@nikhiljindal
Copy link
Contributor

Few nits, which are fine to be fixed in another PR.
Adding LGTM label.
Thanks!

@nikhiljindal nikhiljindal unassigned ghost Jun 9, 2016
@nikhiljindal nikhiljindal added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 9, 2016
@k8s-bot
Copy link

k8s-bot commented Jun 9, 2016

GCE e2e build/test passed for commit 5f7c7ad.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 6a388d4 into kubernetes:master Jun 10, 2016
@kshafiee
Copy link
Contributor

kshafiee commented Sep 27, 2016

@colhom I created a repo on quay.io and I am trying to push-federation-images.sh using FEDERATION_PUSH_REPO_BASE="quay.io/kshafiee/kshafiee"
On my build machine I used "docker login quay.io" to login.
Any ideas why I keep getting "error parsing HTTP 400 response body: invalid character '<' ..." ?

@colhom colhom deleted the federation-e2e-docs branch September 27, 2016 20:31
@colhom
Copy link
Author

colhom commented Sep 27, 2016

@kshafiee can you run build/push-federation-images.sh and paste in what you get? At least theoretically, if you did docker login successfully with quay, this should work.

@kshafiee
Copy link
Contributor

kshafiee commented Sep 27, 2016

Thanks @colhom
ubuntu@ubuntu:/work/src/k8s.io/kubernetes$ docker login quay.io
Username (kshafiee):
Password:
Login Succeeded
ubuntu@ubuntu:
/work/src/k8s.io/kubernetes$ echo $FEDERATION_PUSH_REPO_BASE
quay.io/kshafiee/kshafiee
ubuntu@ubuntu:~/work/src/k8s.io/kubernetes$ build/push-federation-images.sh
Flag shorthand -c has been deprecated, please use --client instead.
Load: build/../build/../cluster/../cluster/gce/../../cluster/gce/../../cluster/../cluster/../_output/release-stage/server/linux-amd64/kubernetes/server/bin/federation-apiserver.tar
2e70bd6b8087: Loading layer [==================================================>] 125.9 MB/125.9 MB
Tag: gcr.io/google_containers/federation-apiserver:e574d9c3bee434959927ec8d30994870 --> quay.io/kshafiee/kshafiee/federation-apiserver:v1.4.0-alpha.2.1193_febe9adcf0ebd0-dirty
Warning: '-f' is deprecated, it will be removed soon. See usage.
Push: quay.io/kshafiee/kshafiee/federation-apiserver:v1.4.0-alpha.2.1193_febe9adcf0ebd0-dirty
The push refers to a repository [quay.io/kshafiee/kshafiee/federation-apiserver]
2e70bd6b8087: Preparing
5f70bf18a086: Preparing
1834950e52ce: Preparing
error parsing HTTP 400 response body: invalid character '<' looking for beginning of value: "\n<title>400 Bad Request</title>\n

Bad Request

\n

The browser (or proxy) sent a request that this server could not understand.

\n"

@colhom
Copy link
Author

colhom commented Sep 27, 2016

What docker version do you have?

On Sep 27, 2016 5:09 PM, "kshafiee" notifications@github.com wrote:

Thanks @colhom https://github.com/colhom
ubuntu@ubuntu:/work/src/k8s.io/kubernetes$ docker login quay.io
Username (kshafiee):
Password:
Login Succeeded
ubuntu@ubuntu:
/work/src/k8s.io/kubernetes$ echo
$FEDERATION_PUSH_REPO_BASE
quay.io/kshafiee/kshafiee
ubuntu@ubuntu:~/work/src/k8s.io/kubernetes$ build/push-federation-images.
sh
Flag shorthand -c has been deprecated, please use --client instead.
Load: build/../build/../cluster/../cluster/gce/../../cluster/gce/
../../cluster/../cluster/../_output/release-stage/server/
linux-amd64/kubernetes/server/bin/federation-apiserver.tar
2e70bd6b8087: Loading layer [==================================================>]
125.9 MB/125.9 MB
Tag: gcr.io/google_containers/federation-apiserver:
e574d9c3bee434959927ec8d30994870 --> quay.io/kshafiee/kshafiee/
federation-apiserver:v1.4.0-alpha.2.1193_febe9adcf0ebd0-dirty
Warning: '-f' is deprecated, it will be removed soon. See usage.
Push: quay.io/kshafiee/kshafiee/federation-apiserver:v1.4.0-
alpha.2.1193_febe9adcf0ebd0-dirty
The push refers to a repository [quay.io/kshafiee/kshafiee/
federation-apiserver]
2e70bd6b8087: Preparing
5f70bf18a086: Preparing
1834950e52ce: Preparing
error parsing HTTP 400 response body: invalid character '<' looking for
beginning of value: "\n400 Bad Request\n
Bad Request\n

The browser (or proxy) sent a request that this server could not
understand.
\n"


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#27072 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBnVAemH4a_XXHl4rQbwNv8beDFutC_ks5quYYIgaJpZM4IxWO_
.

@kshafiee
Copy link
Contributor

@colhom I'm using:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4

@colhom
Copy link
Author

colhom commented Sep 28, 2016

@kshafiee so sorry, I did not read your original comment carefully.

FEDERATION_PUSH_REPO_BASE="quay.io/kshafiee/kshafiee"

This should be:

FEDERATION_PUSH_REPO_BASE="quay.io/kshafiee"

federation image repo docs

xingzhou pushed a commit to xingzhou/kubernetes that referenced this pull request Dec 15, 2016
Automatic merge from submit-queue

Updating e2e docs with instructions on running federation tests

Last two commits are for review. Depends on kubernetes#26951

\cc @madhusudancs @quinton-hoole @nikhiljindal 
 
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants