Bug 768188
| Summary: | NOCpulse throws error every 15minutes if "eth0" is not a device | |||
|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Daniel Jabbour <drj> | |
| Component: | Server | Assignee: | Michael Mráka <mmraka> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 1.6 | CC: | jonathanlopez, slukasik, tcameron | |
| Target Milestone: | --- | Keywords: | Reopened | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | MessageQueue-3.26.6-1 perl-NOCpulse-Gritch-1.27.10-1 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 875600 (view as bug list) | Environment: | ||
| Last Closed: | 2012-11-01 16:17:55 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 723481, 871344, 875600 | |||
|
Description
Daniel Jabbour
2011-12-16 00:07:20 UTC
The issue has been fixed in spacewalk master by
commit 0b51c04ea9c35366cc818e9909e0773d30f1a405
768188 - return mac address of the first available interface
Spacewalk 1.6 has been released. It still fails in OpenVZ/Virtuozzo because the ifconfig output:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:274526 errors:0 dropped:0 overruns:0 frame:0
TX packets:274526 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:714536966 (681.4 MiB) TX bytes:714536966 (681.4 MiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:159719 errors:0 dropped:0 overruns:0 frame:0
TX packets:119694 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:211441162 (201.6 MiB) TX bytes:56311647 (53.7 MiB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:123.123.123.123 P-t-P:82.194.77.40 Bcast:82.194.77.40 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
Dont find a valid value for HWaddr.
One more fix in spacewalk master
commit e308b4838fad54b3dd657d5080051b9b8a87b101
768188 - return mac address of the first available interface
This is also failing in RHN Satellite 5.4.1, even after I change the line in SMONQueue.pm:
[root@molly ~]# diff /usr/share/perl5/vendor_perl/NOCpulse/SMONQueue.pm /usr/share/perl5/vendor_perl/NOCpulse/SMONQueue.pm.orig
63c63
< my $mac = `/sbin/ifconfig p4p1`;
---
> my $mac = `/sbin/ifconfig eth0`;
I restart Monitoring and MonitoringScout and I see:
[root@molly ~]# grep eth0 /etc/NOCpulse.ini
serverIF=eth0
Is there somewhere else that I need to change?
I see:
[root@molly ~]# grep -ri eth0 /usr/share/perl5/vendor_perl/NOCpulse/
/usr/share/perl5/vendor_perl/NOCpulse/SMONQueue.pm: my $mac = `/sbin/ifconfig eth0`;
/usr/share/perl5/vendor_perl/NOCpulse/SMONQueue.pm.orig: my $mac = `/sbin/ifconfig eth0`;
/usr/share/perl5/vendor_perl/NOCpulse/Gritch.pm: my $ifconfig = `/sbin/ifconfig eth0`;
/usr/share/perl5/vendor_perl/NOCpulse/Probe/DataSource/InterfaceTrafficOutput.pm: # Match " eth0:"
/usr/share/perl5/vendor_perl/NOCpulse/Probe/DataSource/test/TestUnixHelpers.pm: eth0:1195668513 32384086 0 0 0 0 0 0 887520285 30738814 0 0 0 833234 0 0
/usr/share/perl5/vendor_perl/NOCpulse/Probe/DataSource/test/TestUnixHelpers.pm: $traffic = $data_source->interface_traffic('eth0');
/usr/share/perl5/vendor_perl/NOCpulse/Probe/DataSource/test/TestPsOutput.pm: 1391 1 1260 608 00:00:00 S /sbin/pump -i eth0
Looks like there are several places where eth0 is hard coded. Help?
(In reply to comment #5) > This is also failing in RHN Satellite 5.4.1, even after I change the line in > SMONQueue.pm: Do fixes from comment #1 and comment #4 solve your issue? Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/ Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18 |