SeattleTestbed / attic

ARCHIVAL: Full mirror of SeattleTestbed's SVN in early 2014. We use GitHub since!
MIT License
0 stars 1 forks source link

openconnection not overwritten in seash with new dylink #1366

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

In the NAT-enabled seash, I get a ip not valid error:


asdf@ !> browse
['2d96314749fa1fcacad62d499a91abe435265dc6.zenodotus.poly.edu:1224']
  File "/usr/lib/python2.7/threading.py", line 524, in __bootstrap
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
  File "/usr/lib/python2.7/threading.py", line 504, in run
  File "/home/leonwlaw/seattle/seattle_repy/emultimer.py", line 115, in wrapped_                                                                                                                                                             func
  File "parallelize", line 196, in function_to_run
  File "parallelize", line 308, in parallelize_execute_function
  File "/home/leonwlaw/seattle/seattle_repy/seash_helper.py", line 420, in brows                                                                                                                                                             e_target
  File "/home/leonwlaw/seattle/seattle_repy/nmclient", line 234, in nmclient_cre                                                                                                                                                             atehandle
  File "/home/leonwlaw/seattle/seattle_repy/nmclient", line 292, in nmclient_raw                                                                                                                                                             say
  File "/home/leonwlaw/seattle/seattle_repy/nmclient", line 83, in nmclient_rawc                                                                                                                                                             ommunicate
  File "sockettimeout", line 296, in timeout_openconnection
  File "/home/leonwlaw/seattle/seattle_repy/emulcomm.py", line 1263, in openconn                                                                                                                                                             ection
An error occurred: Provided destip is not valid! IP: '2d96314749fa1fcacad62d499a                                                                                                                                                             91abe435265dc6.zenodotus.poly.edu'
Affected vessels: 2d96314749fa1fcacad62d499a91abe435265dc6.zenodotus.poly.edu:12                                                                                                                                                             24.
Could not add any new targets.
asdf@ !>
Exiting due to EOF (end-of-file) keystroke

The traceback indicates that we are not utilizing the NAT traversal code introduced in r7084. This is related to the new version of dylink from r7110. Dependencies of nmclient are initialized with the vanilla openconnection when importing advertise.repy and other libraries. Since the new dylink caches the old modules, they do not receive the new openconnection when we import nmclient.