OpenStack Kolla

阅读: 评论:0

OpenStack Kolla

OpenStack Kolla

书接上回 OpenStack Kolla-Ansible部署Designate域名解析服务DNS服务DNSaas

本章我们继续来完成OpenStack示例配置组件之Container Optimized中的Zun容器服务。OpenStack Kolla-Ansible部署Zun容器服务。

Zun 是一种 OpenStack 容器服务。它旨在提供一个 OpenStack API,用于在 OpenStack 上配置和管理容器化工作负载。


1. 设置kolla

在部署机,找到 /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"

1.1 复制ceph文件

需要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

 

2. 重新引导

kolla-ansible -i ./multinode bootstrap-servers

2.1 常见问题 

2.1.1 找不到ceph软件包

报错如下

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

3. 重新部署

kolla-ansible -i ./multinode deploy

4. 生成凭据文件

kolla-ansible -i ./multinode post-deploy

5. 安装zun cli客户端

pip install python-zunclient

本文发布于:2024-02-03 04:44:02,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170690664048726.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

上一篇:ZUN UI国际化
下一篇:10 安装Zun服务
标签:OpenStack   Kolla
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23