Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How kolla-ansible deploys Container ceph

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to deploy container ceph in kolla-ansible, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Kolla is a project incubated from openstack. The kolla project can make images, including openstack, ceph and other container images.

Ansible is an automated deployment tool that performs tasks in playbook.

Kolla-ansible is a container deployment tool. Container images for deploying openstack and ceph;kolla-ansible deployments can be built by kolla or downloaded from docker register. (in this article, kolla-ansible deployment ceph is deployed by downloading images from docker register).

I. Node planning

Hostname ip role localhost172.16.134.43master node, install kolla-ansiblenode58172.16.134.58ceph node, at least one disk node59172.16.134.59ceph node used by osd, at least one disk node61172.16.134.61ceph node used by osd, and at least one disk used by osd

Second, set up master nodes

1. Install docker

Yum install-y yum-utils device-mapper-persistent-data lvm2yum install docker-ce-y

2. Resolve mutual trust between master and ceph nodes

Ssh-keygen

Ssh-copy-id root@172.16.134.58

Ssh-copy-id root@172.16.134.59

Ssh-copy-id root@172.16.134.61

3. Install the kolla-ansible dependency package

Yum-y install epel-releaseyum install-y python-pip ansibleyum install-y python-devel libffi-devel openssl-devel gcc python-setuptools git

4. Modify piping source:

Mkdir-p ~ / .pip

Tee ~ / .pip/pip.conf > / etc/resolv.confecho search novalocal > > / etc/resolv.confecho "net.ipv4.ip_forward = 1" > > / etc/sysctl.conf&&sysctl-pyum install vim wget-ysystemctl stop firewalldsystemctl disable firewalld--- [root@node58 ~] # sh init.sh

2. Node configuration time synchronization

[root@node58 ~] # yum install-y chrony [root@node58 ~] # vi / etc/chrony.confserver 0.cn.pool.ntp.org iburstserver 1.cn.pool.ntp.org iburstserver 2.cn.pool.ntp.org iburstserver 3.cn.pool.ntp.org iburst

3. Label the disk of the ceph node

[root@node58] # parted / dev/sdb-s-- mklabel gpt mkpart KOLLA_CEPH_OSD_BOOTSTRAP 1-1

4. Deploy ceph container service (executed in master node)

1. Modify the configuration file of kolla-ansible

[root@node58 ~] # cat / etc/kolla/globals.yml | grep-v'^ #'| grep-v'^ $'- kolla_install_type: "binary" openstack_release: "queens" kolla_internal_vip_address: "ip of master" docker_registry: "{docker-registries}" docker_namespace: "queens/kolla" docker_registry_username: "admin" docker_registry_password: "Harbor12345" network_interface: "ens33" enable_ceph: "yes "enable_haproxy:" no "enable_keystone:" no "enable_glance:" no "enable_neutron:" no "enable_heat:" no "enable_nova:" no "enable_horizon:" no "ceph_pool_type:" replicated "

Note: the / etc/kolla/globals.yml file will reload the / usr/share/kolla-ansible/ansible/group_vars/all.yml file, and the services that do not need to be installed will be changed to "no" in all.yml

2. Modify the inventory file of ansible

Fill in the hostname of the ceph node under [storage] and empty the rest of the section.

6. Deploy the ceph node environment

Kolla-ansible bootstrap-servers-I / home/multinode

7. Inspection and deployment

Kolla-ansible prechecks-I / home/multinode

Kolla-ansible deploy-I / home/multinode

8. Testing (performed on the ceph node)

Docker exec ceph_mon ceph-s

The above is how kolla-ansible deploys container ceph. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report