-
Notifications
You must be signed in to change notification settings - Fork 200
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
verdi calcjob gotocomputer
: Add proxy command
#4761
Conversation
I basically got sick enough of this not working on Piz Daint that I finally got around to fixing it. 😅 |
Codecov Report
@@ Coverage Diff @@
## develop #4761 +/- ##
===========================================
+ Coverage 79.58% 79.62% +0.04%
===========================================
Files 519 519
Lines 37093 37095 +2
===========================================
+ Hits 29517 29532 +15
+ Misses 7576 7563 -13
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
70e71c8
to
ea78f2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @mbercx , I ran into this in #4100 (comment) as well and it's good to fix.
Just to be sure - this change will make sure to read the proxycommand from the profile as well, is that correct?
Happy to do a proper review once the tests pass
just to mention a related issue that might make sense to fix in one go as your touching this bit of the code #3311 (optional, not required of course) |
ea78f2d
to
ef73455
Compare
@ltalirz tests are still failing because of #4860, but I think I found the issue that was causing them to fail previously. It was a little subtle. In the aiida-core/aiida/transports/plugins/ssh.py Lines 430 to 432 in 5ab86cc
This makes sense, since this variable is later passed to the Re #3311: Now that I've had to explore the transport code a bit, I'd be happy to work on this as well, but would fix this in a separate PR since it's not yet clear what the best solution is and although it is related to the transport code, the required changes are still quite different from those made in this PR. :) |
741f807
to
19dfe26
Compare
I'm not sure, actually. You mean the default set in the The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @mbercx , this looks good to me
No, I meant that the
When you set up the computer, you can select whether AiiDA should parse the ssh/config or not. |
I leave the merge to you. |
But, this would only work in case the user has set the Host ela
HostName ela.cscs.ch
User mbercx
IdentityFile ~/.ssh/id_rsa-daint
Host daint
HostName daint.cscs.ch
User mbercx
IdentityFile ~/.ssh/id_rsa-daint
ProxyJump ela (Which is in line with our documentation). But AiiDA requests the "fully qualified" host name: -H, --hostname HOSTNAME The fully qualified hostname of the computer
(e.g. daint.cscs.ch). Use "localhost" when
setting up the computer that AiiDA is
running on. [required] So this is of course why
This faces the same problem. And of course PS: Actually, after doing a bit of digging while writing this comment, my whole explanation is raised in this issue. 😅 I'll continue the discussion there! |
Thanks for the review, Leo! Will merge once #4860 is merged. |
thanks, will unsubscribe from this pr |
19dfe26
to
e62915e
Compare
Currently the `verdi calcjob gocomputer` command does not work in case the connection to the remote computer is via a proxy. Here we add the `ProxyCommand` option to the parameters for the `ssh` command.
e62915e
to
fd7e641
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already approved by @ltalirz , just leaving the formal thumbs up.
Currently the
verdi calcjob gocomputer
command does not work in casethe connection to the remote computer is via a proxy. Here we add the
ProxyCommand
option to the parameters for thessh
command.