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

Implement retry on vCenter shutdown operation #3337

Closed
7 tasks
sergiojvg opened this issue May 14, 2019 · 1 comment
Closed
7 tasks

Implement retry on vCenter shutdown operation #3337

sergiojvg opened this issue May 14, 2019 · 1 comment

Comments

@sergiojvg
Copy link
Contributor

Description
Some vCenter drivers (like shutdown) can fail with the following error:

Mon May 13 21:10:51 2019 [Z0][VM][I]: New LCM state is SHUTDOWN
Mon May 13 21:10:58 2019 [Z0][VMM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/vmm/vcenter/shutdown 'vm-*' '*' 16 *
Mon May 13 21:10:58 2019 [Z0][VMM][E]: shutdown: Shutdown of VM vm-* on vCenter cluster Cluster failed due to "SystemError: A general system error occurred: Invalid fault"
Mon May 13 21:10:58 2019 [Z0][VMM][I]: /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2539:in `rescue in shutdown'
Mon May 13 21:10:58 2019 [Z0][VMM][I]: /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2531:in `shutdown'
Mon May 13 21:10:58 2019 [Z0][VMM][I]: /var/lib/one/remotes/vmm/vcenter/shutdown:64:in `<main>'
Mon May 13 21:10:58 2019 [Z0][VMM][I]: Failed to execute virtualization driver operation: shutdown.

This should be fixed using a retry.

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@sergiojvg
Copy link
Contributor Author

sergiojvg commented May 14, 2019

PR: #3338 --> master, --> one-5.8
PR with vcenterrc file: #3350 --> master
Resolved issues: OpenNebula/docs#630 --> one-5.8-maintenance
Doc: OpenNebula/docs#631 --> master --> one-5.8

sergiojvg added a commit that referenced this issue May 16, 2019
sergiojvg added a commit that referenced this issue May 17, 2019
sergiojvg added a commit that referenced this issue May 17, 2019
tinova pushed a commit that referenced this issue May 20, 2019
* F #3337: Retry if failure during shutdown

* F #3337: Configurable number of retries

* F #3337: Extend to deploy and cancel

* F #3337: Use retry_interval variable

* Update shutdown
tinova pushed a commit that referenced this issue May 20, 2019
* F #3337: Retry if failure during shutdown

* F #3337: Configurable number of retries

* F #3337: Extend to deploy and cancel

* F #3337: Use retry_interval variable

* Update shutdown

(cherry picked from commit 73e16b9)
tinova pushed a commit that referenced this issue May 20, 2019
* F #3337: Configure retries from vcenterrc

* F #3337: Add retry_interval variable
@tinova tinova closed this as completed May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants