千家信息网

devstack如何部署openstackM版本

发表于:2024-11-28 作者:千家信息网编辑
千家信息网最后更新 2024年11月28日,这篇文章将为大家详细讲解有关devstack如何部署openstackM版本,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。1.安装 Ubuntu14.042.更新
千家信息网最后更新 2024年11月28日devstack如何部署openstackM版本

这篇文章将为大家详细讲解有关devstack如何部署openstackM版本,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

1.安装

 Ubuntu14.04

2.更新

   sudo apt-get update

3.安装git

   sudo apt-get install git
                如果需要ssh,需要 apt-get ssh服务```

4.从git上clone代码

    git clone https://github.com/openstack-dev/devstack.git  或者                  git clone http://git.trystack.cn/openstack-dev/devstack.git //这个源快很多

5.创建stack用户/组

 #cd devstack/tools #./devstack/tools/create-stack-user.sh

6.修改/opt/stack用户/组

#chown -R stack:stack /opt/stack

如果在安装中连接出错,将local.conf中各个组件的分支注释掉,类似于

# HORIZON_BRANCH=stable/mitaka

会默认到master分支下载。

7.更改devstack/local.conf,修改相应的ip即可

[[local|localrc]]# use TryStack git mirror GIT_BASE=http://git.trystack.cnNOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.gitSPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git #OFFLINE=True RECLONE=False # Define images to be automatically downloaded during the DevStack built process.DOWNLOAD_DEFAULT_IMAGES=FalseIMAGE_URLS="http://images.trystack.cn/cirros/cirros-0.3.4-x86_64-disk.img"HOST_IP=192.168.232.128 # CredentialsDATABASE_PASSWORD=pass ADMIN_PASSWORD=pass SERVICE_PASSWORD=passSERVICE_TOKEN=passRABBIT_PASSWORD=pass HORIZON_BRANCH=stable/mitakaKEYSTONE_BRANCH=stable/mitakaNOVA_BRANCH=stable/mitakaNEUTRON_BRANCH=stable/mitakaGLANCE_BRANCH=stable/mitakaCINDER_BRANCH=stable/mitakaMANILA_BRANCH=stable/mitakaFREEZER_API_BRANCH=stable/mitaka #keystoneKEYSTONE_TOKEN_FORMAT=UUID#Heat HEAT_BRANCH=stable/mitakaenable_service h-eng h-api h-api-cfn h-api-cw# TroveTROVE_BRANCH=stable/mitakaenable_service trove tr-api tr-tmgr tr-cond#manilaENABLED_SERVICES+=,manila,m-api,m-sch,m-shr ## SwiftSWIFT_BRANCH=stable/mitakaENABLED_SERVICES+=,s-proxy,s-object,s-container,s-accountSWIFT_REPLICAS=1SWIFT_HASH=011688b44136573e209e# Ceilometerenable_plugin ceilometer http://git.trystack.cn/openstack/ceilometer stable/mitaka ## Murano enable_plugin murano http://git.trystack.cn/openstack/murano stable/mitaka enable_service murano-cfapi ## Manila MANILA_SERVICE_IMAGE_URL=file:///home/devstack/files/manila-service-image-master.qcow2 #enable_plugin manila https://github.com/openstack/manila stable/mitaka enable_plugin manila http://git.trystack.cn/openstack/manila stable/mitaka # reezer enable_service freezer enable_plugin freezer http://git.trystack.cn/openstack/freezer stable/mitaka enable_plugin freezer-api http://git.trystack.cn/openstack/freezer-api stable/mitaka enable_plugin freezer-web-ui http://git.trystack.cn/openstack/freezer-web-ui stable/mitaka # Enabling Neutron (network) Service disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service q-metering enable_service neutron ## Neutron optionsQ_USE_SECGROUP=TrueFLOATING_RANGE="192.168.232.0/24"FIXED_RANGE="20.0.0.0/24"Q_FLOATING_ALLOCATION_POOL=start=192.168.232.102,end=192.168.232.130PUBLIC_NETWORK_GATEWAY="192.168.232.2"Q_L3_ENABLED=TruePUBLIC_INTERFACE=eth0Q_USE_PROVIDERNET_FOR_PUBLIC=TrueOVS_PHYSICAL_BRIDGE=br-exPUBLIC_BRIDGE=br-exOVS_BRIDGE_MAPPINGS=public:br-ex# #VLAN configuration.Q_PLUGIN=ml2ENABLE_TENANT_VLANS=True# LoggingLOGFILE=/opt/stack/logs/stack.sh.logVERBOSE=TrueLOG_COLOR=TrueSCREEN_LOGDIR=/opt/stack/logs

8.执行stack.sh

#su stack#./stack.sh

关于"devstack如何部署openstackM版本"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

0