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: Andrew Lake <>
  • To: "Liu, Dengfeng (NIH/CIT) [C]" <>, "" <>
  • Subject: Re: [perfsonar-user] Wsgi pscheduler module and logger modules
  • Date: Mon, 24 Apr 2017 10:44:03 -0700
  • Ironport-phdr: 9a23:bfYm2BTooh9yhOoByvaabMvgw9psv+yvbD5Q0YIujvd0So/mwa6yYBKN2/xhgRfzUJnB7Loc0qyN4v6mBTRLuM/c+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG3oAnLucQanYRuJrssxhbJv3BFZ/lYyWR0KFyJgh3y/N2w/Jlt8yRRv/Iu6ctNWrjkcqo7ULJVEi0oP3g668P3uxbDSxCP5mYHXWUNjhVIGQnF4wrkUZr3ryD3q/By2CiePc3xULA0RTGv5LplRRP0lCsKMSMy/XrJgcJskq1UvBOhpwR+w4HKZoGVKOF+db7Zcd8DWGZNQtpdWylHD4yydYsPC/cKM/heoYfzulACqQKyCAmpCO7p1zRGhGL53bci3uohEw7G0gsuEN0AvnrXsdv7KrsdXPuvw6XU1zjOdelb1Sv/5YXObxsvoeuMXbV1ccfJ1UQvER7Kjk+Opo3rIjib0P4Cs2uF4OF9Uu+gkWgnpBxxozW02MgskZPFhoQLxVDY7Ch0xps+K96gSENjfNKoDphduzuUOodsTc4uXntktSQnxrEep5K3YCwHxI4kyhPfcfCLboyF7gz5WOqMJTp1hnRoc6+liRmo60iv0Oj8W9G00FlUqipFlcHBtn4T2BHc8MSHTuBy/kO71TaA0ADT9PlIIUEylaXFN54s2qM8moQQvEjZECL6gkr7gLKMekgm5+Sk8+Hnba/npp+YOY90kAb+MqE2l8OlB+Q3LwgPUnOF9uSnzrHj+1P2QKlSgv0sjqbZqIzaJdgcpqOhGw9azJwj6xikDzeh1tQXh2MHIEtYeBKckYfpIUrDIPT5Dfekn1Ssiylny+rHPr3nHpXCMGLDkLH/crZh9UJQ0hQ8ws1C58EcNrZUatbyRwu5mNHeARE0NQP8g8DGKJJW979fEVGkN+XRZK/ft1CG6+QgZe2NeacTuTa7JP87sbqmx2c0g1EGeq+gx94Kc32iNvVgP0iDZ3fw2JEMHXpA9l4mQfbkk1qEWCQWem2/RYo94C02EoSrEd2FS4yw1u+vxiC+S7RQanpLFRioGHTlP9GNXfsdQC+JZMlsjmpXBvCaV4Y92ET250fBwL19I7+Ro3VFuA==

Hi,

Do you have any configuration management software running (puppet, ansible, cfengine, etc)? That file used to get added by pre-2.1 versions of esmond on install and only on install. There are no scripts that I can think of at the moment that we ship or have shipped that would recreate it. 

Thanks,
Andy



On April 24, 2017 at 12:43:40 PM, Liu, Dengfeng (NIH/CIT) [C] () wrote:

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