Project

General

Profile

Actions

Bug #16952

closed

error at installation of openscap plugin

Added by Nicolas CHARLES over 4 years ago. Updated over 4 years ago.

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

Description

While trying to install openscap plugin, I got the following error

[root@server vagrant]# rudder package install-file /vagrant/plugins/rudder-plugin-openscap-policies-6.0-0.1.rpkg 
Installing /vagrant/plugins/rudder-plugin-openscap-policies-6.0-0.1.rpkg
+ PLUGIN_FULL_NAME=rudder-plugin-openscap-policies
+ PRETTY_NAME='OpenSCAP Policies'
+ CONFIGURATION_PATH=/var/rudder/packages/rudder-plugin-openscap-policies
+ SOURCE_DIR=/var/rudder/packages/rudder-plugin-openscap-policies/techniques
+ CONFIG_REPO=/var/rudder/configuration-repository
+ CATEGORY='OpenSCAP Policies plugin'
++ sed 's/[^a-zA-Z0-9_]/_/g'
++ echo OpenSCAP Policies plugin
+ C_CATEGORY=OpenSCAP_Policies_plugin
+ FOLDERS=techniques/OpenSCAP_Policies_plugin
+ mkdir -p /var/rudder/configuration-repository/techniques/OpenSCAP_Policies_plugin
+ cat
+ cd /var/rudder/configuration-repository
+ git reset
+ for file in '$FOLDERS'
+ git add techniques/OpenSCAP_Policies_plugin
+ git commit -m 'OpenSCAP Policies plugin installation'
[master 39404fe] OpenSCAP Policies plugin installation
 1 file changed, 6 insertions(+)
 create mode 100644 techniques/OpenSCAP_Policies_plugin/category.xml
+ /opt/rudder/bin/rudder-fix-repository-permissions
INFO: Correcting permissions on /var/rudder/configuration-repository... Done
+ chmod +x /var/rudder/packages/rudder-plugin-openscap-policies/rudder_synchronize.py /var/rudder/packages/rudder-plugin-openscap-policies/remove_configuration
+ /var/rudder/packages/rudder-plugin-openscap-policies/rudder_synchronize.py import technique /var/rudder/packages/rudder-plugin-openscap-policies/techniques
Traceback (most recent call last):
  File "/var/rudder/packages/rudder-plugin-openscap-policies/rudder_synchronize.py", line 28, in <module>
    from rudder import RudderEndPoint, RudderError
ImportError: No module named rudder
execution of '/var/rudder/packages/rudder-plugin-openscap-policies/postinst install' failed
None
None

Actions #1

Updated by Nicolas CHARLES over 4 years ago

I don't have the /usr/share/rudder-api-client/ folder

Actions #2

Updated by Nicolas CHARLES over 4 years ago

installing rudder-api-client solves the issue

Actions #3

Updated by Nicolas CHARLES over 4 years ago

  • Status changed from New to In progress
  • Assignee set to Nicolas CHARLES
Actions #4

Updated by Nicolas CHARLES over 4 years ago

  • Assignee changed from Nicolas CHARLES to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-plugins/pull/252
Actions #5

Updated by Nicolas CHARLES over 4 years ago

  • Status changed from In progress to Pending technical review
Actions #6

Updated by Nicolas CHARLES over 4 years ago

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

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 6.0-1.0 to 6.1-1.0
Actions #8

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released
Actions

Also available in: Atom PDF