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

aii-rci (aii-shellfe --reinstall) exit code is misleading #309

Open
itkovian opened this issue Apr 26, 2019 · 4 comments
Open

aii-rci (aii-shellfe --reinstall) exit code is misleading #309

itkovian opened this issue Apr 26, 2019 · 4 comments
Milestone

Comments

@itkovian
Copy link

itkovian commented Apr 26, 2019

If aii-rci encounters an error along the way, the exit code is still 0. For example:

  [root@host ~]# aii-rci machine.domain
  [INFO] remove step for reinstall option.
  echo $?
  [ERROR] host_disable got error (Error CertificateOperationError/4301/Certificate operation cannot be completed: Unable to communicate with CMS (500))
  [INFO] ran remove on 1 nodes
  [INFO] configure step for reinstall option.
  [INFO] DHCP will be updated and restarted if needed
  [ERROR] host_add got error (Error NotFound/4001/DNS zone domain. not found)
  [ERROR] host_mod got error (Error ValidationError/3009/invalid 'password': Password cannot be set on enrolled host.)
  [ERROR] freeipa post_reboot: no OTP for machine.domain
  [INFO] ran configure on 1 nodes
  [INFO] install step for reinstall option.
  [INFO] ran install on 1 nodes
  [root@host ~]# echo $?
  0
@jrha jrha added this to the 19.6 milestone Apr 29, 2019
@jrha jrha modified the milestones: 19.12, 20.2 Dec 10, 2019
@jrha
Copy link
Member

jrha commented Dec 10, 2019

@stdweird is aii-rci UGent specific?

@stdweird
Copy link
Member

it's used to be, now it's aii-shellfe --reinstall

@jrha
Copy link
Member

jrha commented Dec 11, 2019

aha!

@jrha jrha modified the milestones: 20.12, 21.3 Dec 16, 2020
@jrha
Copy link
Member

jrha commented May 4, 2021

Confirmed in to occur in aii-shellfe:

# aii-shellfe --reinstall machine.domain; echo $?
[INFO] remove step for reinstall option.
[ERROR] No node matches machine(.domain)
[INFO] configure step for reinstall option.
[ERROR] No node matches machine(.domain)
[INFO] install step for reinstall option.
[ERROR] No node matches machine(.domain)
0

@jrha jrha changed the title aii-rci exit code is misleading aii-rci (aii-shellfe --reinstall) exit code is misleading May 4, 2021
@jrha jrha modified the milestones: 21.8, 21.6 May 4, 2021
@jrha jrha modified the milestones: 21.12, 22.2 Oct 27, 2021
@jrha jrha modified the milestones: 23.6, 23.next Jun 23, 2023
@jrha jrha modified the milestones: 23.9, 23.next Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants