Project

General

Profile

Actions

Bug #17724

closed

error about rudder-lang in logs

Added by Nicolas CHARLES almost 4 years ago. Updated almost 4 years ago.

Status:
Released
Priority:
N/A
Assignee:
Gaëtan POBLON
Category:
rudderc
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
32
Name check:
To do
Fix check:
Checked
Regression:

Description

[
error: Found argument '-i' which wasn't expected, or isn't valid in this context

USAGE:
    rudderc --json-log --translate

For more information try --help

on debian9 nightly
Actions #1

Updated by François ARMAND almost 4 years ago

Can you reproduce it? Can you test is setting rudder.lang.test-loop.exec to false in /opt/rudder/etc/webapp.properties makes it disapear?

Actions #2

Updated by Nicolas CHARLES almost 4 years ago

# cat /opt/rudder/etc/rudderc.conf
[shared]
    stdlib="/opt/rudder/share/rudder-lang/lib/" 
    generic_methods="/opt/rudder/share/rudder-lang/tools/generic_methods.toml" 
    ncf="/usr/share/ncf" 

[compile]
    source="/var/rudder/configuration-repository/techniques/ncf_techniques/" 
    dest="/tmp/rudderc/tester/" 
    format="cf" 

[translate]
    source="/tmp/rudderc/tester/" 
    dest="/tmp/rudderc/tester/" 
    format="rl" # no other option for now

[testing_loop]
    cfengine="/opt/rudder/bin/cf-promises" 
    py_modules="/opt/rudder/share/python/" 
# cat /var/rudder/configuration-repository/techniques/ncf_techniques/sqfsqfsqfqsfsdf/1.0/technique.json
{
  "bundle_name":"sqfsqfsqfqsfsdf",
  "version":"1.0",
  "category":"ncf_techniques",
  "description":"",
  "name":"sqfsqfsqfqsfsdf",
  "method_calls":[
    {
      "method_name":"user_present",
      "class_context":"any",
      "component":"User present",
      "args":[
        "nicolas" 
      ],
      "parameters":[
        {
          "name":"login",
          "value":"nicolas" 
        }
      ]
    }
  ],
  "parameter":[],
  "resources":[]
}
# /opt/rudder/bin/rudderc -t -c /opt/rudder/etc/rudderc.conf -s /var/rudder/configuration-repository/techniques/ncf_techniques/sqfsqfsqfqsfsdf/1.0/technique.json 
error at Could not parse (probably faulty) toml config file: error at Could not parse format rl for key `translate.format` at line 16 column 1
An error occurred, 'output not set' file has not been created from 'input not set'
Actions #3

Updated by Nicolas CHARLES almost 4 years ago

setting rudder.lang.test-loop.exec makes it disapears

Actions #4

Updated by Gaëtan POBLON almost 4 years ago

  • Status changed from New to Pending technical review
  • Assignee set to Gaëtan POBLON
  • Pull Request set to https://github.com/Normation/rudder/pull/3075
Actions #5

Updated by François ARMAND almost 4 years ago

  • Severity set to Minor - inconvenience | misleading | easy workaround
  • User visibility set to Operational - other Techniques | Rudder settings | Plugins
  • Priority changed from 0 to 32

ok, since the loop exec feature switch does work as expected, it's not a too serious error. We will correct it in first minor release.

Actions #6

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 6.1.0 to 6.1.1
Actions #8

Updated by Anonymous almost 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Gaëtan POBLON almost 4 years ago

  • Fix check changed from To do to Checked
Actions #10

Updated by Vincent MEMBRÉ almost 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.1 which was released today.

Actions

Also available in: Atom PDF