iaas구축 운영가이드 교재 질문] kolla-ansible 실행 에러 > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

iaas구축 운영가이드 교재 질문] kolla-ansible 실행 에러

페이지 정보

profile_image
작성자 devmes0105
댓글 3건 조회 5,535회 작성일 22-12-22 21:35

본문

(kolla) [user@controller ~]$ kolla-ansible -i /etc/kolla/multinode bootstrap-servers

=====

TASK [baremetal : Generate /etc/hosts for all of the nodes] *************************

fatal: [controller]: FAILED! => {"msg": "Address family 'ipv4' undefined on interface 'ens224' for host: 'controller'"}

fatal: [network]: FAILED! => {"msg": "Address family 'ipv4' undefined on interface 'ens224' for host: 'controller'"}

fatal: [compute1]: FAILED! => {"msg": "Address family 'ipv4' undefined on interface 'ens224' for host: 'controller'"}

fatal: [compute2]: FAILED! => {"msg": "Address family 'ipv4' undefined on interface 'ens224' for host: 'controller'"}

fatal: [storage]: FAILED! => {"msg": "Address family 'ipv4' undefined on interface 'ens224' for host: 'controller'"}

=====

 

(kolla) [user@controller ~]$ kolla-ansible -i /etc/kolla/multinode prechecks

=====

TASK [prechecks : Checking the api_interface ip address configuration] **************

fatal: [storage]: FAILED! => {"msg": "The conditional check 'api_interface_address is not defined' failed. The error was: An unhandled exception occurred while templating '{{ 'api' | kolla_address }}'. Error was a <class 'kolla_ansible.exception.FilterError'>, original message: Address family 'ipv4' undefined on interface 'ens224' for host: 'storage'\n\nThe error appears to be in '/home/user/kolla/share/kolla-ansible/ansible/roles/prechecks/tasks/port_checks.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# kolla_address handles relevant address check\n- name: Checking the api_interface ip address configuration\n  ^ here\n"}

fatal: [compute1]: FAILED! => {"msg": "The conditional check 'api_interface_address is not defined' failed. The error was: An unhandled exception occurred while templating '{{ 'api' | kolla_address }}'. Error was a <class 'kolla_ansible.exception.FilterError'>, original message: Address family 'ipv4' undefined on interface 'ens224' for host: 'compute1'\n\nThe error appears to be in '/home/user/kolla/share/kolla-ansible/ansible/roles/prechecks/tasks/port_checks.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# kolla_address handles relevant address check\n- name: Checking the api_interface ip address configuration\n  ^ here\n"}

fatal: [compute2]: FAILED! => {"msg": "The conditional check 'api_interface_address is not defined' failed. The error was: An unhandled exception occurred while templating '{{ 'api' | kolla_address }}'. Error was a <class 'kolla_ansible.exception.FilterError'>, original message: Address family 'ipv4' undefined on interface 'ens224' for host: 'compute2'\n\nThe error appears to be in '/home/user/kolla/share/kolla-ansible/ansible/roles/prechecks/tasks/port_checks.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# kolla_address handles relevant address check\n- name: Checking the api_interface ip address configuration\n  ^ here\n"}

fatal: [controller]: FAILED! => {"msg": "The conditional check 'api_interface_address is not defined' failed. The error was: An unhandled exception occurred while templating '{{ 'api' | kolla_address }}'. Error was a <class 'kolla_ansible.exception.FilterError'>, original message: Address family 'ipv4' undefined on interface 'ens224' for host: 'controller'\n\nThe error appears to be in '/home/user/kolla/share/kolla-ansible/ansible/roles/prechecks/tasks/port_checks.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# kolla_address handles relevant address check\n- name: Checking the api_interface ip address configuration\n  ^ here\n"}

fatal: [network]: FAILED! => {"msg": "The conditional check 'api_interface_address is not defined' failed. The error was: An unhandled exception occurred while templating '{{ 'api' | kolla_address }}'. Error was a <class 'kolla_ansible.exception.FilterError'>, original message: Address family 'ipv4' undefined on interface 'ens224' for host: 'network'\n\nThe error appears to be in '/home/user/kolla/share/kolla-ansible/ansible/roles/prechecks/tasks/port_checks.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n# kolla_address handles relevant address check\n- name: Checking the api_interface ip address configuration\n  ^ here\n"}

===== 

 

해당 관련 이슈 해결 부탁드려요 답글로 설정내용 첨부드리겠습니다

 

 

댓글목록

profile_image

devmes0105님의 댓글

devmes0105 작성일

[controller]
(kolla) [user@controller ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:0c:29:46:03:86 brd ff:ff:ff:ff:ff:ff
    altname enp11s0
    inet 192.168.200.10/24 brd 192.168.200.255 scope global noprefixroute ens192
      valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe46:386/64 scope link noprefixroute
      valid_lft forever preferred_lft forever
3: ens224: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:0c:29:46:03:90 brd ff:ff:ff:ff:ff:ff
    altname enp19s0
=====
(kolla) [user@controller ~]$ cat /etc/hosts
127.0.0.1 localhost
::1        localhost localhost.localdomain localhost6 localhost6.localdomain6

controller      192.168.200.10
======

###################
# Ansible options
###################

kolla_base_distro: "centos"
kolla_install_type: "binary"
openstack_release: "victoria"
kolla_internal_vip_address: "192.168.210.250"
kolla_external_vip_address: "192.168.200.150"
network_interface: "ens224"
kolla_external_vip_interface: "ens192"
neutron_external_interface: "ens256"
enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"
glance_backend_file: "yes"
nova_compute_virt_type: "qemu"

=====

# These initial groups are the only groups required to be modified. The
# additional groups are for more control of the environment.
[control]
# These hostname must be resolvable from your deployment host
#control01
#control02
#control03
controller      ansible_host=192.168.200.10    ansible_become=true

# The above can also be specified as follows:
#control[01:03]    ansible_user=kolla

# The network nodes are where your l3-agent and loadbalancers will run
# This can be the same as a host in the control group
[network]
#network01
#network02
network        ansible_host=192.168.200.40    ansible_become=true

[compute]
#compute01
compute1        ansible_host=192.168.200.20    ansible_become=true
compute2        ansible_host=192.168.200.30    ansible_become=true

[monitoring]
#monitoring01

# When compute nodes and control nodes use different interfaces,
# you need to comment out "api_interface" and other interfaces from the globals.yml
# and specify like below:
#compute01 neutron_external_interface=eth0 api_interface=em1 storage_interface=em1 tunnel_interface=em1

[storage]
#storage01
storage        ansible_host=192.168.200.50    ansible_become=true

[deployment]
localhost      ansible_connection=local

profile_image

devmes0105님의 댓글

devmes0105 작성일

cnotroller:
ens192 -> external (192.168.200.10) // ens224 -> internal (192.168.210.10)

conpute1~2:
ens192 -> external (192.168.200.20~30) // ens224 -> internal (192.168.210.20~30) // ens256 -> storage (192.168.220.20~30)

network:
ens192 -> external (192.168.200.40) // ens224 -> internal (192.168.210.40) // ens256 -> neutron-external (dhcp)

storage:
ens192 -> external (192.168.200.50) // ens224 -> internal (192.168.210.50) // ens256 -> storage (192.168.220.50)


** centos8 설치 화면에서 ip 설정 했는데 설치후 disconnected 되어 있습니다
ens224: disconnected
        "VMware VMXNET3"
        1 connection available
        ethernet (vmxnet3), 00:0C:29:9C:00:62, hw, mtu 1500

ens256: disconnected
        "VMware VMXNET3"
        1 connection available
        ethernet (vmxnet3), 00:0C:29:9C:00:6C, hw, mtu 1500

=====

ens192 제외 아래와 같이 설정되어 있습니다

(kolla) [user@controller ~]$ vi /etc/sysconfig/network-scripts/ifcfg-ens224
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=eui64
NAME=ens224
UUID=fcdd8854-e902-475c-8042-f2a354a072a5
DEVICE=ens224
ONBOOT=no
IPADDR=192.168.210.10
PREFIX=24
GATEWAY=192.168.210.1

감사합니다

profile_image

devmes0105님의 댓글

devmes0105 작성일

앗 관리자님,
sudo nmcli connection modify "ens224" autoconnect yes ;
sudo nmcli connection modify "ens256" autoconnect yes
 상기 명령어로 해결됐습니다.. 신경써주셔서 감사합니다

회원로그인

회원가입

사이트 정보

회사명 : (주)리눅스데이타시스템
대표이사 : 정정모
본사 : 강남구 봉은사로 114길 40 홍선빌딩 2층
- tel : 02-6207-1160
대전지사 : 유성구 노은로174 도원프라자 5층
- tel : 042-331-1161

접속자집계

오늘
2,791
어제
2,083
최대
3,935
전체
1,133,377
Copyright © www.linuxdata.org All rights reserved.