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

Add test step interconnect clusters #100

Merged

Conversation

electrocucaracha
Copy link
Member

This change provides an intermediate step to interconnect worker nodes.

Solves: nephio-project/nephio#270

\cc @johnbelamaric @henderiw

e2e/tests/002.sh Outdated Show resolved Hide resolved
e2e/tests/002.sh Outdated Show resolved Hide resolved
e2e/provision/README.md Outdated Show resolved Hide resolved
Signed-off-by: Victor Morales <v.morales@samsung.com>
@nephio-prow
Copy link
Contributor

nephio-prow bot commented Jun 15, 2023

@electrocucaracha: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
e2e d77362b link true /test e2e

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@johnbelamaric
Copy link
Member

I'm running the e2e tests with this branch, if that looks good I will merge it.

@johnbelamaric
Copy link
Member

Ok, I haven't tested the actual connectivity over those networks, but at least it doesn't break the e2e, so I will merge it. If connectivity is an issue we will find it and tweak it later, but I doubt there will be an issue. Thanks!

Jun 16 00:43:38 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: cluster default/edge02 is ready
Jun 16 00:43:39 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: {"workers":["regional-md-0-qxjm4-6d559bd85dxdq5qp-nfxf8","edge02-md-0-vhqmk-bdd76b47bxdgcpf-9zrdp"]}
Jun 16 00:43:39 nephio-e2e-victor sudo[126109]:   ubuntu : TTY=unknown ; PWD=/home/ubuntu/test-infra/e2e/provision ; USER=root ; COMMAND=/usr/bin/containerlab deploy --topo /home/ubuntu/test-infra/e2e/tests/002-topo.gotmpl --vars /tmp/vars.json --skip-post-deploy
Jun 16 00:43:39 nephio-e2e-victor sudo[126109]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 16 00:43:39 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:43:39Z" level=info msg="Containerlab v0.41.2 started"
Jun 16 00:43:39 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:43:39Z" level=info msg="Parsing & checking topology file: 002-topo.gotmpl"
Jun 16 00:43:39 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:43:39Z" level=info msg="Could not read docker config: open /root/.docker/config.json: no such file or directory"
Jun 16 00:43:39 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:43:39Z" level=info msg="Pulling ghcr.io/nokia/srlinux:latest Docker image"
Jun 16 00:44:47 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:44:47Z" level=info msg="Done pulling ghcr.io/nokia/srlinux:latest"
Jun 16 00:44:47 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:44:47Z" level=info msg="Creating lab directory: /home/ubuntu/test-infra/e2e/provision/clab-free5gc-net"
Jun 16 00:44:48 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:44:48Z" level=info msg="Creating docker network: Name=\"clab\", IPv4Subnet=\"172.20.20.0/24\", IPv6Subnet=\"2001:172:20:20::/64\", MTU=\"1500\""
Jun 16 00:44:48 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:44:48Z" level=info msg="Creating container: \"N6\""
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:44:57Z" level=info msg="Creating virtual wire: N6:e1-0 <--> regional-md-0-qxjm4-6d559bd85dxdq5qp-nfxf8:eth1"
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:44:57Z" level=info msg="Creating virtual wire: N6:e1-1 <--> edge02-md-0-vhqmk-bdd76b47bxdgcpf-9zrdp:eth1"
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: time="2023-06-16T00:44:57Z" level=info msg="Adding containerlab host entries to /etc/hosts file"
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: +---+--------------------------------------------+--------------+-----------------------+---------------+---------+----------------+--------------------------+
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: | # |                    Name                    | Container ID |         Image         |     Kind      |  State  |  IPv4 Address  |       IPv6 Address       |
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: +---+--------------------------------------------+--------------+-----------------------+---------------+---------+----------------+--------------------------+
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: | 1 | edge02-md-0-vhqmk-bdd76b47bxdgcpf-9zrdp    | ebd1a84a5669 | kindest/node:v1.26.3  | ext-container | running | 172.18.0.10/16 | fc00:f853:ccd:e793::a/64 |
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: | 2 | regional-md-0-qxjm4-6d559bd85dxdq5qp-nfxf8 | a38d6d760bd7 | kindest/node:v1.26.3  | ext-container | running | 172.18.0.5/16  | fc00:f853:ccd:e793::5/64 |
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: | 3 | net-free5gc-net-N6                         | 95f927479e3c | ghcr.io/nokia/srlinux | srl           | running | 172.20.20.2/24 | 2001:172:20:20::2/64     |
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: +---+--------------------------------------------+--------------+-----------------------+---------------+---------+----------------+--------------------------+
Jun 16 00:44:57 nephio-e2e-victor sudo[126109]: pam_unix(sudo:session): session closed for user root
Jun 16 00:44:57 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: +++++ Fri Jun 16 00:44:57 UTC 2023: finished /home/ubuntu/test-infra/e2e/tests/002.sh  Deploy edge clusters

@johnbelamaric
Copy link
Member

Fixes nephio-project/nephio#270

/approve
/lgtm

@nephio-prow
Copy link
Contributor

nephio-prow bot commented Jun 16, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: electrocucaracha, johnbelamaric

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

@nephio-prow nephio-prow bot added the approved label Jun 16, 2023
@johnbelamaric
Copy link
Member

Jun 16 00:43:39 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: {"workers":["regional-md-0-qxjm4-6d559bd85dxdq5qp-nfxf8","edge02-md-0-vhqmk-bdd76b47bxdgcpf-9zrdp"]}

Why though is there no edge01 node? Can you look into that @electrocucaracha and submit a follow-up PR?

@johnbelamaric johnbelamaric merged commit 53de7c6 into nephio-project:main Jun 16, 2023
1 of 3 checks passed
@electrocucaracha electrocucaracha deleted the enable_interconnect branch June 16, 2023 02:13
@electrocucaracha
Copy link
Member Author

Jun 16 00:43:39 nephio-e2e-victor google_metadata_script_runner[1753]: startup-script-url: {"workers":["regional-md-0-qxjm4-6d559bd85dxdq5qp-nfxf8","edge02-md-0-vhqmk-bdd76b47bxdgcpf-9zrdp"]}

Why though is there no edge01 node? Can you look into that @electrocucaracha and submit a follow-up PR?

I think that we have to improve the waiting process. I noticed the edge clusters don't come alive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants