您好,登錄后才能下訂單哦!
這篇文章將為大家詳細講解有關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.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版本”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。