版權(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 安徽省重點(diǎn)中學(xué)2025年高三下學(xué)期第三次質(zhì)量考評(píng)生物試題含解析
- 安徽省太和縣民族中學(xué)2025年高三5月畢業(yè)班模擬考試生物試題含解析
- 安徽亳州利辛金石中學(xué)2025年高三綜合模擬金卷(1)生物試題試卷含解析
- 七年級(jí)信息技術(shù)上冊(cè) 第3課 鍵盤操作教案設(shè)計(jì)
- 廣東省肇慶市高中地理 第三章 農(nóng)業(yè)地域的形成與發(fā)展 3.2 以種植業(yè)為主的農(nóng)業(yè)地域類型(1)教案 新人教版必修2
- 八年級(jí)語(yǔ)文下冊(cè) 勤奮好學(xué) 第十課 為你打開一扇門 第五課時(shí) 自讀課文教案 新教版(漢語(yǔ))
- 2025年云南省華寧一中高三年級(jí)下學(xué)期十月份月考生物試題含解析
- 2025年四川省攀枝花市重點(diǎn)中學(xué)高三全真模擬(最后一卷)生物試題試卷含解析
- 2025年上海市華東師大一附中高三下學(xué)期3月月考生物試題試卷含解析
- 滌綸DTY相關(guān)項(xiàng)目創(chuàng)業(yè)計(jì)劃書
- 宜賓五糧液股份有限公司招聘考試試卷及答案
- 2025屆高中歷史一輪復(fù)習(xí):宋元-明清 專題測(cè)試卷(含答案解析)
- 第9課兩宋的政治和軍事課件高中歷史必修中外歷史綱要上冊(cè)
- 2024年4月自考04741計(jì)算機(jī)網(wǎng)絡(luò)原理試題及答案
- 高考英語(yǔ)高頻短語(yǔ)按字母排序
- 護(hù)理學(xué)導(dǎo)論(高職)全套教學(xué)課件
- 前廳服務(wù)與管理電子課件 項(xiàng)目二 任務(wù)一 受理散客及團(tuán)隊(duì)預(yù)訂
- 中國(guó)農(nóng)業(yè)銀行筆試題庫(kù)(含答案)
- GA 1808-2022軍工單位反恐怖防范要求
- GB/T 6009-2014工業(yè)無(wú)水硫酸鈉
- 健康飲食食物熱量表.xls
評(píng)論
0/150
提交評(píng)論