Bug 856944
Summary: | cobbler triggers are not working | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Luc de Louw <ldelouw> | ||||
Component: | Provisioning | Assignee: | Stephen Herr <sherr> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Minar <mminar> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 541 | CC: | cperry, jhutar, jraju, mkoci, mkorbel, mminar, pcfe, tlestach, xdmoon | ||||
Target Milestone: | --- | Keywords: | EasyFix, Patch | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | cobbler-2.0.7-37-sat | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1028525 (view as bug list) | Environment: | |||||
Last Closed: | 2013-10-01 21:53:20 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: | 924171, 1028525 | ||||||
Attachments: |
|
Description
Luc de Louw
2012-09-13 08:07:38 UTC
The correct link is: https://github.com/cobbler/cobbler/commit/1a29ffba62b3a7a901f3631acc143ce563789944 Note: We already use the patch in Spacewalk. Hi Luc, thanks for the patch! Committed to the thirdparty repo as c84178f650de858f948621f71283ff282d601a2b. Stage validated with Satellite-5.6.0-RHEL5-re20130926.0-x86_64. 1. create script > echo -e '#!/bin/bash\necho "Hello world"' > /var/lib/cobbler/triggers/install/post/run.sh > chmod 0755 /var/lib/cobbler/triggers/install/post/run.sh 2. provision a machine 3. open log > tail -f /var/log/cobbler/cobbler.log .... Sat Sep 28 03:33:50 2013 - INFO | REMOTE generate_kickstart; user(?) Sat Sep 28 03:33:50 2013 - INFO | generate_kickstart Sat Sep 28 03:33:50 2013 - INFO | REMOTE run_install_triggers; user(?) Sat Sep 28 03:33:50 2013 - DEBUG | running python triggers from /var/lib/cobbler/triggers/install/post/* Sat Sep 28 03:33:50 2013 - DEBUG | running python trigger cobbler.modules.install_post_log Sat Sep 28 03:33:50 2013 - DEBUG | running python trigger cobbler.modules.install_post_report Sat Sep 28 03:33:50 2013 - DEBUG | running python trigger cobbler.modules.install_post_power Sat Sep 28 03:33:50 2013 - DEBUG | running shell triggers from /var/lib/cobbler/triggers/install/post/* Sat Sep 28 03:33:50 2013 - DEBUG | running shell trigger /var/lib/cobbler/triggers/install/post/run.sh Sat Sep 28 03:33:50 2013 - INFO | running: ['/var/lib/cobbler/triggers/install/post/run.sh', 'profile', 'RHEL-4-x86_64:1:RedHatInc', '10.34.131.211'] Sat Sep 28 03:33:50 2013 - INFO | received: Hello world. .... Satellite 5.6 has been released. This bug was tracked under the release. This bug was either VERIFIED or RELEASE_PENDING (re-verified prior shortly before release). Moving to CLOSED CURRENT_RELEASE. Text from Upgrade Erratum follows: 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. http://rhn.redhat.com/errata/RHEA-2013-1395.html |