- CheckMates
- :
- Products
- :
- General Topics
- :
- Re: HCP script ARP test fails
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HCP script ARP test fails
Seeing the following errors on a few systems when running the HCP script, is this a known issue?
Result: ERROR
Description: This test checks that the number of entries in the arp cache table is not exceeding the threshold
Summary: This test failed and raised exception:
Traceback (most recent call last):
File "/etc/hcp/source/hcp/test/hcp_test.py", line 208, in execute
res = self.__execute_func()
File "/etc/hcp/tests/gaia_os/general/arp_cache.py", line 90, in execute_test
_result = ArpCache().run()
File "/etc/hcp/tests/gaia_os/general/arp_cache.py", line 84, in run
if self._get_num_of_cache_entries() == 0:
File "/etc/hcp/tests/gaia_os/general/arp_cache.py", line 35, in _get_num_of_cache_entries
raise RuntimeError('Failed to get arp entries rc={}: {}'.format(_rc.rc, _rc.stderr))
RuntimeError: Failed to get arp entries rc=127: /bin/sh: arp: command not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What version/jhf are you running this on?
I suspect this is a bug since the arp command should exist on all gateways and management.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have seen this on R81 machines as well as R81.10 with varying levels of patches applied.
I was able to get around this issue by running the individual test by itself, i.e. "hcp -r 1" for the ARP cache test. When it runs by itself it passes with no issues. Subsequent runs of all tests (hcp -r all) work fine.
Have also seen this for the SSD Health Test. Strange little quirk, maybe it is because we are calling the HCP script from our own custom script not sure..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tested on R81.20, no issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am writing here to keep the topic alive and not to open another topic. I have that same problem. I'm also having trouble with the SSD control. As far as I can see, if I run the script manually, there is no problem, but if I run it with a cronjob or another script, I get an error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The problem still exist (HCP autoupdater take: 59). It may be a problem with the environment or locales.
As a work-around you can add the cron job with bash login like this:
"add cron job HCP_night_run command 'bash -l /etc/hcp/source/cron/cron_hcp_collect_reports.sh' recurrence daily time 03:00"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mille,
It is work, thanks for solution.
