找回密码
 注册
查看: 745|回复: 1

{"msg": "The conditional check ''169.254.' not in kolla_internal_

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-6-27 15:59:45 | 显示全部楼层 |阅读模式
TASK [haproxy : Checking if kolla_internal_vip_address is in the same network as api_interface on all nodes] ******************************************************
  {( \9 r& ~- x2 R1 n[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|failed` use `result is failed`. This feature will be removed in version 2.9.
" h) l1 W% P; n- @! Y  [/ m Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.1 T+ I% U) y1 i2 t% \
fatal: [localhost]: FAILED! => {"msg": "The conditional check ''169.254.' not in kolla_internal_vip_address and (ip_addr_output | failed or\n kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none)' failed. The error was: error while evaluating conditional ('169.254.' not in kolla_internal_vip_address and (ip_addr_output | failed or\n kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none)): list object has no element 3"}
; H1 l1 m0 n! [: h+ M/ V

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-6-27 16:00:45 | 显示全部楼层
[root@controller kolla-ansible]# vim ansible/roles/haproxy/tasks/precheck.yml) k& k2 ^6 C& T" m& e; ^, k
#- name: Checking if kolla_internal_vip_address is in the same network as api_interface on all nodes
4 M0 H1 W- @. r! `# b3 r#  become: true
3 R7 K; ?! D+ E5 r! L8 Q#  command: ip -4 -o addr show dev {{ api_interface }}
8 Y) d. `5 k( @% u6 q: s& [/ u#  register: ip_addr_output
# o4 b0 K+ [( d" z; f#  changed_when: false2 U2 H+ b% x2 _! ]& X
#  failed_when: false6 Y" q. i& S  n$ g6 [0 }, x
#    '169.254.' not in kolla_internal_vip_address and
8 G7 W' c4 K0 [% @. M4 U6 D#    (ip_addr_output | failed or
7 N+ H7 H2 l" {; T8 m: q#     kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none). O1 q7 a* x9 \  \* z' z+ U5 T: W7 q
#  when:
5 D8 Q; U, `9 J5 h  \#    - enable_haproxy | bool1 R9 c/ ~5 S( }: x
#    - container_facts['keepalived'] is not defined9 b  D2 g* X( j/ y, W% ^' X$ d  {
#    - inventory_hostname in groups['haproxy']
5 s; k* N; s4 W2 p; B2 p$ l! N! o/ u7 U) F+ U
注释掉这段,重新执行:; u$ ?8 S0 ^$ t2 N% H$ Z

: p! c5 }8 {& E1 Y8 u' _/ g" M! Z! Z8 A
kolla-ansible -i all-in-one prechecks
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 23:57 , Processed in 0.016681 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表