Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Wsgi pscheduler module and logger modules

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Wsgi pscheduler module and logger modules


Chronological Thread 
  • From: "Liu, Dengfeng (NIH/CIT) [C]" <>
  • To: Andrew Lake <>, "" <>, Mark Feit <>
  • Subject: Re: [perfsonar-user] Wsgi pscheduler module and logger modules
  • Date: Mon, 24 Apr 2017 16:43:29 +0000
  • Accept-language: en-US
  • Authentication-results: es.net; dkim=none (message not signed) header.d=none;es.net; dmarc=none action=none header.from=nih.gov;
  • Ironport-phdr: 9a23:w4NiuhTzzOgDvHGxekO/IRJnA9psv+yvbD5Q0YIujvd0So/mwa67ZRSGt8tkgFKBZ4jH8fUM07OQ6PG+HzBYqs/Z6zgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal8IRiyrAjdrMYbjZdtJqos1hfErGZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zMlMd+kLxUrw6gpxxnwo7bfoeVNOZlfqjAed8WXHdNUtpNWyBEBI6zYZEPD+4cNuhGqYfzqUYFoR+nCQStAe/izCJDiH3r0q0gy+kvER/I0hE8H9wAs3rUotf6NKYOXu+616TH1ynPY+9M1Dvh9ITFchYsquyMU7JqdsrRzFEiGw3DgFWRtIzpJy6e2OoTvGid4OpgW/ygi2goqwpspjSh3sQihIvSio8LyV7K6yB1y5sxKtCmTkF3b8OvHZxNuC6EMYt2Tc0iTH9uuCY10LEGvZ+7fDURxZQhxh7fa+aLc4eP4hL9TeucJypzinF9eL+nmhq+70utxvfiWsS6zVpGtC5InsXWunwQyRDe5dCLRuV880u92zuC0g7T5v9aLU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wnVG4PTlUiFzeCneblKmGbo/X2AhUSDvV0QBAt+XKTZdXEZekbMq9nlvAXPQ6L4Wpo9NQ4Ug+qDN+8CRtDvgltLQvirePL/QyWaulvxTSWj8/nEOIbnfWoT0SPSTkwFjigV/HbAOg8gUHTy61nCBSBjQAq8K3jn9vNz/TbiFhE5
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

The file /etc/httpd/conf.d/apache-esmond.conf exists and after I remove it, that file got created automatically after some time. 

Dengfeng



From: Andrew Lake <>
Sent: Monday, April 24, 2017 11:22 AM
To: ; Liu, Dengfeng (NIH/CIT) [C]; Mark Feit
Subject: Re: [perfsonar-user] Wsgi pscheduler module and logger modules
 
Hi,

Any chance you have anything else setup that uses mond_wsgi (e.g. globus/gridftp) on that host? or does /etc/httpd/conf.d/apache-esmond.conf exists and what are its contents if so (it shouldn't exists so if it does that might be a pointer to the problem)?

To answer your question more fully yes, on CentOS 6 there are two versions of python used by perfSONAR, the stock python 2.6 that is the system default and a version of python 2.7 that it from the CentOS SCL repo. SCL stansd for Software Collections and is repo where slightly newer version of software is provided that require some special steps to use. The Python 2.7 version is needed for esmond, which in turn pulls in some other SCL requirements like the python 2.7 version of mod_wsgi. For this reason, we quarantine esmond, python27 and python27-mod_wsgi off into httpd24 instead of the stock httpd where everything else runs. This is actually the default CentOS SCL setup for running these types of things. We then have the stock httpd process act as a reverse proxy to the httpd24 instance for all /esmond requests. Not ideal, but what we have to do to get the right versions for the tools. One advantage of moving to CentOS 7 is that all this nonsense goes away. It ships with python 2.7 as the default and everything uses that.

Hope that helps,
Andy



On April 24, 2017 at 10:53:32 AM, Liu, Dengfeng (NIH/CIT) [C] () wrote:

Seems the python home is using /usr/lib/esmond, which is 2.7, but for pscheduler is using 2.6.6.


Dengfeng





From: Liu, Dengfeng (NIH/CIT) [C]
Sent: Monday, April 24, 2017 9:49 AM
To: Mark Feit;
Cc: Andrew Lake
Subject: Re: [perfsonar-user] Wsgi pscheduler module and logger modules
 

also which version of python this wsgi is using? Seems for centos 6, python has multiple version come with perfsonar.


Dengfeng Liu

NIH/CIT/NSS
3014967328(o)
3018302642(c)




From: <> on behalf of Liu, Dengfeng (NIH/CIT) [C] <>
Sent: Friday, April 21, 2017 5:12 PM
To: Mark Feit;
Cc: Andrew Lake
Subject: Re: [perfsonar-user] Wsgi pscheduler module and logger modules
 

seems ok, rpm -V python-libs gives no output.


if comment out the import logging, error will show in log:

Traceback (most recent call last):
  File "/var/www/pscheduler-server/pscheduler-api-server.wsgi", line 10, in <module>
    from pschedulerapiserver import application
  File "./pschedulerapiserver/__init__.py", line 5, in <module>
ImportError: No module named pscheduler
Traceback (most recent call last):
  File "/var/www/pscheduler-server/pscheduler-api-server.wsgi", line 10, in <module>
    from pschedulerapiserver import application
  File "./pschedulerapiserver/__init__.py", line 5, in <module>
ImportError: No module named pscheduler

Dengfeng Liu

NIH/CIT/NSS
3014967328(o)
3018302642(c)




From: Mark Feit <>
Sent: Friday, April 21, 2017 4:59 PM
To: Liu, Dengfeng (NIH/CIT) [C];
Cc: Andrew Lake
Subject: Re: [perfsonar-user] Wsgi pscheduler module and logger modules
 

Liu, Dengfeng (NIH/CIT) [C] writes:

 

My upgrade shows error:

  File "/var/www/pscheduler-server/pscheduler-api-server.wsgi", line 5, in <module>
    import logging
ImportError: No module named logging


that gives http access problem.

Anyone saw this issue?

 

That sounds like something is missing from your system. 

 

The logging module is part of the standard Python library, and it might be that pScheduler is the first part of perfSONAR to use it.  If you’re on a CentOS system, this module would be in the python-libs RPM; you can run “rpm -V python-libs” to verify that everything in that module is in place.

 

--Mark

 




Archive powered by MHonArc 2.6.19.

Top of Page