Project

General

Profile

Bug #7761

Error in environment-variables.cf on Centos 5

Added by Alexis MOUSSET about 4 years ago. Updated about 4 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

   error: Variable identifier contains illegal characters
   error: Promise belongs to bundle 'get_environment_variables' in file '/var/rudder/cfengine-community/inputs/common/1.0/environment-variables.cf' near line 35

Subtasks

Bug #7772: Agent processes parts of the environment (multiline bash variables) on systems without "env --null" supportReleasedBenoît PECCATTEActions
Bug #7774: Invalid promises genration after #7761, due to string template interpretaionReleasedNicolas CHARLESActions

Related issues

Related to Rudder - Bug #7094: Agent processes parts of the environment (multiline bash variables)ReleasedActions
Related to Rudder - Bug #8336: Error on windows: agent tries to check if /usr/bin/env supports the -0 optionReleased2016-05-19Actions

Associated revisions

Revision 763ecf9e (diff)
Added by Alexis MOUSSET about 4 years ago

Fixes #7761: Error in environment-variables.cf on Centos 5

Revision 3ff3e5be
Added by Nicolas CHARLES about 4 years ago

Merge pull request #843 from amousset/bug_7761/error_in_environment_variables_cf_on_centos_5

Fixes #7761: Error in environment-variables.cf on Centos 5

History

#1

Updated by Alexis MOUSSET about 4 years ago

  • Related to Bug #7094: Agent processes parts of the environment (multiline bash variables) added
#2

Updated by Alexis MOUSSET about 4 years ago

  • Target version changed from 4.0.0~rc2 to 3.0.13

More info:

rudder    debug: GetExecOutput got '/bin/env: invalid option -- 0
Try `/bin/env --help' for more information.
,'
rudder    debug: cf_pwait - Waiting for process 28452
rudder  verbose: execresult ran '(/usr/bin/printf '\0'; /bin/env -0) | /bin/grep -aoP '\x00([^=]+)' | /usr/bin/tr -d '\000' | /usr/bin/tr '\n' ',' | /bin/sed 's/,$//'' successfully
rudder  verbose: Caching result for function 'execresult((${paths#printf} '\0'; ${paths#env} -0) | ${paths#grep} -aoP '\x00([^=]+)' | ${paths#tr} -d '\000' | ${paths#tr} '\n' ',' | ${paths#sed} 's/,$//',useshell)'
rudder    debug: Looking at arg for function-like object 'getenv'
rudder    debug: Looking at arg for function-like object 'getenv'
   error: Variable identifier contains illegal characters
   error: Promise belongs to bundle 'get_environment_variables' in file '/var/rudder/cfengine-community/inputs/common/1.0/environment-variables.cf' near line 35

The env version (5.97) provided in Centos 5 does not know '-0'.

#3

Updated by Alexis MOUSSET about 4 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis MOUSSET
#4

Updated by Alexis MOUSSET about 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/843
#5

Updated by Alexis MOUSSET about 4 years ago

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

Updated by Vincent MEMBRÉ about 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.0.13, 3.1.6 and 3.2.0 which were released today.

#7

Updated by Nicolas CHARLES almost 4 years ago

  • Related to Bug #8336: Error on windows: agent tries to check if /usr/bin/env supports the -0 option added

Also available in: Atom PDF