Project

General

Profile

Bug #9990

User story #9707: Add a Relay API: share files between nodes, launch run on remote run behind relay

Broken remote run in 4.1

Added by Alexis MOUSSET 11 months ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
Initial promises & sys tech
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:

Description

CFEngine 3.9 changelog: - cfruncommand is not executed under shell. (Redmine #7409)

    !windows::
      "$(def.cf_runagent_shell)" 
      handle => "server_access_grant_access_shell_cmd",
      comment => "Grant access to shell for cfruncommand",
      admit => { @(def.policy_servers) };

    solaris::
      "cf_runagent_shell" 
        string  => "/usr/bin/sh",
        comment => "Define path to shell used by cf-runagent",
        handle  => "common_def_vars_solaris_cf_runagent_shell";

    !(windows|solaris)::
      "cf_runagent_shell" 
        string  => "/bin/sh",
        comment => "Define path to shell used by cf-runagent",
        handle  => "common_def_vars_cf_runagent_shell";

    windows::
      cfruncommand => "$(sys.cf_agent) -I -D cfruncommand -f \"$(sys.update_policy_path)\"  &
                       $(sys.cf_agent) -I -D cfruncommand";

    !windows::
      # last single quote in cfruncommand is left open, so that
      # arguments (like -K and --remote-bundles) are properly appended.
      cfruncommand => "$(def.cf_runagent_shell) -c \'
                           $(sys.cf_agent) -I -D cfruncommand -f $(sys.update_policy_path)  ;
                           $(sys.cf_agent) -I -D cfruncommand";


Subtasks

Bug #9991: Syntax error in parent ticketReleasedBenoît PECCATTE

Associated revisions

Revision 8f19d772
Added by Alexis MOUSSET 11 months ago

Fixes #9990: Broken remote run in 4.1

History

#1 Updated by Alexis MOUSSET 11 months ago

  • Status changed from New to In progress

#2 Updated by Alexis MOUSSET 11 months ago

  • Status changed from In progress to New
  • Target version changed from 4.1.0~beta1 to 3.1.18

#3 Updated by Alexis MOUSSET 11 months ago

  • Status changed from New to In progress

#4 Updated by Alexis MOUSSET 11 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1107

#5 Updated by Alexis MOUSSET 11 months ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

#6 Updated by Vincent MEMBRÉ 10 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.18, 3.2.11, 4.0.3 and 4.1.0~beta3 which were released today.

Also available in: Atom PDF