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

E2E Init.sh fails complaining about Git Repo branch #328

Closed
rravindran123 opened this issue Jul 7, 2023 · 1 comment · Fixed by nephio-project/test-infra#160 or nephio-project/docs#42
Assignees
Labels
area/test-infra SIG Release Test Infra

Comments

@rravindran123
Copy link
Contributor

VM provisioning:


(base) ~/Documents/Code/Go/Nephio/test-infra$ gcloud compute instances create --machine-type e2-standard-8 --boot-disk-size 200GB --image-family=ubuntu-2004-lts --image-project=ubuntu-os-cloud --metadata=startup-script-url=https://raw.githubusercontent.com/nephio-project/test-infra/v1.0.0/e2e/provision/init.sh,nephio-test-infra-branch=v1.0.0 --zone=us-west1-a nephio-r1-e2e

Script logs:


(base) ~$ gcloud compute ssh ubuntu@nephio-r1-e2e -- sudo journalctl -u google-startup-scripts.service --follow
WARNING:  Python 3.5-3.7 will be deprecated on August 8th, 2023. Please use Python version 3.8 and up.

If you have a compatible Python interpreter installed, you can use it by setting
the CLOUDSDK_PYTHON environment variable to point to it.

No zone specified. Using zone [us-west1-a] for instance: [nephio-r1-e2e].
Warning: Permanently added 'compute.7535939896876911728' (ECDSA) to the list of known hosts.
-- Logs begin at Fri 2023-07-07 02:04:30 UTC. --
Jul 07 02:04:54 nephio-r1-e2e google_metadata_script_runner[2763]: Found startup-script-url in metadata.
Jul 07 02:04:54 nephio-r1-e2e google_metadata_script_runner[2763]: startup-script-url: false, r1, false, https://github.com/nephio-project/test-infra.git, v1.0.0, ubuntu, /home/ubuntu, /home/ubuntu/test-infra
Jul 07 02:04:54 nephio-r1-e2e runuser[2799]: pam_unix(runuser:session): session opened for user ubuntu by (uid=0)
Jul 07 02:04:54 nephio-r1-e2e google_metadata_script_runner[2763]: startup-script-url: Cloning into '/home/ubuntu/test-infra'...
Jul 07 02:04:55 nephio-r1-e2e runuser[2799]: pam_unix(runuser:session): session closed for user ubuntu
Jul 07 02:04:55 nephio-r1-e2e runuser[2830]: pam_unix(runuser:session): session opened for user ubuntu by (uid=0)
Jul 07 02:04:55 nephio-r1-e2e google_metadata_script_runner[2763]: startup-script-url: fatal: 'origin/v1.0.0' is not a commit and a branch 'v1.0.0' cannot be created from it
Jul 07 02:04:55 nephio-r1-e2e runuser[2830]: pam_unix(runuser:session): session closed for user ubuntu
Jul 07 02:04:55 nephio-r1-e2e google_metadata_script_runner[2763]: startup-script-url: CPU usage: 12.5471 %
Jul 07 02:04:55 nephio-r1-e2e google_metadata_script_runner[2763]: startup-script-url: I/O Pressure Stall Information (PSI): 0.77
Jul 07 02:04:55 nephio-r1-e2e google_metadata_script_runner[2763]: startup-script-url: Memory free(Kb):32239040
Jul 07 02:04:55 nephio-r1-e2e google_metadata_script_runner[2763]: startup-script-url exit status 128
Jul 07 02:04:55 nephio-r1-e2e google_metadata_script_runner[2763]: Finished running startup scripts.
Jul 07 02:04:55 nephio-r1-e2e systemd[1]: google-startup-scripts.service: Succeeded.
Jul 07 02:04:55 nephio-r1-e2e systemd[1]: Finished Google Compute Engine Startup Scripts.
@johnbelamaric
Copy link
Member

Ok, here is the issue with this. The init.sh expects a branch in nephio-test-infra-branch and fails with a tag. I am fixing this, but it is a code change and so would not go into effect until v1.0.1.

Therefore, I created a branch called branch-1.0.0 in the test-infra repo, and updated the docs in nephio-project/docs#42

The branch-1.0.0 is locked and cannot be updated.

This is NOT the same branch we should use for 1.0.1, that would be something like "v1.0" or something.

/cc @s3wong @radoslawc @electrocucaracha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test-infra SIG Release Test Infra
Projects
Status: Done
2 participants