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

Reset cluster is failed. Again #10301

Closed
Mishavint opened this issue Jul 20, 2023 · 1 comment · Fixed by #10303
Closed

Reset cluster is failed. Again #10301

Mishavint opened this issue Jul 20, 2023 · 1 comment · Fixed by #10303
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Mishavint
Copy link
Contributor

Environment:

  • Cloud provider or hardware configuration:
    Hardware

  • OS (printf "$(uname -srm)\n$(cat /etc/os-release)\n"):
    Linux 6.4.3-060403-generic x86_64
    PRETTY_NAME="Ubuntu 22.04.2 LTS"
    NAME="Ubuntu"
    VERSION_ID="22.04"
    VERSION="22.04.2 LTS (Jammy Jellyfish)"
    VERSION_CODENAME=jammy
    ID=ubuntu
    ID_LIKE=debian
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    UBUNTU_CODENAME=jammy

  • Version of Ansible (ansible --version):
    ansible [core 2.15.2]
    config file = /home/misha/Ansible/kubespray/ansible.cfg
    configured module search path = ['/home/misha/Ansible/kubespray/library']
    ansible python module location = /home/misha/.local/lib/python3.10/site-packages/ansible
    ansible collection location = /home/misha/.ansible/collections:/usr/share/ansible/collections
    executable location = /home/misha/.local/bin/ansible
    python version = 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] (/usr/bin/python3)
    jinja version = 3.1.2
    libyaml = True

  • Version of Python (python --version):
    Python 3.10.6

Kubespray version (commit) (git rev-parse --short HEAD):
d2383d2

Network plugin used:

Full inventory with variables (ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"):

Command used to invoke ansible:

Output of ansible run:

[Reset Confirmation]
Are you sure you want to reset cluster state? Type 'yes' to reset your cluster.:

TASK [Reset Confirmation] *************************************************************************************************************
ok: [node1]
Четверг 20 июля 2023 12:55:02 +0300 (0:00:02.223) 0:00:12.590 **********

TASK [Check confirmation] *************************************************************************************************************
fatal: [node1]: FAILED! => {"changed": false, "msg": "Reset confirmation failed"}
fatal: [node2]: FAILED! => {"changed": false, "msg": "Reset confirmation failed"}
fatal: [node3]: FAILED! => {"changed": false, "msg": "Reset confirmation failed"}

Anything else do we need to know:

I assume problem is here:
- name: Reset Confirmation
pause:
prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
register: reset_confirmation
run_once: True
when:
- not (skip_confirmation | default(false) | bool)
- reset_confirmation is not defined
- name: Check confirmation
fail:
msg: "Reset confirmation failed"
when:
- not reset_confirmation | default(false) | bool
- not reset_confirmation_prompt.user_input | default("") == "yes"

@Mishavint Mishavint added the kind/bug Categorizes issue or PR as related to a bug. label Jul 20, 2023
@Mishavint
Copy link
Contributor Author

Mishavint commented Jul 20, 2023

It is continuation of the #10288 PR.
reset_confirmation_prompt is not defined variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant