{"id":73,"date":"2019-03-07T08:31:15","date_gmt":"2019-03-07T08:31:15","guid":{"rendered":"http:\/\/virtorbis.virtcompute.com\/?p=73"},"modified":"2019-08-02T05:30:30","modified_gmt":"2019-08-02T05:30:30","slug":"deploying-red-hat-openstack-14-with-pre-provisioned-nodes","status":"publish","type":"post","link":"https:\/\/virtorbis.virtcompute.com\/?p=73","title":{"rendered":"Deploying Red Hat OpenStack 14 with pre-provisioned nodes"},"content":{"rendered":"\n<p style=\"text-align:left\">Platform : Red Hat OpenStack 14<br>Environment: 1 * Undercloud, 1* controller, 2 * compute nodes<\/p>\n\n\n\n<p>Add require subscriptions and install base packages in undercloud and overcloud nodes as per the deployment steps in Red Hat Director installation document:<br>https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_openstack_platform\/14\/html-single\/director_installation_and_usage\/<\/p>\n\n\n\n<p>Undercloud configuration for a simple deployment: undercloud.conf<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[DEFAULT]<br> clean_nodes = true<br> cleanup = true<br> container_images_file = \/home\/stack\/containers-prepare-parameter.yaml<br> custom_env_files = \/home\/stack\/templates\/custom-undercloud-params.yaml<br> local_interface = eno1<br> local_ip = 192.168.100.10\/24<br> local_subnet = ctlplane-subnet<br> overcloud_domain_name = demo.com<br> undercloud_admin_host = 192.168.100.12<br> undercloud_hostname = basecamp.demo.com <br> undercloud_log_file = install-undercloud.log<br> undercloud_ntp_servers = &lt;&lt; IP address of NTP &gt;&gt;<br> undercloud_public_host = 192.168.100.11<br> [ctlplane-subnet]<br> cidr = 192.168.100.0\/24<br> dhcp_start = 192.168.100.60<br> dhcp_end = 192.168.100.100<br> inspection_iprange = 192.168.100.110,192.168.100.150<br> gateway = 192.168.100.1<br> masquerade = true<\/pre>\n\n\n\n<p>Prepare the container images on undercloud with below command:<br><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># openstack tripleo container image prepare default \\   --local-push-destination \\   --output-env-file containers-prepare-parameter.yaml<\/pre>\n\n\n\n<p>Custom heat parameters for undercloud can be passed with custom-undercloud-params.yaml<\/p>\n\n\n\n<p>Deploy undercloud :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># openstack undercloud install<br><\/pre>\n\n\n\n<p>Basic overcloud deployment with pre-provisioned nodes<\/p>\n\n\n\n<p>For this deployment we are using three nodes:<br>Node 1:      Controller-00   : 192.168.100.51<br>Node 2:      Compute-00    : 192.168.100.52<br>Node 3:      Compute-01     : 192.168.100.53<br><br>Create stack user in all the overcloud nodes and then copy the public key of Director&#8217;s stack user on all the overcloud nodes. Director stack user requires password less access on all the overcloud nodes. Also copy and update the certificate authority file from Director to all the overcloud nodes<\/p>\n\n\n\n<p>Use the below configuration for overcloud ctlplane network: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">resource_registry:<br>&nbsp; OS::TripleO::DeployedServer::ControlPlanePort: \/usr\/share\/openstack-tripleo-heat-templates\/deployed-server\/deployed-neutron-port.yaml<br>parameter_defaults:<br>&nbsp; DeployedServerPortMap:<br>&nbsp; &nbsp; controller-00-ctlplane:<br>&nbsp; &nbsp; &nbsp; fixed_ips:<br>&nbsp; &nbsp; &nbsp; &nbsp; - ip_address: 192.168.100.51<br>&nbsp; &nbsp; &nbsp; subnets:<br>&nbsp; &nbsp; &nbsp; &nbsp; - cidr: 192.168.100.0\/24<br>&nbsp; &nbsp; &nbsp; network:<br>&nbsp; &nbsp; &nbsp; &nbsp; tags:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - 192.168.100.0\/24<br>&nbsp; &nbsp; compute-00-ctlplane:<br>&nbsp; &nbsp; &nbsp; fixed_ips:<br>&nbsp; &nbsp; &nbsp; &nbsp; - ip_address: 192.168.100.52<br>&nbsp; &nbsp; &nbsp; subnets:<br>&nbsp; &nbsp; &nbsp; &nbsp; - cidr: 192.168.100.0\/24<br>&nbsp; &nbsp; &nbsp; network:<br>&nbsp; &nbsp; &nbsp; &nbsp; tags:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - 192.168.100.0\/24<br>&nbsp; &nbsp; compute-01-ctlplane:<br>&nbsp; &nbsp; &nbsp; fixed_ips:<br>&nbsp; &nbsp; &nbsp; &nbsp; - ip_address: 192.168.100.53<br>&nbsp; &nbsp; &nbsp; subnets:<br>&nbsp; &nbsp; &nbsp; &nbsp; - cidr: 192.168.100.0\/24<br>&nbsp; &nbsp; &nbsp; network:<br>&nbsp; &nbsp; &nbsp; &nbsp; tags:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - 192.168.100.0\/24<\/pre>\n\n\n\n<p>Map the hostnames : hostname-map.yaml<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">parameter_defaults:<br>&nbsp; HostnameMap:<br>&nbsp; &nbsp; overcloud-controller-0: controller-00<br>&nbsp; &nbsp; overcloud-novacompute-0: compute-00<br>&nbsp; &nbsp; overcloud-novacompute-1: compute-01<\/pre>\n\n\n\n<p>Deploy basic overcloud with the below command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">openstack overcloud deploy &nbsp; --disable-validations &nbsp;\u2014templates &nbsp;\\<br>&nbsp;-e \/usr\/share\/openstack-tripleo-heat-templates\/environments\/deployed-server-environment.yaml &nbsp; \\<br>&nbsp;-e \/usr\/share\/openstack-tripleo-heat-templates\/environments\/deployed-server-bootstrap-environment-rhel.yaml &nbsp; \\<br>&nbsp;-e \/usr\/share\/openstack-tripleo-heat-templates\/environments\/deployed-server-pacemaker-environment.yaml &nbsp; \\<br>&nbsp;-e \/home\/stack\/templates\/hostname-map.yaml &nbsp; \\<br>&nbsp;-e \/home\/stack\/templates\/ctlplane-assignments.yaml &nbsp; \\<br>&nbsp;-r \/usr\/share\/openstack-tripleo-heat-templates\/deployed-server\/deployed-server-roles-data.yaml &nbsp; \\<br>&nbsp;--overcloud-ssh-user stack &nbsp; \\<br>&nbsp;--overcloud-ssh-key ~\/.ssh\/id_rsa \\<br>--control-scale 1 \\<br>&nbsp;--compute-scale 2 \\<br> --ntp-server &lt;&lt; IP address of the NTP &gt;&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Platform : Red Hat OpenStack 14Environment: 1 * Undercloud, 1* controller, 2 * compute nodes Add require subscriptions and install base packages in undercloud and overcloud nodes as per the deployment steps in Red Hat Director installation document:https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_openstack_platform\/14\/html-single\/director_installation_and_usage\/ Undercloud configuration for a simple deployment: undercloud.conf [DEFAULT] clean_nodes = true cleanup = true container_images_file = \/home\/stack\/containers-prepare-parameter.yaml [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":95,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,40,4,23,21],"tags":[34,24,28,42,25,26],"class_list":["post-73","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-nfv","category-openstack","category-red-hat-openstack","category-scaleout","tag-nfv","tag-openstack","tag-osp","tag-pre-provisioned-nodes","tag-red-hat-openstack","tag-rhosp"],"_links":{"self":[{"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=73"}],"version-history":[{"count":4,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/posts\/73\/revisions\/96"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=\/wp\/v2\/media\/95"}],"wp:attachment":[{"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/virtorbis.virtcompute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}