Project

General

Profile

Actions

Bug #7761

closed

Error in environment-variables.cf on Centos 5

Added by Alexis Mousset over 8 years ago. Updated over 8 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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 2 (0 open2 closed)

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

Related issues 2 (0 open2 closed)

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

Updated by Alexis Mousset over 8 years ago

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

Updated by Alexis Mousset over 8 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'.

Actions #3

Updated by Alexis Mousset over 8 years ago

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

Updated by Alexis Mousset over 8 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
Actions #5

Updated by Alexis Mousset over 8 years ago

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

Updated by Vincent MEMBRÉ over 8 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.

Actions #7

Updated by Nicolas CHARLES over 8 years ago

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

Also available in: Atom PDF