Bug 1356173
| Summary: | kickstart.profile.set_advanced_options does not update kickstart file | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Patrik Segedy <psegedy> |
| Component: | Provisioning | Assignee: | Jiří Dostál <jdostal> |
| Status: | CLOSED ERRATA | QA Contact: | Pavel Studeník <pstudeni> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 570 | CC: | ggainey, jdostal, pstudeni, tlestach |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | spacewalk-java-2.3.8-154-sat | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-07 13:38:21 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: | 1368978 | ||
I'd say, this has been fixed in upstream. We need to investigate. spacewalk.git 03b5989d3f2aeb60b6c654b79368c96852c43efd One more commit. Spacewalk.git ba2130c8931235cf6eaacf71f60136f92202bbd8 Verified with spacewalk-java-2.3.8-154.el6sat.noarch Reproducer is in Description Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2662.html |
Description of problem: kickstart.profile.set_advanced_options does not update kickstart file, when url option argument is set without server hostname (like --url /ks/dist/ks-rhel-x86_64-server-6-6.4) Version-Release number of selected component (if applicable): spacewalk-java-2.3.8-142.el6sat.noarch cobbler-2.0.7-66.el6sat.noarch How reproducible: 100% Steps to Reproduce: 1. Create kickstart profile named test-kickstart 2. # Modify advanced options KS_LABEL = "test-kickstart" new_advopt_arr = [] for option in client.kickstart.profile.get_advanced_options(key, KS_LABEL): if option['name'] == 'url': new_advopt_arr.append({'name': 'url', 'arguments': '--url /ks/dist/' + 'ks-rhel-x86_64-server-6-6.8'}) else: new_advopt_arr.append(option) client.kickstart.profile.set_advanced_options(key, KS_LABEL, new_advopt_arr) 3. # Check output of kickstart.profile.getAdvancedOptions spacewalk-api --server=localhost --user=admin --password=nimda kickstart.profile.getAdvancedOptions "%session%" test-kickstart | perl -le 'undef$/;eval<>;$_->{'name'}eq 'url'&&print$_->{'arguments'}for@$result' | rev | cut -d/ -f 1 | rev // output ks-rhel-x86_64-server-6-6.8 ------- # Check cobbler cobbler profile getks --name=test-kickstart:1:RedHatSatTeamQA | grep ^url | rev | cut -d/ -f 1 | rev // output ks-rhel-x86_64-server-6-6.0 Same old value is in System -> Kickstart -> Profiles -> test-kickstart -> Kickstart File Actual results: Kickstart file is not updated Expected results: Kickstart file should contain updated url Additional info: It doesn't update Kickstart file even when using web ui