(Created page with "On a CentOS7 system <pre> [hamzy@oscloud5 ~]$ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.3.1...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 105: | Line 105: | ||
<pre> | <pre> | ||
[stack@oscloud5 ~]$ openstack undercloud install 2>&1 | tee output.undercloud.install | [stack@oscloud5 ~]$ openstack undercloud install 2>&1 | tee output.undercloud.install | ||
... | |||
The file containing this installation's passwords is at | |||
/home/stack/undercloud-passwords.conf. | |||
There is also a stackrc file at /home/stack/stackrc. | |||
... | |||
</pre> | |||
I then create the overcloud node definitions. | |||
<pre> | |||
[stack@oscloud5 ~]$ cat << __EOF__ > instackenv.json | |||
{ | |||
"nodes": [ | |||
{ | |||
"pm_type":"pxe_ipmitool", | |||
"mac":[ | |||
"98:be:94:67:f2:93" | |||
], | |||
"cpu":"16", | |||
"memory":"1048576", | |||
"disk":"1000", | |||
"arch":"ppc64le", | |||
"pm_user":"user", | |||
"pm_password":"password", | |||
"pm_addr":"9.114.118.133" | |||
}, | |||
{ | |||
"pm_type":"pxe_ipmitool", | |||
"mac":[ | |||
"40:f2:e9:5c:f8:f5" | |||
], | |||
"cpu":"16", | |||
"memory":"1048576", | |||
"disk":"1000", | |||
"arch":"ppc64le", | |||
"pm_user":"user", | |||
"pm_password":"password", | |||
"pm_addr":"9.114.118.149" | |||
} | |||
] | |||
} | |||
__EOF__ | |||
</pre> | |||
I then need to create ironic-python-agent.initramfs, ironic-python-agent.kernel, overcloud-full.initrd, | |||
overcloud-full.qcow2, and overcloud-full.vmlinuz. The process is described [http://tripleo.org/basic_deployment/basic_deployment_cli.html#get-images here]. | |||
On a PowerPC machine, I create needed repositories. | |||
<pre> | |||
[hamzy@pkvmci853 ~]$ cat << __EOF__ | sudo tee -a /etc/yum.repos.d/download-and-rebuild-srpms-newton.repo | |||
[download_and_rebuild_srpms_newton] | |||
name=download_and_rebuild_srpms_newton | |||
baseurl=http://9.114.219.156/download-and-rebuild-srpms-newton/lastSuccessful/archive/build/test/ | |||
enabled=1 | |||
gpgcheck=0 | |||
__EOF__ | |||
[hamzy@pkvmci853 ~]$ cat << __EOF__ | sudo tee -a /etc/yum.repos.d/cloud7-openstack-common-release.repo | |||
[cloud7-openstack-common-release] | |||
name=cloud7_openstack_common_release | |||
baseurl=https://cbs.centos.org/repos/cloud7-openstack-common-release/ppc64le/os/ | |||
enabled=1 | |||
gpgcheck=0 | |||
__EOF__ | |||
</pre> | |||
There are still some missing rpms. Fortunately, they are noarch and can be grabbed elsewhere. | |||
<pre> | |||
[hamzy@pkvmci853 ~]$ sudo yum install https://cbs.centos.org/repos/cloud7-openstack-newton-release/x86_64/os/Packages/python-tripleoclient-5.4.1-1.el7.noarch.rpm https://cbs.centos.org/repos/cloud7-openstack-newton-release/x86_64/os/Packages/python2-oslo-log-3.16.0-1.el7.noarch.rpm https://cbs.centos.org/repos/cloud7-openstack-newton-release/x86_64/os/Packages/python-oslo-log-lang-3.16.0-1.el7.noarch.rpm http://mirror.centos.org/centos-7/7.3.1611/extras/x86_64/Packages/python-docker-py-1.10.6-1.el7.noarch.rpm http://mirror.centos.org/centos-7/7.3.1611/extras/x86_64/Packages/python-docker-pycreds-1.10.6-1.el7.noarch.rpm | |||
</pre> | </pre> |
Latest revision as of 12:41, 26 May 2017
On a CentOS7 system
[hamzy@oscloud5 ~]$ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.3.1611 (Core) Release: 7.3.1611 Codename: Core [hamzy@oscloud5 ~]$ uname -a Linux oscloud5.stglabs.ibm.com 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
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 curl -L -o /etc/yum.repos.d/delorean-newton.repo https://trunk.rdoproject.org/centos7-newton/current-passed-ci/delorean.repo [stack@oscloud5 ~]$ sudo curl -L -o /etc/yum.repos.d/delorean-deps-newton.repo https://trunk.rdoproject.org/centos7-newton/delorean-deps.repo [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 ... The file containing this installation's passwords is at /home/stack/undercloud-passwords.conf. There is also a stackrc file at /home/stack/stackrc. ...
I then create the overcloud node definitions.
[stack@oscloud5 ~]$ cat << __EOF__ > instackenv.json { "nodes": [ { "pm_type":"pxe_ipmitool", "mac":[ "98:be:94:67:f2:93" ], "cpu":"16", "memory":"1048576", "disk":"1000", "arch":"ppc64le", "pm_user":"user", "pm_password":"password", "pm_addr":"9.114.118.133" }, { "pm_type":"pxe_ipmitool", "mac":[ "40:f2:e9:5c:f8:f5" ], "cpu":"16", "memory":"1048576", "disk":"1000", "arch":"ppc64le", "pm_user":"user", "pm_password":"password", "pm_addr":"9.114.118.149" } ] } __EOF__
I then need to create ironic-python-agent.initramfs, ironic-python-agent.kernel, overcloud-full.initrd, overcloud-full.qcow2, and overcloud-full.vmlinuz. The process is described here.
On a PowerPC machine, I create needed repositories.
[hamzy@pkvmci853 ~]$ cat << __EOF__ | sudo tee -a /etc/yum.repos.d/download-and-rebuild-srpms-newton.repo [download_and_rebuild_srpms_newton] name=download_and_rebuild_srpms_newton baseurl=http://9.114.219.156/download-and-rebuild-srpms-newton/lastSuccessful/archive/build/test/ enabled=1 gpgcheck=0 __EOF__ [hamzy@pkvmci853 ~]$ cat << __EOF__ | sudo tee -a /etc/yum.repos.d/cloud7-openstack-common-release.repo [cloud7-openstack-common-release] name=cloud7_openstack_common_release baseurl=https://cbs.centos.org/repos/cloud7-openstack-common-release/ppc64le/os/ enabled=1 gpgcheck=0 __EOF__
There are still some missing rpms. Fortunately, they are noarch and can be grabbed elsewhere.
[hamzy@pkvmci853 ~]$ sudo yum install https://cbs.centos.org/repos/cloud7-openstack-newton-release/x86_64/os/Packages/python-tripleoclient-5.4.1-1.el7.noarch.rpm https://cbs.centos.org/repos/cloud7-openstack-newton-release/x86_64/os/Packages/python2-oslo-log-3.16.0-1.el7.noarch.rpm https://cbs.centos.org/repos/cloud7-openstack-newton-release/x86_64/os/Packages/python-oslo-log-lang-3.16.0-1.el7.noarch.rpm http://mirror.centos.org/centos-7/7.3.1611/extras/x86_64/Packages/python-docker-py-1.10.6-1.el7.noarch.rpm http://mirror.centos.org/centos-7/7.3.1611/extras/x86_64/Packages/python-docker-pycreds-1.10.6-1.el7.noarch.rpm