From Fedora Project Wiki
No edit summary
No edit summary
Line 90: Line 90:
<pre>
<pre>
[stack@oscloud5 ~]$ openstack undercloud install 2>&1 | tee output.undercloud.install
[stack@oscloud5 ~]$ openstack undercloud install 2>&1 | tee output.undercloud.install
</pre>
and see the following error:
<pre>
2017-05-23 18:00:19 - Error: Could not start Service[docker-registry]: Execution of '/bin/systemctl start docker-registry' returned 5: Failed to start docker-registry.service: Unit not found.
2017-05-23 18:00:19 - Error: /Stage[main]/Main/Service[docker-registry]/ensure: change from stopped to running failed: Could not start Service[docker-registry]: Execution of '/bin/systemctl start docker-registry' returned 5: Failed to start docker-registry.service: Unit not found.
</pre>
</pre>

Revision as of 18:03, 23 May 2017

Unfortunately, it seems that Environment setup for baremetal environment does not explain how to install the undercloud. So, following Undercloud installation, I perform the following:

[hamzy@oscloud5 ~]$ sudo useradd stack
[hamzy@oscloud5 ~]$ sudo passwd stack
[hamzy@oscloud5 ~]$ echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
[hamzy@oscloud5 ~]$ sudo chmod 0440 /etc/sudoers.d/stack
[hamzy@oscloud5 ~]$ sudo su - stack
[stack@oscloud5 ~]$ sudo hostnamectl set-hostname oscloud5.stglabs.ibm.com
[stack@oscloud5 ~]$ sudo hostnamectl set-hostname --transient oscloud5.stglabs.ibm.com
[stack@oscloud5 ~]$ sudo yum install -y centos-release-openstack-newton
[stack@oscloud5 ~]$ sudo yum install -y python-tripleoclient
[stack@oscloud5 ~]$ cp /usr/share/instack-undercloud/undercloud.conf.sample ~/undercloud.conf

I then modify undercloud.conf as follows:

[stack@oscloud5 ~]$ cat << __EOF__ | patch -p0
--- undercloud.conf.orig 2017-05-23 17:39:18.497924694 +0000
+++ undercloud.conf 2017-05-23 17:32:01.385929616 +0000
@@ -22,19 +22,23 @@
 # defined by local_interface, with the netmask defined by the prefix
 # portion of the value. (string value)
 #local_ip = 192.0.2.1/24
+local_ip = 192.168.24.2/24
 
 # Network gateway for the Neutron-managed network for Overcloud
 # instances. This should match the local_ip above when using
 # masquerading. (string value)
 #network_gateway = 192.0.2.1
+network_gateway = 192.168.24.1
 
 # Virtual IP address to use for the public endpoints of Undercloud
 # services. Only used with SSL. (string value)
 #undercloud_public_vip = 192.0.2.2
+undercloud_public_vip = 9.114.219.30
 
 # Virtual IP address to use for the admin endpoints of Undercloud
 # services. Only used with SSL. (string value)
 #undercloud_admin_vip = 192.0.2.3
+undercloud_admin_vip = 9.114.219.30
 
 # Certificate file to use for OpenStack service SSL connections.
 # Setting this enables SSL for the OpenStack API endpoints, leaving it
@@ -66,6 +70,7 @@
 # Network interface on the Undercloud that will be handling the PXE
 # boots and DHCP for Overcloud instances. (string value)
 #local_interface = eth1
+local_interface = eno4
 
 # MTU to use for the local_interface. (integer value)
 #local_mtu = 1500
@@ -82,18 +87,22 @@
 # all other network options related to the CIDR (e.g. local_ip) must
 # also be set to maintain a valid configuration. (string value)
 #network_cidr = 192.0.2.0/24
+network_cidr = 192.168.24.0/24
 
 # Network that will be masqueraded for external access, if required.
 # This should be the subnet used for PXE booting. (string value)
 #masquerade_network = 192.0.2.0/24
+masquerade_network = 192.168.24.0/24
 
 # Start of DHCP allocation range for PXE and DHCP of Overcloud
 # instances. (string value)
 #dhcp_start = 192.0.2.5
+dhcp_start = 192.168.24.5
 
 # End of DHCP allocation range for PXE and DHCP of Overcloud
 # instances. (string value)
 #dhcp_end = 192.0.2.24
+dhcp_end = 192.168.24.24
 
 # Path to hieradata override file. If set, the file will be copied
 # under /etc/puppet/hieradata and set as the first file in the hiera
@@ -118,6 +127,7 @@
 # and dhcp_end, but should be in the same network. (string value)
 # Deprecated group/name - [DEFAULT]/discovery_iprange
 #inspection_iprange = 192.0.2.100,192.0.2.120
+inspection_iprange = 192.168.24.25,192.168.24.30
 
 # Whether to enable extra hardware collection during the inspection
 # process. Requires python-hardware or python-hardware-detect package
__EOF__

I then install the undercloud.

[stack@oscloud5 ~]$ openstack undercloud install 2>&1 | tee output.undercloud.install

and see the following error:

2017-05-23 18:00:19 - Error: Could not start Service[docker-registry]: Execution of '/bin/systemctl start docker-registry' returned 5: Failed to start docker-registry.service: Unit not found.
2017-05-23 18:00:19 - Error: /Stage[main]/Main/Service[docker-registry]/ensure: change from stopped to running failed: Could not start Service[docker-registry]: Execution of '/bin/systemctl start docker-registry' returned 5: Failed to start docker-registry.service: Unit not found.