[Spacewalk-list] Spacewalk snippet will not be replaced while cobbler does

Jérôme Meyer Jerome.Meyer at lcsystems.ch
Tue Aug 7 14:58:58 UTC 2018


Hello,

Spacewalk (2.8) didn't replace the $SNIPPET with his value and stopped the process with unknown command.
I've checked the kickstart file through URL link :   http://spacewalk/cblr/svc/op/ks/profile/ks_profile_centos7_dev:1:SpacewalkDefaultOrganization

[...]
Kickstart config file generated by Spacewalk Config Management
Profile Label : ks_profile_centos7_dev
Date Created : Wed Jul 18 07:58:56 CEST 2018
install
text
network --bootproto dhcp
url --url http://spacewalk/ks/dist/org/1/ks_distrib_centos7
lang en_US.UTF-8
keyboard ch
zerombr
clearpart --all
bootloader --location mbr
timezone Europe/Zurich
auth --enableshadow --passalgo=sha256
rootpw --iscrypted $5$s.qLtZVKhRAGnol3$h/zR3clQ1y/7BXakxgunxDz8tfsdfasfsdfIk2QVPiqRl9
selinux --permissive
reboot
firewall --enabled --port=10050:tcp,10050:udp
skipx
services --enabled chronyd
user user --name=xxx --groups=wheel --password=$1$QXVddK4t9$KLWj4uJM/vL4ylSVtZtOE1 --iscrypted
network --bootproto=dhcp --device=eth0 --onboot=on

repo --name=base --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock
repo --name=epel7 --baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64/
repo --name=spacewalk --baseurl=http://yum.spacewalkproject.org/2.4/RHEL/7/x86_64/
repo --name=spacewalk-client --baseurl=http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/
$SNIPPET('spacewalk/1/part_'+$server_type)
[...]

But when I check the kickstart profile with cobbler, all seems ok :

# cobbler system getks --name=chlxserver | more

Kickstart config file generated by Spacewalk Config Management
Profile Label : ks_profile_centos7_dev
Date Created : Wed Jul 18 07:58:56 CEST 2018
install
text
network --bootproto dhcp
url --url http://spacewalk/ks/dist/org/1/ks_distrib_centos7
lang en_US.UTF-8
keyboard ch
zerombr
clearpart --all
bootloader --location mbr
timezone Europe/Zurich
auth --enableshadow --passalgo=sha256
rootpw --iscrypted $5$s.qLtZVKhRAGnol3$h/zR3clQ1y/7BXakxgunxDz8t6sWjLhmIk2QVPiqRl9
selinux --permissive
reboot
firewall --enabled --port=10050:tcp,10050:udp
skipx
services --enabled chronyd
user user --name=xxx --groups=wheel --password=$1$QXVRK4t9$KssWj4uJM/vL4ylSVtZtOE1 --iscrypted

Using "new" style networking config, by matching networking information to the physical interface's
MAC-address
%include /tmp/pre_install_network_config

Timezone based on chlxserver
timezone Europe/Zurich

repo --name=base --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock
repo --name=epel7 --baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64/
repo --name=spacewalk --baseurl=http://yum.spacewalkproject.org/2.4/RHEL/7/x86_64/
repo --name=spacewalk-client --baseurl=http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/

Default partitionning
autopart --type=lvm
part /boot --size=1024 --ondisk sda
part pv.01 --size=1 --ondisk sda --grow
volgroup vg1 pv.01
logvol / --vgname=vg1 --size=1 --grow --name=root
logvol swap --vgname=vg1 --recommended --name=swap --fstype=swap
ignoredisk --only-use=sda
[..]

The configuration are done through spacewalk GUI.
Have someone seen this problem before?

Regards, J.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180807/a2d9e3a9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5165 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180807/a2d9e3a9/attachment.p7s>


More information about the Spacewalk-list mailing list