Project

General

Profile

Actions

Bug #11021

closed

Cannot generate ps1 technique file (missing 50_techniques directory)

Added by Nicolas CHARLES almost 7 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
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

Actions #1

Updated by François ARMAND almost 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.

Actions #2

Updated by François ARMAND almost 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É
Actions #3

Updated by Vincent MEMBRÉ almost 7 years ago

  • Project changed from 52 to 41
  • Category changed from 82 to Technique editor - API
  • Target version changed from 362 to master
Actions #4

Updated by Vincent MEMBRÉ almost 7 years ago

  • Status changed from New to In progress
Actions #5

Updated by Vincent MEMBRÉ almost 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
Actions #6

Updated by Vincent MEMBRÉ almost 7 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:5bf0c5a84380fb16bd7752910a669968e3c6d819.

Actions #7

Updated by Vincent MEMBRÉ over 6 years ago

  • Status changed from Pending release to Released
Actions #8

Updated by Alexis Mousset almost 2 years ago

  • Target version changed from master to ncf-1.2
Actions #9

Updated by Alexis Mousset almost 2 years ago

  • Project changed from 41 to Rudder
  • Category changed from Technique editor - API to Web - Technique editor
Actions

Also available in: Atom PDF