Skip to Content.
Sympa Menu

perfsonar-user - RE: [perfsonar-user] New Central MA

Subject: perfSONAR User Q&A and Other Discussion

List archive

RE: [perfsonar-user] New Central MA


Chronological Thread 
  • From: Andrew Lake <>
  • To: "" <>, "Garnizov, Ivan (RRZE)" <>, Casey Russell <>
  • Subject: RE: [perfsonar-user] New Central MA
  • Date: Wed, 4 Oct 2017 09:02:29 -0400
  • Ironport-phdr: 9a23:k6PxAxBUJGc42yCdILzvUyQJP3N1i/DPJgcQr6AfoPdwSP36p8qwAkXT6L1XgUPTWs2DsrQf2rqQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDmwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c63detMaX2VBUdhMWCdcAY2ydZYED+4APeZerIn2ul8CoBiiCQWpAu7k1z1GiWLs3aAi0+ouEw/G0gsvENwAs3rascv7O7sJXO+v0KXF1y/OYulK1Tr/7oXDbxAvoeuLXbJ1acfc1U8vGB7fjlqOp43uIjWb2f4Os2eF8uFtUvigi2g6pABxuTWg2NwshpPPho0L1lDJ7CN0y5s7K92/TU50e9+kEJ1IuiGeNot2RMAiTH91tyY7zL0Ko4K0fC8PyJg/2x7eZf2Hc5SU4h39TuadOyt3hHVgeL6niBay9k+gyuL4VsaqylpFsi1FktzUunwQ1hHe5dKLRuZg8kqvwzqDyxrf5v1cLU01kafXMZwsz7wqmpYPq0jPAjf6mEr3jK+KdkUk5/On5/77bbXho5+QL5J4hwDxP6g0h8CzHOo1PhIBUmWY4+iwybzu8VX6QLpQiP02iLfWsJbAKcQduKG5HxdZ3psn5hu8FTuqztsVkHodIF5ZYh6Lk47kMEzNLvDgFfqznkqgnTRxy/3IJLHsDYjBImLCnbriZbpx9VJQxQ4pwd1c559YEK8NLOz9V0PrqtDUEgM1PgqpyOj9Etp9zJkRWWeXD6+ZLqzStViI6/ohI+aSaoIZojL9JOMh5/L0gn85nkEdcbGo3ZsRdn+4AuxrL1iHbXfvmNsMH30GswUjQODwiVCPUiZfZ3OoUKI94jE7BpimDYDGRo21mrOB2jq0H51Na29YEVCAC3HoeJuYW/sUciKdPtdhkiAYVbimU4IhzQ+htBX0y7p8KerU/DcXtYj62Nho/O3ciwsy+CdwD8ScyGGNU3p0kn0SSz832qB/vVJyyk2F0admn/xUC8Zf6O1UXQcnZtbgyLkwE93oVBnGeN6TDUu9T8+OADctQ8g3zsNUJUtxBp/q2gjOxSSxBLkcjfmWH5Eu2qPaw3XrIcthkTDL2LR3yxFsbcJVM2y0gbA7vynNDoiB03+jpYvrP+xI3TDE8iGMxHCIvVNfTiZ+WLiDUX1JIgP9pM/09wv4UqS1BLAjel9K09OZMaZObvXqhFNcSfGlPtnCNTGfgWC1UD+OyqmBc8LOcmYQlHHUDkQVuw0Iu3CLKV5tVW+av2vCAWk2RhrUaET2/Lw78iu2

Hi Casey,

