Project

General

Profile

Actions

Bug #26428

closed

rudder-pkg reports a success when installing a plugin even if the postinst plugin script was in error

Added by Félix DALLIDET about 1 month ago. Updated about 1 month ago.

Status:
Released
Priority:
N/A
Category:
Plugin manager cli
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

DEBUG Running package script 'postinst' with args 'upgrade' for plugin 'security-benchmarks' in version '8.2.4-1.0'...
DEBUG Execute command:
"/var/rudder/packages/rudder-plugin-security-benchmarks/postinst" "upgrade" 
status:
exit status: 1
stdout:
Update the security-benchmarks rudder-hardening-pack model...

stderr:
+ plugin_dir=/opt/rudder/share/plugins/security-benchmarks
+ models_dir=/var/rudder/plugins/security-benchmarks/models
+ techniques_dir=/var/rudder/configuration-repository/techniques
+ main_category_name=benchmarks
+ mkdir -p /var/rudder/plugins/security-benchmarks/models
+ cd /var/rudder/configuration-repository/techniques
+ mkdir -p benchmarks
+ echo '
<xml>
    <name>Security Benchmarks</name>
    <description>This category contains techniques used by security benchmarks</description>
    <system>true</system>
</xml>
'
+ git add benchmarks/category.xml
+ git diff-index --quiet --cached HEAD
++ find /opt/rudder/share/plugins/security-benchmarks -mindepth 1 -maxdepth 1 -type d
+ benchmarks='/opt/rudder/share/plugins/security-benchmarks/rudder-hardening-pack
/opt/rudder/share/plugins/security-benchmarks/rsc_01'
+ for benchmark in ${benchmarks}
++ basename /opt/rudder/share/plugins/security-benchmarks/rudder-hardening-pack
+ benchmark_name=rudder-hardening-pack
+ benchmark_techniques_dir=/var/rudder/configuration-repository/techniques/benchmarks/rudder-hardening-pack
+ echo 'Update the security-benchmarks rudder-hardening-pack model...'
+ cp '/opt/rudder/share/plugins/security-benchmarks/rudder-hardening-pack/*.yml' /var/rudder/plugins/security-benchmarks/models/
cp: cannot stat '/opt/rudder/share/plugins/security-benchmarks/rudder-hardening-pack/*.yml': No such file or directory

DEBUG Package script execution return unexpected exit code.
DEBUG Enabling the associated jars if any
 INFO Plugin security-benchmarks was successfully installed
Actions #1

Updated by Félix DALLIDET about 1 month ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
Actions #2

Updated by Félix DALLIDET about 1 month ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder/pull/6198
Actions #3

Updated by Félix DALLIDET about 1 month ago

  • Pull Request changed from https://github.com/Normation/rudder/pull/6198 to https://github.com/Normation/rudder/pull/6201
Actions #4

Updated by Félix DALLIDET about 1 month ago

  • Status changed from Pending technical review to Pending release
Actions #5

Updated by Vincent MEMBRÉ about 1 month ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 8.1.12 and 8.2.5 which were released today.

Actions

Also available in: Atom PDF