Bug #14797
closedMedium validation wrong with Katello and foreman_bootdisk
Description
Both foreman_bootdisk and Katello overwrite validate_media? in the Host Model and the wrong order is applied.
What you can try as a workaround is the following:
Remove or comment
alias_method_chain :validate_media?, :bootdisk
from app/models/concerns/foreman_bootdisk/host_ext.rb
See:
https://github.com/Katello/katello/blob/b92a833e38fa3b39deff26839b219c0b7da53bbb/app/models/katello/concerns/host_managed_extensions.rb#L34-L36
https://github.com/theforeman/foreman_bootdisk/blob/master/app/models/concerns/foreman_bootdisk/host_ext.rb#L36-L38
Updated by Lukas Zapletal about 7 years ago
- Related to Refactor #21205: Replace alias_method_chain with Module prepend added
Updated by Lukas Zapletal about 7 years ago
Both bootdisk and katello are now on "prepend" FYI. I haven't tested if this helped tho.
Updated by Lukas Zapletal about 7 years ago
- Related to Bug #21243: Rails 5 - Replace alias_method_chain with Module prepend added
Updated by Lukas Zapletal about 7 years ago
- Related to Refactor #20957: Replace alias_method_chain with Module prepend added
Updated by Lukas Zapletal about 7 years ago
- Status changed from New to Need more information
I believe this was fixed both in 10.0.1 and 11.x series of Bootdisk now.
Updated by The Foreman Bot almost 7 years ago
- Status changed from Need more information to Ready For Testing
- Assignee set to Lukas Zapletal
- Pull request https://github.com/theforeman/foreman_bootdisk/pull/55 added
Updated by Lukas Zapletal almost 7 years ago
- Related to Refactor #22219: Refactor validate_media? to be hookable added
Updated by Lukas Zapletal about 6 years ago
- Status changed from Ready For Testing to Need more information
- Triaged changed from No to Yes
Timo, I believe we can close this one.
Updated by Timo Goebel about 6 years ago
Lukas Zapletal wrote:
Timo, I believe we can close this one.
I think this still applies. Katello and Foreman Bootdisk still override the same method.
Updated by Lukas Zapletal about 6 years ago
- Related to Refactor #25680: Allow plugins to override validate_media? added
Updated by The Foreman Bot almost 6 years ago
- Status changed from Need more information to Ready For Testing
- Pull request https://github.com/theforeman/foreman_bootdisk/pull/73 added
Updated by Lukas Zapletal almost 6 years ago
- Bugzilla link changed from 1513327 to 1659042
- Pull request deleted (
https://github.com/theforeman/foreman_bootdisk/pull/55)
Updated by Anonymous almost 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_bootdisk|1e24194a43acb212f4c2861d6259bbf515318591.