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

Use vm_ems_ref to reconnect events #17145

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Mar 13, 2018

Events delivered early in a VM's lifecycle often do not contain the
vmPathName yet and therefore cannot be connected to VMs which are saved
after the events are processed. It is much more reliable to use the
VM's ems_ref since that is available in all tasks and events except the
initial CreateVM_Task/CloneVM_Task (since the target VM hasn't been
created yet it isn't possible to link these to a VM anyway).

https://bugzilla.redhat.com/show_bug.cgi?id=1428797

Depends on:
ManageIQ/manageiq-schema#176

Events delivered early in a VM's lifecycle often do not contain the
vmPathName yet and therefore cannot be connected to VMs which are saved
after the events are processed.  It is much more reliable to use the
VM's ems_ref since that is available in all tasks and events except the
initial CreateVM_Task/CloneVM_Task (since the target VM hasn't been
created yet it isn't possible to link these to a VM anyway).

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1428797
@agrare agrare force-pushed the bz_1428797_use_vm_ems_ref_for_reconnect_events branch from b5a7266 to 1cfd5eb Compare March 13, 2018 15:29
@miq-bot
Copy link
Member

miq-bot commented Mar 13, 2018

Checked commit agrare@1cfd5eb with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@agrare agrare closed this Mar 15, 2018
@agrare agrare reopened this Mar 15, 2018
@kbrock kbrock added this to the Sprint 82 Ending Mar 26, 2018 milestone Mar 19, 2018
@kbrock kbrock assigned kbrock and unassigned blomquisg Mar 19, 2018
@kbrock kbrock merged commit 8246d91 into ManageIQ:master Mar 19, 2018
@agrare agrare deleted the bz_1428797_use_vm_ems_ref_for_reconnect_events branch March 19, 2018 18:00
@agrare
Copy link
Member Author

agrare commented Mar 19, 2018

Thanks @kbrock !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants