找回密码
 注册
查看: 747|回复: 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] ******************************************************
# R4 ?1 N1 x- W[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.! y+ r7 ?  ]5 z+ E' o9 ]: i
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
, x! V9 C: W" A9 n; ufatal: [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"}
/ M7 A8 o% \0 o* [

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-6-27 16:00:45 | 显示全部楼层
[root@controller kolla-ansible]# vim ansible/roles/haproxy/tasks/precheck.yml
: ]: d, _/ r5 H7 K5 w" k9 s#- name: Checking if kolla_internal_vip_address is in the same network as api_interface on all nodes
1 M4 D% P7 K9 k+ I$ P#  become: true& b. q  |4 x$ G- H" D
#  command: ip -4 -o addr show dev {{ api_interface }}
1 j' t4 e& |( \& M. Q#  register: ip_addr_output
+ P  f$ z6 T/ o0 h* f! k#  changed_when: false# s. P# z3 G& j$ }- X
#  failed_when: false
( I' u/ g0 A" h- D#    '169.254.' not in kolla_internal_vip_address and
( z# p6 X/ b6 r+ L( ?#    (ip_addr_output | failed or- a4 x/ I, C( w7 j# V
#     kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none)$ c* Y! O4 P1 y9 t! |0 C
#  when:
0 i3 d8 E7 u+ Y3 Z7 d#    - enable_haproxy | bool8 a9 O: N1 @1 G& L8 S  i# ?1 S
#    - container_facts['keepalived'] is not defined- B" n6 m  l- d4 q, A; s
#    - inventory_hostname in groups['haproxy']
1 A9 x8 ]) g; K/ D0 ]$ D  E$ J& ^) T( U% G3 c
注释掉这段,重新执行:
& t  L" F; e- E7 X& [. c- d
/ U* e) v) m5 R& B+ g
* p7 `  ^% h* T$ F4 |+ g kolla-ansible -i all-in-one prechecks
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:10 , Processed in 0.018201 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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