Default VIM's ID is displayed in "openstack vnf show" even when VNF is instantiated using non-default VIM.

Bug #1929085 reported by Shanu Pandit
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Low
Shanu Pandit

Bug Description

When a VNF is instantiate using the VIM-ID of Non-Default VIM, but the output of command "openstack vnf show" displays the "vim_id" of Default VIM. So it looks instantiated VNF associates with default VIM.

<Operation log>

spandit@instance-repo-20210209:~$ openstack vim list
+--------------------------------------+-----------------+----------------------------------+-----------+------------+-----------+
| ID | Name | Tenant_id | Type | Is Default | Status |
+--------------------------------------+-----------------+----------------------------------+-----------+------------+-----------+
| 26ad8b9b-dc0a-4453-906f-d26823513f0f | Non_Default_VIM | c3a4ab13c47749ba90ca90c8de8c482e | openstack | False | REACHABLE |
| e7e67086-f3a3-4c40-94f6-7058bfe9128b | VIM0 | c3a4ab13c47749ba90ca90c8de8c482e | openstack | True | REACHABLE |
+--------------------------------------+-----------------+----------------------------------+-----------+------------+-----------+

spandit@instance-repo-20210209:~/issue_40/temporary$ openstack vnflcm create --name Non_Default_VNF 4a45163b-8c40-4cfa-b4a7-499cce3ab2ec
+--------------------------+------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------+------------------------------------------------------------------------------------------------------------------+
| ID | 70363954-8d6d-4bd0-93fc-77c972825af7 |
| Instantiation State | NOT_INSTANTIATED |
| Links | { |
| | "self": { |
| | "href": "http://localhost:9890/vnflcm/v1/vnf_instances/70363954-8d6d-4bd0-93fc-77c972825af7" |
| | }, |
| | "instantiate": { |
| | "href": "http://localhost:9890/vnflcm/v1/vnf_instances/70363954-8d6d-4bd0-93fc-77c972825af7/instantiate" |
| | } |
| | } |
| VNF Instance Description | None |
| VNF Instance Name | Non_Default_VNF |
| VNF Product Name | Sample VNF |
| VNF Provider | Company |
| VNF Software Version | 1.0 |
| VNFD ID | 4a45163b-8c40-4cfa-b4a7-499cce3ab2ec |
| VNFD Version | 1.0 |
| vnfPkgId | |
+--------------------------+------------------------------------------------------------------------------------------------------------------+

spandit@instance-repo-20210209:~/issue_40/temporary$ cat instantiateVnfRequest.json
{
  "flavourId": "simple",
  "extVirtualLinks": [
    {
      "id": "net0",
      "resourceId": "445ac8ea-6ebe-4062-b2c6-292b3a487eec",
      "extCps": [
        {
          "cpdId": "CP1",
          "cpConfig": [
            {
              "cpProtocolData": [
                {
                  "layerProtocol": "IP_OVER_ETHERNET"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "vimConnectionInfo": [
    {
      "id": "64360376-550a-4a68-97e7-5dd32b6aec9c",
      "vimId": "26ad8b9b-dc0a-4453-906f-d26823513f0f",
      "vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2"
    }
  ]
}

spandit@instance-repo-20210209:~$ openstack vnflcm instantiate 70363954-8d6d-4bd0-93fc-77c972825af7 instantiateVnfRequest.json
Instantiate request for VNF Instance 70363954-8d6d-4bd0-93fc-77c972825af7 has been accepted.

spandit@instance-repo-20210209:~$ spandit@instance-repo-20210209:~$ openstack vnf show 70363954-8d6d-4bd0-93fc-77c972825af7

+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| attributes | heat_template=heat_template_version: 2013-05-23 |
| | description: 'Simple deployment flavour for Sample VNF |
| | |
| | ' |
| | .
|
| | .
|
| | .
|
| | .
| |
| created_at | 2021-05-20 07:13:28 |
| description | None |
| error_reason | None |
| id | 70363954-8d6d-4bd0-93fc-77c972825af7 |
| instance_id | f0720d27-9bf1-4ab0-b2b8-694942fb25c1 |
| mgmt_ip_address | None |
| name | Non_Default_VNF |
| placement_attr | regions=['RegionOne'] |
| project_id | c3a4ab13c47749ba90ca90c8de8c482e |
| status | ACTIVE |
| updated_at | 2021-05-20 07:27:02 |
| vim_id | e7e67086-f3a3-4c40-94f6-7058bfe9128b |
| vnfd_id | 4a45163b-8c40-4cfa-b4a7-499cce3ab2ec |
+-----------------+------------------------------------------------------------

Changed in tacker:
assignee: nobody → Shanu Pandit (spandit1511)
description: updated
description: updated
Changed in tacker:
status: New → In Progress
Yasufumi Ogawa (yasufum)
Changed in tacker:
importance: Undecided → Low
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/+/792780

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

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

commit d07957a4a82292c445c2bf0e42d39af6693e844c
Author: Pooja Singla <email address hidden>
Date: Tue Feb 22 15:15:26 2022 +0000

    Correct VIM_ID is showed in "openstack vnf show"

    When a VNF is instantiate using the VIM-ID of Non-Default VIM,
    but the output of command "openstack vnf show" displays the
    "vim_id" of Default VIM.

    So it looks instantiated VNF associates with default VIM.

    This patch will resolve this issue and display the correct
    VIM_ID in output of "openstack vnf show"

    Closes-Bug: #1929085

    Change-Id: Ibe9d8f192cd6cb7601821acff09eb72ef9bc0471

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

This issue was fixed in the openstack/tacker 7.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.