Project

General

Profile

Actions

Bug #11418

closed

rudder remote run cuts down IP of remote host

Added by Janos Mattyasovszky over 6 years ago. Updated about 6 years ago.

Status:
Released
Priority:
N/A
Category:
Agent
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
30
Name check:
Fix check:
Regression:

Description

Apparently the backend cf-runagent -H <server> called via rudder remote run -a (with correct token provided) returnes the output that has the IP instead of the Hostname it is run on, example:

 10.111.111.123> -> R: @@userGroupManagement@@result_success@@<...> 

However, the awk-formatter very unluckily cuts down the last octet which is actually just the only one someone might care about:
Imageine you run this on your subnet of 192.168.0.XXX/24 and all you get in the list displayed is "192.168.0." without knowing which "XXX" you are running on... :-)

# rudder remote run -a
Start execution with config [20170921-172258-d2e89b2a]

Hostname   M| State         Technique                 Component                 Key                Message
10.111.111 E| compliant     Common                    Update                                       Policy, tools and configuration library are already up to date. No action required.
10.111.111 E| compliant     Common                    ncf Initialization                           Configuration library initialization was correct
10.111.111 E| compliant     Common                    Security parameters                          The internal environment security is acceptable
10.111.111 E| compliant     Common                    Red Button                                   Red Button is not in effect, continuing as normal...
10.111.111 E| n/a           Common                    Process checking                             Rudder agent proccesses check is done by the rudder-agent cron job
10.111.111 E| compliant     Common                    CRON Daemon      
[cut]

One'd expect to at least see all four octets of the IPv4 address (should be easy) or even better, the hostname of the node being run on (somehow harder).

Actions

Also available in: Atom PDF