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

1.11 - cloud - destroy not working #901

Closed
6za opened this issue Dec 14, 2022 · 3 comments
Closed

1.11 - cloud - destroy not working #901

6za opened this issue Dec 14, 2022 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@6za
Copy link
Contributor

6za commented Dec 14, 2022

Out

developer@68345989daeb:~/app$ ./kubefirst cluster destroy
2022/12/14 14:20:23 kubefirst started
Logging at: /home/developer/app/logs/log_1671027623.log
destroy-aws-github called
Init actions: 2 expected tasks ...

- Open argocd port-forward
- Refreshing local gitops repository
- Removing ingress-nginx load balancer
Open Ports                    ... 33.3% [#########...................] [1 in 6.900733s]
Destroy Cloud                 ... 25.0% [#######.....................] [1 in 6.900746s]
[###################.................................................] [7s]

Logs

�[90m2:20PM�[0m �[32mINF�[0m �[1mhelpers.go:348�[0m�[36m >�[0m Using config file: /home/developer/.kubefirst
LOG: 2022/12/14 14:20:23.421294 /home/developer/app/internal/flagset/common.go:80: Enviroment Variable(skip-gitlab-terraform) not set
LOG: 2022/12/14 14:20:23.421886 /home/developer/app/internal/flagset/common.go:80: Enviroment Variable(skip-github-terraform) not set
LOG: 2022/12/14 14:20:23.422356 /home/developer/app/internal/flagset/common.go:80: Enviroment Variable(skip-delete-register) not set
LOG: 2022/12/14 14:20:23.422989 /home/developer/app/internal/flagset/common.go:80: Enviroment Variable(skip-base-terraform) not set
LOG: 2022/12/14 14:20:23.423390 /home/developer/app/internal/flagset/common.go:80: Enviroment Variable(config) not set
LOG: 2022/12/14 14:20:23.423785 /home/developer/app/internal/flagset/global.go:36: import config source: 
LOG: 2022/12/14 14:20:23.424170 /home/developer/app/internal/flagset/common.go:80: Enviroment Variable(dry-run) not set
LOG: 2022/12/14 14:20:23.424529 /home/developer/app/internal/flagset/common.go:80: Enviroment Variable(use-telemetry) not set
LOG: 2022/12/14 14:20:23.424906 /home/developer/app/internal/flagset/common.go:80: Enviroment Variable(silent) not set
�[90m2:20PM�[0m �[32mINF�[0m �[1mkubernetes.go:239�[0m�[36m >�[0m kubectl port-forward started for (svc/argocd-server) available at http://localhost:8080
�[90m2:20PM�[0m �[32mINF�[0m �[1mkubernetes.go:247�[0m�[36m >�[0m /home/developer/.k1/tools/kubectl --kubeconfig /home/developer/.k1/gitops/terraform/base/kubeconfig -n argocd port-forward svc/argocd-server 8080:80
�[90m2:20PM�[0m �[32mINF�[0m �[1mcreateUtils.go:309�[0m�[36m >�[0m Open argocd port-forward
�[90m2:20PM�[0m �[32mINF�[0m �[1mcreateUtils.go:309�[0m�[36m >�[0m Refreshing local gitops repository
LOG: 2022/12/14 14:20:28.430088 /home/developer/app/cmd/destroyAwsGithub.go:107: removing local gitops directory
LOG: 2022/12/14 14:20:28.457374 /home/developer/app/cmd/destroyAwsGithub.go:110: cloning fresh gitops directory from github owner's private gitops
�[90m2:20PM�[0m �[33mDBG�[0m �[1mgit.go:163�[0m�[36m >�[0m Trying to clone repo https://github.com/org-demo-6za-2/gitops 
�[90m2:20PM�[0m �[32mINF�[0m �[1mcreateUtils.go:309�[0m�[36m >�[0m Removing ingress-nginx load balancer
LOG: 2022/12/14 14:20:29.341270 /home/developer/app/cmd/destroyAwsGithub.go:115: removing ingress-nginx.yaml from local gitops repo registry
�[90m2:20PM�[0m �[32mINF�[0m �[1mgit.go:381�[0m�[36m >�[0m opening repository with gitClient: /home/developer/.k1/gitops
�[90m2:20PM�[0m �[33mDBG�[0m �[1mgit.go:388�[0m�[36m >�[0m git push to remote: origin url: https://github.com/<suppressed>/gitops
�[90m2:20PM�[0m �[32mINF�[0m �[1mgit.go:392�[0m�[36m >�[0m Committing new changes... PushLocalRepoUpdates
�[90m2:20PM�[0m �[33mDBG�[0m �[1mgit.go:399�[0m�[36m >�[0m the file is registry/ingress-nginx.yaml the status is 68
�[90m2:20PM�[0m �[32mINF�[0m �[1mgit.go:424�[0m�[36m >�[0m successfully pushed detokenized gitops content to github/<suppressed>
LOG: 2022/12/14 14:20:30.353102 /home/developer/app/cmd/destroyAwsGithub.go:121: could not collect argocd tokenPost "https://localhost:8080/api/v1/session": dial tcp 127.0.0.1:8080: connect: connection refused

Details

developer@68345989daeb:~/app$ echo $?
1 

It only returns an exit 1 signal, but it doesn't log any error to guide the user that something is broken.

@6za 6za added this to the 1.11 Release milestone Dec 14, 2022
@6za 6za added bug Something isn't working github labels Dec 14, 2022
@6za
Copy link
Contributor Author

6za commented Dec 14, 2022

Workaround: (to skip the step that fails)

./kubefirst cluster destroy --skip-delete-register

@pagottoo
Copy link
Contributor

Closing due to the bug didn't exist on the main branch or could not simulate.
The cloud was destroyed using aws/GitHub aws/GitLab flavors.

@converge
Copy link
Contributor

follow up tickets:
#887
#852

@fharper fharper changed the title 1.11 - cloud - destroy not work 1.11 - cloud - destroy not working Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants