Bug 1421115
Summary: | en-dash (–) in %post section of kickstart causes it to be truncated when proxied via cobbler URL | ||
---|---|---|---|
Product: | Red Hat Satellite Proxy 5 | Reporter: | Neal Kim <nkim> |
Component: | Server | Assignee: | Gennadii Altukhov <galtukho> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Studeník <pstudeni> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 570 | CC: | galtukho, mmello, nkim, pstudeni, tlestach |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | spacewalk-java-2.5.14-65-sat | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-21 12:07:24 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1358815 |
Description
Neal Kim
2017-02-10 11:54:24 UTC
Hello Neal, I've tried to reproduce this bug both on Satellite 5.7 and upstream and, actually, cannot do this. My steps: 1) Create a new KS profile for RHEL 6. 2) Add post script which contains en-dash(–) to kickstart file in my profile. 3) Register proxy (RHEL6) to Satellite server. 4) Register client via proxy. 5) Try to download kickstart file from client via proxy using wget: wget http://elisha.brq.redhat.com/cblr/svc/op/ks/profile/galtkickstart:1:RedHatSatTeamQA -O /root/kickstart.ks Result: I cannot download kickstart file w/o truncations. Packages on my proxy: spacewalk-proxy-broker-2.3.0-6.el6sat.noarch spacewalk-proxy-management-2.3.0-6.el6sat.noarch spacewalk-proxy-common-2.3.0-6.el6sat.noarch spacewalk-proxy-installer-2.3.0-7.el6sat.noarch Post script: #test en-dash – echo – echo "should be truncated start from here" printf %d\\n \'– echo "^^^ code of en-dash" #comment Can you, please, review my steps, what I'm doing wrong? Hello Gennadi, I confirm the same packages are installed on my test setup: spacewalk-proxy-broker-2.3.0-6.el6sat.noarch spacewalk-proxy-management-2.3.0-6.el6sat.noarch spacewalk-proxy-common-2.3.0-6.el6sat.noarch spacewalk-proxy-installer-2.3.0-7.el6sat.noarch Your steps look fine, although I registered the proxy before creating the kickstart. Not sure if that would make much of a difference though. I just tried the test again with your %post script and it is truncated for me. At the end of the kickstart you downloaded does it look like this? """ # Start koan environment setup echo "export COBBLER_SERVER=192.168.122.117" > /etc/profile.d/cobbler.sh echo "setenv COBBLER_SERVER 192.168.122.117" > /etc/profile.d/cobbler.csh # End koan environment setup wget "http://192.168.122.117/cblr/svc/op/ks/profile/nkimtest:1:RedHat" -O /root/cobbler.ks wget "http://192.168.122.117/cblr/svc/op/trig/mode/post/profile/nkimtest:1:RedHat" -O /dev/null """ Notice there is no %end at the very end of the file. Hello Neal, Thank you, now I see the problem, continue the investigation. bug is fixed in upstream. spacewalk.git: c15e6e28a2655fcd74fefed853f3f8ce707ed390 Reproducer: 1) Create kickstart with following post scripts : #test en-dash – – – – – – – – – – – – – – – printf %d\\n \'– #test en-dash – – – – – – – – – – – – – – – 2) got link http://<proxy>/cblr/svc/op/ks/profile/<profile> and download or look at them: # Start koan environment setup echo "export COBBLER_SERVER=host-172-16-20-190.openstacklocal" > /etc/profile.d/cobbler.sh echo "setenv COBBLER_SERVER host-172-16-20-190.openstacklocal" > /etc/profile.d/cobbler.csh # End koan environment setup wget "http://host-172-16-20-190.openstacklocal/cblr/svc/op/ks/profile/rhel-server-6:1:RedHatSatTeamQA" -O /root/cobbler.ks wget "http://host-172-16-20-190.openstacklocal/cblr/svc/op/trig/mode/po original (file ends correct with "%end") : .... wget "http://host-172-16-20-190.openstacklocal/cblr/svc/op/trig/mode/post/profile/rhel-server-6:1:RedHatSatTeamQA" -O /dev/null %end Verified with spacewalk-java-2.5.14-84.el6sat.noarch |