Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] pscheduler client localhost resolution

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] pscheduler client localhost resolution


Chronological Thread 
  • From: Andrew Lake <>
  • To: Ezra Kissel <>,
  • Subject: Re: [perfsonar-user] pscheduler client localhost resolution
  • Date: Thu, 17 Jan 2019 10:10:41 -0500
  • Ironport-phdr: 9a23:X7uqVhx5ypBA/rTXCy+O+j09IxM/srCxBDY+r6Qd2u4WIJqq85mqBkHD//Il1AaPAd2Lraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HQbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDtU7s6RSqt4LtqSB/wiScIKTg58H3MisdtiK5XuQ+tqwBjz4LRZoyeKfhwcb7Hfd4CRWROXMhRWCNPDI2/coUBEfYOMP1CoIXhvVYDtweyCRWuCe7p1zRGhmX23ao/0+k5DQzG2hEvH8gQv3Xasd77Mr0dUeOrw6LVyjjMdfVW1ir96YXTbB8huuuAXbRufsrN0EQiER7OgFuXqYzgJTyV1+INvnCa7+pmSeKglXQnqwdvrTiz2MsgkJfGiZ8Iylzc+iV5wZo1Jd2lSEFge9KrDJxQtySCO4t3RMMtXmBotzw8yrIco5K0YjUFyIk/yxLCdfCKcZKE7g75WOqNOzt0mXRoc6+8iRaq6UWs1+PxWtSu3FpUoSdInMPAum4T2xHQ8MSKSuVx8l+/1TqT0w3f8OJJLEAumabFNpIsxqQ8mocXvEnHGCL9hV/4g7WMdko+/+il8+Tnbavipp+bL4J0hB/xP6o0lsy7Gus4NhICX2ec+eSizLHj/Ev5T6tWjvAuj6XUvo3WKd4FqqO2DQJZyJgv5wi8Aju80NkUg2ELLFdfdxKGi4jpNUvOIPf9DfqnmVuslipkxvDdM7L/GZXBNH7Dn6n9fbpl8U5T1BIzzcxD55JTErwBOOz8WlX/tNzDCR85NRa7w/z+BNVgzYMRR3iPD7SdMKPTql+I+vkvL/eWaI8Uvjb9N+Yq5+TojXAnhV8RY7Ol0oUKZ3ClTbxbJV6Eay/snssZCjVN+Q4/V/DxzlyETTNJYXuuBeQx6ix8E5OjFY6EXYGihruP0mCjE4dYfWdAA0rJDGzlbda4XKIhejibauxgiScJUfD1Rp0i1Aq1uQvSyrxrL+PS82sVuY+1kJBt6vfdjhY0/CYxEt+QyUmMSX15hGUFW2Vw0axi8mJnzVLW+K50mfFHXfha5P4BBg48OY/0wvc8Dd3uDFGSNuyVQUqrF431SQo6Scg8lppXOx5w

Whoops, shouldn’t go from memory, the option is just an address not a URL. Example:

{
    “pscheduler-assist-server”: “127.0.0.1",
    “remotes”: [...]
}


On January 17, 2019 at 10:09:26 AM, Andrew Lake () wrote:

Hi Ezra,

A couple things to try:

1. Can you visit "https://localhost/pscheduler” on the problematic host? A call to that URL returns the hostname, so it is possible the error is in scheduler’s lookup of the hostname, not connecting to the server itself.

2. If #1 seems to be working fine in /etc/perfsonar/psconfig/pscheduler-agent.json you can add a “pscheduler-assist-server” option set to something like “https://127.0.0.1/pscheduler” or use the address of the host to see if that helps. Not sure why the localhost lookup would not be working. Example:

{
    “pscheduler-assist-server”: https://127.0.0.1/pscheduler”,
    “remotes”: [...]
}


Thanks,
Andy

On January 16, 2019 at 6:03:33 PM, Ezra Kissel () wrote:

Hi,

After performing a CentOS 7 bundle install of 4.1 and pointing the
pscheduler instance to an existing Mesh configuration, the scheduler
works correctly and is running tests according to the pscheduler log.
However, the Toolkit webUI, and output of 'psconfig pscheduler-tasks' is
empty.

Looking at the output of
/var/log/perfsonar/psconfig-pscheduler-agent-transactions.log we see the
following Errors:

2019/01/16 13:25:01 INFO guid=0948A0DE-19BC-11E9-976C-E03174F665AE
action="list" url="https://localhost/pscheduler msg=Getting task list from
https://localhost/pscheduler
2019/01/16 13:25:01 ERROR guid=0948A0DE-19BC-11E9-976C-E03174F665AE
action="list" url="https://localhost/pscheduler msg=Error getting hostname
from https://localhost/pscheduler: HTTP/1.1 404 Not Found
2019/01/16 13:25:01 ERROR guid=0948A0DE-19BC-11E9-976C-E03174F665AE
url="https://localhost/pscheduler action="check_assist_server" msg=Error
checking assist server: HTTP/1.1 404 Not Found

However, this URL is perfectly resolvable from the command line:

[ezkissel@um-ps01 ~]$ curl https://localhost/pscheduler/tasks -k
["https://localhost/pscheduler/tasks/8917f287-0d7e-4d74-bedc-4010cb5ca9c4",
"https://localhost/pscheduler/tasks/6fa7615c-5273-4c39-b1e1-5503d172c26c",
"https://localhost/pscheduler/tasks/e4be97b3-e44d-4a32-8b6f-ceb2de76d556",
"https://localhost/pscheduler/tasks/e173668d-9d38-424d-9e97-3035506323de",
"https://localhost/pscheduler/tasks/7cebe09a-16b3-403c-beb7-eced912dfda7",
"https://localhost/pscheduler/tasks/5b14b6b0-c180-46c8-90cc-4b2e56b37543",
"https://localhost/pscheduler/tasks/e8fa8d3e-98a7-45e1-9d96-ea07a6a2cc0c",
"https://localhost/pscheduler/tasks/a198de56-f1a0-43ea-b9b3-27492cd249cc",
"https://localhost/pscheduler/tasks/41a339dc-d63f-4c38-9502-7c4e6317dd07"]

For context, this is the second host we setup in this manner, i.e. using
the CentOS bundle install. The first one is working fine but it is a
single-homed host. The same log above on the first host shows the
pscheduler client is using the FQDN instead of localhost. This second
host is multi-homed but 'localhost' resolution is working fine so it's
unclear why that resolution is failing.

https://github.com/perfsonar/perl-shared/blob/master/lib/perfSONAR_PS/Client/PScheduler/TaskManager.pm#L118

Another data point is that /var/lib/perfsonar/psconfig/psc_tracker is
not generated on the second, multi-homed host. We are not sure if this
is a symptom of the previous errors or the cause. On the first host
that file is generated and works correctly:

[ezkissel@iu-ps01 ~]$ cat /var/lib/perfsonar/psconfig/psc_tracker
{
"archives" : {
"+afor695Bl0KlYEfcsJW/Q" : "nzmF+zjtFIb6seWzuIpYmQ",
"HMdfRseLSjUtK0X1GXnvfA" : "HMdfRseLSjUtK0X1GXnvfA"
},
"leads" : {
"https://iu-ps01.open.sice.indiana.edu/pscheduler" : {
"success_time" : 1547647170
}
}
}

We are at a loss at the moment as the two hosts are nearly identical
configuration-wise except that one is multi-homed and the other is not.

Any ideas?

thanks,
- ezra
--
To unsubscribe from this list: https://lists.internet2.edu/sympa/signoff/perfsonar-user



Archive powered by MHonArc 2.6.19.

Top of Page