rickmcgeer / TransCloud

Software for the TransCloud project
5 stars 1 forks source link

fab only works from a node within an existing cluster; crashes when used from a laptop/desktop #53

Closed rickmcgeer closed 11 years ago

cmatthew commented 11 years ago

Specifics?

It works on my laptop and desktop. There are some packages which must be installed first though.

On 2013-03-05, at 3:13 PM, rickmcgeer notifications@github.com wrote:

— Reply to this email directly or view it on GitHub.

rickmcgeer commented 11 years ago

Sorry,  I should have put in more info.  It was in taskmanager.py; a key error when it didn't recognize the /16 I was on (15.9). It was trying to figure our which cluster I was on

Sent via the Samsung Galaxy S™III, an AT&T 4G LTE smartphone

-------- Original message -------- From: Chris Matthews notifications@github.com Date:
To: rickmcgeer/TransCloud TransCloud@noreply.github.com Cc: rickmcgeer rick@mcgeer.com Subject: Re: [TransCloud] fab only works from a node within an existing cluster; crashes when used from a laptop/desktop (#53)

Specifics?

It works on my laptop and desktop. There are some packages which must be installed first though.

On 2013-03-05, at 3:13 PM, rickmcgeer notifications@github.com wrote:

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

rickmcgeer commented 11 years ago

Here's the error trace: fab deploy_web_server Traceback (most recent call last): File "/Library/Python/2.6/site-packages/fabric/main.py", line 651, in main docstring, callables, default = load_fabfile(fabfile) File "/Library/Python/2.6/site-packages/fabric/main.py", line 165, in load_fabfile imported = importer(os.path.splitext(fabfile)[0]) File "/Users/rick/Projects/TransCloud/gisdemo/fabfile.py", line 5, in

from clusters import * File "/Users/rick/Projects/TransCloud/gisdemo/clusters.py", line 62, in import taskmanager File "./mq/taskmanager.py", line 111, in class TaskClient(): File "./mq/taskmanager.py", line 112, in TaskClient def **init**(self, queue=get_local_site_name(),prefix=""): File "./mq/taskmanager.py", line 44, in get_local_site_name site_name = _ip_to_site[front] KeyError: '172.26' I looked at the code. It's trying to figure out which site I'm at, since the key is the /16 I'm at. On Tue, Mar 5, 2013 at 3:28 PM, Chris Matthews notifications@github.comwrote: > Specifics? > > It works on my laptop and desktop. There are some packages which must be > installed first though. > > On 2013-03-05, at 3:13 PM, rickmcgeer notifications@github.com wrote: > > > — > > Reply to this email directly or view it on GitHub. > > — > Reply to this email directly or view it on GitHubhttps://github.com/rickmcgeer/TransCloud/issues/53#issuecomment-14472683 > .
cmatthew commented 11 years ago

My bad! I will fix that. On 2013-03-05, at 5:50 PM, rickmcgeer notifications@github.com wrote:

Here's the error trace: fab deploy_web_server Traceback (most recent call last): File "/Library/Python/2.6/site-packages/fabric/main.py", line 651, in main docstring, callables, default = load_fabfile(fabfile) File "/Library/Python/2.6/site-packages/fabric/main.py", line 165, in load_fabfile imported = importer(os.path.splitext(fabfile)[0]) File "/Users/rick/Projects/TransCloud/gisdemo/fabfile.py", line 5, in

from clusters import \* File "/Users/rick/Projects/TransCloud/gisdemo/clusters.py", line 62, in import taskmanager File "./mq/taskmanager.py", line 111, in class TaskClient(): File "./mq/taskmanager.py", line 112, in TaskClient def **init**(self, queue=get_local_site_name(),prefix=""): File "./mq/taskmanager.py", line 44, in get_local_site_name site_name = _ip_to_site[front] KeyError: '172.26' I looked at the code. It's trying to figure out which site I'm at, since the key is the /16 I'm at. On Tue, Mar 5, 2013 at 3:28 PM, Chris Matthews notifications@github.comwrote: > Specifics? > > It works on my laptop and desktop. There are some packages which must be > installed first though. > > On 2013-03-05, at 3:13 PM, rickmcgeer notifications@github.com wrote: > > > — > > Reply to this email directly or view it on GitHub. > > — > Reply to this email directly or view it on GitHubhttps://github.com/rickmcgeer/TransCloud/issues/53#issuecomment-14472683 > . > > — > Reply to this email directly or view it on GitHub.
cmatthew commented 11 years ago

I have added a new cluster "undefined.location" which sites now default to when their IP address can't be back tracked to a existing cluster prefix. I have made /tmp/ the default location for that site.