2023學(xué)年完整公開課版72Introductionofneutronservices_第1頁(yè)
2023學(xué)年完整公開課版72Introductionofneutronservices_第2頁(yè)
2023學(xué)年完整公開課版72Introductionofneutronservices_第3頁(yè)
2023學(xué)年完整公開課版72Introductionofneutronservices_第4頁(yè)
2023學(xué)年完整公開課版72Introductionofneutronservices_第5頁(yè)
已閱讀5頁(yè),還剩13頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(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ù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 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ì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論