Project

General

Profile

Bug #14036

Slave frontend in HA setup fails to look up the master frontend when using python bindings

Added by Parag Mhashilkar almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Parag Mhashilkar
Category:
-
Target version:
Start date:
10/04/2016
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

FrontendName thats read from the config file is of type unicode. This results in the constraints being converted to unicode before they are passed to bindings. Python bindings do not work well with unicode strings and the call crashes with following errors. As a result both master and slave stay active and keep on over writing each others classads

[2016-10-03 16:52:33,244] ERROR: glideinFrontend:397: Exception talking to the factory_pool cmsgwms-factory.fnal.gov to get the status of Master frontend FIFE-ITB-FNAL-GWMSFrontend: 
Traceback (most recent call last):
  File "/usr/sbin/glideinFrontend", line 383, in shouldHibernate
    master_classads = glideinFrontendInterface.findMasterFrontendClassads(factory_pool_node, master_frontend_name)
  File "/usr/lib/python2.6/site-packages/glideinwms/frontend/glideinFrontendInterface.py", line 169, in findMasterFrontendClassads
    status.load('(%s)&&(%s)' % (status_constraint, frontend_constraint))
  File "/usr/lib/python2.6/site-packages/glideinwms/lib/condorMonitor.py", line 460, in load
    self.stored_data = self.fetch(constraint, format_list)
  File "/usr/lib/python2.6/site-packages/glideinwms/lib/condorMonitor.py", line 566, in fetch
    format_list=format_list)
  File "/usr/lib/python2.6/site-packages/glideinwms/lib/condorMonitor.py", line 392, in fetch
    format_list=format_list)
  File "/usr/lib/python2.6/site-packages/glideinwms/lib/condorMonitor.py", line 589, in fetch_using_bindings
    results = collector.query(adtype, constraint, attrs)
QueryError: Error executing htcondor query with constraint ((GlideinMyType=?="glideclientglobal")||(GlideinMyType=?="glideclient"))&&((FrontendName=?="FIFE-ITB-FNAL-GWMSFrontend")&&(FrontendHAMode=!="slave")) and format_list None: Error querying pool cmsgwms-factory.fnal.gov using python bindings: No registered converter was able to produce a C++ rvalue of type std::string from this Python object of type unicode

History

#1 Updated by Parag Mhashilkar almost 4 years ago

  • Status changed from New to Resolved

Talked to Marco Mambelli about the change. Merged it to branch_v3_2 and master

#2 Updated by Parag Mhashilkar over 3 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF