Repository navigation
Improve dind documentation and fix dind testing - #4707
Conversation
There was a problem hiding this comment.
So does "dind-cluster.sh start" pull in the latest openshift binary and sdn scripts? Or do you mean "it's a one-time cost if you plan to do a bunch of testing against a particular checkout of origin"?
There was a problem hiding this comment.
"dind-cluster.sh start" creates containers that mount the repo, builds the binaries and configuration in the master container as part of the master deploy, and then deploys to the node containers. It's very similar to how the vagrant deploy works (equivalent to 'vagrant up'). The 'one-time cost' I'm referring to is the package installation on the vm (dnf update && dnf install docker...) and the base dind image (dnf update && dnf install openvswitch docker...).
Would it be useful to make that explicit? e.g. "Package installation on the VM and building the dind image" and "openshift will be built as part of cluster creation"?
There was a problem hiding this comment.
Yeah, maybe split it up into two parts, with everything up to "vagrant up" being explained as one-time setup, and then ssh+cd+start as the iteratable part.
|
@danwinship Hopefully the latest patchset addresses your concerns. I've also enhanced the vagrant provisioning to allow dind cluster interaction directly from the VM (it had previously been necessary to login to one of the containers). |
|
lgtm |
|
This latest patchset cleans up vagrant deployment and ensures that the networking tests can be executed. If you've already deployed a vagrant vm, you can either recreate the vm or run the following steps to run the tests: |
|
[test] |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6237/) |
|
[test] |
There was a problem hiding this comment.
FWIW, most oc commands seem to work, but "oc project foo" gives an error. ("oc new-project foo" creates the project successfully, but then gives an error when trying to switch to it):
[vagrant@openshift-dind-host vagrant]$ oc new-project foo
error: open /tmp/openshift-dind-cluster/openshift/openshift.local.config/master/admin.kubeconfig: permission denied
|
otherwise lgtm |
|
@danwinship Latest patchset should fix the permission issue. |
|
[test] |
|
This PR allows the extended networking tests to run. Getting them passing will be a subsequent effort. |
This change adds a new dind-specific vagrant provision script that ensures that the vagrant and root accounts on the VM can interact with the default dind cluster via the 'oc' and 'openshift' accounts.
Commit 82c73ed broke the extended networking tests when it separated networking and non-networking tests into separate binaries but failed to update the networking test invocation to reflect the new target.
Fedora 22 package download is unreliable.
jpetazzo's version is effectively deprecated now that upstream docker has taken over maintenance.
Origin builds on servers with 2gb of ram can run out of memory with go 1.5.
Previously nfs was only used for a dev cluster, but it should apply for dind dev cluster as well.
- allow docker to be run as non-root - install ginkgo automatically - ensure that cluster configuration is readable by vagrant user - fix broken 'hack/dind-cluster.sh test-net-e2e' command - run setenforce with sudo
|
LGTM |
|
Am I understanding correctly that the extended network testing is running, but failing now? Yeah, we can't merge something we know will break CI for everyone else. Maybe I'm misunderstanding the openshift-jenkins/test failure: |
|
[test] |
|
Evaluated for origin test up to 7401086 |
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6237/) (Image: devenv-rhel7_2583) |
|
Evaluated for origin merge up to 7401086 |
Merged by openshift-bot
The contribution doc may not be the best place for this, so placement suggestions are welcome.