{"id":1808,"date":"2016-11-11T00:00:08","date_gmt":"2016-11-11T06:00:08","guid":{"rendered":"https:\/\/www.supportpro.com\/blog\/?p=1808"},"modified":"2018-10-01T04:24:13","modified_gmt":"2018-10-01T10:24:13","slug":"deploying-openstack-using-packstack","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/deploying-openstack-using-packstack\/","title":{"rendered":"Deploying Openstack using Packstack"},"content":{"rendered":"<p><strong>OpenStack<\/strong> is a set of software tools for building and managing cloud computing platforms for public and private clouds. Mostly deployed as an infrastructure-as-a-service (IaaS). Deploy virtual machines and other instances that handle different tasks for managing a cloud environment on the fly. It makes horizontal scaling easy, which means that tasks that benefit from running concurrently can easily serve more or fewer users on the fly by just spinning up more instances. So we can say OpenStack is the future of cloud computing.<\/p>\n<p><strong>OpenStack<\/strong> began in 2010 as a joint project of Rackspace Hosting and NASA. As of 2016, it is managed by the OpenStack Foundation, a non-profit corporate entity established in September 2012. Backed by some of the biggest companies in software development and hosting like Intel, Redhat, Cisco, Ubuntu etc, as well as thousands of individual community members.<\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Packstack<\/strong> is a utility that uses Puppet modules to deploy various parts of OpenStack on multiple pre-installed servers over SSH automatically. Currently only Fedora, Red Hat Enterprise Linux (RHEL) and Centos are supported.<!--more--><\/p>\n<p><span style=\"text-decoration: underline;\"><b>Installing package \u201copenstack-packstack\u201d<\/b><\/span><\/p>\n<p><i>#yum install openstack-packstack -y<\/i><\/p>\n<p>Repo files for centos :<\/p>\n<p><i> #<\/i><i>yum install <\/i><a href=\"https:\/\/rdoproject.org\/repos\/rdo-release.rpm\"><i>https:\/\/rdoproject.org\/repos\/rdo-release.rpm<\/i><\/a><\/p>\n<p><i> #yum install centos-release-openstack-mitaka<\/i><\/p>\n<p><span style=\"text-decoration: underline;\"><b>Generating answer file<\/b><\/span><\/p>\n<p>PackStack is able to generate a generic answer file which you are then able to customize to suit your specific deployment needs. Run the packstack command with the &#8211;gen-answer-file=FILE argument to generate an answer file.<\/p>\n<p>#<i>packstack &#8211;gen-answer-file \/root\/answer.txt<\/i><\/p>\n<p><span style=\"text-decoration: underline;\"><b>Editing answer file<\/b><\/span><\/p>\n<p>#<i>vim \/root\/answer.txt<\/i><\/p>\n<p>CONFIG_HEAT_INSTALL = Y\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Enable heat installing<br \/>\nCONFIG_ NTP_SERVERS = 172.25.254.254\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Provide ip for ntp server<br \/>\nCONFIG_COMPUTE_HOSTS = 192.168.0.1, 192.168.0.2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #IP list for compute node<br \/>\nCONFIG_STORAGE_HOSTS = 192.168.0.1, 192.168.0.2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #IP list for storage node<br \/>\nCONFIG_KEYSTONE_ADMIN_PW = \u201cpassword\u201d\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Provide password for admin<br \/>\nCONFIG_CINDER_VOLUME_CREATE = N\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Disable to create cinder<br \/>\nCONFIG_LBAAS_INITIAL=Y\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Enable load balance<br \/>\nCONFIG_NEUTRON_AGEN_INITIAL = Y\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Enable network agents<br \/>\nCONFIG_NEUTRON_FWAAS = Y\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Enable firewall<br \/>\nCONFIG_HORIZON_SSL = Y\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Enable horizon (Dashboard)<br \/>\nCONFIG_HEAT_CFN_INITIAL = Y\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Enable heat (Orchestration)<br \/>\nCONFIG_ PROVISION_DEMO = N\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #Disable Demo config<\/p>\n<p><span style=\"text-decoration: underline;\"><b>Deploying openstack<\/b><\/span><\/p>\n<p><i>#packstack &#8211;answerfile<\/i><\/p>\n<p>Note: network manager is not supported in openstack. So disable network manager .<\/p>\n<p><span style=\"text-decoration: underline;\"><b>Bridging<\/b><\/span><\/p>\n<p>Modify the network files with TYPE &#8216;OVSBridge&#8217; and &#8216;OVSPort&#8217; as shown below :<\/p>\n<p><i>#vim <\/i><i>\/etc\/sysconfig\/network-scripts\/<\/i><i>ifcfg-br-ex<\/i><\/p>\n<p>DEVICE = br-ex<br \/>\nBOOTPROTO=static<br \/>\nONBOOT=yes<br \/>\nTYPE=OVSBridge<br \/>\nDEVICETYPE=ovs<br \/>\nUSERCTL=yes<br \/>\nPEERDNS=yes<br \/>\nIPV6INIT=no<br \/>\nIPADDR=192.168.0.1<br \/>\nNETMASK=255.255.255<\/p>\n<p><i>#vim <\/i><i>\/etc\/sysconfig\/network-scripts\/<\/i><i>ifcfg-etho<\/i><\/p>\n<p>DEVICE=etho<br \/>\nONBOOT=yes<br \/>\nTYPE=OVSPort<br \/>\nDEVICETYPE=ovs<br \/>\nOVS_BRIDGE=br-EX<\/p>\n<p><span style=\"text-decoration: underline;\"><b>Restart service network<\/b><\/span><\/p>\n<p><i>#systemctl restart network<\/i><\/p>\n<p><span style=\"text-decoration: underline;\"><b>Open dashboard<\/b><\/span><\/p>\n<p><i>https:\/\/192.168.0.1<\/i>\u00a0\u00a0\u00a0 \u00a0 #IP address of basic node ( Here node 1)<\/p>\n<p>Username : admin<br \/>\nPassword : password<\/p>\n<p>&nbsp;<\/p>\n<p><a class=\"lightbox\" href=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2016\/12\/open_stack.png\" data-rel=\"penci-gallery-image-content\"  rel=\"attachment wp-att-1809\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-1809\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2016\/12\/open_stack.png\" alt=\"open_stack\" width=\"413\" height=\"247\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2016\/12\/open_stack.png 457w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2016\/12\/open_stack-300x179.png 300w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><\/a><\/p>\n<p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p>\n<p style=\"text-align: center;\"><!--HubSpot Call-to-Action Code --><span id=\"hs-cta-wrapper-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-wrapper\"><span id=\"hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-node hs-cta-9d590242-d641-4383-94b4-8cfd62f0af6b\"><!-- [if lte IE 8]><\/p>\n\n\n\n\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b\"><img decoding=\"async\" id=\"hs-cta-img-9d590242-d641-4383-94b4-8cfd62f0af6b\" class=\"hs-cta-img\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/9d590242-d641-4383-94b4-8cfd62f0af6b.png\" alt=\"Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value\" \/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '9d590242-d641-4383-94b4-8cfd62f0af6b', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenStack is a set of software tools for building and managing cloud computing platforms for public and private clouds. Mostly deployed as an infrastructure-as-a-service (IaaS). Deploy virtual machines and other&hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5,3],"tags":[],"class_list":["post-1808","post","type-post","status-publish","format-standard","hentry","category-general-topics","category-technical-articles"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=1808"}],"version-history":[{"count":4,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1808\/revisions"}],"predecessor-version":[{"id":3027,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/1808\/revisions\/3027"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=1808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=1808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=1808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}