Project

General

Profile

Actions

Bug #22314

closed

Cannot list directives with API

Added by Nicolas CHARLES almost 2 years ago. Updated over 1 year ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
I hate Rudder for that
User visibility:
Effort required:
Very Small
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
Yes

Description

Error is

# curl --header "X-API-Token: $(cat /var/rudder/run/api-token)" --request GET http://localhost:8080/rudder/api/latest/directives
{"action":"listDirectives","result":"error","errorDetails":"Inconsistency: No Technique with ID 'test_import_export_archive/1.0' found in reference library."}

it's because https://issues.rudder.io/issues/22036 modified the bootstrap.ldif


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #22036: Import directive API fail for user techniqueReleasedVincent MEMBRÉActions
Actions #1

Updated by Nicolas CHARLES almost 2 years ago

workaround

        ldapdelete  -H "ldap://localhost:389" -x -D "cn=Manager,cn=rudder-configuration" -w $(grep ^rootpw /opt/rudder/etc/openldap/slapd.conf | sed 's/^rootpw *//') "directiveId=test_import_export_archive_directive,activeTechniqueId=test_import_export_archive,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration" 
        ldapdelete  -H "ldap://localhost:389" -x -D "cn=Manager,cn=rudder-configuration" -w $(grep ^rootpw /opt/rudder/etc/openldap/slapd.conf | sed 's/^rootpw *//') "activeTechniqueId=test_import_export_archive,techniqueCategoryId=Rudder Internal,techniqueCategoryId=Active Techniques,ou=Rudder,cn=rudder-configuration" 

Actions #2

Updated by Vincent MEMBRÉ almost 2 years ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #3

Updated by Vincent MEMBRÉ almost 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/4646
Actions #4

Updated by Vincent MEMBRÉ almost 2 years ago

  • Related to Bug #22036: Import directive API fail for user technique added
Actions #5

Updated by Vincent MEMBRÉ almost 2 years ago

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

Updated by Elaad FURREEDAN over 1 year ago

  • Fix check changed from To do to Checked
Actions #7

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.2.5 which was released today.

Actions

Also available in: Atom PDF