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

ipatopologysuffix checked not working #1204

Open
FF186 opened this issue Jan 30, 2024 · 3 comments
Open

ipatopologysuffix checked not working #1204

FF186 opened this issue Jan 30, 2024 · 3 comments

Comments

@FF186
Copy link

FF186 commented Jan 30, 2024

- name: Check topology segment
  freeipa.ansible_freeipa.ipatopologysuffix:
    ipaadmin_principal: admin
    ipaadmin_password: myPassword
    suffix: domain
    left: replica1.example.com
    right: replica2.example.com
    state: checked


Result: 
FAILED! => {"changed": false, "msg": "value of state must be one of: verified, got: checked"}
@t-woerner
Copy link
Member

Please use state: verified for ipatopologysuffix.

@FF186
Copy link
Author

FF186 commented Jan 30, 2024

@t-woerner , thanks for you reply.

However, I can't gain any information from running state: verified. I would really like to check if there's an error between the replicas. Not supported?

What about reinitialization?

- name: Check topology segment
  freeipa.ansible_freeipa.ipatopologysuffix:
    ipaadmin_principal: admin
    ipaadmin_password: myPassword
    suffix: domain
    left: replica1.example.com
    right: replica2.example.com
    state: reinitialized

FAILED! => {"changed": false, "msg": "value of state must be one of: verified, got: reinitialized"}

However, state: verified does not reinitialize my replicas. I still get:

replica
  last update status: Error (19) Replication error acquiring replica: Replica has different database generation ID, remote replica may need to be initialized (RUV error)
  last update ended: 1970-01-01 00:00:00+00:00

@FF186
Copy link
Author

FF186 commented Jan 31, 2024

Doens't seem to work as intended, sticking to ipa CLI for now:

  • command: ipa-replica-manage re-initialize --from replica1.example.com
    args:
    stdin: "myPassword"
    delegate_to: "replica{{ item }}.example.com"
    loop: "{{ (range(1, groups[ipareplica] | length | int + 1) | list }}"

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

2 participants