Bug #11318
closed
rudder remote run error, and unable to pass -i option
Added by Florian Heigl about 7 years ago.
Updated almost 6 years ago.
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Description
I was trying to look into the following error from "rudder remote"
@rudder-master:/root # rudder remote run client.domain.tld
error Rudder agent was interrupted during execution by a fatal error
Run with -i to see log messages.
- Summary #####################################################################
0 components verified in 1 directives
execution time: 0.67s
################################################################################@
I could see in tcpdump my master is calling out to the end system so I was uncertain if it did something or not.
To provoke more work on the remote side, I gave -Dforce_inventory, and then added -i which seems to not work like that.
@rudder-master:/root # rudder remote run client.domain.tld -Dforce_inventory
error Rudder agent was interrupted during execution by a fatal error
Run with -i to see log messages.
- Summary #####################################################################
0 components verified in 1 directives
execution time: 0.68s
################################################################################
rudder-master:/root # rudder remote run client.domain.tld -Dforce_inventory -i
error Rudder agent was interrupted during execution by a fatal error
Run with -i to see log messages.
- Summary #####################################################################
0 components verified in 1 directives
execution time: 0.67s
################################################################################
rudder-master:/root # rudder remote run client.domain.tld -i -Dforce_inventory
error Rudder agent was interrupted during execution by a fatal error
Run with -i to see log messages.
- Summary #####################################################################
0 components verified in 1 directives
execution time: 0.68s
################################################################################
rudder-master:/root # rudder remote run -i client.domain.tld -Dforce_inventory
Usage rudder remote run <node_ip_or_name>@
I tried read hard to get proper formatting on this but it seems redmine does hate me, so I'll just leave it as it is.
- Target version set to 4.1.7
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 32
Does this error happen on all your nodes or just this one ?
Hi,
the error was on multiple, but the report is about that -i doesn't work :)
- Target version changed from 4.1.7 to 4.1.8
Hi,
There seems to be technical limit on CFEngine "remote run" implementation for now... It seems deep rooted and may be difficult to correct.
Thanks for reporting!
Again: The issue is about the parser issue that -i does not work if you give -D
The problem is as follow:
- when using -Dforce_inventory there is no report thats is done (which is expected)
- missing reports are incorrectly detected because of #9807
- missing reports trigger a message "run with -i"
- running with -i does not give as many log remotely as locally
So :
- -i does not give expected result with remote-run because of cfengine limitation
- in this case there is no real error and no need to run with -i
We found that remote-run does not have the UPDATE_OPTIONS variable, whereas agent-run does have it.
So this seems to be an issue with the option parser, probably the one in agent-run is a tad newer than the one in remote-run.
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
The UPDATE_OPTIONS in "rudder agent run" are used to pass options to "rudder agent update" when -u is used.
"rudder remote run" does not have an option to force update remotely (it just does it)
- Target version changed from 4.1.8 to 4.1.9
- Target version changed from 4.1.9 to 4.1.10
- Priority changed from 32 to 31
- Target version changed from 4.1.10 to 4.1.11
- Priority changed from 31 to 30
- Target version changed from 4.1.11 to 4.1.12
- Priority changed from 30 to 29
- Target version changed from 4.1.12 to 4.1.13
- Target version changed from 4.1.13 to 411
- Target version changed from 411 to 4.1.13
- Target version changed from 4.1.13 to 4.1.14
- Priority changed from 29 to 28
- Target version changed from 4.1.14 to 4.1.15
- Priority changed from 28 to 27
- Target version changed from 4.1.15 to 4.1.16
- Target version changed from 4.1.16 to 4.1.17
- Priority changed from 27 to 0
i've been testing the remote run command, and it's been painfully hard (on centos7, rudder 4.1.17)
The order of argument is important
Ok:
rudder remote run -ait RzZX185IOUGHBGS0Xfy7LpBx6VyIxjSD
NOK: no token found
rudder remote run -a -t RzZX185IOUGHBGS0Xfy7LpBx6VyIxjSD
NOK: no target found
rudder remote run -t RzZX185IOUGHBGS0Xfy7LpBx6VyIxjSD -a
we should at least fix the doc, but using workable options is a necessity
- Assignee changed from Vincent MEMBRÉ to Benoît PECCATTE
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-agent/pull/197
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to Released
- Related to Bug #13897: Command "rudder remote run" must accept "-a -t" added
Also available in: Atom
PDF