Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5dfbc769
Commit
5dfbc769
authored
Jun 29, 2016
by
k8s-merge-robot
Committed by
GitHub
Jun 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28196 from yujuhong/kubenet
Automatic merge from submit-queue node e2e: kubelet should use kubenet This fixes #27498
parents
bf35cb63
e76b4184
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
3 deletions
+38
-3
e2e_remote.go
test/e2e_node/e2e_remote.go
+14
-1
e2e_service.go
test/e2e_node/e2e_service.go
+3
-0
setup_host.sh
test/e2e_node/environment/setup_host.sh
+19
-0
jenkins-ci.properties
test/e2e_node/jenkins/jenkins-ci.properties
+1
-1
jenkins-pull.properties
test/e2e_node/jenkins/jenkins-pull.properties
+1
-1
No files found.
test/e2e_node/e2e_remote.go
View file @
5dfbc769
...
@@ -40,7 +40,12 @@ var ginkgoFlags = flag.String("ginkgo-flags", "", "Passed to ginkgo to specify a
...
@@ -40,7 +40,12 @@ var ginkgoFlags = flag.String("ginkgo-flags", "", "Passed to ginkgo to specify a
var
sshOptionsMap
map
[
string
]
string
var
sshOptionsMap
map
[
string
]
string
const
archiveName
=
"e2e_node_test.tar.gz"
const
(
archiveName
=
"e2e_node_test.tar.gz"
CNI_RELEASE
=
"c864f0e1ea73719b8f4582402b0847064f9883b0"
)
var
CNI_URL
=
fmt
.
Sprintf
(
"https://storage.googleapis.com/kubernetes-release/network-plugins/cni-%s.tar.gz"
,
CNI_RELEASE
)
var
hostnameIpOverrides
=
struct
{
var
hostnameIpOverrides
=
struct
{
sync
.
RWMutex
sync
.
RWMutex
...
@@ -152,6 +157,14 @@ func RunRemote(archive string, host string, cleanup bool, junitFileNumber int, s
...
@@ -152,6 +157,14 @@ func RunRemote(archive string, host string, cleanup bool, junitFileNumber int, s
}
}
}
}
// Install the cni plugin. Note that /opt/cni does not get cleaned up after
// the test completes.
if
_
,
err
:=
RunSshCommand
(
"ssh"
,
GetHostnameOrIp
(
host
),
"--"
,
"sh"
,
"-c"
,
getSshCommand
(
" ; "
,
"sudo mkdir -p /opt/cni"
,
fmt
.
Sprintf
(
"sudo wget -O - %s | sudo tar -xz -C /opt/cni"
,
CNI_URL
)));
err
!=
nil
{
// Exit failure with the error
return
""
,
false
,
err
}
// Create the temp staging directory
// Create the temp staging directory
glog
.
Infof
(
"Staging test binaries on %s"
,
host
)
glog
.
Infof
(
"Staging test binaries on %s"
,
host
)
tmp
:=
fmt
.
Sprintf
(
"/tmp/gcloud-e2e-%d"
,
rand
.
Int31
())
tmp
:=
fmt
.
Sprintf
(
"/tmp/gcloud-e2e-%d"
,
rand
.
Int31
())
...
...
test/e2e_node/e2e_service.go
View file @
5dfbc769
...
@@ -241,6 +241,9 @@ func (es *e2eService) startKubeletServer() (*killCmd, error) {
...
@@ -241,6 +241,9 @@ func (es *e2eService) startKubeletServer() (*killCmd, error) {
"--config"
,
es
.
kubeletStaticPodDir
,
"--config"
,
es
.
kubeletStaticPodDir
,
"--file-check-frequency"
,
"10s"
,
// Check file frequently so tests won't wait too long
"--file-check-frequency"
,
"10s"
,
// Check file frequently so tests won't wait too long
"--v"
,
LOG_VERBOSITY_LEVEL
,
"--logtostderr"
,
"--v"
,
LOG_VERBOSITY_LEVEL
,
"--logtostderr"
,
"--network-plugin=kubenet"
,
"--pod-cidr=10.180.0.0/24"
,
// Assign a fixed CIDR to the node because there is no node controller.
"--hairpin-mode=hairpin-veth"
,
)
)
cmd
:=
exec
.
Command
(
"sudo"
,
cmdArgs
...
)
cmd
:=
exec
.
Command
(
"sudo"
,
cmdArgs
...
)
hcc
:=
newHealthCheckCommand
(
hcc
:=
newHealthCheckCommand
(
...
...
test/e2e_node/environment/setup_host.sh
View file @
5dfbc769
...
@@ -62,6 +62,25 @@ if [ $? -ne 0 ]; then
...
@@ -62,6 +62,25 @@ if [ $? -ne 0 ]; then
rm
-r
etcd-v2.2.5-linux-amd64
*
rm
-r
etcd-v2.2.5-linux-amd64
*
fi
fi
# Install nsenter for ubuntu images
cat
/etc/
*
-release
|
grep
"ID=ubuntu"
if
[
$?
-eq
0
]
;
then
if
!
which nsenter
>
/dev/null
;
then
echo
"Do not find nsenter. Install it."
mkdir
-p
/tmp/nsenter-install
cd
/tmp/nsenter-install
curl https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.tar.gz |
tar
-zxf-
sudo
apt-get update
sudo
apt-get
--yes
install
make
sudo
apt-get
--yes
install
gcc
cd
util-linux-2.24
./configure
--without-ncurses
make nsenter
sudo cp
nsenter /usr/local/bin
rm
-rf
/tmp/nsenter-install
fi
fi
# Install docker
# Install docker
hash
docker 2>/dev/null
hash
docker 2>/dev/null
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
...
...
test/e2e_node/jenkins/jenkins-ci.properties
View file @
5dfbc769
...
@@ -3,7 +3,7 @@ GCE_HOSTS=
...
@@ -3,7 +3,7 @@ GCE_HOSTS=
# To copy an image between projects:
# To copy an image between projects:
# `gcloud compute --project <to-project> disks create <image name> --image=https://www.googleapis.com/compute/v1/projects/<from-project>/global/images/<image-name>`
# `gcloud compute --project <to-project> disks create <image name> --image=https://www.googleapis.com/compute/v1/projects/<from-project>/global/images/<image-name>`
# `gcloud compute --project <to-project> images create <image-name> --source-disk=<image-name>`
# `gcloud compute --project <to-project> images create <image-name> --source-disk=<image-name>`
GCE_IMAGES
=
e2e-node-ubuntu-trusty-docker
10-image,e2e-node-ubuntu-trusty-docker9
-image,e2e-node-coreos-stable20160622-image,e2e-node-containervm-v20160321-image
GCE_IMAGES
=
e2e-node-ubuntu-trusty-docker
9-v1-image,e2e-node-ubuntu-trusty-docker10-v1
-image,e2e-node-coreos-stable20160622-image,e2e-node-containervm-v20160321-image
GCE_ZONE
=
us-central1-f
GCE_ZONE
=
us-central1-f
GCE_PROJECT
=
kubernetes-jenkins
GCE_PROJECT
=
kubernetes-jenkins
GCE_IMAGE_PROJECT
=
kubernetes-node-e2e-images
GCE_IMAGE_PROJECT
=
kubernetes-node-e2e-images
...
...
test/e2e_node/jenkins/jenkins-pull.properties
View file @
5dfbc769
...
@@ -3,7 +3,7 @@ GCE_HOSTS=
...
@@ -3,7 +3,7 @@ GCE_HOSTS=
# To copy an image between projects:
# To copy an image between projects:
# `gcloud compute --project <to-project> disks create <image name> --image=https://www.googleapis.com/compute/v1/projects/<from-project>/global/images/<image-name>`
# `gcloud compute --project <to-project> disks create <image name> --image=https://www.googleapis.com/compute/v1/projects/<from-project>/global/images/<image-name>`
# `gcloud compute --project <to-project> images create <image-name> --source-disk=<image-name>`
# `gcloud compute --project <to-project> images create <image-name> --source-disk=<image-name>`
GCE_IMAGES
=
e2e-node-ubuntu-trusty-docker
10-image,e2e-node-ubuntu-trusty-docker9
-image,e2e-node-coreos-stable20160622-image,e2e-node-containervm-v20160321-image
GCE_IMAGES
=
e2e-node-ubuntu-trusty-docker
9-v1-image,e2e-node-ubuntu-trusty-docker10-v1
-image,e2e-node-coreos-stable20160622-image,e2e-node-containervm-v20160321-image
GCE_ZONE
=
us-central1-f
GCE_ZONE
=
us-central1-f
GCE_PROJECT
=
kubernetes-jenkins-pull
GCE_PROJECT
=
kubernetes-jenkins-pull
GCE_IMAGE_PROJECT
=
kubernetes-node-e2e-images
GCE_IMAGE_PROJECT
=
kubernetes-node-e2e-images
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment