Project

General

Profile

Actions

Bug #4789

closed

Bug #4766: check-rudder-agent does not adapt it's check rate to the agent frequency

check-rudder-agent fails on rudder-agent install due to a syntax error when computing run interval

Added by Vincent MEMBRÉ almost 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
1
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Since #4766: rudder-agent cannot be installed on debian. This is due to a syntax error when computin run interval

CHECK_INTERVAL=`expr ${RUN_INTERVAL} * 2`

On some shell, particularly when installing on debian, the '*' is interpreted as a wildcard, which result in a syntax error:

Stderr from the command:

stdin: is not a tty
dpkg-preconfigure: unable to re-open stdin: 
expr: syntax error
dpkg: error processing rudder-agent (--configure):
 subprocess installed post-installation script returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
 rudder-agent
E: Sub-process /usr/bin/dpkg returned an error code (1)

replacing by:

CHECK_INTERVAL=`expr ${RUN_INTERVAL} "*" 2`

should fix the issue

Actions #1

Updated by Vincent MEMBRÉ almost 10 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to Jonathan CLARKE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/311
Actions #2

Updated by Vincent MEMBRÉ almost 10 years ago

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

Applied in changeset packages:commit:ab3d3021964cd1d0d87877124bf5915092f176ae.

Actions #3

Updated by Jonathan CLARKE almost 10 years ago

Applied in changeset packages:commit:ce7c25b3042eb7b880c5a95d9d28e01cdc6c03df.

Actions #4

Updated by Vincent MEMBRÉ almost 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.10.1, which was released today.
Check out:

Actions

Also available in: Atom PDF