找回密码
 注册
查看: 746|回复: 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 A1 Z- l/ J! J( G
[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.
9 {6 V- O6 Q  S+ k  W Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.0 L6 S2 y4 O) Z
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"}
& x8 t9 G" V# k

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-6-27 16:00:45 | 显示全部楼层
[root@controller kolla-ansible]# vim ansible/roles/haproxy/tasks/precheck.yml
3 [  n: r" |: i" d! \0 J2 x. }#- name: Checking if kolla_internal_vip_address is in the same network as api_interface on all nodes# U; P" v+ `; A- E8 I4 V
#  become: true
- a8 A& ^# G, o#  command: ip -4 -o addr show dev {{ api_interface }}# E7 M3 ^( f' x" ?+ o7 V; d% K' g6 [
#  register: ip_addr_output' @9 v! _4 z* ]; f
#  changed_when: false
3 K9 `8 v4 `6 E" V" v+ u# I8 |) t#  failed_when: false
- \5 q! P/ s* A2 W4 K+ l* `#    '169.254.' not in kolla_internal_vip_address and. p  p) n% B! b* O9 k0 B
#    (ip_addr_output | failed or1 b( w+ _, [2 K2 q/ v1 y
#     kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none)' z9 O& y& n1 K$ x/ N; i7 [( R
#  when:9 U' T6 m& x+ {/ u* @2 a' s7 D
#    - enable_haproxy | bool
/ o8 s9 Q9 d8 }1 V#    - container_facts['keepalived'] is not defined
9 s! E$ N2 N4 X1 V2 x( w#    - inventory_hostname in groups['haproxy']
3 F% q1 I1 r& v$ B* K& B
- Z9 R0 U6 _% P! g' G' ?; P/ |, W) Z注释掉这段,重新执行:
' s3 |5 s- Q  ^
+ M/ W4 }& T3 ]! x: D6 y/ D9 j5 w  v* g
kolla-ansible -i all-in-one prechecks
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:13 , Processed in 0.023632 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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