Bug #11318
closedrudder remote run error, and unable to pass -i option
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.
Updated by Vincent MEMBRÉ over 7 years ago
- 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 ?
Updated by Florian Heigl over 7 years ago
Hi,
the error was on multiple, but the report is about that -i doesn't work :)
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 4.1.7 to 4.1.8
Updated by François ARMAND over 7 years ago
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!
Updated by Florian Heigl over 7 years ago
Again: The issue is about the parser issue that -i does not work if you give -D
Updated by Benoît PECCATTE over 7 years ago
- 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
- -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
Updated by Florian Heigl about 7 years ago
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.
Updated by Vincent MEMBRÉ about 7 years ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Benoît PECCATTE about 7 years ago
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)
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.1.8 to 4.1.9
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.1.9 to 4.1.10
- Priority changed from 32 to 31
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.10 to 4.1.11
- Priority changed from 31 to 30
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.11 to 4.1.12
- Priority changed from 30 to 29
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.12 to 4.1.13
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.13 to 411
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 411 to 4.1.13
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
- Priority changed from 29 to 28
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
- Priority changed from 28 to 27
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by Nicolas CHARLES about 6 years ago
- 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
Updated by Benoît PECCATTE about 6 years ago
- Assignee changed from Vincent MEMBRÉ to Benoît PECCATTE
Updated by Benoît PECCATTE about 6 years ago
- 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
Updated by Benoît PECCATTE about 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-agent|0b12c71153340d818b0c591f7e846f36f133041c.
Updated by Vincent MEMBRÉ about 6 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE about 6 years ago
- Related to Bug #13897: Command "rudder remote run" must accept "-a -t" added