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 #1

Updated by Amber Herold over 12 years ago

  • Assignee changed from Amber Herold to Sargis Dallakyan

Sargis, can you please update all our config files for our 2.2 and trunk installations to include this 'alias' parameter for at least guppy. I'm not sure if other processing hosts have the same issue at this point. Then please assign this back to me so that I can get Daniel to test it.

Actions #2

Updated by Sargis Dallakyan over 12 years ago

  • Assignee changed from Sargis Dallakyan to Amber Herold

Thank you Amber. I've added 'alias' => 'guppy.emg.nysbc.org' to config.php on longboard:/srv/www/html/betamyamiweb.

I also checked guppy:/etc/hosts and here is how it looks like:


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1        localhost.localdomain localhost

10.1.0.1        guppy.emg.nysbc.org guppy
137.131.205.69        guppy.scripps.edu

This might be the reason uname()[0] returns guppy.emg.nysbc.org instead of guppy.scripps.edu.

Actions #3

Updated by Amber Herold over 12 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Amber Herold to Anchi Cheng
  • Priority changed from Urgent to Normal
  • Show in known bugs changed from No to Yes
  • Workaround updated (diff)
Actions #4

Updated by Anchi Cheng over 12 years ago

  • Status changed from In Code Review to Closed

code good. This is around for a while now. It must have worked.

Actions

Also available in: Atom PDF