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

Yorc panics attempting to print an error handling a script execution stdout #741

Closed
laurentganne opened this issue May 25, 2021 · 0 comments · Fixed by #743
Closed

Yorc panics attempting to print an error handling a script execution stdout #741

laurentganne opened this issue May 25, 2021 · 0 comments · Fixed by #743
Assignees
Labels
bug Something isn't working

Comments

@laurentganne
Copy link
Contributor

laurentganne commented May 25, 2021

An intermittent issue was seen in the premium version where yorc panics attempting to log an error handling a script execution playbook stdout, the error to log being that this handler failed to close a ssh session.

Stack trace:

[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xdc773a]
goroutine 240 [running]:
github.com/ystia/yorc/v4/prov/ansible.(*executionCommon).executePlaybook(0xc00013ca00, 0x1e009c8, 0xc0003d4900, 0xc00032be01, 0xc000d695c0, 0xbd, 0x1ddacb8, 0xc000524870, 0x0, 0x0)
/var/jenkins_home/workspace/yorc/v4.0.5+premium/2@2/prov/ansible/execution.go:1273 +0x83a
github.com/ystia/yorc/v4/prov/ansible.(*executionScript).runAnsible(0xc0003d42c0, 0x1e009c8, 0xc0003d4900, 0x1, 0x0, 0x0, 0xc000d695c0, 0xbd, 0xc000602f00, 0x300000002)
/var/jenkins_home/workspace/yorc/v4.0.5+premium/2@2/prov/ansible/execution_scripts.go:276 +0xa99
github.com/ystia/yorc/v4/prov/ansible.(*executionCommon).executeWithCurrentInstance(0xc00013ca00, 0x1e00a70, 0xc0003d4900, 0x1, 0x0, 0x0, 0x0, 0x0)
/var/jenkins_home/workspace/yorc/v4.0.5+premium/2@2/prov/ansible/execution.go:1088 +0x2ba7
github.com/ystia/yorc/v4/prov/ansible.(*executionCommon).execute(0xc00013ca00, 0x1e00a70, 0xc0016033e0, 0x1, 0x0, 0x0)
/var/jenkins_home/workspace/yorc/v4.0.5+premium/2@2/prov/ansible/execution.go:785 +0x515

Priority

Medium

  • High = We should stop anything we are doing and do this. If you're writing this calmly, you should probably choose another option. If it's really that urgent, please make sure we read this.
  • Medium = It's important that we do this within a few days.
  • Low = We will consider this on our next sprint planning.

(Please be aware that your priority may not match ours, we'll use this as guidance only).

@laurentganne laurentganne added the bug Something isn't working label May 25, 2021
@laurentganne laurentganne self-assigned this May 25, 2021
@laurentganne laurentganne changed the title Yorc panics attempting the print an error handling an ansible playbook stdout Yorc panics attempting the print an error handling a script execution stdout May 25, 2021
@laurentganne laurentganne changed the title Yorc panics attempting the print an error handling a script execution stdout Yorc panics attempting to print an error handling a script execution stdout May 25, 2021
laurentganne added a commit that referenced this issue May 25, 2021
Fixed name of variable containing the error of script output hander stop
laurentganne added a commit that referenced this issue May 25, 2021
…t-handler-err

[Backport 4.0 ] Yorc panics attempting to print an error handling a script execution stdout
loicalbertin added a commit that referenced this issue Jun 11, 2021
…t-handler-err

[Backport 4.1 ] Yorc panics attempting to print an error handling a script execution stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant