-
Notifications
You must be signed in to change notification settings - Fork 900
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
ServiceTemplateTransformationPlanRequest fails with explicit resource type #18603
Comments
A simple way to reproduce this is to add a Redhat Infra provider. Then create a ConversionHost object on the console like so:
Now, if you look at the
However, in the REST API, we explicitly use the STI subtype, e.g. "ManageIQ::Providers::Redhat::InfraManager::Host". This is because we wanted to take advantage of the The problem is that the
You can see the relationships set at https://github.com/ManageIQ/manageiq/blob/master/app/models/ext_management_system.rb#L87-L88 |
Actually, this almost looks like two issues. Besides not dealing with the resource type, it doesn't even appear to join the hosts table in the underlying SQL. |
One possible solution would be to drop the railsy association, and use custom sql:
|
@fdupont-redhat It looks like we're supposed to ultimately preserve the base type. Look at https://github.com/ManageIQ/manageiq/blob/master/app/models/conversion_host/configurations.rb#L32-L40. Try changing |
When starting a migration it fails as the request is denied. And the request is denied because no conversion host is associated to the destination ext_management_system. Below is an example of the failing relationship:
Actually, the conversion_hosts table contains
ManageIQ::Providers::Openstack::CloudManager::Vm
for the resource type of the existing conversion host.The impact is that no migration will work.
Associated RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1693378
The text was updated successfully, but these errors were encountered: