First stab at cleaning up imageinit.py. More to be done. - Rename one of the classes from ImagedNodeConfiger to NodeConfigurator. - Refactor the name of the logfile used into variable IMAGEINIT_LOGFILE. - Update the descriptions of various methods. Remove unnecessary method signature in the method descriptions. - Use the 'if __name__ ==' trick so that we can load imageinit.py as a module to test out the classes if necessary instead of having everything execute on loading.
Imaged node need resmgr package to be installed. Otherwise user will not be able to login via the node's console as the pam_resmgr.so module will be missing.
- Suppress stderr when untar-ing the image file. This is needed so that the compute node's console is not flooded with harmless messages about files bearing a timestamp in the future (which sometimes happen when compute node's system time is out of sync with installer's). - imageinit.log file is now moved to /newroot/root instead of /newroot/tmp. - Flush file system buffers before unmounting partitions. Without this, the imageinit.log file does not get moved to /newroot/root properly. - When building the image file for the imaged nodegroup, use a TEMPORARY yast source that points to the local filesystem. When the imaged node is actually being provisioned, this TEMPORARY source will be replaced with the actual repo URL pointing to the installer.
Problem 145791. Fixed broken build from rev 3628. Plugin File names were updated to match the component names in the previous fix committed in rev 3628. But, kit spec file was not updated with the changes. Updated plugin file names in kit spec file to the actual file names in this fix.
Problem 145791. Renamed ngedit plugins to match the actual component name. Corrected dependency in component-platform-ofed-v1_5 from ofed-src to actual package name OFED.
added 3 files, deleted 3 files and modified component-Platform-OFED.spec
Since only SLES imaged nodes are supported (i.e. only imaged nodegroup is created and not the diskless nodegroup), update the message of the script S04KusuImage.rc.py accordingly.
Add 'binutils environment-modules make patch python-elementtree' to the list of packages installed for SLES imaged node. These might be useful later on and are installed on a RHEL imaged node.
Add 'usbcore ohci_hcd ehci_hcd uhci_hcd dm_snapshot dm_mod' modules to the list of modules passed to mkinitrd for SLES after comparing with a RHEL imaged node. For some reason mkinitrd in SLES is not able to figure out the root device nor the additional modules needed, hence the need to specify them manually.
Add a stop action to the name_eths init script which does nothing. This helps to get rid of the error message that the name_eths init script generates when it is issued a stop action during shutdown/reboot.