Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote suite access bug. #2340

Closed
hjoliver opened this issue Jul 2, 2017 · 1 comment
Closed

Remote suite access bug. #2340

hjoliver opened this issue Jul 2, 2017 · 1 comment
Assignees
Labels
bug Something is wrong :(
Milestone

Comments

@hjoliver
Copy link
Member

hjoliver commented Jul 2, 2017

Access to a suite running under another user account fails with a traceback if --host is not specified (should default to localhost):

$  cylc scan -a
foo vagrant@localhost:43069

$ cylc ping --debug --user=vagrant foo
Traceback (most recent call last):
  File "/home/vagrant/cylc.git/bin/cylc-ping", line 81, in <module>
    main()
  File "/home/vagrant/cylc.git/bin/cylc-ping", line 64, in main
    pclient.get_info('ping_suite')  # (no need to check the result)
  File "/home/vagrant/cylc.git/lib/cylc/network/https/suite_info_client.py", line 39, in get_info
    return self.call_server_func(COMMS_INFO_OBJ_NAME, *command, **arg_dict)
  File "/home/vagrant/cylc.git/lib/cylc/network/https/base_client.py", line 97, in call_server_func
    self._load_contact_info()
  File "/home/vagrant/cylc.git/lib/cylc/network/https/base_client.py", line 345, in _load_contact_info
    self.suite, self.owner, self.host)
  File "/home/vagrant/cylc.git/lib/cylc/suite_srv_files_mgr.py", line 350, in load_contact_file
    self.FILE_BASE_CONTACT, reg, owner, host, content=True)
  File "/home/vagrant/cylc.git/lib/cylc/suite_srv_files_mgr.py", line 269, in get_auth_item
    value = self._load_remote_item(item, reg, owner, host)
  File "/home/vagrant/cylc.git/lib/cylc/suite_srv_files_mgr.py", line 611, in _load_remote_item
    command += ['-n', owner + '@' + host, script]
TypeError: cannot concatenate 'str' and 'NoneType' objects
@hjoliver hjoliver added the bug Something is wrong :( label Jul 2, 2017
@hjoliver hjoliver added this to the next release milestone Jul 2, 2017
@matthewrmshin
Copy link
Contributor

This is another aspect of the original description of #526 - which says we should try looking for the port contact file in the local file system before using non-interactive SSH. (Obviously, the ssl.cert issue highlighted in #2341 makes this a bit more complicated.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

No branches or pull requests

2 participants