Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] few questions about pscheduler-assist-server & pscheduler/hostname

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] few questions about pscheduler-assist-server & pscheduler/hostname


Chronological Thread 
  • From: Mark Feit <>
  • To: Paul MEBALE-ASSAKO <>
  • Cc: perfsonar-user <>
  • Subject: Re: [perfsonar-user] few questions about pscheduler-assist-server & pscheduler/hostname
  • Date: Tue, 25 Mar 2025 19:31:09 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=internet2.edu; dmarc=pass action=none header.from=internet2.edu; dkim=pass header.d=internet2.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=x49+oPItopxiNomwUN02sar5dLCDGEf3yRxes+0E1PI=; b=Tj1rOW3J+6GAvJuxAzLbdrItvEPvlfeeI8iCubUqrQkZdJ1HAHwh63MfHib47WbO9dv4oblkty3DduJZsDSchqhYBSg0QzTmyS2QZM49u5Flvj+EeKY6RU3AQ80T3xiCdRkCRgytq1Q5yPNOCU4N6DDQCbKUH+yNCWtZ7CTwc79sx3tgli2Xnoeqt9VCgM/TkBqBUyLOb4RnW+htupC1OkrRpXhh9UsgAWSjnk59QHcDbH7tVADsDIRba+2ZST9f4vPK+RupPQ/s5ZYjhVlyVwebMyRqK0/A63Pv5l1m+FeE0TydsWbS64B8uOlc5/LTP8XjtvSgMWCPkXtV3upkrg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=exgQRzAlnc3IyupAO6N+hiK8GSGF3gK/l3VJph5qN9cphr1ROZYScM53YsutBYD3T49YoqJJTYhm8l6ENMXcsTiqskrqNwmZ/SfMsYYB7dE+hCXw5SF+l+a/46Uo/9jUQZvoUZScaRWo1e2tM3nziEmDuzwU7wtzxlzlXsWpdD+prpjBSFnVntOzVtsN51U7lyw6Zl+Nq9Or3nN2i0cJbFWDgvF+ySdmyaWBpZrInqU7dUbgQ6cJk1V/YRgPl25Fzng6XtQ36Bec6Nbbg0nHDJoLNaE4e+dRQh3quyl5IqxJ5yyRGXgsPisaBSKQRRmW1c9n4j4FT7OiPWOfGXCqgw==

Paul MEBALE-ASSAKO writes:

 

  1. in case pscheduler-assist-server is not mandatory, how can we deactivate it?  

 

It isn’t.  Don’t put it in the configuration file and pSConfig will revert to its default behavior of asking the pScheduler server on the local system.  pSConfig is currently hard-wired for its default host to be localhost.  More on that below.

 

  1. since gethostname() returns the system's hostname that is not directly resolvable using a DNS but by a stub resolver, is there a way of tuning it so that it might return the fqdn? Or is there a way of modifying it for gethostname() to look into /etc/hosts instead of directly requesting DNS servers (/etc/resolv.conf) ?

 

The system hostname is an arbitrary string stored in the kernel; gethostname() retrieves it.   Traditionally, that name has had a matching entry in /etc/hosts and, often, DNS.  Neither is required, but it’s been a good convention for systems to identify themselves.

 

Since we don’t configure the systems where perfSONAR is installed, there have to be fallbacks for weird configurations.  It isn’t safe for us to assume that that the hostname or localhost will resolve into something or that 127.0.0.1 or ::1 exists.  pScheduler will use the hostname if it resolves into an address using the system’s resolver library.  That may or may not include DNS depending on local configuration.  Failing that, it will return the IP of an interface on the system, preferring loopbacks and IPv6.  (What I said yesterday about IPs that reverse-resolve to hostname was incorrect, so disregard that.)

 

Now that pSConfig is written in the same language as most of pScheduler (Python), we’ll probably start looking at making some of the functions in pScheduler’s library dealing with this stuff available to the rest of the project.  That will make some of the behavior more-uniform.

 

--Mark

 




Archive powered by MHonArc 2.6.24.

Top of Page