Project

General

Profile

Actions

Bug #21947

closed

Broken ncf.py when loading techniques with disabled reporting

Added by Alexis Mousset about 2 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

[2022-10-12 14:14:11+0200] ERROR bootchecks - An error occurred while updating techniques based on ncf; error message is: Inconsistency: An error occured while updating generic methods library with command '/usr/share/ncf/ncf write_all_techniques':
 code: 1
 stderr: Traceback (most recent call last):
  File "/usr/share/ncf/ncf", line 107, in <module>
    write_all_techniques("", False)
  File "/usr/share/ncf/ncf", line 77, in write_all_techniques
    techniques = ncf.get_all_techniques_metadata(True,migrate_old)
  File "/usr/share/ncf/tools/ncf.py", line 458, in get_all_techniques_metadata
    method_calls = parse_technique_methods(file, methods)
  File "/usr/share/ncf/tools/ncf.py", line 420, in parse_technique_methods
    if not (method_name.startswith("_") or method_name.startswith("log")):
AttributeError: 'NoneType' object has no attribute 'startswith'
Actions #1

Updated by Alexis Mousset about 2 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #2

Updated by Alexis Mousset about 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/ncf/pull/1371
Actions #3

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 7.1.8 to 7.1.9
Actions #4

Updated by Vincent MEMBRÉ about 2 years ago

  • Status changed from Pending technical review to New
Actions #5

Updated by Vincent MEMBRÉ about 2 years ago

  • Target version changed from 7.1.9 to 7.1.10
Actions #6

Updated by Vincent MEMBRÉ almost 2 years ago

  • Target version changed from 7.1.10 to 1016
Actions #7

Updated by Alexis Mousset almost 2 years ago

  • Status changed from New to Rejected

fixed by ignoring the error and removing ncf.py completely in 7.3.

Actions #8

Updated by Alexis Mousset almost 2 years ago

  • Target version changed from 1016 to 7.2.5
Actions

Also available in: Atom PDF