-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fixed XenOrchestra inventory plugin failing due to not checking response ID. #6227
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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 for your contribution!
I have made the changes you suggested. Thanks :) |
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
Co-authored-by: Felix Fontein <felix@fontein.de>
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #6244 🤖 @patchback |
@lirkwood thanks for your contribution! |
…nse ID. (#6227) * Added call method to select proper response from xo server * Added changelog fragment * Removed excess blank lines * Moved period in changelog fragment * Made suggested changes * Remove f-strings for Python 2.7 compatibility Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Linus Kirkwood <lkirkwood@allette.com.au> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit cd70645)
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #6245 🤖 @patchback |
…nse ID. (#6227) * Added call method to select proper response from xo server * Added changelog fragment * Removed excess blank lines * Moved period in changelog fragment * Made suggested changes * Remove f-strings for Python 2.7 compatibility Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Linus Kirkwood <lkirkwood@allette.com.au> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit cd70645)
…lugin failing due to not checking response ID. (#6244) Fixed XenOrchestra inventory plugin failing due to not checking response ID. (#6227) * Added call method to select proper response from xo server * Added changelog fragment * Removed excess blank lines * Moved period in changelog fragment * Made suggested changes * Remove f-strings for Python 2.7 compatibility Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Linus Kirkwood <lkirkwood@allette.com.au> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit cd70645) Co-authored-by: lirkwood <linuskirkwood@gmail.com>
…lugin failing due to not checking response ID. (#6245) Fixed XenOrchestra inventory plugin failing due to not checking response ID. (#6227) * Added call method to select proper response from xo server * Added changelog fragment * Removed excess blank lines * Moved period in changelog fragment * Made suggested changes * Remove f-strings for Python 2.7 compatibility Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Linus Kirkwood <lkirkwood@allette.com.au> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit cd70645) Co-authored-by: lirkwood <linuskirkwood@gmail.com>
SUMMARY
I ran into an issue where about 1/3 of the time, when using the XenOrchestra inventory plugin, the process would fail due to the first response from the XO server received being unrelated to the request. This can be easily fixed by checking that the response ID is the same as the request ID, which is what this change does.
ISSUE TYPE
COMPONENT NAME
xen_orchestra inventory
ADDITIONAL INFORMATION
The messages from the server that cause the issue vary, but one that I noticed frequently is shown below:
Before change:
After change: