Project

General

Profile

Actions

Bug #1793

closed

Sometimes there are multiple names for a single host, which causes appion to choke

Added by Amber Herold over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
05/11/2012
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.1.0
Show in known bugs:
Yes
Workaround:

Add Alias in config file


Description

When a python script runs, it uses uname()[0] to find the hostname. On guppy, it may return guppy.emg.nysbc.org, which is recorded into the database under apAppionjobData. When we try to check the status of the job from the web, we can't establish a connection.

To work around this I have added an alias to the config file:

$PROCESSING_HOSTS[] = array('host' => 'guppy.scripps.edu',
'alias' => 'guppy.emg.nysbc.org', <----------------------- !!! this is new and optional !!!
'nodesdef' => '2',
'nodesmax' => '16',
etc....

When we look up a host in the config file, if the hostname we are trying to connect to matches the alias name, we will still create the cluster object, using the "host" field as the name.

This needs to be merged to the trunk and 2.2 branch.

Actions

Also available in: Atom PDF