kolla newton 安裝 cinder lvm

來源:互聯網
上載者:User

標籤:cinder   kolla   newton   

一、環境準備

1、host

deploy
安裝kolla
controller
node0
compute
node3
storage
node5
network
node7

2、軟體版本

kolla
stable/newton
docker-engine 1.12.2
python-docker-py 1.7.2-1

3、為cinder volume準備lvm

在node5上執行下面命令

pvcreate /dev/sdcvgcreate cinder-volumes /dev/sdc


二、安裝kolla,並構建images

參看: kolla newton 配置

三、配置kolla

1、編輯/etc/kolla/globals.yml

kolla_base_distro: "centos"kolla_install_type: "source"openstack_release: "3.0.1"kolla_internal_vip_address: "192.168.1.10"kolla_external_vip_address: "{{ kolla_internal_vip_address }}"docker_registry: "registry_ip_address:registry_ip_port"docker_namespace: "kolla"docker_registry_username: "admin"docker_registry_password: "registry_password"network_interface: "eth0"neutron_external_interface: "eth1"neutron_plugin_agent: "linuxbridge"nova_console: "novnc"enable_haproxy: "no"enable_keystone: "yes"enable_glance: "yes"enable_neutron: "yes"enable_heat: "no"enable_nova: "yes"enable_horizon: "yes"enable_cinder: "yes"enable_cinder_backend_lvm: "yes" # 若設定為no,雖可建立cinder volume,然,volume不能掛載到instanceenable_central_logging: "no"enable_ceph: "no"enable_ceilometer: "no"enable_mongodb: "no"enable_sahara: "no"

2、為/etc/kolla/passwords.yml產生密碼

kolla-genpwd

3、編輯/usr/share/kolla/ansible/inventory/multinode

# 注意:注釋掉各節中,原有主機名稱[control]node0...[network]node7...[compute]node3...[monitoring]#monitoring01...[storage]node5

四、部署openstack

1、為network上的docker啟用MountFlags shared,在node7上執行

mkdir -p /etc/systemd/system/docker.service.d# Create the drop-in unit filetee /etc/systemd/system/docker.service.d/kolla.conf <<-‘EOF‘[Service]MountFlags=sharedEOFsystemctl daemon-reloadsystemctl restart docker


2、使用qemu,在kolla主機上執行

mkdir -p /etc/kolla/config/nova/cat <<EOF>> /etc/kolla/config/nova/nova-compute.conf[libvirt]virt_type=qemuEOF

3、執行安裝前檢查

kolla-ansible -i /usr/share/kolla/ansible/inventory/multinode prechecks

4、拉取images

kolla-ansible -i /usr/share/kolla/ansible/inventory/multinode pull

5、部署openstack

kolla-ansible  -i /usr/share/kolla/ansible/inventory/multinode deploy

6、執行安裝後配置

kolla-ansible  -i /usr/share/kolla/ansible/inventory/multinode post-deploy

7、執行初始化,在kolla主機上執行

/usr/share/kolla/init-runonce

至此,部署完畢


本文出自 “武陵荒草” 部落格,請務必保留此出處http://penguintux.blog.51cto.com/3021117/1865832

kolla newton 安裝 cinder lvm

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.