mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	Merge pull request #5628 from xuweibj/I302
modify openbmc python installation doc
This commit is contained in:
		| @@ -3,6 +3,11 @@ Using RPM (recommended) | ||||
|  | ||||
| **Support is only for RHEL 7.5 for Power LE (Power 9)** | ||||
|  | ||||
| If you want to install ``xCAT-openbmc-py`` on SN manually, please accoring **install xCAT-openbmc-py on MN** part. But if you hope xCAT could install it automatically, please config as **Install xCAT-openbmc-py on SN** part. | ||||
|  | ||||
| Install xCAT-openbmc-py on MN | ||||
| ----------------------------- | ||||
|  | ||||
| The following repositories should be configured on your Management Node (and Service Nodes). | ||||
|  | ||||
|    * RHEL 7.5 OS Repository | ||||
| @@ -14,7 +19,9 @@ The following repositories should be configured on your Management Node (and Ser | ||||
|  | ||||
| #. Configure the MN/SN to the RHEL 7.5 Extras Repo | ||||
|  | ||||
| #. Configure the MN/SN to the EPEL Repo  (https://fedoraproject.org/wiki/EPEL) | ||||
| #. Configure the MN/SN to the EPEL Repo  (https://fedoraproject.org/wiki/EPEL) :: | ||||
|  | ||||
|     yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||||
|  | ||||
| #. Create a local Fedora28 Repo and Configure the MN/SN to the FC28 Repo | ||||
|  | ||||
| @@ -27,8 +34,8 @@ The following repositories should be configured on your Management Node (and Ser | ||||
|    #. Download the rpms from the Internet: :: | ||||
|  | ||||
|         cd /install/repos/fc28/ppc64le/Packages | ||||
|         wget https://www.rpmfind.net/linux/fedora-secondary/development/rawhide/Everything/ppc64le/os/Packages/p/python2-gevent-1.2.2-2.fc28.ppc64le.rpm | ||||
|         wget https://www.rpmfind.net/linux/fedora-secondary/development/rawhide/Everything/ppc64le/os/Packages/p/python2-greenlet-0.4.13-2.fc28.ppc64le.rpm | ||||
|         wget https://www.rpmfind.net/linux/fedora-secondary/releases/28/Everything/ppc64le/os/Packages/p/python2-gevent-1.2.2-2.fc28.ppc64le.rpm | ||||
|         wget https://www.rpmfind.net/linux/fedora-secondary/releases/28/Everything/ppc64le/os/Packages/p/python2-greenlet-0.4.13-2.fc28.ppc64le.rpm | ||||
|  | ||||
|     #. Create a yum repo in that directory: :: | ||||
|  | ||||
| @@ -40,3 +47,71 @@ The following repositories should be configured on your Management Node (and Ser | ||||
|       yum install xCAT-openbmc-py | ||||
|  | ||||
|    **Note**: The install will fail if the dependencies cannot be met. | ||||
|  | ||||
| Install xCAT-openbmc-py on SN | ||||
| ----------------------------- | ||||
|  | ||||
| For all types of SN installation, need to create repo for ``gevent`` and ``greenlet`` and config ``otherpkglist`` of osimage on MN | ||||
|  | ||||
| #. Create the repo at ``otherpkgdir`` path as the example above, could run ``lsdef -t osimage <os>-<arch>-<install|netboot>-service`` to get the path :: | ||||
|  | ||||
|     # lsdef -t osimage rhels7.5-ppc64le-install-service | grep otherpkgdir | ||||
|     otherpkgdir=/install/post/otherpkgs/rhels7.5/ppc64le | ||||
|  | ||||
| #. Configure ``otherpkglist`` of the current osimage :: | ||||
|  | ||||
|     # lsdef -t osimage rhels7.5-ppc64le-install-service | grep otherpkglist | ||||
|     otherpkglist=/opt/xcat/share/xcat/install/rh/service.rhels7.ppc64le.otherpkgs.pkglist | ||||
|  | ||||
|     # cat /opt/xcat/share/xcat/install/rh/service.rhels7.ppc64le.otherpkgs.pkglist | ||||
|     ... | ||||
|     xcat/Packages/python2-gevent | ||||
|     xcat/Packages/python2-greenlet | ||||
|     xcat/xcat-core/xCAT-openbmc-py | ||||
|  | ||||
| Install on diskful SN by updatenode | ||||
| ``````````````````````````````````` | ||||
|  | ||||
| If you have installed SN without ``xCAT-openbmc-py package``, could run updatenode to install it. | ||||
|  | ||||
| #. Sync epel repo and key file :: | ||||
|  | ||||
|     # rsync -v /etc/yum.repos.d/epel.repo root@10.3.17.17:/etc/yum.repos.d/ | ||||
|     # rsync -v /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 root@10.3.17.17:/etc/pki/rpm-gpg/ | ||||
|  | ||||
| #. Update packages on SN :: | ||||
|  | ||||
|     # updatenode service -S | ||||
|  | ||||
| Install on diskful SN | ||||
| ````````````````````` | ||||
|  | ||||
| #. Configure ``synclists`` of osimage :: | ||||
|  | ||||
|     # lsdef -t osimage rhels7.5-ppc64le-install-service | grep synclists | ||||
|     synclists=/install/custom/netboot/compute.synclist | ||||
|  | ||||
|     # cat /install/custom/netboot/compute.synclist | ||||
|     ... | ||||
|     /etc/yum.repos.d/epel.repo -> /etc/yum.repos.d/epel.repo | ||||
|     /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 -> /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 | ||||
|  | ||||
| #. Install SN :: | ||||
|  | ||||
|     # rinstall service osimage=rhels7.5-ppc64le-install-service | ||||
|  | ||||
| Install on diskless SN | ||||
| `````````````````````` | ||||
|  | ||||
| #. Add epel online repo https://dl.fedoraproject.org/pub/epel/7/ppc64le  to ``pkgdir`` :: | ||||
|  | ||||
|     # lsdef -t osimage -o rhels7.5-ppc64le-netboot-service | grep pkgdir | ||||
|     pkgdir=/install/rhels7.5/ppc64le,https://dl.fedoraproject.org/pub/epel/7/ppc64le | ||||
|  | ||||
| #. Install SN :: | ||||
|  | ||||
|     # genimage rhels7.5-ppc64le-netboot-service | ||||
|     # packimage rhels7.5-ppc64le-netboot-service | ||||
|     # rinstall service osimage=rhels7.5-ppc64le-netboot-service | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user