PM Job/Threshold response does not comply with SOL

Bug #2054420 reported by Kaori Mitani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Undecided
Unassigned

Bug Description

1. Authentication should not appear in PmJobModifications response.
   According to SOL003, authentication must not be included in the PmJobModifications response.
   However, currently, when you run the "openstack vnfpm job update", the output shows Authentication.

   The execution results of "openstack vnfpm job update" before modification are as follows:

$ openstack vnfpm job update 84b227dc-5ed0-411a-aff6-c830528eaec5 pm_job_update_req_vnf_VCpuUsageMeanVnf.json --os-tacker-api-version 2
+----------------+--------------------------------------------------------------------------------------------+
| Field | Value |
+----------------+--------------------------------------------------------------------------------------------+
| Authentication | |
| Callback Uri | http://127.0.0.1:9990/notification/callbackuri/a0205e7c-fdeb-4f6c-b266-962246e32626-update |
+----------------+--------------------------------------------------------------------------------------------+

2. PmJob.reports href format is different.
   Currently, the href of PmJob.reports is output without the endpoint.
   The data type of PmJob href defined in SOL003 must be the same as the Uri and Link href defined in SOL013.

   The execution results of "openstack vnfpm job show" before modification are as follows:

$ openstack vnfpm job show 84b227dc-5ed0-411a-aff6-c830528eaec5 --os-tacker-api-version 2
+-------------------------+------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+------------------------------------------------------------------------------------------------------------------------+
...
| Links | { |
| | "self": { |
| | "href": "http://127.0.0.1:9890/vnfpm/v2/pm_jobs/84b227dc-5ed0-411a-aff6-c830528eaec5"
|
| | }, |
| | "objects": [ |
| | { |
| | "href": "http://127.0.0.1:9890/vnflcm/v2/vnf_instances/a0205e7c-fdeb-4f6c-b266-962246e32626" |
| | } |
| | ] |
| | } |
...
| Reports | [ |
...
| | { |
| | "href": "/vnfpm/v2/pm_jobs/84b227dc-5ed0-411a-aff6-c830528eaec5/reports/2cfc3f32-37fd-41c7-891f-4bdb0310d67f", |
| | "readyTime": "2023-11-20T14:33:04Z" |
| | } |
| | ] |
...
+-------------------------+------------------------------------------------------------------------------------------------------------------------+

description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tacker/+/909645

Changed in tacker:
status: New → In Progress
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.opendev.org/c/openstack/tacker/+/909645
Committed: https://opendev.org/openstack/tacker/commit/715fdf699fbdefebd7706d474539bb5f307934ca
Submitter: "Zuul (22348)"
Branch: master

commit 715fdf699fbdefebd7706d474539bb5f307934ca
Author: Kaori Mitani <email address hidden>
Date: Wed Feb 21 11:24:38 2024 +0000

    Fix output regarding PM Job/Threshold response

    There are two corrections:

    First, according to SOL003, "authentication" should not appear
    in the PmJobModifications response.
    Therefore, it has been removed from the output obtained
    when running "openstack vnfpm job update".

    Second, the data type of PmJob href, as defined in SOL003,
    has been changed to match the format of the Uri and
    Link href defined in SOL013. This adjustment ensures
    that the endpoints will now be displayed correctly.

    Closes-Bug: #2054420
    Change-Id: Id79ed19090271de4e32742f37cf54b6853acba2e

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 11.0.0.0rc1

This issue was fixed in the openstack/tacker 11.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.