安裝和配置映像服務(wù)_第1頁
安裝和配置映像服務(wù)_第2頁
安裝和配置映像服務(wù)_第3頁
安裝和配置映像服務(wù)_第4頁
安裝和配置映像服務(wù)_第5頁
已閱讀5頁,還剩6頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、云計(jì)算基礎(chǔ)架構(gòu)平臺(tái)應(yīng)用 1. 安裝映像服務(wù) 2.配置數(shù)據(jù)庫連接 3.配置映像服務(wù)1. 安裝映像服務(wù) (1)應(yīng)用管理用戶的環(huán)境變量rootcontroller # source admin-openrc.sh(2)安裝映像服務(wù)glancerootcontroller # yum install openstack-glance python-glanceclient2.配置數(shù)據(jù)庫連接 使用controller節(jié)點(diǎn)上的MySQL數(shù)據(jù)庫服務(wù),數(shù)據(jù)庫用戶名為glance,密碼為000000rootcontroller # openstack-config -set /etc/glance/glance

2、-api.conf database connection mysql:/glance:000000controller/glancerootcontroller # openstack-config -set /etc/glance/glance-registry.conf database connection mysql:/glance:000000controller/glance3.配置映像服務(wù) (1)創(chuàng)建數(shù)據(jù)庫用戶名glance,密碼為000000rootcontroller # mysql -u root -pEnter password:mysql CREATE DATABAS

3、E glance;mysql GRANT ALL PRIVILEGES ON glance.* TO glancelocalhost IDENTIFIED BY 000000;mysql GRANT ALL PRIVILEGES ON glance.* TO glance% IDENTIFIED BY 000000;mysql exit3.配置映像服務(wù) (2)為映像服務(wù)創(chuàng)建數(shù)據(jù)庫表rootcontroller # su -s /bin/sh -c glance-manage db_sync glance(3)創(chuàng)建用戶glance,密碼為000000,郵箱為glancelocalhost。將該用

4、戶關(guān)聯(lián)到租戶service,角色為admin。rootcontroller # keystone user-create -name=glance -pass=000000 -email=glancelocalhostrootcontroller # keystone user-role-add -user=glance -tenant=service -role=admin3.配置映像服務(wù) (4)配置映像服務(wù)Glance使用Keystone進(jìn)行認(rèn)證# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken au

5、th_uri http:/controller:5000# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken auth_host controller# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken auth_port 35357# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken auth_protocol http# open

6、stack-config -set /etc/glance/glance-api.conf keystone_authtoken admin_tenant_name service3.配置映像服務(wù)# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken admin_user glance# openstack-config -set /etc/glance/glance-api.conf keystone_authtoken admin_password 000000# openstack-config -se

7、t /etc/glance/glance-api.conf paste_deploy flavor keystone# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken auth_uri http:/controller:5000# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken auth_host controller3.配置映像服務(wù)# openstack-config -set /etc/gla

8、nce/glance-registry.conf keystone_authtoken auth_port 35357# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken auth_protocol http# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken admin_tenant_name service# openstack-config -set /etc/glance/glance-reg

9、istry.conf keystone_authtoken admin_user glance# openstack-config -set /etc/glance/glance-registry.conf keystone_authtoken admin_password 000000# openstack-config -set /etc/glance/glance-registry.conf paste_deploy flavor keystone4.注冊(cè)服務(wù)、創(chuàng)建API端點(diǎn) (1)注冊(cè)映像服務(wù)Glance,并創(chuàng)建Endpointrootcontroller # keystone ser

10、vice-create -name=glance -type=image -description=OpenStack Image Service“rootcontroller # keystone endpoint-create -service-id=$(keystone service-list | awk / image / print $2) -publicurl=http:/controller:9292 -internalurl=http:/controller:9292 -adminurl=http:/controller:92924.注冊(cè)服務(wù)、創(chuàng)建API端點(diǎn) 2)啟動(dòng)glance-api和glance-registry服務(wù)rootcontroller # service openstack-glance-api start

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論