Bug #22314
closed
Cannot list directives with API
Added by Nicolas CHARLES almost 2 years ago.
Updated over 1 year ago.
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
I hate Rudder for that
Effort required:
Very Small
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
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"
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
- 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
- Related to Bug #22036: Import directive API fail for user technique added
- Status changed from Pending technical review to Pending release
- Fix check changed from To do to Checked
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.2.5 which was released today.
Also available in: Atom
PDF