![2023學(xué)年完整公開課版72Introductionofneutronservices_第1頁](http://file4.renrendoc.com/view/4e83530ef0c4f82a426b4138c91987bf/4e83530ef0c4f82a426b4138c91987bf1.gif)
![2023學(xué)年完整公開課版72Introductionofneutronservices_第2頁](http://file4.renrendoc.com/view/4e83530ef0c4f82a426b4138c91987bf/4e83530ef0c4f82a426b4138c91987bf2.gif)
![2023學(xué)年完整公開課版72Introductionofneutronservices_第3頁](http://file4.renrendoc.com/view/4e83530ef0c4f82a426b4138c91987bf/4e83530ef0c4f82a426b4138c91987bf3.gif)
![2023學(xué)年完整公開課版72Introductionofneutronservices_第4頁](http://file4.renrendoc.com/view/4e83530ef0c4f82a426b4138c91987bf/4e83530ef0c4f82a426b4138c91987bf4.gif)
![2023學(xué)年完整公開課版72Introductionofneutronservices_第5頁](http://file4.renrendoc.com/view/4e83530ef0c4f82a426b4138c91987bf/4e83530ef0c4f82a426b4138c91987bf5.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 魯教版地理六年級下冊6.1《位置和范圍》聽課評課記錄3
- 【部編人教版】八年級上冊歷史聽課評課記錄 第11課 北洋政府的黑暗統(tǒng)治
- 浙教版數(shù)學(xué)七年級上冊5.2《解法》聽評課記錄
- 環(huán)境監(jiān)測承包協(xié)議書
- 人教版地理八年級上冊《第一節(jié) 交通運輸》聽課評課記錄1
- 滬教版數(shù)學(xué)八年級下冊20.2《一次函數(shù)的圖象與性質(zhì)》聽評課記錄1
- 湘教版數(shù)學(xué)九年級下冊《1.5 二次函數(shù)的應(yīng)用》聽評課記錄1
- 六年級科學(xué)斜面聽評課記錄
- 新北師大版數(shù)學(xué)一年級下冊《采松果》聽評課記錄
- 蘇科版數(shù)學(xué)九年級上冊聽評課記錄 用一元二次方程解決問題
- 護(hù)理人文知識培訓(xùn)課件
- 建筑工程施工安全管理課件
- 2025年春新人教版數(shù)學(xué)七年級下冊教學(xué)課件 7.2.3 平行線的性質(zhì)(第1課時)
- 安徽省合肥市2025年高三第一次教學(xué)質(zhì)量檢測地理試題(含答案)
- 2025年上半年畢節(jié)市威寧自治縣事業(yè)單位招考考試(443名)易考易錯模擬試題(共500題)試卷后附參考答案
- 處方點評知識培訓(xùn)
- 2025年新合同管理工作計劃
- 統(tǒng)編版八年級下冊語文第三單元名著導(dǎo)讀《經(jīng)典常談》閱讀指導(dǎo) 學(xué)案(含練習(xí)題及答案)
- 2024年高考語文備考之文言文閱讀簡答題答題指導(dǎo)
- 《中國移動公司簡介》課件
- 風(fēng)光儲儲能項目PCS艙、電池艙吊裝方案
評論
0/150
提交評論