Actions
Bug #18257
closedDirective from cloned technique (w/o resource) results in crash of policy-updates.
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
6.0.6. has massive problems when cloning a technique and createing directive from this (see associated reports, e.g. for missplaced resources, ...).
After update from 6.0.6 -> 6.0.9 problems are the same.
UPDATE: still present in 6.1.4
I cloned a technique which contains no resources and no parameters.
Creating a directive from this results in a disabled directive.
After enabling I created an instance from this, which results in "Error during policy updates", details:
Policy update process was stopped due to an error: ⇨ Policy update error for process '4094' at 2020-09-28 14:37:09 ⇨ Cannot write nodes configuration ⇨ Accumulated: Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/whitelist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/haproxy.cfg'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/bad-user-agents.list'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/crt-list.txt'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/blacklist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/whitelist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/haproxy.cfg'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/bad-user-agents.list'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/crt-list.txt'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/blacklist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/whitelist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/haproxy.cfg'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/bad-user-agents.list'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/crt-list.txt'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open resource 'techniques/ncf_techniques/Stage_ALL_01_LDAP_Auth/1.0/resources/blacklist.acl'. Check that the file exists is correctly commited in Git, or that the metadata for the technique are corrects.
To bypass this bug:
- deleted the cloned directive and technique
- put a dummy-file in technique, clone it again
- from this cloned technique you can instantiate a directive
- after this you can delete the dummy-file from technique.
Actions