Bug 989630
Summary: | [RFE] modify kickstart snippet '/var/lib/rhn/kickstarts/snippets/post_reactivation_key' to open the '/mnt/sysimage/tmp/key' file in 'a' mode instead of 'w' mode. | ||
---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Stephen Herr <sherr> |
Component: | Server | Assignee: | Stephen Herr <sherr> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.0 | CC: | aupadhye, cperry, mkollar, mmello, xdmoon |
Target Milestone: | --- | Keywords: | Patch |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | spacewalk-java-2.1.8-1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 891373 | Environment: | |
Last Closed: | 2014-03-04 13:08:07 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: | 891373 | ||
Bug Blocks: | 737830, 1069560 |
Description
Stephen Herr
2013-07-29 16:49:07 UTC
Proposed patch rejected. Python automatically writes new data to the new line if the file is opened in append mode, so the resultant file would look like this: #### <user-defined-key> <satellite-reactivation-key> #### When being cat'd out in the rhnreg_ks command the newline character breaks the command syntax. Instead you have to open it in 'r+' mode and seek to the end of the file so you can create a file that looks like: #### <user-defined-key>,<satellite-reactivation-key> #### The user key can actually be a list of keys, comma separated, and it will work fine. Committing to Spacewalk master: 874edc119d880b15878722be68f9afc27bd9e433 Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release. Spacewalk 2.1 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21 Spacewalk 2.1 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21 |