ManageIQ / manageiq

ManageIQ Open-Source Management Platform
https://manageiq.org
Apache License 2.0
1.35k stars 899 forks source link

Cannot Differentiate Provision Catalog And Custom Action Ansible Playbook Catalog. #20766

Open Franklin-lab opened 4 years ago

Franklin-lab commented 4 years ago

Environment: CloudPak with CloudForms. Version: IBM Cloud Pak for Multicloud Management - Infrastructure management 2.0.0 Version 2.0.0.20200921060502_fe0b663 CP4MCM:IM Customization 10.y@6fa7958f

Description: For on-boarding custom operation like (Adding secondary disk) in Ansible playbook, I need to create a catalog first then i should go to the button and select the Ansible playbook. Since the custom operation showing as a catalog if i would like to differentiate between provisioning catalog and custom action catalog, through API how do I differentiate between these two. until we differentiate the provision catalog and custom action ansible catalog will be in trouble.

Steps To Repoduce:

  1. Create custom action playbook catalog in CloudForm
  2. Login to CP4MCM
  3. Click on Enterprise Marketplace
  4. Ruin the catalog discovery
  5. Observe the ansible custom action catalog are pulled as IaaS.

Expected:

  1. There should be cloudform API with payload to differentiate provisioning catalog and ansible custom action catalog.
Franklin-lab commented 4 years ago

CP4MCM_Published Custom ansible action published as catalog CF_Anisble_catalog CloudPak_With_CloudForm Catalog_Type_Difference

Fryguy commented 4 years ago

@pemcg I think you were helping @Franklin-lab in gitter chat. Perhaps you can weigh in a little here? cc @lfu @tinaafitz @gtanzillo

pemcg commented 4 years ago

We may be confusing the terminology here. From your screenshot of IM, it looks like you have 3 catalogs: "Ansible", "Automation", and "VMware Catalog". Is this what you mean, or are you looking to differentiate the items in the catalogs?

Franklin-lab commented 4 years ago

No @pemcg , There is folder called "Ansible" and custom action name is "Add Additional Disk" under that folder. When we run the discovery from CloudPak, it is getting pulled Ansible based custom action catalog as well. So, my request here is only for the provisioned catalog should get pulled from CloudFrom to Clodpak.

pemcg commented 4 years ago

ok, I think that's where the terminology confusion is coming in. What you're describing as "Folders" are Catalogs (expand the 'Catalogs' section in the accordion and you'll see them). Just to confirm, I think you're looking to differentiate between type of Catalog Item (in the 'Catalog Items' section in the accordion)?

They are also different collections in the API - Service Catalogs are found under /api/service_catalogs, and Service Catalog Items are found under /api/service_templates

Thanks

Franklin-lab commented 4 years ago

I will try and update you @pemcg