书接上回 OpenStack Kolla-Ansible部署Designate域名解析服务DNS服务DNSaas
本章我们继续来完成OpenStack示例配置组件之Container Optimized中的Zun容器服务。OpenStack Kolla-Ansible部署Zun容器服务。
Zun 是一种 OpenStack 容器服务。它旨在提供一个 OpenStack API,用于在 OpenStack 上配置和管理容器化工作负载。
在部署机,找到 /etc/l
enable_zun: "yes"
enable_kuryr: "yes"
enable_etcd: "yes"
docker_configure_for_zun: "yes"
containerd_configure_for_zun: "yes"
另外再添加一行
zun_configure_for_cinder_ceph: "yes"
需要cinder先对接ceph
mkdir -p /etc/kolla/config/zun/zun-compute
ln -s /etc/kolla/config/f /etc/kolla/config/zun/f
ln -s /etc/kolla/config/cinder/ceph.client.cinder.keyring /etc/kolla/config/zun/zun-compute/ceph.client.cinder.keyring
kolla-ansible -i ./multinode bootstrap-servers
报错如下
The repository ' jammy Release' does not have a Release file
TASK [openstack.kolla.baremetal : Enable ceph apt repository] ************************************************************************************************************************************************************************
task path: /root/.ansible/collections/ansible_collections/openstack/kolla/roles/baremetal/l:12
Using module file /path/to/venv/lib/python3.10/site-packages/ansible/modules/apt_repository.py
Pipelining is enabled.
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'python && sleep 0'
fatal: [localhost]: FAILED! => {"changed": false,"invocation": {"module_args": {"codename": null,"filename": "ceph","install_python_apt": true,"mode": null,"repo": "deb / jammy main","state": "present","update_cache": true,"update_cache_retries": 5,"update_cache_retry_max_delay": 12,"validate_certs": true}},"msg": "Failed to update apt cache: E:The repository ' jammy Release' does not have a Release file., W:Updating from such a repository can't be done securely, and is therefore disabled by default., W:See apt-secure(8) manpage for repository creation and user configuration details., W:: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details."
}
原因:ceph官方仓库没有jammy版本的软件包,但是Ubuntu官方有ceph-common这个软件包
(venv) root@ubuntu:~# apt search ceph-common
Done
Full Done
ceph-common/jammy-updates 17.2.0-0ubuntu0.22.04.2 amd64common utilities to mount and interact with a ceph storage clusterpython3-ceph-common/jammy-updates 17.2.0-0ubuntu0.22.04.2 allPython 3 utility libraries for Ceph
解决,关闭zun自动配置ceph,
zun_configure_for_cinder_ceph = "no"
手动安装ceph-common软件包
apt install ceph-common -y
kolla-ansible -i ./multinode deploy
kolla-ansible -i ./multinode post-deploy
pip install python-zunclient
本文发布于:2024-02-03 04:44:02,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170690664048726.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |