Output of VNFLCM operations does not include host path in "_links" field.

Bug #1923360 reported by Sheel Rana
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Undecided
Sheel Rana

Bug Description

When executing VNFLCM operations, output does not contain host path in '_links' field.
Operations include:
1. Creates a new VNF instance resource
2. Show VNF Instance
3. List VNF Instance
4. Show VNF LCM operation occurrence
5. List VNF LCM operation occurrence

<Operation log>

[stack@rana ~]$ openstack vnflcm create b1bb0ce7-ebca-4fa7-95ed-4840d70a1179
+--------------------------+---------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------+---------------------------------------------------------------------------------------------+
| ID | 5e2acb7a-13ea-40bf-bf34-f0d74b7887c7 |
| Instantiation State | NOT_INSTANTIATED |
| Links | { |
| | "self": { |
| | "href": "/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7" |
| | }, |
| | "instantiate": { |
| | "href": "/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7/instantiate" |
| | } |
| | } |
| VNF Instance Description | None |
| VNF Instance Name | vnf-5e2acb7a-13ea-40bf-bf34-f0d74b7887c7 |
| VNF Product Name | Sample VNF |
| VNF Provider | Company |
| VNF Software Version | 1.0 |
| VNFD ID | b1bb0ce7-ebca-4fa7-95ed-4840d70a1179 |
| VNFD Version | 1.0 |
| vnfPkgId | |
+--------------------------+---------------------------------------------------------------------------------------------+
[stack@rana ~]$

[stack@rana ~]$ openstack vnflcm show 5e2acb7a-13ea-40bf-bf34-f0d74b7887c7
+--------------------------+-------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------+-------------------------------------------------------------------------------------------------+
| ID | 5e2acb7a-13ea-40bf-bf34-f0d74b7887c7
| Instantiation State | INSTANTIATED |
| Links | { |
| | "self": { |
| | "href": "/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7" |
| | }, |
| | "terminate": { |
| | "href": "/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7/terminate" |
| | }, |
| | "heal": { |
| | "href": "/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7/heal" |
| | }, |
| | "changeExtConn": { |
| | "href": "/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7/change_ext_conn" |
| | } |
| | } |
| VIM Connection Info | [ |
| | { |
| | "id": "bc439e6f-d256-4955-85f1-17415fa534c1", |
| | "vimId": "4663c434-ecc8-4ee9-b493-51729f1d25db", |
| | "vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", |
| | "interfaceInfo": {}, |
| | "accessInfo": {} |
| | } |
| | ] |
| VNF Instance Description | None |
| VNF Instance Name | vnf-5e2acb7a-13ea-40bf-bf34-f0d74b7887c7 |
| VNF Product Name | Sample VNF |
| VNF Provider | Company |
| VNF Software Version | 1.0 |
| VNFD ID | b1bb0ce7-ebca-4fa7-95ed-4840d70a1179 |
| VNFD Version | 1.0 |
| vnfPkgId | |
+--------------------------+-------------------------------------------------------------------------------------------------+
[stack@rana ~]$

Current output : "href": "/vnflcm/v1/vnf_instances/d763ba56-632f-4736-9af8-06fb0205b593"

Expected output : "href": "http://localhost:9890/vnflcm/v1/vnf_instances/d763ba56-632f-4736-9af8-06fb0205b593"

*here "http://localhost:9890/" is just an example for host-path in links field.

Changed in tacker:
assignee: nobody → Sheel Rana (ranasheel2000)
status: New → In Progress
summary: - Output of VNF LCM operations does not include host path in "_links"
+ Output of VNFLCM operations does not include host path in "_links"
field.
description: updated
description: updated
Revision history for this message
Sheel Rana (ranasheel2000) wrote :
Download full text (6.8 KiB)

Expected execution logs after fix, will submit patch soon:
=========================================================

[stack@rana ~]$ openstack vnflcm show 5e2acb7a-13ea-40bf-bf34-f0d74b7887c7
+--------------------------+----------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------+----------------------------------------------------------------------------------------------------------------------+
| ID | 5e2acb7a-13ea-40bf-bf34-f0d74b7887c7 |

| Instantiation State | INSTANTIATED |
| Links | { |
| | "self": { |
| | "href": "http://localhost:9890/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7" |
| | }, |
| | "terminate": { |
| | "href": "http://localhost:9890/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7/terminate" |
| | }, |
| | "heal": { |
| | "href": "http://localhost:9890/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7/heal" |
| | }, |
| | "changeExtConn": { |
| | "href": "http://localhost:9890/vnflcm/v1/vnf_instances/5e2acb7a-13ea-40bf-bf34-f0d74b7887c7/change_ext_conn" |
| | } |
| | } |
| VIM Connection Info | [ |
| | { ...

Read more...

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

Reviewed: https://review.opendev.org/c/openstack/tacker/+/785798
Committed: https://opendev.org/openstack/tacker/commit/2c68a0a84d2a62598b9379529008c2ae1c849ca6
Submitter: "Zuul (22348)"
Branch: master

commit 2c68a0a84d2a62598b9379529008c2ae1c849ca6
Author: Sheel Rana <email address hidden>
Date: Sun Apr 4 22:26:47 2021 +0530

    Updated vnflcm api output with host-path

    Currently vnflcm api operations do not return host-path
    in their output inside '_links' href field.
    For ex,
    "_links": {
    "self": {
    "href":
        "/vnflcm/v1/vnf_instances/<vnf-instance>"
    }
    }

    This patch updates '_links' href field in vnflcm api output
    with host-path.
    For ex,
    "_links": {
    "self": {
    "href":
        "http://localhost:9890/vnflcm/v1/vnf_instances/<vnf-instance>"
    }
    }

    *here "http://localhost:9890/" is just an example of host-path.

    Related operations:
    1. Creates a new VNF instance.
    2. Show VNF Instance.
    3. List VNF Instances.
    4. Show VNF LCM operation occurrence.
    5. List VNF LCM operation occurrences.

    Co-Authored-By: Navum Gupta <email address hidden>

    Closes-Bug: #1923360
    Change-Id: I245cd2626fac1112d6a9fef3c51bf5ef6b679e05

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

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

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

Other bug subscribers