devstackliberty单节点安装及扩展.docx
- 文档编号:7251144
- 上传时间:2023-01-22
- 格式:DOCX
- 页数:15
- 大小:354.40KB
devstackliberty单节点安装及扩展.docx
《devstackliberty单节点安装及扩展.docx》由会员分享,可在线阅读,更多相关《devstackliberty单节点安装及扩展.docx(15页珍藏版)》请在冰豆网上搜索。
devstackliberty单节点安装及扩展
1.RDOQuickstart
DeployingRDOisaquickandeasyprocess.SettingupanOpenStackcloudtakesapproximately15minutes,andcanbeasshortas3steps.
Below,we'llexplainhowtosetupOpenStackonasingleserver.You'llbeabletoaddmorenodestoyourOpenStackcloudlater,ifyouchoose.
Ifyoujustwanttotryitoutwithoutinstallinganything,checkoutTryStack.SeealsoInstallationforalternatedeploymentmethods.
Theseinstructionsaretoinstallthecurrent("Liberty")release.
SummaryfortheImpatient
sudoyumupdate-y
sudoyuminstall-yhttps:
//www.rdoproject.org/repos/rdo-release.rpm
sudoyuminstall-yopenstack-packstack
packstack--allinone
Step0:
Prerequisites
Software:
RedHatEnterpriseLinux(RHEL)7istheminimumrecommendedversion,ortheequivalentversionofoneoftheRHEL-basedLinuxdistributionssuchasCentOS,ScientificLinux,etc.x86_64iscurrentlytheonlysupportedarchitecture.SeealsoRDOrepositoryinfofordetailsonrequiredrepositories.Pleasenamethehostwithafullyqualifieddomainnameratherthanashort-formnametoavoidDNSissueswithPackstack.
Hardware:
Machinewithatleast4GBRAM,processorswithhardwarevirtualizationextensions,andatleastonenetworkadapter.
Step1:
Softwarerepositories
Updateyourcurrentpackages:
sudoyumupdate-y
SetuptheRDOrepositories:
sudoyuminstall-yhttps:
//rdoproject.org/repos/rdo-release.rpm
Lookingforanolderversion?
Seehttp:
//rdoproject.org/repos/forthefulllisting.
Step2:
InstallPackstackInstaller
sudoyuminstall-yopenstack-packstack
Step3:
RunPackstacktoinstallOpenStack
PackstacktakestheworkoutofmanuallysettingupOpenStack.ForasinglenodeOpenStackdeployment,runthefollowingcommand.
packstack--allinone
Ifyouencounterfailures,seetheWorkaroundspagefortips.
Ifyouhaverunpackstackpreviously,therewillbeafileinyourhomedirectorynamedsomethinglikepackstack-answers-20130722-153728.txtYouwillprobablywanttousethatfileagain,usingthe–answer-fileoption,sothatanypasswordsyou'vealreadyset(e.g.:
mysql)willbereused.
Theinstallerwillaskyoutoentertherootpasswordforeachhostnodeyouareinstallingonthenetwork,toenableremoteconfigurationofthehostsoitcanremotelyconfigureeachnodeusingPuppet.
Oncetheprocessiscomplete,youcanlogintotheOpenStackwebinterface"Horizon"bygoingtohttp:
//$YOURIP/dashboard.Theusernameis"admin".Thepasswordcanbefoundinthefilekeystonerc_admininthe/root/directoryofthecontrolnode.
NextSteps
NowthatyoursinglenodeOpenStackinstanceisupandrunning,youcanreadonaboutrunninganinstance,configuringafloatingIPrange,configuringRDOtoworkwithyourexistingnetwork,oraboutexpandingyourinstallationbyaddingacomputenode.
RunninganInstance
Step1:
VisittheDashboard
LogintotheOpenstackdashboardathttp:
//CONTROL_NODE/dashboard-theusernameis"demo".Thepasswordcanbefoundinthefilekeystonerc_demointhe/root/directoryofthecontrolnode.
Note:
makesureyouusethe"demo"usernamehere.
Step2:
EnableSSHonyourdefaultsecuritygroup.
OnceloggedintotheOpenStackdashboard,clickthe"Project"tabintheleft-sidenavigationmenu,andthenclick"Access&Security"undertheheading"Compute."
Underthe"SecurityGroups"heading,clickthe"ManageRules"buttonforthe"default"securitygroup.Clickthe"AddRule"button,andintheresultingdialog,enter"22"inthe"Port"field,andthenclickthe"Add"button.
Step3:
Createorimportakeypair.
Intheleft-sidenavigationmenu,click"Access&Security"undertheheading"Compute."Inthemainportionofthescreen,clickthetablabeled"KeyPairs,"andchooseeitherto"CreateKeyPair"or"ImportKeyPair."The"CreateKeyPair"dialogwillpromptyoutosupplyakeypairnamebeforedownloadingaprivatekeytoyourclient.
The"ImportKeyPair"optionwillpromptyoutoprovideanameandapublickeytousewithanexistingprivatekeyonyourclient.Forname,choosesomethingtoidentifythatkey(likeyourusername,forexample)andforkey,usethecontentsofyourpublickeyfile,usuallyin~/.ssh/id_rsa.pubor~/.ssh/id_dsa.pubonthemachinefromwhichyouwillbessh-ingin.
Step4:
Addanimage.
Intheleft-sidenavigationmenu,click"Images"undertheheading"Compute."Clickthe"CreateImage"button,locatedintheupper-rightportionofthescreen.Intheresultingdialogbox,enter"Fedora22"inthe"Name"field,"https:
//download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-22-20150521.x86_64.qcow2"inthe"ImageLocation"field,choose"QCOW2"fromthe"Format"drop-downmenu,leavethe"MinimumDisk"and"MinimumRam"fieldsblank,leavethe"Public"boxunchecked,andclickthe"CreateImage"button.
Foracollectionoflinkstoalternativecloud-readyimages,checkoutimageresources.
Step5:
Launchtheinstance.
Inthemainportionofthescreen,underthe"Images"heading,clickthe"LaunchInstance"buttonforthe"Fedora22"image.Intheresultingdialog,provideanameinthe"InstanceName"fieldandselect"m1.small"inthe"Flavor"field.
Youhavetoassignanetwork,under"Networking"tab,eitherclickonthe"+"nextto"private"ordrag&dropthe"private"boxfrom"Availablenetworks"to"Selectednetworks".Finally,clickthe"Launch"button.
Step6:
AssociateFloatingIP
Inthemainportionofthescreen,underthe"Instances"heading,clickthedownarrowbuttonunder"Actions"columnforyourinstanceyoujustlaunched,followedbythe"AssociateFloatingIP".Clickon"+"nextto"IPAddress"andselectthe"public"Poolinthe"AllocateFloatingIP"dialog,continuebyclicking"AllocateIP".Beingbackinthe"ManageFloatingIPAssociations"dialogyoucanselecttheallocatedIPAddressandclick"Associate".
TheassociatedFloatingIPscanbespottedinthe"IPAddress"foreachinstance.
Foradditionaldetails,pleasereadhowtosetafloatingIPrange.
Step7:
SSHtoYourInstance
Usingthekeypairfilefromstep3,sshintotherunningvmusingitsfloatingipaddress:
$ssh-imy_key_pair.pemfedora@floating_ip_address
FloatingIPrange
(Seealso:
Difference_between_Floating_IP_and_private_IP)
OpenStackinstancesreceiveaprivateIPaddressthroughwhichtheycanreacheachotherandthroughwhichhostscanreachthem.Inordertoaccesstheseinstancesfromothermachinesinyournetwork,suchasyourworkstation,theinstanceswillneedtobeallocateda"floatingIP."Packstackautomaticallyconfiguresthiswithadefaultthatmaywellbewrongforyournetwork.You'llwanttoconfigureyourOpenStackinstallwitharangeoffreeIPaddressesthat'scorrectforyournetwork.
Ifyoudon'tknowofanappropriaterangeofIPaddressesonyournetwork(best),andcan'tasksomeonewhodoesknow(nextbest),youcanmakeanintelligentguessbysteeringwellclearoftherangeyoutypicallygetDHCPaddressesin,bypickingafairlysmallrange(/29givesan8addressrange,6ofwhichwillbeusable),andbyusingnmaptocheckifhostsareupintherangeyou'reguessingat.
Forinstance,192.168.1.56/29representsasmallrangeofaddresses(192.168.1.56-63,with57-62usable),andyoucouldrunthecommand"nmap-sn192.168.1.56/29"tocheckandseeifthatwholerangewasinfactunused(atthemoment,atleast).
Stepstoremovehard-codedfloatingIPandaddanewone:
Withnova-network:
1.source/root/keystonerc_admin
2.novafloating-ip-bulk-delete10.3.4.0/22(thisisthehard-codedrangeinpackstack)
3.novafloating-ip-bulk-createCORRECT-RANGE(intheaboveexample,thiswouldbe192.168.1.56/29)
4.nova-managefloatinglist(toseeyournewlistoffloatingIPs)
WithNeutron:
NofloatingIPsarecreatedbydefault.Youmustfirstcreateapublicnetworkandsubnet,definingtheIPaddressrangeforfloatingIPsatthattime.
1.source/root/keystonerc_admin
2.neutronnet-createpublic--router:
external
3.neutronsubnet-createpublic192.168.1.0/24--namevlan--enable_dhcp=False--allocation_poolstart=192.168.1.57,end=192.168.1.62--gateway192.168.1.1(useyournetworkgatewayhere-changetheIPaddressesintheallocationrangetomatchwhatisavailableonyournetwork)
4.neutronrouter-createrouter1(router1hastobereplacedbythenameofyourrouter)
5.neutronrouter-gateway-set$router_id$vlan_id(useyourrouteridandpreviouscreatedvlanid)
6.neutronfloatingip-createpublic(repeatasnecessary)
Neutrondoesnotauto-createfloatingIPsorauto-assignthemtonewinstancesbutthisfeatureisplannedforfutureinclusion.
Neutronwithexistingexternalnetwork
Manypeoplehaveaskedhowtousepackstack–allinonewithanexistingexternalnetwork.ThismethodshouldallowanymachineonthenetworktobeabletoaccesslaunchedinstancesviatheirfloatingIPs.Also,attheendofthismessage,therearesomeideasformakingthisprocessbetterthatIthoughtwecoulddiscuss.
TheseinstructionshavebeentestedonCentos7.
Initially,followtheQuickstartbutstopwhenyouseethefirst"packstack–allinone"atStep3,insteaddo:
#packstack--allinone--provision-demo=n
(There'sanalternatemethodusingpackstack–allinone–provision-all-in-one-ovs-bridge=n,butit'smorecomplicated)
Aftercompletion,givenasinglemachinewithacurrentIPof192.168.122.212/24viaDHCPwithgatewayof192.168.122.1:
Make/etc/sysconfig/network-scripts/ifcfg-br-exresemble:
(notethisfilewillexist,andIPADDR/NETMASKwillbepopulatedwith_br_exattheend,removethatpart,andfillallthemissingfields)
DEVICE=br-ex
DEVICETYPE=ovs
TYPE=OVSBridge
BOOTPROTO=static
IPADDR=192.168.122.212#Ol
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- devstackliberty 节点 安装 扩展