Bug 102362
Summary: | rup: stooge: RPC: Timed out | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | George Rich <george_rich> |
Component: | rusers | Assignee: | Phil Knirsch <pknirsch> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | byrnes, mattdm, rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-07-02 12:47:28 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
George Rich
2003-08-14 15:11:26 UTC
The problem is that the timeval struct isn't initialized for the clnt_call to RSTATPROC_STATS. Here's a patch to fix it: --- rup.c.orig 2003-10-28 12:30:39.000000000 -0500 +++ rup.c 2003-10-28 15:07:28.000000000 -0500 @@ -245,29 +245,30 @@ onehost(const char *host) { CLIENT *rstat_clnt; statstime host_stat; struct timeval foo; rstat_clnt = clnt_create(host, RSTATPROG, RSTATVERS_TIME, "udp"); if (rstat_clnt == NULL) { warnx("%s", clnt_spcreateerror(host)); return; } memset(&host_stat, 0, sizeof(host_stat)); + foo.tv_sec = 2; + foo.tv_usec = 0; if (clnt_call(rstat_clnt, RSTATPROC_STATS, (xdrproc_t) xdr_void, NULL, (xdrproc_t) xdr_statstime, (caddr_t) &host_stat, - foo) != RPC_SUCCESS) { warnx("%s", clnt_sperror(rstat_clnt, host)); return; } if (sort_type != SORT_NONE) { remember_rup_data(host, &host_stat); } else { print_rup_data(host, &host_stat); } clnt_destroy(rstat_clnt); Fixed since rusers-0.17-27 and later. Read ya, Phil |