60.Cloud/60.OpenStack
[Kolla-ansible] kolla ansible에서 cinder backend를 NFS로 사용하기
왕영주
2021. 6. 30. 10:09
NFS 서버 생성
https://yjwang.tistory.com/171
이후 Kolla-ansible은 https://yjwang.tistory.com/112
를 기반으로 하되 config는 아래를 참고합니다.
https://docs.openstack.org/kolla-ansible/queens/reference/cinder-guide.html
multinode에 storage 쪽에 cinder-volume 이 실행될 호스트를 추가해줍니다.
globals.yml (dvr을 위해 enable_neutron_provider_network도 설정했으나 환경에 맞게 변경하시기 바랍니다.)
# grep -Ev '^#|^$' /etc/kolla/globals.yml
---
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "wallaby"
kolla_internal_vip_address: "10.99.99.25"
kolla_external_vip_address: "192.168.123.199"
network_interface: "ens2"
kolla_external_vip_interface: "ens5"
neutron_external_interface: "ens3"
openstack_logging_debug: "True"
enable_openstack_core: "yes"
enable_cinder: "yes"
enable_cinder_backup: "no"
enable_cinder_backend_nfs: "yes"
enable_neutron_provider_networks: "yes"
glance_backend_file: "yes"
이후 NFS export 정보를 kolla config에 설정합니다.
# ansible -m file -a 'path=/etc/kolla/config state=directory' localhost
# ansible -m file -a 'path=/etc/kolla/config/nfs_shares state=touch' localhost
# ansible -m lineinfile -a 'path=/etc/kolla/config/nfs_shares line="10.99.99.20:/data"' localhost
# ansible -m shell -a 'cat /etc/kolla/config/nfs_shares' localhost
localhost | CHANGED | rc=0 >>
10.99.99.20:/data
이후 kolla를 deploy합니다.
반응형