Installed cobbler server on RHEL 6.8 Installed the latest version of cobbler from EPEL 2.6.11 Imported RHEL 7.0 and 7.2 distributions from the binary DVD. Made a kickstart file as follows, slight changes from RHEL6
<code> auth --useshadow --enablemd5 bootloader --location=mbr clearpart --all --initlabel text firewall --disabled firstboot --disable keyboard us lang en_US url --url=$tree reboot --eject rootpw --plaintext abc123 selinux --disabled skipx timezone --utc America/Chicago install zerombr part /boot --fstype ext3 --size=1024 --ondisk=sda part pv.01 --size=1 --grow --ondisk=sda volgroup sysvg --pesize=65536 pv.01 logvol swap --fstype swap --name=swap --vgname=sysvg --size=8192 logvol /opt --fstype ext4 --name=opt --vgname=sysvg --size=6144 logvol / --fstype ext4 --name=root --vgname=sysvg --size=2048 logvol /home --fstype ext4 --name=home --vgname=sysvg --size=1024 logvol /tmp --fstype ext4 --name=tmp --vgname=sysvg --size=2048 logvol /usr --fstype ext4 --name=usr --vgname=sysvg --size=5120 logvol /var --fstype ext4 --name=var --vgname=sysvg --size=8192
$yum_repo_stanza
$SNIPPET('network_config')
%pre $SNIPPET('log_ks_pre') $SNIPPET('kickstart_start') $SNIPPET('pre_install_network_config') $SNIPPET('pre_anamon') %end
%packages $SNIPPET('func_install_if_enabled') $SNIPPET('puppet_install_if_enabled') %end
%post $SNIPPET('log_ks_post') $yum_config_stanza $SNIPPET('post_install_kernel_options') $SNIPPET('post_install_network_config') $SNIPPET('func_register_if_enabled') $SNIPPET('puppet_register_if_enabled') $SNIPPET('download_config_files') $SNIPPET('koan_environment') $SNIPPET('redhat_register') $SNIPPET('cobbler_register') # Enable post-install boot notification $SNIPPET('post_anamon') # Start final steps $SNIPPET('kickstart_done') # End final steps %end
</code>
Created a boot ISO, booted from it to perform a RHEL7 install. It fails with this error message with some python errors
NoSuchGroup: core
Any idea whats wrong here ?. All VMs are on VirtualBox running on Fedora.
On 09/19/2016 01:25 PM, Kapilraj Koroth wrote:
Installed cobbler server on RHEL 6.8 Installed the latest version of cobbler from EPEL 2.6.11 Imported RHEL 7.0 and 7.2 distributions from the binary DVD. Made a kickstart file as follows, slight changes from RHEL6
Created a boot ISO, booted from it to perform a RHEL7 install. It fails with this error message with some python errors
NoSuchGroup: core
Any idea whats wrong here ?. All VMs are on VirtualBox running on Fedora.
What is the final generated kickstart file?
What do you mean ? I have given the Kickstart file in my original post.
On Sep 21, 2016 1:43 PM, "Orion Poplawski" orion@cora.nwra.com wrote:
On 09/19/2016 01:25 PM, Kapilraj Koroth wrote:
Installed cobbler server on RHEL 6.8 Installed the latest version of cobbler from EPEL 2.6.11 Imported RHEL 7.0 and 7.2 distributions from the binary DVD. Made a kickstart file as follows, slight changes from RHEL6
Created a boot ISO, booted from it to perform a RHEL7 install. It fails
with
this error message with some python errors
NoSuchGroup: core
Any idea whats wrong here ?. All VMs are on VirtualBox running on Fedora.
What is the final generated kickstart file?
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@nwra.com Boulder, CO 80301 http://www.nwra.com _______________________________________________ cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
On 09/21/2016 08:32 PM, Kapilraj Koroth wrote:
What do you mean ? I have given the Kickstart file in my original post.
No, you gave the kickstart template file - not the rendered version
On Sep 21, 2016 1:43 PM, "Orion Poplawski" <orion@cora.nwra.com mailto:orion@cora.nwra.com> wrote:
On 09/19/2016 01:25 PM, Kapilraj Koroth wrote: > Installed cobbler server on RHEL 6.8 > Installed the latest version of cobbler from EPEL 2.6.11 > Imported RHEL 7.0 and 7.2 distributions from the binary DVD. > Made a kickstart file as follows, slight changes from RHEL6 > Created a boot ISO, booted from it to perform a RHEL7 install. It fails with > this error message with some python errors > > NoSuchGroup: core > > Any idea whats wrong here ?. All VMs are on VirtualBox running on Fedora. What is the final generated kickstart file?
cobbler profile getks --name <PROFILE NAME>
On Fri, Sep 23, 2016 at 12:51 PM, Orion Poplawski orion@cora.nwra.com wrote:
On 09/21/2016 08:32 PM, Kapilraj Koroth wrote:
What do you mean ? I have given the Kickstart file in my original post.
No, you gave the kickstart template file - not the rendered version
On Sep 21, 2016 1:43 PM, "Orion Poplawski" <orion@cora.nwra.com mailto:orion@cora.nwra.com> wrote:
On 09/19/2016 01:25 PM, Kapilraj Koroth wrote: > Installed cobbler server on RHEL 6.8 > Installed the latest version of cobbler from EPEL 2.6.11 > Imported RHEL 7.0 and 7.2 distributions from the binary DVD. > Made a kickstart file as follows, slight changes from RHEL6 > Created a boot ISO, booted from it to perform a RHEL7 install. It
fails with
> this error message with some python errors > > NoSuchGroup: core > > Any idea whats wrong here ?. All VMs are on VirtualBox running on
Fedora.
What is the final generated kickstart file?
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@nwra.com Boulder, CO 80301 http://www.nwra.com _______________________________________________ cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
Here it is
[kapiltest1 ~]$ sudo cobbler profile getks --name rhel-7.0-x86_64 eula --agreed auth --useshadow --enablemd5 bootloader --location=mbr clearpart --all --initlabel text firewall --disabled firstboot --disable keyboard us lang en_US url --url=http://kapiltest1/cblr/links/rhel-7.0-x86_64 reboot --eject rootpw --plaintext abc123 selinux --disabled skipx timezone --utc America/Chicago install zerombr part /boot --fstype ext3 --size=1024 --ondisk=sda part pv.01 --size=1 --grow --ondisk=sda volgroup sysvg --pesize=65536 pv.01 logvol swap --fstype swap --name=swap --vgname=sysvg --size=8192 logvol /opt --fstype ext4 --name=opt --vgname=sysvg --size=6144 logvol / --fstype ext4 --name=root --vgname=sysvg --size=10240 logvol /home --fstype ext4 --name=home --vgname=sysvg --size=1024 logvol /tmp --fstype ext4 --name=tmp --vgname=sysvg --size=2048 logvol /var --fstype ext4 --name=var --vgname=sysvg --size=8192
repo --name=source-1 --baseurl= http://kapiltest1/cobbler/ks_mirror/rhel-7.0-x86_64 repo --name=source-2 --baseurl= http://kapiltest1/cobbler/ks_mirror/rhel-7.0-x86_64/addons/HighAvailability repo --name=source-3 --baseurl= http://kapiltest1/cobbler/ks_mirror/rhel-7.0-x86_64/addons/ResilientStorage
network --bootproto=dhcp --device=eth0 --onboot=on
%pre set -x -v exec 1>/tmp/ks-pre.log 2>&1
# Once root's homedir is there, copy over the log. while : ; do sleep 10 if [ -d /mnt/sysimage/root ]; then cp /tmp/ks-pre.log /mnt/sysimage/root/ logger "Copied %pre section log to system" break fi done &
curl "http://kapiltest1/cblr/svc/op/trig/mode/pre/profile/rhel-7.0-x86_64" -o /dev/null
%end %packages @core
%end %post set -x -v exec 1>/root/ks-post.log 2>&1
curl "http://kapiltest1/cblr/svc/op/yum/profile/rhel-7.0-x86_64" --output /etc/yum.repos.d/cobbler-config.repo
# Start post_install_network_config generated code # End post_install_network_config generated code
# start puppet registration # end puppet registration
# Start download cobbler managed config files (if applicable) # End download cobbler managed config files (if applicable)
# Start koan environment setup echo "export COBBLER_SERVER=kapiltest1" > /etc/profile.d/cobbler.sh echo "setenv COBBLER_SERVER kapiltest1" > /etc/profile.d/cobbler.csh # End koan environment setup
# begin Red Hat management server registration # not configured to register to any Red Hat management server (ok) # end Red Hat management server registration
# Begin cobbler registration # cobbler registration is disabled in /etc/cobbler/settings # End cobbler registration
# Enable post-install boot notification
# Start final steps
curl "http://kapiltest1/cblr/svc/op/ks/profile/rhel-7.0-x86_64" -o /root/cobbler.ks curl "http://kapiltest1/cblr/svc/op/trig/mode/post/profile/rhel-7.0-x86_64" -o /dev/null # End final steps %end
On Fri, Sep 23, 2016 at 2:54 PM, Locane locane@gmail.com wrote:
cobbler profile getks --name <PROFILE NAME>
On Fri, Sep 23, 2016 at 12:51 PM, Orion Poplawski orion@cora.nwra.com wrote:
On 09/21/2016 08:32 PM, Kapilraj Koroth wrote:
What do you mean ? I have given the Kickstart file in my original post.
No, you gave the kickstart template file - not the rendered version
On Sep 21, 2016 1:43 PM, "Orion Poplawski" <orion@cora.nwra.com mailto:orion@cora.nwra.com> wrote:
On 09/19/2016 01:25 PM, Kapilraj Koroth wrote: > Installed cobbler server on RHEL 6.8 > Installed the latest version of cobbler from EPEL 2.6.11 > Imported RHEL 7.0 and 7.2 distributions from the binary DVD. > Made a kickstart file as follows, slight changes from RHEL6 > Created a boot ISO, booted from it to perform a RHEL7 install. It
fails with
> this error message with some python errors > > NoSuchGroup: core > > Any idea whats wrong here ?. All VMs are on VirtualBox running on
Fedora.
What is the final generated kickstart file?
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@nwra.com Boulder, CO 80301 http://www.nwra.com _______________________________________________ cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
This may be even better, while installing RHEL7 using a buildiso
eula --agreed auth --useshadow --enablemd5 bootloader --location=mbr clearpart --all --initlabel text firewall --disabled firstboot --disable keyboard us lang en_US url --url= http://kapiltest1.kapil.fakedns.fake.com/cblr/links/rhel-7.0-x86_64 reboot --eject rootpw --plaintext abc123 selinux --disabled skipx timezone --utc America/Chicago install zerombr part /boot --fstype ext3 --size=1024 --ondisk=sda part pv.01 --size=1 --grow --ondisk=sda volgroup sysvg --pesize=65536 pv.01 logvol swap --fstype swap --name=swap --vgname=sysvg --size=8192 logvol /opt --fstype ext4 --name=opt --vgname=sysvg --size=6144 logvol / --fstype ext4 --name=root --vgname=sysvg --size=10240 logvol /home --fstype ext4 --name=home --vgname=sysvg --size=1024 logvol /tmp --fstype ext4 --name=tmp --vgname=sysvg --size=2048 logvol /var --fstype ext4 --name=var --vgname=sysvg --size=8192
repo --name=source-1 --baseurl= http://kapiltest1.kapil.fakedns.fake.com/cobbler/ks_mirror/rhel-7.0-x86_64 repo --name=source-2 --baseurl= http://kapiltest1.kapil.fakedns.fake.com/cobbler/ks_mirror/rhel-7.0-x86_64/a... repo --name=source-3 --baseurl= http://kapiltest1.kapil.fakedns.fake.com/cobbler/ks_mirror/rhel-7.0-x86_64/a...
# Using "new" style networking config, by matching networking information to the physical interface's # MAC-address %include /tmp/pre_install_network_config
%pre set -x -v exec 1>/tmp/ks-pre.log 2>&1
# Once root's homedir is there, copy over the log. while : ; do sleep 10 if [ -d /mnt/sysimage/root ]; then cp /tmp/ks-pre.log /mnt/sysimage/root/ logger "Copied %pre section log to system" break fi done &
curl " http://kapiltest1.kapil.fakedns.fake.com/cblr/svc/op/trig/mode/pre/system/ka..." -o /dev/null # Start pre_install_network_config generated code # generic functions to be used later for discovering NICs mac_exists() { [ -z "$1" ] && return 1
if which ip 2>/dev/null >/dev/null; then ip -o link | grep -i "$1" 2>/dev/null >/dev/null return $? elif which esxcfg-nics 2>/dev/null >/dev/null; then esxcfg-nics -l | grep -i "$1" 2>/dev/null >/dev/null return $? else ifconfig -a | grep -i "$1" 2>/dev/null >/dev/null return $? fi } get_ifname() { if which ip 2>/dev/null >/dev/null; then IFNAME=$(ip -o link | grep -i "$1" | sed -e 's/^[0-9]*: //' -e 's/:.*//') elif which esxcfg-nics 2>/dev/null >/dev/null; then IFNAME=$(esxcfg-nics -l | grep -i "$1" | cut -d " " -f 1) else IFNAME=$(ifconfig -a | grep -i "$1" | cut -d " " -f 1) if [ -z $IFNAME ]; then IFNAME=$(ifconfig -a | grep -i -B 2 "$1" | sed -n '/flags/s/:.*$//p') fi fi }
# Start of code to match cobbler system interfaces to physical interfaces by their mac addresses # Start eth0 # Configuring eth0 (08:00:27:1E:29:B0) if mac_exists 08:00:27:1E:29:B0 then get_ifname 08:00:27:1E:29:B0 echo "network --device=$IFNAME --bootproto=static --ip=10.32.40.41 --netmask=255.255.255.0 --gateway=10.32.40.1 --nameserver=10.32.8.53" >> /tmp/pre_install_network_config fi # End pre_install_network_config generated code
%end %packages @core
%end %post set -x -v exec 1>/root/ks-post.log 2>&1
curl " http://kapiltest1.kapil.fakedns.fake.com/cblr/svc/op/yum/system/kapiltest2" --output /etc/yum.repos.d/cobbler-config.repo
# Start post_install_network_config generated code
# create a working directory for interface scripts mkdir /etc/sysconfig/network-scripts/cobbler cp /etc/sysconfig/network-scripts/ifcfg-lo /etc/sysconfig/network-scripts/cobbler/
# set the gateway in the network configuration file grep -v GATEWAY /etc/sysconfig/network > /etc/sysconfig/network.cobbler echo "GATEWAY=10.32.40.1" >> /etc/sysconfig/network.cobbler rm -f /etc/sysconfig/network mv /etc/sysconfig/network.cobbler /etc/sysconfig/network
# Start configuration for eth0 echo "DEVICE=eth0" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "ONBOOT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "HWADDR=08:00:27:1E:29:B0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 IFNAME=$(ip -o link | grep -i '08:00:27:1E:29:B0' | sed -e 's/^[0-9]*: //' -e 's/:.*//') if [ -f "/etc/modprobe.conf" ] && [ $IFNAME ]; then grep $IFNAME /etc/modprobe.conf | sed "s/$IFNAME/eth0/" >> /etc/modprobe.conf.cobbler grep -v $IFNAME /etc/modprobe.conf >> /etc/modprobe.conf.new rm -f /etc/modprobe.conf mv /etc/modprobe.conf.new /etc/modprobe.conf fi echo "TYPE=Ethernet" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "BOOTPROTO=none" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "IPADDR=10.32.40.41" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "NETMASK=255.255.255.0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DNS1=10.32.8.53" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 # End configuration for eth0
sed -i -e "/^search /d" /etc/resolv.conf echo -n "search " >>/etc/resolv.conf echo -n "kapil.fakedns.fake.com " >>/etc/resolv.conf echo "" >>/etc/resolv.conf
sed -i -e "/^nameserver /d" /etc/resolv.conf echo "nameserver 10.32.8.53" >>/etc/resolv.conf
sed -i 's/ONBOOT=yes/ONBOOT=no/g' /etc/sysconfig/network-scripts/ifcfg-eth*
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 mv /etc/sysconfig/network-scripts/cobbler/* /etc/sysconfig/network-scripts/ rm -r /etc/sysconfig/network-scripts/cobbler echo "options bonding max_bonds=0" >> /etc/modprobe.d/bonding.conf cat /etc/modprobe.d/bonding.conf.cobbler >> /etc/modprobe.d/bonding.conf rm -f /etc/modprobe.d/bonding.conf.cobbler # End post_install_network_config generated code
# start puppet registration # end puppet registration
# Start download cobbler managed config files (if applicable) # End download cobbler managed config files (if applicable)
# Start koan environment setup echo "export COBBLER_SERVER=kapiltest1.kapil.fakedns.fake.com" > /etc/profile.d/cobbler.sh echo "setenv COBBLER_SERVER kapiltest1.kapil.fakedns.fake.com" > /etc/profile.d/cobbler.csh # End koan environment setup
# begin Red Hat management server registration # not configured to register to any Red Hat management server (ok) # end Red Hat management server registration
# Begin cobbler registration # skipping for system-based installation # End cobbler registration
# Enable post-install boot notification
# Start final steps
curl " http://kapiltest1.kapil.fakedns.fake.com/cblr/svc/op/ks/system/kapiltest2" -o /root/cobbler.ks curl " http://kapiltest1.kapil.fakedns.fake.com/cblr/svc/op/trig/mode/post/system/k..." -o /dev/null # End final steps %end
/tmp/anaconda-tb* says this at the very top
anaconda 19.31.79-1 exception report Traceback (most recent call first): File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1261, in _selectYumGroup raise NoSuchGroup(groupid) File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1373, in _applyYumSelections self._selectYumGroup("core") File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1477, in checkSoftwareSelection self._applyYumSelections() File "/usr/lib64/python2.7/site-packages/pyanaconda/packaging/yumpayload.py", line 1563, in preInstall self.checkSoftwareSelection() File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 169, in doInstall payload.preInstall(packages=packages, groups=payload.languageGroups()) File "/usr/lib64/python2.7/threading.py", line 764, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 211, in run threading.Thread.run(self, *args, **kwargs) NoSuchGroup: core
Local variables in innermost frame: default: True self: <pyanaconda.packaging.yumpayload.YumPayload object at 0x7f154178c7d0> optional: False pkg_types: ['mandatory', 'default'] groupid: core
On Fri, Sep 23, 2016 at 4:27 PM, Kapilraj Koroth kapilrajk@gmail.com wrote:
This may be even better, while installing RHEL7 using a buildiso
eula --agreed auth --useshadow --enablemd5 bootloader --location=mbr clearpart --all --initlabel text firewall --disabled firstboot --disable keyboard us lang en_US url --url=http://kapiltest1.kapil.fakedns.fake.com/cblr/links/ rhel-7.0-x86_64 reboot --eject rootpw --plaintext abc123 selinux --disabled skipx timezone --utc America/Chicago install zerombr part /boot --fstype ext3 --size=1024 --ondisk=sda part pv.01 --size=1 --grow --ondisk=sda volgroup sysvg --pesize=65536 pv.01 logvol swap --fstype swap --name=swap --vgname=sysvg --size=8192 logvol /opt --fstype ext4 --name=opt --vgname=sysvg --size=6144 logvol / --fstype ext4 --name=root --vgname=sysvg --size=10240 logvol /home --fstype ext4 --name=home --vgname=sysvg --size=1024 logvol /tmp --fstype ext4 --name=tmp --vgname=sysvg --size=2048 logvol /var --fstype ext4 --name=var --vgname=sysvg --size=8192
repo --name=source-1 --baseurl=http://kapiltest1.kapil.fakedns.fake.com/ cobbler/ks_mirror/rhel-7.0-x86_64 repo --name=source-2 --baseurl=http://kapiltest1.kapil.fakedns.fake.com/ cobbler/ks_mirror/rhel-7.0-x86_64/addons/HighAvailability repo --name=source-3 --baseurl=http://kapiltest1.kapil.fakedns.fake.com/ cobbler/ks_mirror/rhel-7.0-x86_64/addons/ResilientStorage
# Using "new" style networking config, by matching networking information to the physical interface's # MAC-address %include /tmp/pre_install_network_config
%pre set -x -v exec 1>/tmp/ks-pre.log 2>&1
# Once root's homedir is there, copy over the log. while : ; do sleep 10 if [ -d /mnt/sysimage/root ]; then cp /tmp/ks-pre.log /mnt/sysimage/root/ logger "Copied %pre section log to system" break fi done &
curl "http://kapiltest1.kapil.fakedns.fake.com/cblr/svc/op/ trig/mode/pre/system/kapiltest2" -o /dev/null # Start pre_install_network_config generated code # generic functions to be used later for discovering NICs mac_exists() { [ -z "$1" ] && return 1
if which ip 2>/dev/null >/dev/null; then ip -o link | grep -i "$1" 2>/dev/null >/dev/null return $? elif which esxcfg-nics 2>/dev/null >/dev/null; then esxcfg-nics -l | grep -i "$1" 2>/dev/null >/dev/null return $? else ifconfig -a | grep -i "$1" 2>/dev/null >/dev/null return $? fi } get_ifname() { if which ip 2>/dev/null >/dev/null; then IFNAME=$(ip -o link | grep -i "$1" | sed -e 's/^[0-9]*: //' -e 's/:.*//') elif which esxcfg-nics 2>/dev/null >/dev/null; then IFNAME=$(esxcfg-nics -l | grep -i "$1" | cut -d " " -f 1) else IFNAME=$(ifconfig -a | grep -i "$1" | cut -d " " -f 1) if [ -z $IFNAME ]; then IFNAME=$(ifconfig -a | grep -i -B 2 "$1" | sed -n '/flags/s/:.*$//p') fi fi }
# Start of code to match cobbler system interfaces to physical interfaces by their mac addresses # Start eth0 # Configuring eth0 (08:00:27:1E:29:B0) if mac_exists 08:00:27:1E:29:B0 then get_ifname 08:00:27:1E:29:B0 echo "network --device=$IFNAME --bootproto=static --ip=10.32.40.41 --netmask=255.255.255.0 --gateway=10.32.40.1 --nameserver=10.32.8.53" >> /tmp/pre_install_network_config fi # End pre_install_network_config generated code
%end %packages @core
%end %post set -x -v exec 1>/root/ks-post.log 2>&1
curl "http://kapiltest1.kapil.fakedns.fake.com/cblr/svc/op/ yum/system/kapiltest2" --output /etc/yum.repos.d/cobbler-config.repo
# Start post_install_network_config generated code
# create a working directory for interface scripts mkdir /etc/sysconfig/network-scripts/cobbler cp /etc/sysconfig/network-scripts/ifcfg-lo /etc/sysconfig/network- scripts/cobbler/
# set the gateway in the network configuration file grep -v GATEWAY /etc/sysconfig/network > /etc/sysconfig/network.cobbler echo "GATEWAY=10.32.40.1" >> /etc/sysconfig/network.cobbler rm -f /etc/sysconfig/network mv /etc/sysconfig/network.cobbler /etc/sysconfig/network
# Start configuration for eth0 echo "DEVICE=eth0" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "ONBOOT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "HWADDR=08:00:27:1E:29:B0" >> /etc/sysconfig/network- scripts/cobbler/ifcfg-eth0 IFNAME=$(ip -o link | grep -i '08:00:27:1E:29:B0' | sed -e 's/^[0-9]*: //' -e 's/:.*//') if [ -f "/etc/modprobe.conf" ] && [ $IFNAME ]; then grep $IFNAME /etc/modprobe.conf | sed "s/$IFNAME/eth0/" >> /etc/modprobe.conf.cobbler grep -v $IFNAME /etc/modprobe.conf >> /etc/modprobe.conf.new rm -f /etc/modprobe.conf mv /etc/modprobe.conf.new /etc/modprobe.conf fi echo "TYPE=Ethernet" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "BOOTPROTO=none" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "IPADDR=10.32.40.41" >> /etc/sysconfig/network- scripts/cobbler/ifcfg-eth0 echo "NETMASK=255.255.255.0" >> /etc/sysconfig/network- scripts/cobbler/ifcfg-eth0 echo "DNS1=10.32.8.53" >> /etc/sysconfig/network- scripts/cobbler/ifcfg-eth0 # End configuration for eth0
sed -i -e "/^search /d" /etc/resolv.conf echo -n "search " >>/etc/resolv.conf echo -n "kapil.fakedns.fake.com " >>/etc/resolv.conf echo "" >>/etc/resolv.conf
sed -i -e "/^nameserver /d" /etc/resolv.conf echo "nameserver 10.32.8.53" >>/etc/resolv.conf
sed -i 's/ONBOOT=yes/ONBOOT=no/g' /etc/sysconfig/network- scripts/ifcfg-eth*
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 mv /etc/sysconfig/network-scripts/cobbler/* /etc/sysconfig/network- scripts/ rm -r /etc/sysconfig/network-scripts/cobbler echo "options bonding max_bonds=0" >> /etc/modprobe.d/bonding.conf cat /etc/modprobe.d/bonding.conf.cobbler >> /etc/modprobe.d/bonding.conf rm -f /etc/modprobe.d/bonding.conf.cobbler # End post_install_network_config generated code
# start puppet registration # end puppet registration
# Start download cobbler managed config files (if applicable) # End download cobbler managed config files (if applicable)
# Start koan environment setup echo "export COBBLER_SERVER=kapiltest1.kapil.fakedns.fake.com" > /etc/profile.d/cobbler.sh echo "setenv COBBLER_SERVER kapiltest1.kapil.fakedns.fake.com" > /etc/profile.d/cobbler.csh # End koan environment setup
# begin Red Hat management server registration # not configured to register to any Red Hat management server (ok) # end Red Hat management server registration
# Begin cobbler registration # skipping for system-based installation # End cobbler registration
# Enable post-install boot notification
# Start final steps
curl "http://kapiltest1.kapil.fakedns.fake.com/cblr/svc/op/ ks/system/kapiltest2" -o /root/cobbler.ks curl "http://kapiltest1.kapil.fakedns.fake.com/cblr/svc/op/ trig/mode/post/system/kapiltest2" -o /dev/null # End final steps %end
On 09/23/2016 03:21 PM, Kapilraj Koroth wrote:
Here it is
[kapiltest1 ~]$ sudo cobbler profile getks --name rhel-7.0-x86_64
%packages @core
%end
So there's your @core. Question is, where is it coming from. Your claimed template doesn't have it:
%packages $SNIPPET('func_install_if_enabled') $SNIPPET('puppet_install_if_enabled') %end
(func_install_if_enabled would add "func", puppet_install_if_enabled would add "puppet")
So, what does:
cobbler profile dumpvars --name rhel-7.0-x86_64 | grep ^kickstart
report?
What is the contents of the file returned?
I think I manually added @core later while trying out various trial and error methods.
[kapiltest1 ~]$ sudo cobbler profile dumpvars --name rhel-7.0-x86_64 | grep ^kickstart
kickstart : /var/lib/cobbler/kickstarts/tenneco.rhel-7.ks [kapiltest1 ~]$ cat /var/lib/cobbler/kickstarts/tenneco.rhel-7.ks auth --useshadow --enablemd5 bootloader --location=mbr clearpart --all --initlabel text firewall --disabled firstboot --disable keyboard us lang en_US url --url=$tree reboot --eject rootpw --plaintext abc123 selinux --disabled skipx timezone --utc America/Chicago install zerombr part /boot --fstype xfs --size=1024 --ondisk=sda part pv.01 --size=1 --grow --ondisk=sda volgroup sysvg --pesize=65536 pv.01 logvol swap --fstype swap --name=swap --vgname=sysvg --size=8192 logvol /opt --fstype xfs --name=opt --vgname=sysvg --size=6144 logvol / --fstype xfs --name=root --vgname=sysvg --size=10240 logvol /home --fstype xfs --name=home --vgname=sysvg --size=1024 logvol /tmp --fstype xfs --name=tmp --vgname=sysvg --size=2048 logvol /var --fstype xfs --name=var --vgname=sysvg --size=8192
$yum_repo_stanza # $SNIPPET('network_config') # %pre $SNIPPET('log_ks_pre') $SNIPPET('kickstart_start') $SNIPPET('pre_install_network_config') $SNIPPET('pre_anamon') %end # %packages @core $SNIPPET('func_install_if_enabled') $SNIPPET('puppet_install_if_enabled') %end # %post $SNIPPET('log_ks_post') $yum_config_stanza $SNIPPET('post_install_kernel_options') $SNIPPET('post_install_network_config') $SNIPPET('func_register_if_enabled') $SNIPPET('puppet_register_if_enabled') $SNIPPET('download_config_files') $SNIPPET('koan_environment') $SNIPPET('redhat_register') $SNIPPET('cobbler_register') # Enable post-install boot notification $SNIPPET('post_anamon') # Start final steps $SNIPPET('kickstart_done') # End final steps %end
On Sep 26, 2016 12:57 PM, "Orion Poplawski" orion@cora.nwra.com wrote:
On 09/23/2016 03:21 PM, Kapilraj Koroth wrote:
Here it is
[kapiltest1 ~]$ sudo cobbler profile getks --name rhel-7.0-x86_64
%packages @core
%end
So there's your @core. Question is, where is it coming from. Your claimed template doesn't have it:
%packages $SNIPPET('func_install_if_enabled') $SNIPPET('puppet_install_if_enabled') %end
(func_install_if_enabled would add "func", puppet_install_if_enabled would add "puppet")
So, what does:
cobbler profile dumpvars --name rhel-7.0-x86_64 | grep ^kickstart
report?
What is the contents of the file returned?
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@nwra.com Boulder, CO 80301 http://www.nwra.com _______________________________________________ cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
On 09/26/2016 02:23 PM, Kapilraj Koroth wrote:
I think I manually added @core later while trying out various trial and error methods.
[kapiltest1 ~]$ sudo cobbler profile dumpvars --name rhel-7.0-x86_64 | grep ^kickstart
kickstart : /var/lib/cobbler/kickstarts/tenneco.rhel-7.ks
[kapiltest1 ~]$ cat /var/lib/cobbler/kickstarts/tenneco.rhel-7.ks
...
%packages @core $SNIPPET('func_install_if_enabled') $SNIPPET('puppet_install_if_enabled') %end #
So do you get the same error if you get ride of @core here?
Yeap.
On Sep 26, 2016 11:10 PM, "Orion Poplawski" orion@cora.nwra.com wrote:
On 09/26/2016 02:23 PM, Kapilraj Koroth wrote:
I think I manually added @core later while trying out various trial and error methods.
[kapiltest1 ~]$ sudo cobbler profile dumpvars --name rhel-7.0-x86_64 | grep ^kickstart
kickstart : /var/lib/cobbler/kickstarts/tenneco.rhel-7.ks
[kapiltest1 ~]$ cat /var/lib/cobbler/kickstarts/tenneco.rhel-7.ks
...
%packages @core $SNIPPET('func_install_if_enabled') $SNIPPET('puppet_install_if_enabled') %end #
So do you get the same error if you get ride of @core here?
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com _______________________________________________ cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
I can even choose not to use cobbler and re-produce this problem.
I created a kickstart file using " https://access.redhat.com/labs/kickstartconfig/"
Stored it on a HTTPD server.
Kept the DVD.iso of RHEL 7.2 on the same HTTPD server
Booted using the RHEL 7.2 Boot DVD.
At the grub menu,
Added inst.ks=http://webserver/sources/rhel7.ks
I kept watching the access_log on the HTTPD server.
Downloading kickstart file -- Good -- [27/Sep/2016:16:28:37 -0500] "GET /sources/rhel7.ks HTTP/1.1" 200 570 "-" "curl/7.29.0 Downloading some other stuff from the RHEL DVD -- Good --
[27/Sep/2016:16:29:06 -0500] "GET //sources/rhel-7.2-x86_64/.treeinfo HTTP/1.1" 200 2176 "-" "urlgrabber/3.10" [27/Sep/2016:16:29:06 -0500] "GET //sources/rhel-7.2-x86_64/repodata/repomd.xml HTTP/1.1" 200 3017 "-" "Red Hat Enterprise Linux (anaconda)/7.2 yum/3.4.3" [27/Sep/2016:16:29:06 -0500] "GET //sources/rhel-7.2-x86_64/.treeinfo HTTP/1.1" 200 2176 "-" "urlgrabber/3.10" [27/Sep/2016:16:29:06 -0500] "GET //sources/rhel-7.2-x86_64/repodata/cecc07cfe2a22efefe6648e79f7dbf724bae761358a13b071c086b8063458179-primary.xml.gz HTTP/1.1" 200 2312212 "-" "Red Hat Enterprise Linux (anaconda)/7.2 yum/3.4.3" [27/Sep/2016:16:29:06 -0500] "GET //sources/rhel-7.2-x86_64/repodata/95e6c90d391f920c7a685d75791a0a8f050d979043a73994785851697fe8a30e-primary.sqlite.bz2 HTTP/1.1" 200 4324409 "-" "Red Hat Enterprise Linux (anaconda)/7.2 yum/3.4.3"
Moments later, right after creating the LVM partitions and filesystems, It stops @
NoSuchGroup : core
*Does this work for anyone ??*
On Tue, Sep 27, 2016 at 12:03 AM, Kapilraj Koroth kapilrajk@gmail.com wrote:
Yeap.
On Sep 26, 2016 11:10 PM, "Orion Poplawski" orion@cora.nwra.com wrote:
On 09/26/2016 02:23 PM, Kapilraj Koroth wrote:
I think I manually added @core later while trying out various trial and error methods.
[kapiltest1 ~]$ sudo cobbler profile dumpvars --name rhel-7.0-x86_64 | grep ^kickstart
kickstart : /var/lib/cobbler/kickstarts/tenneco.rhel-7.ks
[kapiltest1 ~]$ cat /var/lib/cobbler/kickstarts/tenneco.rhel-7.ks
...
%packages @core $SNIPPET('func_install_if_enabled') $SNIPPET('puppet_install_if_enabled') %end #
So do you get the same error if you get ride of @core here?
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane orion@cora.nwra.com Boulder, CO 80301 http://www.cora.nwra.com _______________________________________________ cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
Mine seems to work. It's an older cobbler but it's maybe a valid test. Watch the casing on 'Core'.
- ..
# emacs /etc/cobbler/ # cobbler profile add \ --parent centos7-x86_64 \ --kickstart /etc/cobbler/centos7-koroth.ks \ --name centos7-koroth-x86_64 exception on server: 'Invalid kickstart template file location /etc/cobbler/centos7-koroth.ks, it is not inside /var/lib/cobbler/kickstarts/' # mv \ /etc/cobbler/centos7-koroth.ks \ /var/lib/cobbler/kickstarts/ # /sigh # cobbler profile add \ --parent centos7-x86_64 \ --kickstart /var/lib/cobbler/kickstarts/centos7-koroth.ks \ --name centos7-koroth-x86_64 # fascism
# diff -u \ <(cobbler profile getks --name centos7-x86_64) \ <(cobbler profile getks --name centos7-koroth-x86_64) --- /dev/fd/63 2016-09-27 17:43:51.545047962 -0400 +++ /dev/fd/62 2016-09-27 17:43:51.545047962 -0400 @@ -54,8 +54,8 @@ logvol /home --fstype ext4 --name=home --vgname=vg01 --size 32 --grow --maxsize 5120 logvol /mnt/misc --fstype ext4 --name=mntmisc --vgname=vg01 --size 32 --grow
-#centos7-x86_64 -%packages --ignoremissing +#centos7-koroth-x86_64 +%packages -aic94xx-firmware -alsa-firmware -bfa-firmware @@ -89,7 +89,7 @@ -ql23xx-firmware linux-firmware # default from base -@base +@Core -abrt-addon-ccpp -abrt-addon-python -abrt-cli
Kapilraj Koroth wrote:
I can even choose not to use cobbler and re-produce this problem.
NoSuchGroup : core
_*Does this work for anyone ??*_ _*
I finally figured out the issue. There was no problem after all. There was a step that I did not mention prior to importing the distribution
Installed cobbler server on RHEL 6.8 Installed the latest version of cobbler from EPEL 2.6.11 Imported RHEL 7.0 and 7.2 distributions from the binary DVD. Loop mount the DVD.iso rsync it to a directory served under DocumentRoot of the apache Ran a "createrepo" against that directory ( I do this so that I can use this as a repository for other servers in the network ) Then did a cobbler import Made a kickstart file as follows, slight changes from RHEL6
That createrepo was the problem ! I did an import before that and it worked with all kind of kickstart files...
Sorry, bad me ..
On Tue, Sep 27, 2016 at 4:53 PM, bishop bishop@platypus.bc.ca wrote:
Mine seems to work. It's an older cobbler but it's maybe a valid test. Watch the casing on 'Core'.
- ..
# emacs /etc/cobbler/ # cobbler profile add \ --parent centos7-x86_64 \ --kickstart /etc/cobbler/centos7-koroth.ks \ --name centos7-koroth-x86_64 exception on server: 'Invalid kickstart template file location /etc/cobbler/centos7-koroth.ks, it is not inside /var/lib/cobbler/kickstarts/' # mv \ /etc/cobbler/centos7-koroth.ks \ /var/lib/cobbler/kickstarts/ # /sigh # cobbler profile add \ --parent centos7-x86_64 \ --kickstart /var/lib/cobbler/kickstarts/centos7-koroth.ks \ --name centos7-koroth-x86_64 # fascism
# diff -u \ <(cobbler profile getks --name centos7-x86_64) \ <(cobbler profile getks --name centos7-koroth-x86_64) --- /dev/fd/63 2016-09-27 17:43:51.545047962 -0400 +++ /dev/fd/62 2016-09-27 17:43:51.545047962 -0400 @@ -54,8 +54,8 @@ logvol /home --fstype ext4 --name=home --vgname=vg01 --size 32 --grow --maxsize 5120 logvol /mnt/misc --fstype ext4 --name=mntmisc --vgname=vg01 --size 32 --grow
-#centos7-x86_64 -%packages --ignoremissing +#centos7-koroth-x86_64 +%packages -aic94xx-firmware -alsa-firmware -bfa-firmware @@ -89,7 +89,7 @@ -ql23xx-firmware linux-firmware # default from base -@base +@Core -abrt-addon-ccpp -abrt-addon-python -abrt-cli
Kapilraj Koroth wrote:
I can even choose not to use cobbler and re-produce this problem.
NoSuchGroup : core
_*Does this work for anyone ??*_ _*
cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
Forgot to mention this,
RHEL 6.8, it doesn't matter if you run createrepo prior to importing it to cobbler.
On Wed, Sep 28, 2016 at 4:40 PM, Kapilraj Koroth kapilrajk@gmail.com wrote:
I finally figured out the issue. There was no problem after all. There was a step that I did not mention prior to importing the distribution
Installed cobbler server on RHEL 6.8 Installed the latest version of cobbler from EPEL 2.6.11 Imported RHEL 7.0 and 7.2 distributions from the binary DVD. Loop mount the DVD.iso rsync it to a directory served under DocumentRoot of the apache Ran a "createrepo" against that directory ( I do this so that I can use this as a repository for other servers in the network ) Then did a cobbler import Made a kickstart file as follows, slight changes from RHEL6
That createrepo was the problem ! I did an import before that and it worked with all kind of kickstart files...
Sorry, bad me ..
On Tue, Sep 27, 2016 at 4:53 PM, bishop bishop@platypus.bc.ca wrote:
Mine seems to work. It's an older cobbler but it's maybe a valid test. Watch the casing on 'Core'.
- ..
# emacs /etc/cobbler/ # cobbler profile add \ --parent centos7-x86_64 \ --kickstart /etc/cobbler/centos7-koroth.ks \ --name centos7-koroth-x86_64 exception on server: 'Invalid kickstart template file location /etc/cobbler/centos7-koroth.ks, it is not inside /var/lib/cobbler/kickstarts/' # mv \ /etc/cobbler/centos7-koroth.ks \ /var/lib/cobbler/kickstarts/ # /sigh # cobbler profile add \ --parent centos7-x86_64 \ --kickstart /var/lib/cobbler/kickstarts/centos7-koroth.ks \ --name centos7-koroth-x86_64 # fascism
# diff -u \ <(cobbler profile getks --name centos7-x86_64) \ <(cobbler profile getks --name centos7-koroth-x86_64) --- /dev/fd/63 2016-09-27 17:43:51.545047962 -0400 +++ /dev/fd/62 2016-09-27 17:43:51.545047962 -0400 @@ -54,8 +54,8 @@ logvol /home --fstype ext4 --name=home --vgname=vg01 --size 32 --grow --maxsize 5120 logvol /mnt/misc --fstype ext4 --name=mntmisc --vgname=vg01 --size 32 --grow
-#centos7-x86_64 -%packages --ignoremissing +#centos7-koroth-x86_64 +%packages -aic94xx-firmware -alsa-firmware -bfa-firmware @@ -89,7 +89,7 @@ -ql23xx-firmware linux-firmware # default from base -@base +@Core -abrt-addon-ccpp -abrt-addon-python -abrt-cli
Kapilraj Koroth wrote:
I can even choose not to use cobbler and re-produce this problem.
NoSuchGroup : core
_*Does this work for anyone ??*_ _*
cobbler mailing list -- cobbler@lists.fedorahosted.org To unsubscribe send an email to cobbler-leave@lists.fedorahosted.org
-- Regards, KapilRaj
cobbler@lists.fedorahosted.org