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

[WIP] Add switches.host_id to fix modeling/deletions #200

Closed
wants to merge 1 commit into from

Conversation

agrare
Copy link
Member

@agrare agrare commented May 14, 2018

Currently there is no association between either an EMS or a Host to
their switches that don't go through host_switches. This means that
switch deletions are "interesting". This also means that the
manager_ref is not consistent because for shared switches uid_ems is
unique but for host local switches the host is needed.

See ManageIQ/manageiq#17383 for the problem description and EmsRefresh.save_switches_inventory for what the old save_switches_inventory code looked like (:scream:)

TODO:
Data migration to set ems_id for shared switches.

Currently there is no association between either an EMS or a Host to
their switches that don't go through host_switches.  This means that
switch deletions are "interesting".  This also means that the
manager_ref is not consistent because for shared switches uid_ems is
unique but for host local switches the host is needed.
@agrare
Copy link
Member Author

agrare commented May 14, 2018

ManageIQ/manageiq#17420 Has the core model changes

@miq-bot
Copy link
Member

miq-bot commented May 14, 2018

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

@agrare agrare changed the title Add switches.host_id to fix modeling/deletions [WIP] Add switches.host_id to fix modeling/deletions May 21, 2018
@agrare
Copy link
Member Author

agrare commented May 21, 2018

@miq-bot assign @Fryguy

@miq-bot miq-bot added the wip label May 21, 2018
@agrare agrare closed this Jun 13, 2018
@agrare agrare deleted the add_host_id_to_switches branch June 13, 2018 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants