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

[Epic] k3s_server and k3s_agent tasks are not idempotent #264

Closed
7 tasks done
jon-stumpf opened this issue Nov 30, 2023 · 6 comments
Closed
7 tasks done

[Epic] k3s_server and k3s_agent tasks are not idempotent #264

jon-stumpf opened this issue Nov 30, 2023 · 6 comments

Comments

@jon-stumpf
Copy link
Contributor

jon-stumpf commented Nov 30, 2023

The below tasks are repeated even when they are not needed. Fixes are forthcoming.

k3s_server

k3s_agent

@dereknola
Copy link
Member

I assume most of this was me blindly putting in changed_when: true for these tasks 😳

jon-stumpf added a commit to jon-stumpf/k3s-ansible that referenced this issue Dec 3, 2023
@jon-stumpf jon-stumpf mentioned this issue Dec 3, 2023
@dereknola dereknola reopened this Dec 4, 2023
@dereknola dereknola changed the title k3s_server and k3s_agent tasks are not idempotent [Epic] k3s_server and k3s_agent tasks are not idempotent Dec 4, 2023
@dereknola
Copy link
Member

GH being dumb and autoclosing this issue.

@jon-stumpf
Copy link
Contributor Author

FYI. I have been busy on other things and will be getting back to this after Christmas.

@alvsanand
Copy link

In step "Change server to API endpoint instead of localhost", kubeconfig must be set to "/etc/rancher/k3s/k3s.yaml". "~{{ ansible_user }}/.kube/config" is not used in the servers.

LawiK974 pushed a commit to LawiK974/k3s-ansible that referenced this issue Feb 9, 2024
- [Agent : Download artefact only if needed](roles/k3s_agent/tasks/main.yml#L13)
- [Server : Download artefact only if needed](roles/k3s_server/tasks/main.yml#L13)
- [Upgrade : Upgrade node only if needed](roles/k3s_upgrade/tasks/main.yml#L14)

Linked issue k3s-io#264 k3s_server and k3s_agent tasks are not idempotent
LawiK974 pushed a commit to LawiK974/k3s-ansible that referenced this issue Feb 9, 2024
- [Agent : Download artefact only if needed](roles/k3s_agent/tasks/main.yml#L13)
- [Server : Download artefact only if needed](roles/k3s_server/tasks/main.yml#L13)
- [Upgrade : Upgrade node only if needed](roles/k3s_upgrade/tasks/main.yml#L14)

Linked issue k3s-io#264 k3s_server and k3s_agent tasks are not idempotent
LawiK974 pushed a commit to LawiK974/k3s-ansible that referenced this issue Feb 9, 2024
- [Agent : Download artefact only if needed](roles/k3s_agent/tasks/main.yml#L13)
- [Server : Download artefact only if needed](roles/k3s_server/tasks/main.yml#L13)
- [Upgrade : Upgrade node only if needed](roles/k3s_upgrade/tasks/main.yml#L14)

Linked issue k3s-io#264 k3s_server and k3s_agent tasks are not idempotent

Signed-off-by: Loïc Dubard <[email protected]>
LawiK974 added a commit to LawiK974/k3s-ansible that referenced this issue Mar 6, 2024
- [Agent : Download artefact only if needed](roles/k3s_agent/tasks/main.yml#L13)
- [Server : Download artefact only if needed](roles/k3s_server/tasks/main.yml#L13)
- [Upgrade : Upgrade node only if needed](roles/k3s_upgrade/tasks/main.yml#L14)

Linked issue k3s-io#264 k3s_server and k3s_agent tasks are not idempotent

Signed-off-by: Loïc Dubard <[email protected]>
LawiK974 added a commit to LawiK974/k3s-ansible that referenced this issue Mar 6, 2024
- [Agent : Download artefact only if needed](roles/k3s_agent/tasks/main.yml#L13)
- [Server : Download artefact only if needed](roles/k3s_server/tasks/main.yml#L13)
- [Upgrade : Upgrade node only if needed](roles/k3s_upgrade/tasks/main.yml#L14)

Linked issue k3s-io#264 k3s_server and k3s_agent tasks are not idempotent

Signed-off-by: Loïc Dubard <[email protected]>
LawiK974 added a commit to LawiK974/k3s-ansible that referenced this issue Mar 7, 2024
- [Agent : Download artefact only if needed](roles/k3s_agent/tasks/main.yml#L13)
- [Server : Download artefact only if needed](roles/k3s_server/tasks/main.yml#L13)
- [Upgrade : Upgrade node only if needed](roles/k3s_upgrade/tasks/main.yml#L14)

Linked issue k3s-io#264 k3s_server and k3s_agent tasks are not idempotent

Signed-off-by: Loïc Dubard <[email protected]>
dereknola pushed a commit that referenced this issue Mar 8, 2024
- [Agent : Download artefact only if needed](roles/k3s_agent/tasks/main.yml#L13)
- [Server : Download artefact only if needed](roles/k3s_server/tasks/main.yml#L13)
- [Upgrade : Upgrade node only if needed](roles/k3s_upgrade/tasks/main.yml#L14)

Linked issue #264 k3s_server and k3s_agent tasks are not idempotent

Signed-off-by: Loïc Dubard <[email protected]>
@dereknola
Copy link
Member

Several more were addressed in #288

@peterklijn
Copy link
Contributor

@dereknola now that #347 is merged, I believe all tasks are idempotent.
At least, in the setup I have running, a second run does not report any changes.

I think this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants