GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CLOUDSTACK-8611. CS waits indefinitely for CheckS2SVpnConnectionsComm… by likitha · Pull Request #561 · apache/cloudstack

Conversation

@likitha

@likitha likitha commented Jul 6, 2015

Copy link
Copy Markdown

…and to return.

While remote executing commands through ssh, handle channel condition of EOF because we wait for the the condition.

CheckS2SVpnConnectionsCommand execution involves executing a script (checkbatchs2svpn.sh) in the virtual router. Once CS has opened a session to a virtual router and executed a script in the router, it waits indefinitely till the session either times-out or the exit status of the remote process is available. But it is possible that an EOF is reached by the process in the router and the router never set the exit status.

References -

  1. Some servers never send the exist status, or occasionally "forget" to do so (http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.hudson/trilead-ssh2/build212-hudson-1/com/trilead/ssh2/ChannelCondition.java).
  2. Get the exit code/status from the remote command - if available. Be careful - not all server implementations return this value - (http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.hudson/trilead-ssh2/build212-hudson-1/com/trilead/ssh2/Session.java#Session.waitForCondition%28int%2Clong%29).

Hence if exit status is not set then the command will never return.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Likitha Shetty
CLOUDSTACK-8611. CS waits indefinitely for CheckS2SVpnConnectionsComm…
b9181c6
…and to return.

While remote executing commands through ssh, handle channel condition of EOF because we wait for the the condition.
@asfbot

asfbot commented Jul 6, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #689 SUCCESS
This pull request looks good

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@remibergsma

remibergsma commented Aug 9, 2015

Copy link
Copy Markdown
Contributor

Who wants to step in and finish this work? It seems the original author is not able to finish it. If no one steps in, we'll have to close the PR without merging it so please help :-).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

remibergsma added a commit to remibergsma/cloudstack that referenced this pull request Aug 17, 2015
@remibergsma
Closing PRs older than a month without activity
8ade5dc
This closes apache#577
This closes apache#566
This closes apache#562
This closes apache#561
This closes apache#556
This closes apache#555
This closes apache#554
This closes apache#548
This closes apache#544
This closes apache#540
This closes apache#508
This closes apache#384
This closes apache#372
@remibergsma remibergsma mentioned this pull request Aug 17, 2015
Closing PRs older than 1 month and without activity #706
Closed
remibergsma added a commit to remibergsma/cloudstack that referenced this pull request Aug 17, 2015
@remibergsma
Closing PRs older than a month without activity
aa193a5
This closes apache#577
This closes apache#566
This closes apache#562
This closes apache#561
This closes apache#556
This closes apache#555
This closes apache#554
This closes apache#548
This closes apache#544
This closes apache#540
This closes apache#384
This closes apache#372
remibergsma added a commit to remibergsma/cloudstack that referenced this pull request Aug 17, 2015
@remibergsma
Closing PRs older than a month without activity
7d28b3d
This closes apache#577
This closes apache#566
This closes apache#562
This closes apache#561
This closes apache#556
This closes apache#555
This closes apache#554
This closes apache#548
This closes apache#544
This closes apache#540
This closes apache#384
This closes apache#372
@GabrielBrascher

GabrielBrascher commented Mar 7, 2016

Copy link
Copy Markdown
Member

Shouldn't the class throw a less generic Exception? A good choice might be the com.cloud.utils.ssh.SshException.SshException(String).
Although this change is out of this PR scope, this got my attention.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DaanHoogland

DaanHoogland commented Mar 7, 2016

Copy link
Copy Markdown
Contributor

@GabrielBrascher If you want to work on this I suggest you pull in the pr branch and push it to your own clone to make a new PR. @likitha has left the community

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@GabrielBrascher

GabrielBrascher commented Mar 7, 2016

Copy link
Copy Markdown
Member

That's fair enough @DaanHoogland, I will see what I can do for this PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 1, 2016
gabrascher
Handle SSH if server "forget" to send exit status.
e4e60ef
Continuing the work started by https://github.com/likitha cherry-pigking
commit (b9181c6) from PR
apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 1, 2016
gabrascher
Handle SSH if server "forget" to send exit status.
96d76d4
Cherry-picked the work started by https://github.com/likitha
commit (b9181c6) from PR
apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.
@GabrielBrascher GabrielBrascher mentioned this pull request Apr 1, 2016
CLOUDSTACK-8611:Handle SSH if server "forget" to send exit status #1459
Merged
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 4, 2016
gabrascher
Handle SSH if server "forget" to send exit status.
23324ea
Cherry-picked the work started by https://github.com/likitha
commit (b9181c6) from PR
apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the cherry picked commit is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, this commit brings that file changes, which at most were not made
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 4, 2016
gabrascher
Handle SSH if server "forget" to send exit status.
ec1ad22
Cherry-picked the work started by https://github.com/likitha
commit (b9181c6) from PR
apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the cherry picked commit is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, this commit brings that file changes, which at most were not made
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 5, 2016
gabrascher
Handle SSH if server "forget" to send exit status
2b1bdb1
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 7, 2016
gabrascher
Handle SSH if server "forget" to send exit status
4f67128
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 7, 2016
gabrascher
Handle SSH if server "forget" to send exit status
93f3bdd
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 7, 2016
gabrascher
Handle SSH if server "forget" to send exit status
a0ad65b
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 7, 2016
gabrascher
Handle SSH if server "forget" to send exit status
82a5d0f
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 8, 2016
gabrascher
Handle SSH if server "forget" to send exit status
d832d47
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 8, 2016
gabrascher
Handle SSH if server "forget" to send exit status
47cbe31
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 9, 2016
gabrascher
Handle SSH if server "forget" to send exit status
2949100
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
GabrielBrascher pushed a commit to GabrielBrascher/cloudstack that referenced this pull request Apr 20, 2016
gabrascher
Handle SSH if server "forget" to send exit status
abae908
Continued the work started by https://github.com/likitha
commit (b9181c6) from PR apache#561.

CS waits indefinitely for CheckS2SVpnConnectionsComm and to return.
While remote executing commands through ssh, handle channel condition of
EOF because we wait for the the condition.

The SshHelper of the PR apache#561 is of another path from the
current master, its path was
https://github.com/likitha/cloudstack/commits/CLOUDSTACK-8611/utils/src/com/cloud/utils/ssh/SshHelper.java;
thus, although this commit brings changes from PR apache#561, I did not
cherry-picked to keep the master file, otherwise it would look that I
had changed all the file.
by me.
@asfgit asfgit closed this in d518b61 Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@likitha @asfbot @remibergsma @GabrielBrascher @DaanHoogland @wilderrodrigues
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.