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

Error when trying to spawn network in kubernetes #1412

Closed
wirednkod opened this issue Oct 13, 2023 · 9 comments
Closed

Error when trying to spawn network in kubernetes #1412

wirednkod opened this issue Oct 13, 2023 · 9 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@wirednkod
Copy link
Contributor

While trying to spawn a network in kubernetes the following error appeared:

➜  javascript git:(main) ✗ npm run zombie -- spawn ../tests/chaos/0001-delay.toml

> [email protected] zombie
> node ./packages/cli/dist/cli.js spawn ../tests/chaos/0001-delay.toml

╔════════════════════╤════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ 🧟 Zombienet 🧟    │ Initiation                                                                                         ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Provider           │ kubernetes                                                                                         ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Namespace          │ zombie-ef4976230e7e09608e35a4bb97d075d0                                                            ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Temp Dir           │ /var/folders/7q/3ws1fn9d0pn961zh9fk5vgm40000gn/T/zombie-ef4976230e7e09608e35a4bb97d075d0_-40811-d… ║
╚════════════════════╧════════════════════════════════════════════════════════════════════════════════════════════════════╝
Error:  	 Error: Command failed with exit code 1: kubectl --kubeconfig /Users/wirednkod/.kube/config apply -f -
Error from server (NotFound): error when creating "STDIN": namespaces "zombie-b3b08c66fc8e8e48d2876049d4477f7e" not found
Error from server (NotFound): error when creating "STDIN": namespaces "zombie-b3b08c66fc8e8e48d2876049d4477f7e" not found
Error from server (NotFound): error when creating "STDIN": namespaces "zombie-b3b08c66fc8e8e48d2876049d4477f7e" not found
Error from server (NotFound): error when creating "STDIN": namespaces "zombie-b3b08c66fc8e8e48d2876049d4477f7e" not found

undefined
┌────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Node'              │ /var/folders/7q/3ws1fn9d0pn961zh9fk5vgm40000gn/T/zombie-ef4976230e7e09608e35a4bb97d075d0_-40811-d… │
│ s logs:            │                                                                                                    │
│ m                  │                                                                                                    │
└────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘

 Error:  	 Error: Command failed with exit code 1: kubectl --kubeconfig /Users/wirednkod/.kube/config delete podmonitor zombie-ef4976230e7e09608e35a4bb97d075d0 -n monitoring
Error from server (NotFound): podmonitors.monitoring.coreos.com "zombie-ef4976230e7e09608e35a4bb97d075d0" not found

After investigating a bit more with @emamihe he realised that the CLI was using a previously spawned namespace (error when creating "STDIN": namespaces "zombie-b3b08c66fc8e8e48d2876049d4477f7e" not found).

We changed back to default by using the command:

kubectl config set-context --current --namespace default

And everything seemed to work normally again

@wirednkod wirednkod added the bug Something isn't working label Oct 13, 2023
@pepoviola
Copy link
Collaborator

Hi @wirednkod, I don't think this should categorize as bug. The main issue here was that you have the context of kubectl set to a different namespace (than default). This is something we can add as instruction to run zombienet and we can also check at start and print a warning but I think is more related to docs.
Thx!

@pepoviola pepoviola added documentation Improvements or additions to documentation good first issue Good for newcomers and removed bug Something isn't working labels Oct 17, 2023
@pepoviola
Copy link
Collaborator

TODO: Make clear in the docs that you need to be set in the default namespace to start working with zombienet. Also note that this is the default behavior of kubectl so if someone change the context is because is aware of this.

@Neyromancer
Copy link
Contributor

hey guys, may i take this issue?

I am very new to the project and i've just started to look around so it could take some time as.

@Neyromancer
Copy link
Contributor

Hello, could anybody validate/review PR on updating docs plz?

@Neyromancer
Copy link
Contributor

Neyromancer commented Nov 3, 2023

Hello @wirednkod @pepoviola, thank you for review.
i think i corrected all the comments left for PR if everything is fine then let's merge it

@Neyromancer
Copy link
Contributor

Neyromancer commented Nov 8, 2023

Hello @pepoviola,could you help me with mdbook changes? Why is it when i use mdbook build i get a lot more changes then my updates to *.md files could produce?
Could it relat to the version of the mdbook tool? If so should i accept all the changes and add them as new html book?

It seems that the changes i've got are due to mdbook version update.

@Neyromancer
Copy link
Contributor

updated docs (PR #1503) files from new mdbook version (v0.4.35)

@Neyromancer
Copy link
Contributor

Thank you for letting me to participate in the project and for your active collaboration however i will not be able to continue.

@pepoviola
Copy link
Collaborator

Hey @wirednkod, I will close this one. We can re-open if needed later.
Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants