Project

General

Profile

Actions

Bug #5198

closed

check-rudder-agent tries to use the stat command on AIX

Added by Matthieu CERDA over 9 years ago. Updated about 9 years ago.

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

Description

AIX has no stat command, only istat, without the same options.

We should add the following condition instead:

    if [ "z${OS_FAMILY}" = "zAIX" ]; then
      CF_LOCK_SIZE=`istat "${CFE_DIR}/state/cf_lock.tcdb" | grep Length | sed "s%^.*Length \([0-9]*\) bytes%\1%"`
    else
      CF_LOCK_SIZE=`stat -c%s "${CFE_DIR}/state/cf_lock.tcdb"`
    fi

Actions #1

Updated by Matthieu CERDA over 9 years ago

  • Target version set to 2.6.17
Actions #2

Updated by Matthieu CERDA over 9 years ago

  • Target version changed from 2.6.17 to 2.10.4

AIX support is only here since 2.10, retargetting.

Actions #3

Updated by Matthieu CERDA over 9 years ago

  • Status changed from 8 to Pending technical review
  • Assignee changed from Matthieu CERDA to Jonathan CLARKE
  • % Done changed from 0 to 100
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/428

PR is ready !

Actions #4

Updated by Matthieu CERDA over 9 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:717bd575e7cbfd53eb7124c7c211046afb34ba0e.

Actions #5

Updated by Matthieu CERDA over 9 years ago

Applied in changeset commit:bfd08942f77bf803be4f67547dd6839c2fd1f472.

Actions #6

Updated by Matthieu CERDA over 9 years ago

  • Status changed from Pending release to Released

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

The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2014-August/000106.html
The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog210
Download information: https://www.rudder-project.org/site/get-rudder/downloads/
Actions #7

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: Atom PDF