Open smupad opened 5 years ago
Hi @vvaliapa - I've now synchronized the two Git "remotes" so that both the origin
and cicd
remotes in the lab are now identical. This synchronization should enable the git pull
step to work again. Can you try it and see?
You may already have these notes, I found that many of the IP addresses have changed in addition to the usernames changing from root
to developer
.
Hi Matt and Vibhinna, Assigning both of you as I think the best way forward is to revise the existing content to work with the new access requirements.
What I hear is that in addition to the IP and username changes, there should be a revision to the direction in which the user clones and pushes. Clone only from GitHub, push only to Gogs. @metahertz can you take that part on?
And @vvaliapa - please work with Matt on the username and IP address changes and test his changes to the direction of the git push and clone commands. Thanks!
Now that the git problems are resolved, there is still a missing piece where the service does not appear in the Kubernetes dashboard. @metahertz have you had any further debugging progress here?
I changed the title because the git problems have been resolved, but then when you do a new deployment, the Kubernetes dashboard doesn’t show one of the services that’s in a screenshot in the lab on the 3rd step. https://developer.cisco.com/learning/lab/cicd-intro/step/3 So I think repurposing this Issue to work on the next blocker seems okay.
It looks like there is no way that this CICD lab will ever deploy using the line image: trxuk/kube
because that plugin no longer exists for drone.
I can’t find "trxuk" or “kube” in the drone-plugins repository at https://github.com/drone-plugins.
You could test with http://plugins.drone.io/vallard/drone-kube/ instead.
Test by substituting:
deploy:
image: vallard/drone-kube
instead of
deploy:
image: trxuk/kube
It looks like there is no way that this CICD lab will ever deploy using the line
image: trxuk/kube
because that plugin no longer exists for drone.I can’t find "trxuk" or “kube” in the drone-plugins repository at https://github.com/drone-plugins.
You could test with http://plugins.drone.io/vallard/drone-kube/ instead.
Test by substituting:
deploy: image: vallard/drone-kube
instead of
deploy: image: trxuk/kube
Hi Anne, I have changed image: trxuk/kube to image: vallard/drone-kube in .drone.yml and tested. I am getting If I execute the git remote add cicd http://10.10.20.24:3000/test/cicd_example_repo.git and skip git push cicd master command, build is not triggering in the drone.
Learning lab: https://developer.cisco.com/learning/lab/cicd-intro/step/1
Sandbox used: (CICD Pilpeline) https://devnetsandbox.cisco.com/RM/Diagram/Index/be51af73-c9e9-4af7-89d2-42c1c71e1f09?diagramType=Topology
Section: "B. Make it Real" on page https://developer.cisco.com/learning/lab/cicd-intro/step/2
** Modified the IP address to reflect the new Gogs Box IP address (10.10.20.24). Drone is at 10.10.20.23. DevBox is at 10.10.20.50 [cicd_learninglab_demo]# git remote add cicd http://10.10.20.24:3000/test/cicd_example_repo.git [cicd_learninglab_demo]# git push cicd master
Issue: Git push returns error. Get output "_To http://10.10.20.24:3000/test/cicd_example_repo.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'http://10.10.20.24:3000/test/cicd_example_repo.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first merge the remote changes (e.g., hint: 'git pull') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details._"
Related to issue - https://github.com/CiscoDevNet/learning-labs-issues/issues/211