devstack如何部署openstackM版本
这篇文章将为大家详细讲解有关devstack如何部署openstackM版本,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
10余年的南沙网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。全网营销推广的优势是能够根据用户设备显示端的尺寸不同,自动调整南沙建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。创新互联建站从事“南沙网站设计”,“南沙网站推广”以来,每个客户项目都认真落实执行。
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.cn NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git SPICE_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=False IMAGE_URLS="http://images.trystack.cn/cirros/cirros-0.3.4-x86_64-disk.img" HOST_IP=192.168.232.128 # Credentials DATABASE_PASSWORD=pass ADMIN_PASSWORD=pass SERVICE_PASSWORD=pass SERVICE_TOKEN=pass RABBIT_PASSWORD=pass HORIZON_BRANCH=stable/mitaka KEYSTONE_BRANCH=stable/mitaka NOVA_BRANCH=stable/mitaka NEUTRON_BRANCH=stable/mitaka GLANCE_BRANCH=stable/mitaka CINDER_BRANCH=stable/mitaka MANILA_BRANCH=stable/mitaka FREEZER_API_BRANCH=stable/mitaka #keystone KEYSTONE_TOKEN_FORMAT=UUID #Heat HEAT_BRANCH=stable/mitaka enable_service h-eng h-api h-api-cfn h-api-cw # Trove TROVE_BRANCH=stable/mitaka enable_service trove tr-api tr-tmgr tr-cond #manila ENABLED_SERVICES+=,manila,m-api,m-sch,m-shr ## Swift SWIFT_BRANCH=stable/mitaka ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account SWIFT_REPLICAS=1 SWIFT_HASH=011688b44136573e209e # Ceilometer enable_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 options Q_USE_SECGROUP=True FLOATING_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.130 PUBLIC_NETWORK_GATEWAY="192.168.232.2" Q_L3_ENABLED=True PUBLIC_INTERFACE=eth0 Q_USE_PROVIDERNET_FOR_PUBLIC=True OVS_PHYSICAL_BRIDGE=br-ex PUBLIC_BRIDGE=br-ex OVS_BRIDGE_MAPPINGS=public:br-ex # #VLAN configuration. Q_PLUGIN=ml2 ENABLE_TENANT_VLANS=True # Logging LOGFILE=/opt/stack/logs/stack.sh.log VERBOSE=True LOG_COLOR=True SCREEN_LOGDIR=/opt/stack/logs
8.执行stack.sh
#su stack #./stack.sh
关于“devstack如何部署openstackM版本”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
本文名称:devstack如何部署openstackM版本
转载来于:http://myzitong.com/article/peecho.html