Fedora Account System
Red Hat Associate
Red Hat Customer
The ConversionHost model is missing important validations that would otherwise prevent potentially bad data from entering the system. This includes validating the presence of a name, associated resource and IP address. To replicate, simply try to create a conversion host record without a name or associated resource.
Parent PR: https://github.com/ManageIQ/manageiq/pull/18277 Followup PR's that correct/update the parent: https://github.com/ManageIQ/manageiq/pull/18516 https://github.com/ManageIQ/manageiq/pull/18434 https://github.com/ManageIQ/manageiq/pull/18610 https://github.com/ManageIQ/manageiq/pull/18604
Also https://github.com/ManageIQ/manageiq/pull/18690
Create conversion host with REST API with missing resources like resource Id. { "name": "env-rhv43-01.cfme2.lab.eng.rdu2.redhat.com", "resource_type": "ManageIQ::Providers::Redhat::InfraManager::Host", "resource_id": "", "conversion_host_ssh_private_key": "Bag Attributes\n <No Attributes>\n-----BEGIN PRIVATE KEY-----.....-----END PRIVATE KEY-----\n", "vmware_vddk_package_url": "http://10.11.5.7/~kkulkarn/VMware-vix-disklib-6.7.1-10362358.x86_64.tar.gz", "auth_user": "root" } Validation is shown for resource Id. Verified in 5.11.0.11.20190625161125_392c61e