perfsonar-user - [perfsonar-user] Re: Lookup Service IP versus hostname
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Ryan Hitch <>
- To: "" <>
- Subject: [perfsonar-user] Re: Lookup Service IP versus hostname
- Date: Tue, 26 Apr 2016 11:11:03 +0000 (UTC)
I also have one client entry that has (2) lookup-service registrations (one by IP and another by hostname):
[user@dash]/usr/lib/perfsonar/bin/lookup_hosts --input /etc/perfsonar/meshconfig-lookuphosts.conf --output /var/www/html/dynamic_host_list.json
Resulting mesh is invalid: Multiple hosts match pas05.perf.sonar at /usr/lib/perfsonar/bin/../lib/perfSONAR_PS/MeshConfig/Config/Mesh.pm line 58.
One of these entries has an expiration date several days ago, but for some reason has not been cleaned out of the look-service database:
[user@dash lib]# perl
query.pl
$VAR1 = bless( {
'RECORD_HASH' => {
'group-domains' => [
'perf.sonar'
],
'ttl' => [],
'interface-capacity' => [
'1000000000'
],
'interface-mac' => [
'20:47:37:5F:5F:DC'
],
'interface-mtu' => [
'1500'
],
'client-uuid' => [
'421d374f-1045-49e1-92ef-c03904e04e45'
],
'state' => 'renewed',
'uri' => 'lookup/interface/665e4963-4ded-437a-ad27-5f7e35c5d176',
'interface-name' => [
'em1'
],
'type' => [
'interface'
],
'interface-addresses' => [
'192.168.188.5'
],
'expires' => '2016-04-20T17:59:58.806Z'
}
}, 'SimpleLookupService::Records::Network::Interface' );
$VAR1 = bless( {
'RECORD_HASH' => {
'group-domains' => [
'perf.sonar'
],
'ttl' => [],
'interface-capacity' => [
'1000000000'
],
'interface-mac' => [
'20:47:37:5F:5F:DC'
],
'interface-mtu' => [
'1500'
],
'client-uuid' => [
'421d374f-1045-49e1-92ef-c03904e04e45'
],
'state' => 'renewed',
'uri' => 'lookup/interface/665e4963-4ded-437a-ad27-5f7e35c5d176',
'interface-name' => [
'em1'
],
'type' => [
'interface'
],
'interface-addresses' => [
'192.168.188.5'
],
'expires' => '2016-04-20T17:59:58.806Z'
}
}, 'SimpleLookupService::Records::Network::Interface' );
How can I remove these duplicate registrations and stale entries?
Any help is greatly appreciated.
Thanks!
Ryan
On Monday, April 25, 2016 2:25 PM, Ryan Hitch <> wrote:
Hi,
I am setting up a dynamic mesh with a private lookup service
(which is also running Maddash and CMA).
Some of my clients register with this server using their IP
address versus hostname, and I occasionally get clients registered twice.
For example, I see 192.168.188.5 and its hostname (ps5.node.sonar)
when I do:
curl -v -H "Content-Type: application/js" -X
GET http://localhost:8090/lookup/records/?type=service
These also show up as both hostname and IP in Maddash.
How can I get nodes to register consistently by hostname?
How can I remove the IP entries from my private lookup
server?
Thanks!
Ryan
- [perfsonar-user] Lookup Service IP versus hostname, Ryan Hitch, 04/25/2016
- [perfsonar-user] Re: Lookup Service IP versus hostname, Ryan Hitch, 04/26/2016
- [perfsonar-user] Re: Lookup Service IP versus hostname, Ryan Hitch, 04/29/2016
- [perfsonar-user] Re: Lookup Service IP versus hostname, Ryan Hitch, 04/26/2016
Archive powered by MHonArc 2.6.16.