- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
TASK [prechecks : include_tasks] *****************************************************************************************************************************************
- Z( V$ s/ m6 G9 M& c/ H- oincluded: /usr/local/share/kolla-ansible/ansible/roles/prechecks/tasks/host_os_checks.yml for compute1, controller, localhost
$ G4 @0 }8 F7 t4 u, i6 O/ u" B. d: M! X8 N; C3 l5 z% \
TASK [prechecks : Checking host OS distribution] *************************************************************************************************************************
8 e m) P5 I% g `1 Pfatal: [compute1]: FAILED! => {
& [* g9 f, R0 B" V n, @/ d$ Y "assertion": "ansible_facts.distribution in host_os_distributions",
c% X8 i: e& e* R. G "changed": false,
6 q0 N! x. V# G1 l$ H6 @" x, j5 y "evaluated_to": false,
6 q: O! a7 |4 |1 ` ] "msg": "Host OS distribution openEuler is not supported. Supported distributions are: CentOS, Debian, Rocky, Ubuntu"* ]$ p) _0 Q! \# f
}
% f6 u8 ~' N3 ^6 n0 u" efatal: [controller]: FAILED! => {) n, `4 U$ g! y3 p2 Y; c$ g
"assertion": "ansible_facts.distribution in host_os_distributions",
% L" u0 M \/ s& v1 X% { "changed": false,
1 R1 }/ ~- o! k: E3 h# o1 R "evaluated_to": false,) w* O9 D- r+ Q! Q% b0 N* s3 K
"msg": "Host OS distribution openEuler is not supported. Supported distributions are: CentOS, Debian, Rocky, Ubuntu"
9 |* V/ j( A1 h* e3 }}
8 W# e, `3 D, X0 c1 P" z4 nfatal: [localhost]: FAILED! => {# t9 b( C2 P% m# y$ b) j+ g6 t4 j
"assertion": "ansible_facts.distribution in host_os_distributions",9 u* B( a6 C# n/ p
"changed": false,7 z0 g/ d" F1 z: v
% U! j, [& w: m; y+ @& Q# @
"evaluated_to": false,) T: a+ ^" s% S/ r" c
"msg": "Host OS distribution openEuler is not supported. Supported distributions are: CentOS, Debian, Rocky, Ubuntu"
2 ]/ D- C" g7 Z7 B}$ o! z% M0 {! P; }
/ [5 ~8 S% `0 oPLAY RECAP ***************************************************************************************************************************************************************2 d. I; y+ g5 T/ s
compute1 : ok=6 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
0 ~1 [. i; V; i% o$ Zcontroller : ok=6 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
) h3 \. F4 G3 O plocalhost : ok=6 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 ) ` D$ [5 S6 N, u6 Q5 B
' b; Z* z. c! w. \) Y4 g$ L
G ?3 n/ v8 P3 ^4 K1 H" B解决办法:$ \6 s5 B9 |- _; X/ x
4 B" k$ ]; l$ Q" T! ~ vim /usr/local/share/kolla-ansible/ansible/roles/prechecks/tasks/host_os_checks.yml o- @4 k& n# r% z
注释掉os检查:
% s4 d- ?1 t: l) W
; @+ W7 _( E( K; K) M; q: v* e---
; {3 ^; I! U# i) x# X% _#- name: Checking host OS distribution: I1 W/ D& j' A! S* D7 x+ K
# assert:
( D* k9 f C! R6 P! m$ V9 c( `, f1 J# that: ansible_facts.distribution in host_os_distributions2 O4 n ?& a/ m/ @7 j& i
# fail_msg: >-8 {8 [2 E/ ~: b- J. Q7 j" h
# Host OS distribution {{ ansible_facts.distribution }} is not supported.
9 _6 I, K9 I+ \% G" A% n# Supported distributions are: {{ host_os_distributions.keys() | join(', ') }}! |1 s8 h; J% U& \* E1 E7 o
#6 E# t/ H+ G, t1 `) y0 l
#- name: Checking host OS release or version) U7 w5 k! h" `6 U( H4 U; J
# assert:. N- B7 U6 y. l9 E" h9 n4 P! J
# that: }" _: C9 C( D: s0 Q! G3 s
# - ansible_facts.distribution_release in host_os_distributions[ansible_facts.distribution] or
- M$ p/ z8 f2 v% X# ansible_facts.distribution_version in host_os_distributions[ansible_facts.distribution] or/ ~" E0 e- T3 \9 B# Q: T
# ansible_facts.distribution_major_version in host_os_distributions[ansible_facts.distribution]
/ o& t0 }; j C3 M7 Q# fail_msg: >-* @% J* K6 j( w @. t* j4 V
# {{ ansible_facts.distribution }} release {{ ansible_facts.distribution_release }}
v1 P( r& x: ?) K! u# version {{ ansible_facts.distribution_version }} is not supported." p* _8 k* a* e% I Z; w! y! ~
# Supported releases are:# e5 s% f6 O' l2 ? t( G
# {{ host_os_distributions[ansible_facts.distribution] | join(', ') }}7 z ]& Q$ B( v/ K# R5 m
#; X3 c1 N& ?5 \$ l- n& e- |: F
#- name: Checking if CentOS is Stream: |2 Q2 F) c R4 |
# become: true2 z) X, f" p* ]' q1 A9 K
# command: grep -q Stream /etc/os-release/ t$ z9 r: v. \% q2 f$ N- \
# register: stream_status4 C" c/ {& m& H& E/ Y* B" r
# changed_when: false& a+ u# n9 D6 x. X
# check_mode: false) o: r9 }2 }5 z. L/ [8 x% s
# when:% B# K s. f3 @4 k
# - ansible_facts.distribution == 'CentOS'
$ {- C' j0 _' {#. A7 B' t, J' L: T* M" }/ |! C& W
#- name: Fail if not running on CentOS Stream
# l5 c; e! S& N) |& c0 h# fail:% V( J7 \; d" U% m1 g+ t. W) c
# msg: CentOS Linux is not supported, you need to run CentOS Stream.: p; a/ h a U# t9 G& Y# K
# when:0 w' f& z8 _8 z R
# - ansible_facts.distribution == 'CentOS'2 S* R" g7 b# z% }6 N' { r
# - stream_status.rc != 0
9 C% w$ Z+ k- I9 C+ k1 G5 V$ s; y/ u: V \
) j0 r9 R2 K9 t6 S5 J4 s, U
9 A% O8 J0 {( @/ h& e
/ N; r. g0 q( g' u1 M w- I( j再次执行即可:
1 J. D& ` o# f+ l& ^: K8 Y" b; N& m( {& r! ?2 f; u" u5 P- z
PLAY RECAP **************************************************************************************************************************************************************8 H( ^7 k' W4 h
compute1 : ok=70 changed=0 unreachable=0 failed=0 skipped=48 rescued=0 ignored=0
/ J/ Z! o% S: `- Pcontroller : ok=102 changed=0 unreachable=0 failed=0 skipped=134 rescued=0 ignored=0
* B5 \+ p) w/ _( V6 S" |- blocalhost : ok=11 changed=0 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0
5 M7 h" @& n& l4 @% e" t9 t5 x& J3 H9 G. ]4 R" M
) V3 F$ H$ {. _& h5 H
& W0 z! b1 a) j% y4 A8 X) a3 a8 m: f- y
4 E- g U: Q; ~1 _9 P- Y5 }2 H
) }/ |# {2 v) u" ~( o W d0 @; J$ n: x4 p
|
|