Skip to content

Conversation

@liulinC
Copy link
Collaborator

@liulinC liulinC commented Jan 26, 2026

The target pool has leaved AD, the joining host leave AD as well. However, the AD status is somehow corrupt

  • external_auth_type is empty, this is expected
  • external_auth_service_name is a valid domain

This confused pool.join as it thinks AD is not enabled, but somehow joined to a domain.

  • Normal domain leave does not resolve the issue, and it does not join domain
  • Join domain again(failed) does not resolve it neither, as xapi will restore to the current value before join on failed.

This commit introduce force option to host.disable_external_auth API to force clean up to recover host

BTW, current code try to keep them consistent already, but not atomic.

The target pool has leaved AD, the joining host leave AD as well.
However, the AD status is somehow corrupt
- external_auth_type is empty, this is expected
- external_auth_service_name is a valid domain

This confused pool.join as it thinks AD is not enabled, but
somehow joined to a domain.

- Normal domain leave does not resolve the issue, and it does not
join domain
- Join domain again(failed) does not resolve it neither, as xapi will
restore to the current value before join on failed.

This commit introduce force option to host.disable_external_auth API
to force clean up to recover host

BTW, current code try to keep them consistent already, but not atomic.

Signed-off-by: Lin Liu <lin.liu01@citrix.com>
@liulinC
Copy link
Collaborator Author

liulinC commented Jan 26, 2026

This is back port of #6832

Signed-off-by: Lin Liu <lin.liu01@citrix.com>
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

Successfully merging this pull request may close these issues.

2 participants