-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix: inventory builder overwrites the already existing nodes specified in the host.yaml #7577
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
k8s-ci-robot
added
the
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
label
Jul 29, 2021
/remove-lifecycle stale |
k8s-ci-robot
removed
the
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
label
Aug 18, 2021
k8s-ci-robot
pushed a commit
that referenced
this issue
Sep 10, 2021
* Fix: adding new ips with inventory builder (#7577) * moved conflig loading logic to after checking whether the config should be loaded, and added check for whether the config should be loaded * added check for removing nodes from config if the user wants to remove a node, we need to load the config * Fix tox errors
Closed
LuckySB
pushed a commit
to southbridgeio/kubespray
that referenced
this issue
Oct 23, 2021
…bernetes-sigs#7583) * Fix: adding new ips with inventory builder (kubernetes-sigs#7577) * moved conflig loading logic to after checking whether the config should be loaded, and added check for whether the config should be loaded * added check for removing nodes from config if the user wants to remove a node, we need to load the config * Fix tox errors
sakuraiyuta
pushed a commit
to sakuraiyuta/kubespray
that referenced
this issue
Apr 16, 2022
…bernetes-sigs#7583) * Fix: adding new ips with inventory builder (kubernetes-sigs#7577) * moved conflig loading logic to after checking whether the config should be loaded, and added check for whether the config should be loaded * added check for removing nodes from config if the user wants to remove a node, we need to load the config * Fix tox errors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment:
python --version
):Kubespray version (commit) (
git rev-parse --short HEAD
):5ea2d1e
Expected behavior:
With the following file I execute
hosts.yaml
file. (I think this should show that there is a bug as well, but I accidentally deleted my previous file which worked. In case you need it, I can try replicating it.)I expect the
inventory.py
script to add new entry while keeping the old ones:Actual behavior:
All hosts are deleted, except for the newly specified one:
I believe I have also found the bug+fix, but I got no response on Slack yet. When I wanted to submit a PR you mentioned I should create an issue, and I also think I found other bugs, with which I am not sure how to deal with. So my questions are:
The text was updated successfully, but these errors were encountered: