Bug #16397
Updated by Ivan Necas almost 8 years ago
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1369737 Description of problem: With 6.2.1 there GET and DELETE of templates_combinations is not working anymore. This is a regression over 6.0/6.1 where the same process worked for years. [crash] root@li-lc-1578:~# curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/api/v2/hostgroups/3 | jq .template_combinations [ { "config_template_name": "HOIOS-6.8.1-hf1-Library", "id": 1, "provisioning_template_id": 106, "provisioning_template_name": "HOIOS-6.8.1-hf1-Library", "hostgroup_id": 3, "hostgroup_name": "crash/AWS-HiltiCloud/Oracle-IAM-DB", "environment_id": null, "environment_name": null, "config_template_id": 106 }, { "config_template_name": "HOIOS-6.8.1-hf3-Library", "id": 44, "provisioning_template_id": 117, "provisioning_template_name": "HOIOS-6.8.1-hf3-Library", "hostgroup_id": 3, "hostgroup_name": "crash/AWS-HiltiCloud/Oracle-IAM-DB", "environment_id": null, "environment_name": null, "config_template_id": 117 } ] [crash] root@li-lc-1578:~# curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/api/v2/template_combinations/44 { "error": {"message":"Resource template_combination not found by id '44'"} } [crash] root@li-lc-1578:~# curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/api/v2/template_combinations/1 { "error": {"message":"Resource template_combination not found by id '1'"} } [crash] root@li-lc-1578:~# curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XDELETE https://localhost/api/v2/template_combinations/1 { "error": {"message":"Resource template_combination not found by id '1'"} } Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Assiocate a template with a hostgroup 2. Get association using the API GET template_combinations/:id 3. Delete association using the API DELETE template_combinations/:id Actual results: Step 2 and 3 are giving a resource not foudn Expected results: Step 2 lists the tempmplate combination Step 3 deletes the template combination Additional info: