2023学年完整公开课版72Introductionofneutronservices_第1页
2023学年完整公开课版72Introductionofneutronservices_第2页
2023学年完整公开课版72Introductionofneutronservices_第3页
2023学年完整公开课版72Introductionofneutronservices_第4页
2023学年完整公开课版72Introductionofneutronservices_第5页
已阅读5页,还剩13页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论