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

Miqexport fails to export service_catalogs when service_template created via API due to config_info fields appearing inside of options. #144

Open
eumartin opened this issue Jul 3, 2019 · 0 comments

Comments

@eumartin
Copy link

eumartin commented Jul 3, 2019

When a service_template is created via API, the field "options" are filled with the content of "config_info" as follows :

{
"href": "https://x.x.x.x/api/service_templates/99000000000030",
"id": "99000000000030",
"name": "Demo Ansible Tower service",
"description": "Demo Ansible Tower service description",
"guid": "2bef37be-4ce3-4f40-98b6-8d5fece062cf",
"type": "ServiceTemplateAnsibleTower",
"service_template_id": null,
"options": {
"config_info": {
"provision": {
"fqname": "/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision/CatalogItemInitialization",
"dialog_id": "99000000000001"
},
"configuration_script_id": "99000000000001"
}
},
"created_at": "2019-07-03T12:18:54Z",
"updated_at": "2019-07-03T12:26:47Z",
"display": false,
"evm_owner_id": null,
"miq_group_id": "99000000000002",
"service_type": "atomic",
"prov_type": "generic_ansible_tower",
"provision_cost": null,
"service_template_catalog_id": "99000000000001",
"long_description": null,
"tenant_id": "99000000000001",
"generic_subtype": null,
"deleted_on": null,
"internal": false,
"config_info": {
"provision": {
"fqname": "/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision/CatalogItemInitialization",
"dialog_id": "99000000000001"
},
"configuration_script_id": "99000000000001"
},
......

When rhconsulting_service_catalogs.rake is parsing the content (line 300) of the service_template finds fields that are not expected and the export of the service_catalogs fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant