iaas구축 운영가이드 교재 질문] ansible version 이슈 > 질문답변

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

질문답변

iaas구축 운영가이드 교재 질문] ansible version 이슈

페이지 정보

profile_image
작성자 devmes0105
댓글 7건 조회 6,110회 작성일 22-12-22 06:26

본문

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

ERROR: Ansible version should be between 2.12 and 2.13. Current version is 2.10.17 which is not supported.

 

책 내용대로 설치를 진행하였으나, 상기 에러로 더이상 진행이 불가합니다..

 

 (kolla) [user@controller ~]$ ansible --version

/home/user/kolla/lib64/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.

  from cryptography.exceptions import InvalidSignature

ansible 2.10.17

  config file = /etc/ansible/ansible.cfg

  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']

  ansible python module location = /home/user/kolla/lib64/python3.6/site-packages/ansible

  executable location = /home/user/kolla/bin/ansible

  python version = 3.6.8 (default, Oct 26 2022, 09:13:21) [GCC 8.5.0 20210514 (Red Hat 8.5.0-17)]

 

확인 부탁드립니다

댓글목록

profile_image

snow님의 댓글

snow 작성일

안녕하세요

문의 주신 오류는 Kolla ansible 최신 버전 설치로 인한 오류로 파악됩니다.
Openstack Victoria 버전에 적합한 Kolla Ansible 설치를 진행해주신다면 오류가 해결될 것으로 예상됩니다.

1. 기존 Kolla-Ansible 삭제
`- pip uninstall kolla-ansible`
2. 알맞는 Kolla-Ansible 설치 (https 부분에 하이픈 제거 후 명령실행)
- pip install git+h-t-t-p-s-://github.com/openstack/kolla-ansible@stable/[설치하는 Openstack 버전 명]

profile_image

devmes0105님의 댓글의 댓글

devmes0105 작성일

(kolla) [user@controller ~]$ kolla-ansible -i /etc/kolla/multinode bootstrap-servers
ERROR: Ansible version should be between 2.9 and 2.9. Current version is 2.10.17 which is not supported.

답변주신대로 진행했는데 이번엔 2.9 버전을 요구하네요 ㅜㅜ

pip install git+h-t-t-p-s-://github.com/openstack/kolla-ansible@stable/victoria 이렇게 진행했습니다.. (하이폰 제거)

profile_image

snow님의 댓글의 댓글

snow 작성일

아래 방법을 이용하여 재설치 후 실습 진행하시면 됩니다.
1. 기존 Ansible 삭제
- pip uninstall ansible ansible-base
2. 알맞는 Ansible 설치
- pip install 'ansible<2.10.'

profile_image

devmes0105님의 댓글의 댓글

devmes0105 작성일

ansible을 지우고 2.9.23 버전으로 재설치했는데 해당 오류가 뜨네요 ..

(kolla) [user@controller ~]$ kolla-ansible -i /etc/kolla/multinode bootstrap-servers
Bootstrapping servers : ansible-playbook -i /etc/kolla/multinode -e @/etc/kolla/globals.yml  -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla  -e kolla_action=bootstrap-servers /home/user/kolla/share/kolla-ansible/ansible/kolla-host.yml
/home/user/kolla/lib64/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
  from cryptography.exceptions import InvalidSignature
ERROR! Unexpected Exception, this is probably a bug: cannot import name 'AnsibleCollectionLoader'
the full traceback was:

Traceback (most recent call last):
  File "/home/user/kolla/bin/ansible-playbook", line 92, in <module>
    mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
  File "/home/user/kolla/lib64/python3.6/site-packages/ansible/cli/__init__.py", line 22, in <module>
    from ansible.inventory.manager import InventoryManager
  File "/home/user/kolla/lib64/python3.6/site-packages/ansible/inventory/manager.py", line 38, in <module>
    from ansible.plugins.loader import inventory_loader
  File "/home/user/kolla/lib64/python3.6/site-packages/ansible/plugins/loader.py", line 26, in <module>
    from ansible.utils.collection_loader import AnsibleCollectionLoader, AnsibleFlatMapLoader, AnsibleCollectionRef
ImportError: cannot import name 'AnsibleCollectionLoader'
Command failed ansible-playbook -i /etc/kolla/multinode -e @/etc/kolla/globals.yml  -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla  -e kolla_action=bootstrap-servers /home/user/kolla/share/kolla-ansible/ansible/kolla-host.yml

profile_image

snow님의 댓글의 댓글

snow 작성일

아래 방법을 이용하여 재설치 후 실습 진행하시면 됩니다.
1. 기존 Ansible 삭제
- pip uninstall ansible ansible-base
2. 알맞는 Ansible 설치
- pip install 'ansible<2.10.'
3. 버전 확인
- (kolla) [root@controller ~]# pip freeze | grep ansible
==========
ansible==2.9.27
kolla-ansible @ git+h-t-t-p-s-://github.com/openstack/kolla-ansible@0ea41464ef40d236bded63730e2fb205c79a9517
==========

또한 kolla-ansible을 재설치하였다면 kolla-ansible 관련 파일을 다시 복사하여야 합니다
해당 내용은 3.4.7 목차에 3,4 번을 확인해주시면 됩니다.

profile_image

devmes0105님의 댓글의 댓글

devmes0105 작성일

감사합니다. 해당 문제는 해결 되었는데 다음 단계에서 막혀서요..

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: [storage]: 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'"}


TASK [prechecks : Checking the api_interface ip address configuration] **************
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: [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: [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: [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

snow님의 댓글의 댓글

snow 작성일

먼저 모든 머신의 /etc/hosts에 controller 서버에 대한 정보를 입력해보신 후 안될 경우
현재 머신의 nic 정보(ifconfig), multinode 파일, globals.yml 파일 내용을 확인해봐야 할 거 같습니다

만약 내용 공유를 해주실 경우, 댓글로는 내용이 길어질 것 같으므로,
새로운 게시글로 문의부탁드립니다

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
2,172
어제
1,461
최대
3,935
전체
1,128,419
Copyright © www.linuxdata.org All rights reserved.