Bug #3794
closed"disable-agent" feature does not work as expected (doesn't stop *running* agents)
Description
As described in #3727, the /opt/rudder/etc/disable-agent file can be touched to disable the agent from being *re*started once it's stopped.
This is confusing, as it's name implied that the agent would actually be stopped, but it is not.
We should adapt this, maybe using some code like this (and setting "disable_agent" as an abortclass):
classes: "should_disable_agent" expression => fileexists("${g.rudder_base}/etc/disable-agent"); "disable_agent" expression => "should_disable_agent", ifvarclass => "abort_report_done"; processes: "cf-execd, cf-serverd, cf-monitord" attributes => kill them; reports: should_disable_agent:: "Report saying OMG the server and executor have been stopped, and the agent is going to be killed!" classes => if_ok("abort_report_done");
Updated by Jonathan CLARKE over 11 years ago
- Status changed from 8 to Pending technical review
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/160
PR available: https://github.com/Normation/rudder-techniques/pull/160
Updated by Jonathan CLARKE over 11 years ago
- Pull Request changed from https://github.com/Normation/rudder-techniques/pull/160 to https://github.com/Normation/rudder-techniques/pull/161/files
New PR, I screwed up the other one somehow: https://github.com/Normation/rudder-techniques/pull/161/files
Updated by Jonathan CLARKE over 11 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset policy-templates:commit:b25cf3c824fe38ad1d1127330eaa8b00c7514a32.
Updated by Nicolas CHARLES over 11 years ago
Applied in changeset policy-templates:commit:d35dbc6dd6a950bc7fd92aad3b9e8fa0116bba1d.
Updated by Nicolas PERRON over 11 years ago
- Project changed from Rudder to 34
- Category deleted (
System techniques)
Updated by Nicolas PERRON over 11 years ago
- Status changed from Pending release to Released
Updated by Nicolas PERRON over 11 years ago
This bug has been fixed in Rudder 2.7.0, which was released today.
Check out:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2013-July/000043.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog27
- Download information: http://www.rudder-project.org/foswiki/Download/
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging