找回密码
 注册
查看: 744|回复: 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] ******************************************************
' f+ q8 ^8 i* i- J- s[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 M7 n# ?& w9 p9 D4 K3 A+ G
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg., G+ w$ ]/ g+ }! T: M5 B
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"}0 z( c, w, a; m' a9 }

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-6-27 16:00:45 | 显示全部楼层
[root@controller kolla-ansible]# vim ansible/roles/haproxy/tasks/precheck.yml; F; T) ?; F3 |7 d% h
#- name: Checking if kolla_internal_vip_address is in the same network as api_interface on all nodes
) l2 [# @7 D% |' n  a# A% d#  become: true3 m5 a0 J* Z/ j! R! B
#  command: ip -4 -o addr show dev {{ api_interface }}/ W5 k: ]$ C$ z$ G7 q( i
#  register: ip_addr_output
& U9 A, I& S7 y; d* [. N; Z. D5 p#  changed_when: false
: J9 ^% W" y  A& I) r3 u#  failed_when: false
# i$ t6 m# b: T7 E8 S; E" X#    '169.254.' not in kolla_internal_vip_address and
. I/ a: F5 C( f/ p#    (ip_addr_output | failed or( C) l$ P0 P& ?( a
#     kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none)6 G0 G5 `4 i& F& N. \
#  when:0 A: l9 [; ]! h* V( `
#    - enable_haproxy | bool5 Y2 l2 ]! r6 N* ^2 \, ]
#    - container_facts['keepalived'] is not defined
$ [. r9 w: ?1 W3 |  R#    - inventory_hostname in groups['haproxy']/ G! J; g$ l- _0 `1 ?7 `

4 ~2 [# Z5 E2 ^5 _% S+ F注释掉这段,重新执行:
- {6 J3 [! Q+ L: P  k+ n- u' h, X# N) N0 ^7 q9 h% u- K! P

3 @9 D# b# v* e kolla-ansible -i all-in-one prechecks
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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