Actions
Bug #11021
closedCannot generate ps1 technique file (missing 50_techniques directory)
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Technique editor
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
Error is
Error: Unable to create Rudder Technique files related to ncf Technique foo ([Errno 2] No such file or directory: u'/var/rudder/configuration-repository/dsc/ncf/50_techniques/foo.ps1') Traceback (most recent call last): File "/usr/share/ncf/tools/ncf_dsc.py", line 50, in convert_one_to_dsc write_dsc_technique(metadata, methods) File "/usr/share/ncf/tools/ncf_dsc.py", line 65, in write_dsc_technique file = codecs.open(os.path.realpath(os.path.join("/var/rudder/configuration-repository/dsc/ncf/50_techniques", technique_name + ".ps1" )), "w", encoding="utf-8") File "/usr/lib/python2.7/codecs.py", line 896, in open file = __builtin__.open(filename, mode, buffering) IOError: [Errno 2] No such file or directory: u'/var/rudder/configuration-repository/dsc/ncf/50_techniques/foo.ps1' ERROR: An error happened in /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.51_dscify.sh during the step: Creating rudder dsc technique "foo" from ncf technique
creating /var/rudder/configuration-repository/dsc/ncf/50_techniques solves the issue
Updated by François ARMAND over 7 years ago
- Target version changed from 346 to 362
The problem is that the directory `/var/rudder/configuration-repository/dsc/ncf/50_techniques` is not created if missing.
Updated by François ARMAND over 7 years ago
- Subject changed from Cannot generate ps1 technique file to Cannot generate ps1 technique file (missing 50_techniques directory)
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ over 7 years ago
- Project changed from 52 to 41
- Category changed from 82 to Technique editor - API
- Target version changed from 362 to master
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from New to In progress
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to Alexis Mousset
- Pull Request set to https://github.com/Normation/ncf/pull/609
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset 5bf0c5a84380fb16bd7752910a669968e3c6d819.
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from Pending release to Released
Updated by Alexis Mousset over 2 years ago
- Target version changed from master to ncf-1.2
Updated by Alexis Mousset over 2 years ago
- Project changed from 41 to Rudder
- Category changed from Technique editor - API to Web - Technique editor
Actions