Actions
Bug #22314
closedCannot list directives with API
Pull Request:
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
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"
Updated by Vincent MEMBRÉ almost 2 years ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
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
Updated by Vincent MEMBRÉ almost 2 years ago
- Related to Bug #22036: Import directive API fail for user technique added
Updated by Vincent MEMBRÉ almost 2 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|ae6e3255301d0238b11b35832a94d00cc75dc8a5.
Updated by Elaad FURREEDAN over 1 year ago
- Fix check changed from To do to Checked
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