Commit a07cb45
Lin Liu
CA-422713: XSI-2105: Pool.join failed due to AD status corrupt
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>1 parent c87bde9 commit a07cb45
File tree
6 files changed
+41
-30
lines changed- ocaml
- idl
- xapi-cli-server
- xapi
6 files changed
+41
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2033 | 2033 | | |
2034 | 2034 | | |
2035 | 2035 | | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
2036 | 2043 | | |
2037 | 2044 | | |
2038 | 2045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7089 | 7089 | | |
7090 | 7090 | | |
7091 | 7091 | | |
7092 | | - | |
| 7092 | + | |
7093 | 7093 | | |
7094 | 7094 | | |
7095 | 7095 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3730 | 3730 | | |
3731 | 3731 | | |
3732 | 3732 | | |
3733 | | - | |
| 3733 | + | |
3734 | 3734 | | |
3735 | 3735 | | |
3736 | | - | |
3737 | | - | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
3738 | 3740 | | |
3739 | 3741 | | |
3740 | 3742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1889 | 1889 | | |
1890 | 1890 | | |
1891 | 1891 | | |
1892 | | - | |
| 1892 | + | |
1893 | 1893 | | |
1894 | 1894 | | |
1895 | 1895 | | |
1896 | 1896 | | |
1897 | 1897 | | |
1898 | | - | |
| 1898 | + | |
1899 | 1899 | | |
1900 | 1900 | | |
1901 | 1901 | | |
| |||
1936 | 1936 | | |
1937 | 1937 | | |
1938 | 1938 | | |
| 1939 | + | |
| 1940 | + | |
1939 | 1941 | | |
1940 | 1942 | | |
1941 | 1943 | | |
| |||
1957 | 1959 | | |
1958 | 1960 | | |
1959 | 1961 | | |
1960 | | - | |
1961 | | - | |
1962 | | - | |
1963 | | - | |
1964 | | - | |
1965 | | - | |
1966 | | - | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
1970 | | - | |
1971 | | - | |
1972 | | - | |
1973 | 1962 | | |
1974 | 1963 | | |
1975 | 1964 | | |
| |||
1978 | 1967 | | |
1979 | 1968 | | |
1980 | 1969 | | |
1981 | | - | |
| 1970 | + | |
| 1971 | + | |
1982 | 1972 | | |
1983 | 1973 | | |
1984 | | - | |
1985 | | - | |
1986 | | - | |
1987 | | - | |
1988 | | - | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
1989 | 1977 | | |
1990 | 1978 | | |
1991 | | - | |
| 1979 | + | |
1992 | 1980 | | |
1993 | | - | |
| 1981 | + | |
1994 | 1982 | | |
1995 | 1983 | | |
1996 | 1984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
| 372 | + | |
371 | 373 | | |
372 | 374 | | |
373 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2037 | 2037 | | |
2038 | 2038 | | |
2039 | 2039 | | |
2040 | | - | |
| 2040 | + | |
2041 | 2041 | | |
2042 | 2042 | | |
2043 | 2043 | | |
| |||
2973 | 2973 | | |
2974 | 2974 | | |
2975 | 2975 | | |
2976 | | - | |
| 2976 | + | |
2977 | 2977 | | |
2978 | 2978 | | |
2979 | 2979 | | |
| |||
3041 | 3041 | | |
3042 | 3042 | | |
3043 | 3043 | | |
3044 | | - | |
| 3044 | + | |
3045 | 3045 | | |
3046 | 3046 | | |
3047 | 3047 | | |
| |||
3100 | 3100 | | |
3101 | 3101 | | |
3102 | 3102 | | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
3103 | 3114 | | |
3104 | 3115 | | |
3105 | 3116 | | |
| 3117 | + | |
3106 | 3118 | | |
3107 | 3119 | | |
3108 | 3120 | | |
| |||
0 commit comments