I think maybe you just needed to wait? As of this morning I see 384 test results registered in the last two minutes including a bunch from ps-wsu-lt.perfsonar.kanren.net. I think maybe you fixed it but it took some time to clear out the old powstream tasks (this is something we addressed in 4.0.2). I picked through a bunch of the newer tasks on ps-wsu-bw/lt and they seemed ok as well as poked around the archive (e.g. http://ps-dashboard.perfsonar.kanren.net/esmond/perfsonar/archive/?time-range=120&limit=50). Let us know if anything is still amiss. 

Thanks,
Andy





On October 4, 2017 at 1:27:54 AM, Garnizov, Ivan (RRZE) () wrote:

Hello Casey,

 

I can hardly think of a reason for these failures.

Please make sure there are no password statements in your /etc/perfsonar/meshconfig-agent-tasks.conf file for the pS MA in question (in case there are other Esmond references)

 

You should also note, that with the DNS change, there will be additional problems. These will stem from the fact, that pScheduler has a schedule for 24h in advance. So everything that had already been scheduled will be send to the wrong address.

The local DNS caching will further contribute to the problem.

 

Here https://github.com/perfsonar/pscheduler/wiki/Archivers you will also find interesting examples on how to instantiate customized pscheduler tasks with specific measurement archive to get around the problem above in your diagnostics.

 

Regards,

Ivan Garnizov

 

From: [mailto:] On Behalf Of Casey Russell
Sent: Dienstag, 3. Oktober 2017 23:23
To:
Subject: Re: [perfsonar-user] New Central MA

 

Group,

 

     Ok, initially, I thought this was the Esmond authentication tokens (username or ip authentication).  Now I'm not sure.  Today I rebuilt the central MA as Ivan suggested with 3 individual entries for IP address authentication

 

python esmond/manage.py add_user_ip_address kanren_1 164.113.0.0/16

python esmond/manage.py add_user_ip_address kanren_2 198.248.0.0/16

python esmond/manage.py add_user_ip_address kanren_3 69.77.0.0/17

 

and a single user named "kanren7"

 

I went to several of my testing hosts and modified the /etc/perfsonar/meshconfig-agent-tasks.conf file and modified the measurement archive stanzas.  A few hosts have no username and password (to force IP authentication) a few of them have the correct username and password for the "kanren7" user.

 

Virtually all of my tests are still failing to archive to this new MA.  As a reminder, the MA was a clean install of CentOS7 with the centralmanagement bundle. 

 

From a testing host (/var/log/perfsonar/pscheduler.log)

Oct  3 16:14:48 ps-wsu-bw archiver WARNING  13603154: Failed to archive https://localhost/pscheduler/tasks/743139d6-b1e9-4261-8c30-4bc2433a0d20/runs/27a37e6d-23b6-42ab-b9ae-2376694403da to esmond: 401: Invalid token.

Oct  3 16:14:48 ps-wsu-bw archiver WARNING  13603158: Failed to archive https://localhost/pscheduler/tasks/8c30e451-c257-4b70-8bc3-454950b5bab8/runs/250b4304-bf86-4459-801d-642168c147e2 to esmond: 401: Invalid token.

Oct  3 16:14:48 ps-wsu-bw archiver WARNING  13603156: Failed to archive https://localhost/pscheduler/tasks/4ce46425-1294-4f34-8370-ce0ce71a7f0b/runs/ed47fe16-cf32-422d-be30-0d009ffe77f8 to esmond: 401: Invalid token.

Oct  3 16:14:49 ps-wsu-bw archiver WARNING  13603098: Failed to archive https://localhost/pscheduler/tasks/c4456cf7-a91e-4907-b562-7906d6636dff/runs/250f98c1-4cde-41dd-8350-8b82a78c2b31 to esmond: Archiver permanently abandoned registering test after 2 attempt(s): 401: Invalid token.

 

 

from the MA (/var/log/httpd/access_log)

164.113.32.153 - - [03/Oct/2017:16:16:55 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"

164.113.32.153 - - [03/Oct/2017:16:16:55 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"

164.113.32.153 - - [03/Oct/2017:16:16:55 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"

164.113.32.153 - - [03/Oct/2017:16:16:55 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"

164.113.32.153 - - [03/Oct/2017:16:16:55 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"

164.113.32.105 - - [03/Oct/2017:16:16:55 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-693.2.2.el7.x86_64"

164.113.32.153 - - [03/Oct/2017:16:16:55 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.10.3.el6.x86_64"

 

the MA is at https://ps-dashboard.perfsonar.kanren.net/esmond/perfsonar/archive/  (although since that DNS name changed in the last 48 hours and it may be cached in some places, you may want to be safe:  https://164.113.48.16/esmond/perfsonar/archive/  You'll see that a few tests HAVE archived (perhaps 1 out of every 300) but I can't find any rhyme or reason as to which ones or why.  Some of the tests that DID work came from a host where hundreds of other tests have failed both before and after.

 

Should I wait longer?  Is there some process I should restart on the testing host or MA host after making these changes?   Is it possible I've missed some part of the HTTPD configuration or and esmond config step?  anyone have any ideas?

 

 


 

Sincerely,

Casey Russell

Network Engineer

KanREN

phone785-856-9809

2029 Becker Drive, Suite 282
Lawrence, Kansas 66047

linkedintwittertwitter

 

On Tue, Oct 3, 2017 at 10:16 AM, Casey Russell <> wrote:

Ivan,

 

     When I set up the new MA, I did (per the examples) use a single identifier, with multiple IP blocks, for example 

 

python esmond/manage.py add_user_ip_address kanren_v4 164.113.0.0/16 198.248.0.0/16 69.77.0.0/17

 

     Are you saying you've had better luck breaking those up into 3 different entries with 3 different ids like so?

 

python esmond/manage.py add_user_ip_address kanren_1 164.113.0.0/16

python esmond/manage.py add_user_ip_address kanren_2 198.248.0.0/16

python esmond/manage.py add_user_ip_address kanren_3 69.77.0.0/17


 

Sincerely,

Casey Russell

Network Engineer

KanREN

2029 Becker Drive, Suite 282
Lawrence, Kansas 66047

linkedintwittertwitter

 

On Tue, Oct 3, 2017 at 12:14 AM, Garnizov, Ivan (RRZE) <> wrote:

Hello Casey,

 

Could it be the case, that you are using one and the same identifier for all IP registrations?

In my procedures dating back from 3.5.1 I had to generate different ID for every IP added, unless you add them in network groups.

Please note, this might have changed with the upgrades of pS, but it makes also perfect sense, if it is the case to get these messages on your attempts for subsequent IP authorizations and still  get denied on service requests from “authorized” systems.

 

I believe it would be quite easy to check this suggestion for a single IP and then later consider a more global approach.

 

Regards,

Ivan Garnizov

 

From: [mailto:] On Behalf Of Casey Russell
Sent: Freitag, 29. September 2017 23:41
To:
Subject: [perfsonar-user] New Central MA

 

Group,

 

     I've recently activated my new central MA, but posts to the esmond database seem to be failing.  

 

2001:49d0:23c0:1003::2 - - [29/Sep/2017:16:33:37 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.6.3.el6.x86_64"

2001:49d0:23c0:1003::2 - - [29/Sep/2017:16:33:37 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.6.3.el6.x86_64"

2001:49d0:23c0:1003::2 - - [29/Sep/2017:16:33:38 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.6.3.el6.x86_64"

2001:49d0:23c0:1003::2 - - [29/Sep/2017:16:33:38 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.6.3.el6.x86_64"

2001:49d0:23c0:1003::2 - - [29/Sep/2017:16:33:38 -0500] "POST /esmond/perfsonar/archive/ HTTP/1.1" 401 27 "-" "python-requests/2.6.0 CPython/2.6.6 Linux/2.6.32-696.6.3.el6.x86_64"

 

The 401 would indicate that they're "unauthorized" although they should be allowed by IP (v6) 

 

(esmond)[root@ps-dashboard esmond]# python esmond/manage.py add_user_ip_address kanren_v6 2001:49d0::/32

<clipping some stuff here for brevity>

Setting timeseries permissions.

IP 2001:49d0::/32 already assigned to kanren_v6, skipping creation

 

My reading of the documentation indicates if these testing hosts in the mesh are trying to submit an old API key and username, when that fails, it will fall back to IP authorization.  Is that correct?  Is this 401 caused by something in the httpd configs and not esmond specifically?  

 

I'm open to any guidance here.

 

Sincerely,

Casey Russell

Network Engineer

KanREN

2029 Becker Drive, Suite 282
Lawrence, Kansas 66047

linkedintwittertwitter

 

 




Archive powered by MHonArc 2.6.19.

Top of Page