openstack train内网部署注意事项LVM卷

项目背景:
测试环境内网部署openstack O版本直接升级到最新版本Train版本。
1面临问题python版本不匹配,
2OpenStack版本不匹配
3yum 版本不匹配
内网环境不想让别人重装系统,在个人电脑安装处一个操作系统,查看下列路径下有哪些软件包,并记录
# cd /usr/lib/python2.7/site-packages/
在内网中,删掉上面的软件包的其它软件,只留有初始软件包

几个重点问题,
(1)LVM卷存储,所用到的知识
vgremove cinder-volumes -f
wipefs -a /dev/sdb
pvcreate /dev/sdb
vgcreate cinder-volumes /dev/sdb
vgs
filter = [ "a/sdb/", "r/.*/"]
systemctl restart lvm2-lvmetad.service

(2)修改globals.yml配置文件
[root@master ~]# cat globals.yml
kolla_internal_vip_address: "192.168.229.200"
kolla_base_distro: "centos"
kolla_install_type: "source"
openstack_release: "train"
docker_registry: "192.168.229.180:4000"
docker_namespace: "kolla"
network_interface: "ens33"
neutron_external_interface: "ens37"
keepalived_virtual_router_id: "51"
openstack_logging_debug: "True"
enable_central_logging: "yes"
enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"
cinder_volume_group: "cinder-volumes"
# Valid options are [ bind9 ]
designate_backend: "bind9"
designate_ns_record: "sample.openstack.org"

(3)
[root@master ~]# cat /etc/kolla/config/nfs_shares.j2
192.168.229.180:/home/kolla/nfs
[root@master ~]#
(4)
NFS搭建
mkdir /home/data/
chmod 755 /home/data/
cat /etc/exports
/home/data/  *(rw,sync,no_root_squash)
systemctl start rpcbind.service
systemctl enable rpcbind
systemctl status rpcbind
systemctl start nfs.service
systemctl enable nfs
systemctl status nfs
rpcinfo -p|grep nfs
showmount -e 92.0.0.13
销毁以及部署方式
kolla-ansible destroy -i ./multinode --yes-i-really-really-mean-it
kolla-ansible deploy -i ./multinode
ceph 部署
1修改bootstrap_osds.yml文件
vi /usr/share/kolla-ansible/ansible/roles/ceph/tasks/bootstrap_osds.yml

6 - a
"partition_name='KOLLA_CEPH_OSD_BOOTSTRAP' match_mode='prefix' use_udev={{ kolla_ceph_use_udev }}"
19 - a
"partition_name='KOLLA_CEPH_OSD_BOOTSTRAP' match_mode='prefix' use_udev={{ kolla_ceph_use_udev }}"
38
when:
39  # - not item.external_journal | bool
40  # - item.device.split('/')[2] in ansible_devices  # if there is no device in setup (like loopback, we don't need to warn user
41  # - ansible_devices[item.device.split('/')[2]].partitions|count > 1
42  # - ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
- item.external_journal | bool == False
- ansible_devices[item.device.split('/')[2]].partitions | count > 1
- ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
102  # - not item.external_journal | bool
103  # - ansible_devices[item.device.split('/')[2]].partitions|count > 1
104  # - ceph_osd_wipe_disk != "yes-i-really-really-mean-it"
- item.external_journal | bool == False
- ansible_devices[item.device.split('/')[2]].partitions | count > 1
- ceph_osd_wipe_disk != "yes-i-really-really-mean-it"

2修改start_osds.yml文件
vi /usr/share/kolla-ansible/ansible/roles/ceph/tasks/start_osds.yml

6 - a
"partition_name='KOLLA_CEPH_OSD_BOOTSTRAP' match_mode='prefix' use_udev={{ kolla_ceph_use_udev }}"

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值