Open tcooper opened 6 years ago
it should not need to be in the installer image. it should run in a post section, which runs on the installed system. (chrooted) p
On Dec 7, 2017 2:36 PM, "Trevor Cooper" notifications@github.com wrote:
grub2-client.xml node file https://github.com/rocksclusters/base/blob/master/nodes/grub2-client.xml#L23 expects access to command /opt/rocks/sbin/modify-grub2 to modify bootflags of installing node.
/opt/rocks/sbin/modify-grub2 is provided https://github.com/rocksclusters/core/blob/master/src/admin/modify-grub2.py by rocks-admin RPM from Rocks core roll.
rocks-admin RPM is not added to updates.img by build-updates-img.py https://github.com/rocksclusters/base/blob/master/src/updates.img/build-updates-img.py#L274 in Rocks base roll and therefore is not available during node install.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rocksclusters/base/issues/34, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOpTe9uv265JeifbkkVfsZuoFl2BSWbks5s-Gh0gaJpZM4Q6TX8 .
You are correct (of course) about not needing rocks-admin
in the updates.img
file. But I think it needs to be added as a <package>
somewhere.... perhaps base.xml
? We'll solve with an extend-
node file if/where needed for now.
@ppapadopoulos... here is supporting example.
[root@vct03 nodes]# rocks add appliance attr compute attr=kvm value=true
[root@vct03 nodes]# rocks add appliance attr compute attr=kvm_autostart value=false
[root@vct03 nodes]# rocks add appliance attr compute attr=kvm_cpu_pinning value=pin_all
[root@vct03 nodes]# rocks list appliance attr compute | grep kvm
compute: kvm true
compute: kvm_autostart false
compute: kvm_cpu_pinning pin_all
[root@vct03 ~]# rocks report host bootflags vm-vct03-03
[root@vct03 ~]# rocks set host bootflags vm-vct03-03 flags="intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll intel_iommu=on"
[root@vct03 ~]# rocks report host bootflags vm-vct03-03
intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll intel_iommu=on
The following
[anaconda root@vm-vct03-03 ~]# grep iommu /run/install/ks.cfg -B4 -A8
%post --log=/mnt/sysimage/var/log/rocks-install.log
cat > /tmp/tmpt2_5gN << 'ROCKS-KS-POST'
#!/bin/bash
addargs="intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll intel_iommu=on"
/opt/rocks/sbin/modify-grub2 --file=/etc/sysconfig/grub --keyword=GRUB_CMDLINE_LINUX --mode=append $addargs
/usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
ROCKS-KS-POST
/bin/chmod +x /tmp/tmpt2_5gN
/tmp/tmpt2_5gN
/bin/rm /tmp/tmpt2_5gN
[root@vm-vct03-03 ~]# cat /etc/sysconfig/grub; echo "----"; cat /proc/cmdline
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto selinux=0 ipv6.disable=1 rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
----
BOOT_IMAGE=/boot/vmlinuz-3.10.0-693.11.1.el7.x86_64 root=UUID=e0bfd14b-daae-4741-9b33-ca9f3da87cff ro crashkernel=auto selinux=0 ipv6.disable=1 rhgb quiet
[root@vct03 ~]# cp /export/rocks/install/site-profiles/7.0/nodes/extend-compute.xml /export/rocks/install/rocks-dist/x86_64/build/nodes/
cp: overwrite ‘/export/rocks/install/rocks-dist/x86_64/build/nodes/extend-compute.xml’? y
[root@vct03 ~]# grep rocks-admin /export/rocks/install/rocks-dist/x86_64/build/nodes/extend-compute.xml
<package>rocks-admin</package>
[root@vm-vct03-03 ~]# cat /etc/sysconfig/grub ; echo "--"; cat /proc/cmdline
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto selinux=0 ipv6.disable=1 rhgb quiet intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll intel_iommu=on"
GRUB_DISABLE_RECOVERY="true"
--
BOOT_IMAGE=/boot/vmlinuz-3.10.0-693.11.1.el7.x86_64 root=UUID=bb7c495e-73fc-4a93-af73-bdf7a11410ae ro crashkernel=auto selinux=0 ipv6.disable=1 rhgb quiet intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll intel_iommu=on
@tcooper Hey,Problems arise during the installation of rocks7:unexpected error:'NoneType' object has no attribute 'updates'. how did you solve the problem? Can you please
grub2-client.xml
node file expects access to command/opt/rocks/sbin/modify-grub2
to modify bootflags of installing node./opt/rocks/sbin/modify-grub2
is provided byrocks-admin
RPM from Rocks core roll.rocks-admin
RPM is not added toupdates.img
bybuild-updates-img.py
in Rocks base roll and therefore is not available during node install.