Bug #21037
closed
"Invalid single-table inheritance type: Host::Discovered is not a subclass of Host::Managed" caused by auditing host
Added by Ivan Necas about 7 years ago.
Updated about 6 years ago.
Description
In the host auditing, we're setting the auditable_class
to Host
. And in the Host
, we're redirecting
all the methods to the Host::Managed
. This causes issues, when converting the host from discovered
to managed and creating an audit record of it.
Reproducer (having a discovered host).
host2 = host.become(Host::Managed)
host2.type = "Host::Managed"
host2.save
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4863 added
- Pull request https://github.com/theforeman/foreman/pull/4864 added
- Pull request deleted (
https://github.com/theforeman/foreman/pull/4863)
- Related to Bug #20972: STI issues with Host::Discovered on Rails 5 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 296
- Translation missing: en.field_release changed from 296 to 240
I actually need this in 1.16 if Rails5 is part of that branch, this is discovery blocker.
- Translation missing: en.field_release changed from 240 to 296
Ok Rails5 is not part of 1.16.
- Related to Bug #25207: Invalid single-table inheritance type: Host::Discovered is not a subclass of Host::Managed added
- Related to Bug #25556: 'Discovery manager' role broken added
Also available in: Atom
PDF