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

option added to set docker daemon proxy setting #70

Merged
merged 1 commit into from
Apr 16, 2019

Conversation

kunalkushwaha
Copy link
Contributor

@kunalkushwaha kunalkushwaha commented Apr 10, 2019

--docker-proxy option added to gocli run command.
This helps to set proxy setting for docker daemon
without rebuilding of base VM image.

Fixes #69 along with #71

Signed-off-by: Kunal Kushwaha kushwaha_kunal_v7@lab.ntt.co.jp

@kubevirt-bot
Copy link
Contributor

Hi @kunalkushwaha. Thanks for your PR.

I'm waiting for a kubevirt member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kubevirt-bot kubevirt-bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M labels Apr 10, 2019
@kunalkushwaha
Copy link
Contributor Author

kunalkushwaha commented Apr 10, 2019

This PR enables to overwrite provision scripts while starting k8s cluster, which is helpful in settings like docker daemon proxy settings, downloading networking [podnetwork].yaml in kubectl apply command etc
e.g.

$ ./cli run --mount-scripts /home/kunal/kubevirtci/k8s/scripts --nodes 1 --memory 5120M --cpu 5 --random-ports  --background --prefix k8s-1.10.11 --registry-volume
kubevirt_registry kubevirtci/k8s-1.10.11@sha256:b97e556795a56b9aa1763ddf3a49322b49f96877dccb7a164bbca779df078536 --ocp-port 8443

@rmohr
Copy link
Member

rmohr commented Apr 10, 2019

Avoids rebuilding of base VM image for every change in environment.

We deliberately want to rebuild the VM image. The trick is that all docker images are already cached and all rpms preinstalled. There seems to be only the issue that it fetches the flannel manifests from the internet again, that is why kubectl apply fails.

I am not against the content of this PR, we can add it, but it is not a fix for #69. We should not fetch manifests from the internet again on cluster-up.

@kunalkushwaha kunalkushwaha changed the title option added to bindmount provision script folder option added to set docker daemon proxy setting Apr 11, 2019
@kunalkushwaha
Copy link
Contributor Author

Updated the PR for scope limited to docker daemon proxy settings as discussed in #69 (comment)

Along with #71 this will make cluster workable behind proxy.

//cc @rmohr

@rmohr
Copy link
Member

rmohr commented Apr 11, 2019

/test check-provision-k8s-1.10.11
/test check-provision-k8s-1.11.0
/test check-provision-k8s-1.13.3
/test check-provision-k8s-multus-1.12.2
/test check-provision-k8s-multus-1.13.3
/test check-provision-k8s-genie-1.11.1

@rmohr
Copy link
Member

rmohr commented Apr 11, 2019

oh, we need gocli test runs ...

@kunalkushwaha
Copy link
Contributor Author

/test push-gocli

@kubevirt-bot
Copy link
Contributor

@kunalkushwaha: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@slintes
Copy link
Contributor

slintes commented Apr 12, 2019

/ok-to-test
/test push-gocli

@kubevirt-bot kubevirt-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 12, 2019
@kunalkushwaha
Copy link
Contributor Author

/retest

@rmohr
Copy link
Member

rmohr commented Apr 15, 2019

/test push-gocli

@rmohr
Copy link
Member

rmohr commented Apr 15, 2019

/test check-gocli

@rmohr
Copy link
Member

rmohr commented Apr 15, 2019

@kunalkushwaha @slintes, sorry for the confusion, but the jobs were not actually active so far, I manually triggered them. Should work now. Let's see what the results say.

@rmohr
Copy link
Member

rmohr commented Apr 15, 2019

@kunalkushwaha can you add the new gocli digest to the README.md? The digest from the job is sha256:837ab7fff4e00d74ad9d6b8952c79dbf3df1db380da1fc13a87df34d70745003. After that the PR can be merged.

@rmohr
Copy link
Member

rmohr commented Apr 15, 2019

/hold

digest needs to be updated.

@rmohr
Copy link
Member

rmohr commented Apr 15, 2019

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 15, 2019
@kubevirt-bot kubevirt-bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 15, 2019
--docker-proxy option added to gocli run command.
This helps to set proxy setting for docker daemon
without rebuilding of base VM image.

Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 16, 2019
@kunalkushwaha
Copy link
Contributor Author

The digest from the job is sha256:837ab7fff4e00d74ad9d6b8952c79dbf3df1db380da1fc13a87df34d70745003. After that the PR can be merged.

@rmohr thanks. I have updated README.md with suggested digest.

@rmohr
Copy link
Member

rmohr commented Apr 16, 2019

/test check-gocli

@rmohr
Copy link
Member

rmohr commented Apr 16, 2019

/hold cancel
/lgtm
/approve

@kubevirt-bot kubevirt-bot added lgtm Indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Apr 16, 2019
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rmohr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot merged commit b3aa570 into kubevirt:master Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

option to pass custom provision file while (make cluster-up)
4 participants