版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
IntroductionofneutronservicesPreparationinadvance
Neutronneedstobeinstalledonthebasisofthecompletionofthepreviouscourses,i.e.thepreparationofOpenStackbasicenvironment,theinstallationofkeystonemodule,theinstallationofglancemodule,andtheinstallationofNovamodulearecompleted;thecourseinstallationusestwonodeandtwonetworkcardstoconfiguretheneutronservice,i.e.eth0asthemanagementnetworkandeth1astheexternalnetworkofvirtualmachine.3CreatinganeutrondatabaseHost1#controlscontroller
node
Tocreatetheneutrondatabaseinthecontrollernode,firstenterthedatabasetoexecutethemsqlcommand,andthenenterthedatabasepasswordtoenterthedatabase.
#mysql-uroot-pCreatetheneutrondatabaseandbindthepermissionsettingpassword(thisinstallationdatabasepasswordissetto000000)
mysql>CREATEDATABASEneutron;mysql>GRANTALLPRIVILEGESONneutron.*TO'neutron'@'localhost'IDENTIFIEDBY'000000';mysql>GRANTALLPRIVILEGESONneutron.*TO'neutron'@'%'IDENTIFIEDBY'000000';4Creatingneutronusers,endpoints,andAPIendpointsExecutethefollowingcommandonthecontrollernodetocompletetheoperation:#keystoneuser-create--nameneutron--pass000000#keystoneuser-role-add--userneutron--tenantservice--roleadmin#keystoneservice-create--nameneutron--typenetwork--description"OpenStackNetworking"#keystoneendpoint-create--service-id$(keystoneservice-list|awk'/network/{print$2}')--publicurl"http://controller:9696"--adminurl"http://controller:9696"--internalurl"http://controller:9696"Host1#controlscontroller
node5InstallingthecontrollernodeneutronnetworkcomponentsExecutethefollowingcommandinthecontrollertocompletetheinstallationofthesoftware#yuminstall-yopenstack-neutronopenstack-neutron-ml2python-neutronclientopenstack-neutron-openvswitchHost1#controlscontroller
node6ConfiguredatabaseconnectionExecutethefollowingcommandinthecontrollertocompletethedatabaseconnection#openstack-config--set/etc/neutron/neutron.confdatabaseconnectionmysql://neutron:000000@controller/neutronHost1#controlscontroller
node7ConfigurekeystoneauthenticationinformationModifyneutron.confprofilecincontrollernodetocompletekeystoneauthentication:[DEFAULT]auth_strategy=keystone[keystone_authtoken]auth_uri=http://controller:5000auth_host=controllerauth_protocol=httpauth_port=35357admin_tenant_name=serviceadmin_user=neutronadmin_password=000000Host1#controlscontroller
node8ConfiguremessageagentserviceModifyneutron.confprofileinthecontrollernodetocompleteconfiguration:[DEFAULT]rpc_backend=mon.rpc.impl_qpidqpid_hostname=controllerHost1#controlscontroller
node9ConfigurenetworktopologychangenotificationModifyneutron.confprofileinthecontrollernodetocompleteconfiguration:[DEFAULT]notify_nova_on_port_status_changes=Truenotify_nova_on_port_data_changes=Truenova_url=http://controller:8774/v2nova_admin_username=novanova_admin_tenant_id=a57833b809bc40c9af2570941d4480bdnova_admin_password=000000nova_admin_auth_url=http://controller:35357/v2.0Host1#controlscontroller
node10ModifykernelModifythekernelparametersinthecontrollernodetomaketheLinuxsystemsupporttheroutingandforwardingfunction,andcanceltheinboundandoutboundrulefiltering.Edit
/etc/sysctl.conf
file,Amendthefollowing:net.ipv4.ip_forward=1net.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0
Effectiveconfiguration#sysctl–pHost1#controlscontroller
node11ConfigurenetworktouseML2plug-inModifyneutron.confconfigurationfileinthecontrollernodetocompletetheneutronserviceusingtheML2plug-in[DEFAULT]core_plugin=ml2service_plugins=routerHost1#controlscontroller
node12Configurethecomputingserviceusingnetwork
Modifyinthecontrollernodenova.confprofiletocompletecomputingserviceusingneutronnetworkservice[DEFAULT]network_api_class=work.neutronv2.api.APIneutron_url=http://controller:9696neutron_auth_strategy=keystoneneutron_admin_tenant_name=serviceneutron_admin_username=neutronneutron_admin_password=000000neutron_admin_auth_url=http://controller:35357/v2.0linuxnet_interface_driver=work.linux_net.LinuxOVSInterfaceDriverfirewall_driver=nova.virt.firewall.NoopFirewallDriversecurity_group_api=neutronvif_plugging_is_fatal=Falsevif_plugging_timeout=10Host1#controlscontroller
node13ConfigureneutronDHCPModifydhcp_agent.iniprofileinthecontrollernode:[DEFAULT]interface_driver=erface.OVSInterfaceDriverdhcp_driver=neutron.agent.linux.dhcp.Dnsmasquse_namespaces=TrueHost1#controlscontroller
node14ConfigureMetadataModifynova.confprofileinthecontrollernode:[DEFAULT]service_neutron_metadata_proxy=trueneutron_metadata_proxy_shared_secret=METADATA_SECRET
Modifycompleteandrestartservice#serviceopenstack-nova-apirestartHost1#controlscontroller
node15CreatebridgerestartserviceExecutethefollowingcommandtocreatebridgebr-int,Br-ex,andrestartrelatedservices#serviceopenvswitchrestart#ovs-vsctladd-brbr-int#ovs-vsctladd-brbr-ex#ovs-vsctladd-portbr-exeth1#ethtool-Keth1grooff#servicenetworkrestartHost1#controlscontroller
node16ControllernodecompletesinstallationandrestartsserviceNowthattheneutronserviceofthecontrollernodehasbeeninstalledandconfigured,executethefollowingcommandtorestarttheneutronserviceeffectiveconfigurationfile.#serviceneutron-openvswitch-agentrestart#serviceneutron-metadat
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年環(huán)保產(chǎn)業(yè)項(xiàng)目轉(zhuǎn)讓與污染治理合作協(xié)議3篇
- 網(wǎng)絡(luò)營(yíng)銷(xiāo)課程設(shè)計(jì)要求
- 聽(tīng)我說(shuō)謝謝歌曲課程設(shè)計(jì)
- 網(wǎng)頁(yè)制作課程設(shè)計(jì)與要求
- 紅色文化方面課程設(shè)計(jì)
- 語(yǔ)音招商培訓(xùn)課程設(shè)計(jì)
- 企業(yè)品牌形象塑造服務(wù)協(xié)議
- 倉(cāng)儲(chǔ)租賃協(xié)議
- 水庫(kù)安全管理制度措施模版(2篇)
- 二手房售房合同協(xié)議書(shū)范本二
- 血細(xì)胞分析報(bào)告規(guī)范化指南2020
- ISO 56001-2024《創(chuàng)新管理體系-要求》專(zhuān)業(yè)解讀與應(yīng)用實(shí)踐指導(dǎo)材料之7:“5領(lǐng)導(dǎo)作用-5.1領(lǐng)導(dǎo)作用和承諾”(雷澤佳編制-2025B0)
- 2024年度通信設(shè)備維修服務(wù)合同范本3篇
- 安恒可信數(shù)據(jù)空間建設(shè)方案 2024
- 2024年學(xué)校與家長(zhǎng)共同促進(jìn)家校合作發(fā)展協(xié)議3篇
- C預(yù)應(yīng)力錨索框架梁施工方案(完整版)
- 參加團(tuán)干部培訓(xùn)心得體會(huì)
- 中華民族共同體概論專(zhuān)家講座第一講中華民族共同體基礎(chǔ)理論
- 人教版高一地理必修一期末試卷
- 一次顯著的性能優(yōu)化
- 《中國(guó)近現(xiàn)代史綱要(2023版)》課后習(xí)題答案合集匯編
評(píng)論
0/150
提交評(píng)論