← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1929265] [NEW] Uploading same VNF package with different package id then VNF termination is failing for VNF which was onboarded with first vnf package

 

Public bug reported:

when uploading same package with different package id then VNF
termination is failing for VNF which was onboarded with first vnf
package

<operation log>

navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package create

+-------------------+-------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                           |
+-------------------+-------------------------------------------------------------------------------------------------+
| ID                | 1142e6d0-9967-4249-b6dc-60d094c19c22                                                            |
| Links             | {                                                                                               |
|                   |     "self": {                                                                                   |
|                   |         "href": "/vnfpkgm/v1/vnf_packages/1142e6d0-9967-4249-b6dc-60d094c19c22"                 |
|                   |     },                                                                                          |
|                   |     "packageContent": {                                                                         |
|                   |         "href": "/vnfpkgm/v1/vnf_packages/1142e6d0-9967-4249-b6dc-60d094c19c22/package_content" |
|                   |     }                                                                                           |
|                   | }                                                                                               |
| Onboarding State  | CREATED                                                                                         |
| Operational State | DISABLED                                                                                        |
| Usage State       | NOT_IN_USE                                                                                      |
| User Defined Data | {}                                                                                              |
+-------------------+-------------------------------------------------------------------------------------------------+
navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package list -c Id -c 'Vnf Product Name'

+--------------------------------------+------------------+
| Id                                   | Vnf Product Name |
+--------------------------------------+------------------+
| 08984ebc-fafd-47ab-807f-a3d708844294 |                  |
| 1142e6d0-9967-4249-b6dc-60d094c19c22 |                  |
| 20ee138d-2f78-4a0f-a8fa-833a0a2e387f |                  |
| 646013d2-5098-4351-9da0-ec95b28bd550 | Sample VNF       |
| 71f391ea-82df-4bf6-9fc8-e825eaf1d06e |                  |
| 86f54570-b17a-459c-a5ca-103dd674d51c | Sample VNF       |
| cf9444ed-6159-4743-a77d-289b7f111983 |                  |
| e3a16588-42da-468e-ac30-9f65baef9a1b | Sample VNF       |
+--------------------------------------+------------------+
navum_public@instance-vnfm-2nd-20210413:~$ mkdir temporary
navum_public@instance-vnfm-2nd-20210413:~$ cd temporary/
navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf /opt/stack/tacker/tacker/tests/etc/samples/etsi/nfv/vnflcm1 .
navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf /opt/stack/tacker/tacker/tests/etc/samples/etsi/nfv/common .
navum_public@instance-vnfm-2nd-20210413:~/temporary$ mkdir vnfpackage
navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf common/* vnflcm1/* vnfpackage/
navum_public@instance-vnfm-2nd-20210413:~/temporary$ cd vnfpackage/
navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ uuidgen
47ecd16b-69da-4fd1-be49-ce979635cc4a
navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ vim Definitions/helloworld3_top.vnfd.yaml
navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ vim Definitions/helloworld3_types.yaml
navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ zip -r ../vnfpackage.zip *
  adding: Definitions/ (stored 0%)
  adding: Definitions/etsi_nfv_sol001_common_types.yaml (deflated 76%)
  adding: Definitions/etsi_nfv_sol001_vnfd_types.yaml (deflated 84%)
  adding: Definitions/helloworld3_types.yaml (deflated 70%)
  adding: Definitions/helloworld3_df_simple.yaml (deflated 75%)
  adding: Definitions/helloworld3_top.vnfd.yaml (deflated 54%)
  adding: Files/ (stored 0%)
  adding: Files/images/ (stored 0%)
  adding: Files/images/cirros-0.4.0-x86_64-disk.img (deflated 4%)
  adding: Files/kubernetes/ (stored 0%)
  adding: Files/kubernetes/deployment.yaml (deflated 62%)
  adding: Scripts/ (stored 0%)
  adding: Scripts/install.sh (stored 0%)
  adding: TOSCA-Metadata/ (stored 0%)
  adding: TOSCA-Metadata/TOSCA.meta (deflated 21%)
navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ cd ../
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package upload --path vnfpackage.zip 1142e6d0-9967-4249-b6dc-60d094c19c22

Upload request for VNF package 1142e6d0-9967-4249-b6dc-60d094c19c22 has been accepted.
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package show -c 'VNFD ID' 1142e6d0-9967-4249-b6dc-60d094c19c22

+---------+--------------------------------------+
| Field   | Value                                |
+---------+--------------------------------------+
| VNFD ID | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
+---------+--------------------------------------+
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm create --name 'n22' --description 'n22' 47ecd16b-69da-4fd1-be49-ce979635cc4a

+--------------------------+------------------------------------------------------------------------------------------------------------------+
| Field                    | Value                                                                                                            |
+--------------------------+------------------------------------------------------------------------------------------------------------------+
| ID                       | 279e8879-6db2-4439-968f-ed2c28f35862                                                                             |
| Instantiation State      | NOT_INSTANTIATED                                                                                                 |
| Links                    | {                                                                                                                |
|                          |     "self": {                                                                                                    |
|                          |         "href": "http://localhost:9890/vnflcm/v1/vnf_instances/279e8879-6db2-4439-968f-ed2c28f35862";             |
|                          |     },                                                                                                           |
|                          |     "instantiate": {                                                                                             |
|                          |         "href": "http://localhost:9890/vnflcm/v1/vnf_instances/279e8879-6db2-4439-968f-ed2c28f35862/instantiate"; |
|                          |     }                                                                                                            |
|                          | }                                                                                                                |
| VNF Instance Description | n22                                                                                                              |
| VNF Instance Name        | n22                                                                                                              |
| VNF Product Name         | Sample VNF                                                                                                       |
| VNF Provider             | Company                                                                                                          |
| VNF Software Version     | 1.0                                                                                                              |
| VNFD ID                  | 47ecd16b-69da-4fd1-be49-ce979635cc4a                                                                             |
| VNFD Version             | 1.0                                                                                                              |
| vnfPkgId                 |                                                                                                                  |
+--------------------------+------------------------------------------------------------------------------------------------------------------+
navum_public@instance-vnfm-2nd-20210413:~/temporary$ cd ..
navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm instantiate instantiateVnfRequest.json

usage: openstack vnflcm instantiate [-h] <vnf-instance> <param-file>
openstack vnflcm instantiate: error: the following arguments are required: <param-file>

navum_public@instance-vnfm-2nd-20210413:~$ ls
devstack  get-pip.py  instantiateVnfRequest.json  instantiateVnfRequest_default.json  issue_47  log  temporary
navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm instantiate 279e8879-6db2-4439-968f-ed2c28f35862 instantiateVnfRequest.json

Instantiate request for VNF Instance 279e8879-6db2-4439-968f-
ed2c28f35862 has been accepted.

navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm list

+--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
| ID                                   | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID                              |
+--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
| 279e8879-6db2-4439-968f-ed2c28f35862 | n22               | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
| 34a78a34-2099-40c6-8bb6-b8ef0dbd4823 | SHANU_VNF_DEFAULT | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
| 55b17862-17cc-4acd-9f36-35160d6772e5 | navum_11          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
| eff46db4-579a-4ed7-88ce-7897984dc750 | navum_tt          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
| f73c9d77-3505-4806-bd18-271c72b8c0b6 | n21               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 5331c61a-d1fa-4a55-9d41-dc5ca9d54d3a |
| f9e32007-0043-40cc-89e3-cf307baa54a2 | SHANU_VNF         | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
+--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package create

+-------------------+-------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                           |
+-------------------+-------------------------------------------------------------------------------------------------+
| ID                | 6f0eb8d9-8386-4008-aade-75801b4b3686                                                            |
| Links             | {                                                                                               |
|                   |     "self": {                                                                                   |
|                   |         "href": "/vnfpkgm/v1/vnf_packages/6f0eb8d9-8386-4008-aade-75801b4b3686"                 |
|                   |     },                                                                                          |
|                   |     "packageContent": {                                                                         |
|                   |         "href": "/vnfpkgm/v1/vnf_packages/6f0eb8d9-8386-4008-aade-75801b4b3686/package_content" |
|                   |     }                                                                                           |
|                   | }                                                                                               |
| Onboarding State  | CREATED                                                                                         |
| Operational State | DISABLED                                                                                        |
| Usage State       | NOT_IN_USE                                                                                      |
| User Defined Data | {}                                                                                              |
+-------------------+-------------------------------------------------------------------------------------------------+
navum_public@instance-vnfm-2nd-20210413:~$ cd temporary/
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package upload --path vnfpackage.zip 6f0eb8d9-8386-4008-aade-75801b4b3686

Upload request for VNF package 6f0eb8d9-8386-4008-aade-75801b4b3686 has been accepted.
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm terminate 279e8879-6db2-4439-968f-ed2c28f35862

Terminate request for VNF Instance '279e8879-6db2-4439-968f-ed2c28f35862' has been accepted.
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm list

+--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
| ID                                   | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID                              |
+--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
| 279e8879-6db2-4439-968f-ed2c28f35862 | n22               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
| 34a78a34-2099-40c6-8bb6-b8ef0dbd4823 | SHANU_VNF_DEFAULT | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
| 55b17862-17cc-4acd-9f36-35160d6772e5 | navum_11          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
| eff46db4-579a-4ed7-88ce-7897984dc750 | navum_tt          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
| f73c9d77-3505-4806-bd18-271c72b8c0b6 | n21               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 5331c61a-d1fa-4a55-9d41-dc5ca9d54d3a |
| f9e32007-0043-40cc-89e3-cf307baa54a2 | SHANU_VNF         | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
+--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+

** Affects: glance
     Importance: Undecided
     Assignee: Navum Gupta (navum)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Navum Gupta (navum)

** Summary changed:

- when uploading same package with different package id then VNF termination is failing for VNF which was onboarded with first vnf package 
+ Uploading same VNF package with different package id then VNF termination is failing for VNF which was onboarded with first vnf package

** Description changed:

+ when uploading same package with different package id then VNF
+ termination is failing for VNF which was onboarded with first vnf
+ package
+ 
+ <operation log>
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package create
  
  +-------------------+-------------------------------------------------------------------------------------------------+
  | Field             | Value                                                                                           |
  +-------------------+-------------------------------------------------------------------------------------------------+
  | ID                | 1142e6d0-9967-4249-b6dc-60d094c19c22                                                            |
  | Links             | {                                                                                               |
  |                   |     "self": {                                                                                   |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/1142e6d0-9967-4249-b6dc-60d094c19c22"                 |
  |                   |     },                                                                                          |
  |                   |     "packageContent": {                                                                         |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/1142e6d0-9967-4249-b6dc-60d094c19c22/package_content" |
  |                   |     }                                                                                           |
  |                   | }                                                                                               |
  | Onboarding State  | CREATED                                                                                         |
  | Operational State | DISABLED                                                                                        |
  | Usage State       | NOT_IN_USE                                                                                      |
  | User Defined Data | {}                                                                                              |
  +-------------------+-------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package list -c Id -c 'Vnf Product Name'
  
  +--------------------------------------+------------------+
  | Id                                   | Vnf Product Name |
  +--------------------------------------+------------------+
  | 08984ebc-fafd-47ab-807f-a3d708844294 |                  |
  | 1142e6d0-9967-4249-b6dc-60d094c19c22 |                  |
  | 20ee138d-2f78-4a0f-a8fa-833a0a2e387f |                  |
  | 646013d2-5098-4351-9da0-ec95b28bd550 | Sample VNF       |
  | 71f391ea-82df-4bf6-9fc8-e825eaf1d06e |                  |
  | 86f54570-b17a-459c-a5ca-103dd674d51c | Sample VNF       |
  | cf9444ed-6159-4743-a77d-289b7f111983 |                  |
  | e3a16588-42da-468e-ac30-9f65baef9a1b | Sample VNF       |
  +--------------------------------------+------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ mkdir temporary
  navum_public@instance-vnfm-2nd-20210413:~$ cd temporary/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf /opt/stack/tacker/tacker/tests/etc/samples/etsi/nfv/vnflcm1 .
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf /opt/stack/tacker/tacker/tests/etc/samples/etsi/nfv/common .
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ mkdir vnfpackage
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf common/* vnflcm1/* vnfpackage/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cd vnfpackage/
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ uuidgen
  47ecd16b-69da-4fd1-be49-ce979635cc4a
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ vim Definitions/helloworld3_top.vnfd.yaml
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ vim Definitions/helloworld3_types.yaml
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ zip -r ../vnfpackage.zip *
-   adding: Definitions/ (stored 0%)
-   adding: Definitions/etsi_nfv_sol001_common_types.yaml (deflated 76%)
-   adding: Definitions/etsi_nfv_sol001_vnfd_types.yaml (deflated 84%)
-   adding: Definitions/helloworld3_types.yaml (deflated 70%)
-   adding: Definitions/helloworld3_df_simple.yaml (deflated 75%)
-   adding: Definitions/helloworld3_top.vnfd.yaml (deflated 54%)
-   adding: Files/ (stored 0%)
-   adding: Files/images/ (stored 0%)
-   adding: Files/images/cirros-0.4.0-x86_64-disk.img (deflated 4%)
-   adding: Files/kubernetes/ (stored 0%)
-   adding: Files/kubernetes/deployment.yaml (deflated 62%)
-   adding: Scripts/ (stored 0%)
-   adding: Scripts/install.sh (stored 0%)
-   adding: TOSCA-Metadata/ (stored 0%)
-   adding: TOSCA-Metadata/TOSCA.meta (deflated 21%)
+   adding: Definitions/ (stored 0%)
+   adding: Definitions/etsi_nfv_sol001_common_types.yaml (deflated 76%)
+   adding: Definitions/etsi_nfv_sol001_vnfd_types.yaml (deflated 84%)
+   adding: Definitions/helloworld3_types.yaml (deflated 70%)
+   adding: Definitions/helloworld3_df_simple.yaml (deflated 75%)
+   adding: Definitions/helloworld3_top.vnfd.yaml (deflated 54%)
+   adding: Files/ (stored 0%)
+   adding: Files/images/ (stored 0%)
+   adding: Files/images/cirros-0.4.0-x86_64-disk.img (deflated 4%)
+   adding: Files/kubernetes/ (stored 0%)
+   adding: Files/kubernetes/deployment.yaml (deflated 62%)
+   adding: Scripts/ (stored 0%)
+   adding: Scripts/install.sh (stored 0%)
+   adding: TOSCA-Metadata/ (stored 0%)
+   adding: TOSCA-Metadata/TOSCA.meta (deflated 21%)
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ cd ../
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package upload --path vnfpackage.zip 1142e6d0-9967-4249-b6dc-60d094c19c22
  
  Upload request for VNF package 1142e6d0-9967-4249-b6dc-60d094c19c22 has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package show -c 'VNFD ID' 1142e6d0-9967-4249-b6dc-60d094c19c22
  
  +---------+--------------------------------------+
  | Field   | Value                                |
  +---------+--------------------------------------+
  | VNFD ID | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  +---------+--------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm create --name 'n22' --description 'n22' 47ecd16b-69da-4fd1-be49-ce979635cc4a
  
  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  | Field                    | Value                                                                                                            |
  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  | ID                       | 279e8879-6db2-4439-968f-ed2c28f35862                                                                             |
  | Instantiation State      | NOT_INSTANTIATED                                                                                                 |
  | Links                    | {                                                                                                                |
  |                          |     "self": {                                                                                                    |
  |                          |         "href": "http://localhost:9890/vnflcm/v1/vnf_instances/279e8879-6db2-4439-968f-ed2c28f35862";             |
  |                          |     },                                                                                                           |
  |                          |     "instantiate": {                                                                                             |
  |                          |         "href": "http://localhost:9890/vnflcm/v1/vnf_instances/279e8879-6db2-4439-968f-ed2c28f35862/instantiate"; |
  |                          |     }                                                                                                            |
  |                          | }                                                                                                                |
  | VNF Instance Description | n22                                                                                                              |
  | VNF Instance Name        | n22                                                                                                              |
  | VNF Product Name         | Sample VNF                                                                                                       |
  | VNF Provider             | Company                                                                                                          |
  | VNF Software Version     | 1.0                                                                                                              |
  | VNFD ID                  | 47ecd16b-69da-4fd1-be49-ce979635cc4a                                                                             |
  | VNFD Version             | 1.0                                                                                                              |
  | vnfPkgId                 |                                                                                                                  |
  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cd ..
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm instantiate instantiateVnfRequest.json
  
  usage: openstack vnflcm instantiate [-h] <vnf-instance> <param-file>
  openstack vnflcm instantiate: error: the following arguments are required: <param-file>
  
  navum_public@instance-vnfm-2nd-20210413:~$ ls
  devstack  get-pip.py  instantiateVnfRequest.json  instantiateVnfRequest_default.json  issue_47  log  temporary
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm instantiate 279e8879-6db2-4439-968f-ed2c28f35862 instantiateVnfRequest.json
  
  Instantiate request for VNF Instance 279e8879-6db2-4439-968f-
  ed2c28f35862 has been accepted.
  
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm list
  
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | ID                                   | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID                              |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | 279e8879-6db2-4439-968f-ed2c28f35862 | n22               | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  | 34a78a34-2099-40c6-8bb6-b8ef0dbd4823 | SHANU_VNF_DEFAULT | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | 55b17862-17cc-4acd-9f36-35160d6772e5 | navum_11          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | eff46db4-579a-4ed7-88ce-7897984dc750 | navum_tt          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | f73c9d77-3505-4806-bd18-271c72b8c0b6 | n21               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 5331c61a-d1fa-4a55-9d41-dc5ca9d54d3a |
  | f9e32007-0043-40cc-89e3-cf307baa54a2 | SHANU_VNF         | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package create
  
  +-------------------+-------------------------------------------------------------------------------------------------+
  | Field             | Value                                                                                           |
  +-------------------+-------------------------------------------------------------------------------------------------+
  | ID                | 6f0eb8d9-8386-4008-aade-75801b4b3686                                                            |
  | Links             | {                                                                                               |
  |                   |     "self": {                                                                                   |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/6f0eb8d9-8386-4008-aade-75801b4b3686"                 |
  |                   |     },                                                                                          |
  |                   |     "packageContent": {                                                                         |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/6f0eb8d9-8386-4008-aade-75801b4b3686/package_content" |
  |                   |     }                                                                                           |
  |                   | }                                                                                               |
  | Onboarding State  | CREATED                                                                                         |
  | Operational State | DISABLED                                                                                        |
  | Usage State       | NOT_IN_USE                                                                                      |
  | User Defined Data | {}                                                                                              |
  +-------------------+-------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ cd temporary/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package upload --path vnfpackage.zip 6f0eb8d9-8386-4008-aade-75801b4b3686
  
  Upload request for VNF package 6f0eb8d9-8386-4008-aade-75801b4b3686 has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm terminate 279e8879-6db2-4439-968f-ed2c28f35862
  
  Terminate request for VNF Instance '279e8879-6db2-4439-968f-ed2c28f35862' has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm list
  
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | ID                                   | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID                              |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | 279e8879-6db2-4439-968f-ed2c28f35862 | n22               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  | 34a78a34-2099-40c6-8bb6-b8ef0dbd4823 | SHANU_VNF_DEFAULT | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | 55b17862-17cc-4acd-9f36-35160d6772e5 | navum_11          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | eff46db4-579a-4ed7-88ce-7897984dc750 | navum_tt          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | f73c9d77-3505-4806-bd18-271c72b8c0b6 | n21               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 5331c61a-d1fa-4a55-9d41-dc5ca9d54d3a |
  | f9e32007-0043-40cc-89e3-cf307baa54a2 | SHANU_VNF         | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+

** Description changed:

  when uploading same package with different package id then VNF
  termination is failing for VNF which was onboarded with first vnf
  package
  
  <operation log>
+ 
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package create
  
  +-------------------+-------------------------------------------------------------------------------------------------+
  | Field             | Value                                                                                           |
  +-------------------+-------------------------------------------------------------------------------------------------+
  | ID                | 1142e6d0-9967-4249-b6dc-60d094c19c22                                                            |
  | Links             | {                                                                                               |
  |                   |     "self": {                                                                                   |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/1142e6d0-9967-4249-b6dc-60d094c19c22"                 |
  |                   |     },                                                                                          |
  |                   |     "packageContent": {                                                                         |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/1142e6d0-9967-4249-b6dc-60d094c19c22/package_content" |
  |                   |     }                                                                                           |
  |                   | }                                                                                               |
  | Onboarding State  | CREATED                                                                                         |
  | Operational State | DISABLED                                                                                        |
  | Usage State       | NOT_IN_USE                                                                                      |
  | User Defined Data | {}                                                                                              |
  +-------------------+-------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package list -c Id -c 'Vnf Product Name'
  
  +--------------------------------------+------------------+
  | Id                                   | Vnf Product Name |
  +--------------------------------------+------------------+
  | 08984ebc-fafd-47ab-807f-a3d708844294 |                  |
  | 1142e6d0-9967-4249-b6dc-60d094c19c22 |                  |
  | 20ee138d-2f78-4a0f-a8fa-833a0a2e387f |                  |
  | 646013d2-5098-4351-9da0-ec95b28bd550 | Sample VNF       |
  | 71f391ea-82df-4bf6-9fc8-e825eaf1d06e |                  |
  | 86f54570-b17a-459c-a5ca-103dd674d51c | Sample VNF       |
  | cf9444ed-6159-4743-a77d-289b7f111983 |                  |
  | e3a16588-42da-468e-ac30-9f65baef9a1b | Sample VNF       |
  +--------------------------------------+------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ mkdir temporary
  navum_public@instance-vnfm-2nd-20210413:~$ cd temporary/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf /opt/stack/tacker/tacker/tests/etc/samples/etsi/nfv/vnflcm1 .
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf /opt/stack/tacker/tacker/tests/etc/samples/etsi/nfv/common .
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ mkdir vnfpackage
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf common/* vnflcm1/* vnfpackage/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cd vnfpackage/
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ uuidgen
  47ecd16b-69da-4fd1-be49-ce979635cc4a
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ vim Definitions/helloworld3_top.vnfd.yaml
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ vim Definitions/helloworld3_types.yaml
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ zip -r ../vnfpackage.zip *
    adding: Definitions/ (stored 0%)
    adding: Definitions/etsi_nfv_sol001_common_types.yaml (deflated 76%)
    adding: Definitions/etsi_nfv_sol001_vnfd_types.yaml (deflated 84%)
    adding: Definitions/helloworld3_types.yaml (deflated 70%)
    adding: Definitions/helloworld3_df_simple.yaml (deflated 75%)
    adding: Definitions/helloworld3_top.vnfd.yaml (deflated 54%)
    adding: Files/ (stored 0%)
    adding: Files/images/ (stored 0%)
    adding: Files/images/cirros-0.4.0-x86_64-disk.img (deflated 4%)
    adding: Files/kubernetes/ (stored 0%)
    adding: Files/kubernetes/deployment.yaml (deflated 62%)
    adding: Scripts/ (stored 0%)
    adding: Scripts/install.sh (stored 0%)
    adding: TOSCA-Metadata/ (stored 0%)
    adding: TOSCA-Metadata/TOSCA.meta (deflated 21%)
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ cd ../
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package upload --path vnfpackage.zip 1142e6d0-9967-4249-b6dc-60d094c19c22
  
  Upload request for VNF package 1142e6d0-9967-4249-b6dc-60d094c19c22 has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package show -c 'VNFD ID' 1142e6d0-9967-4249-b6dc-60d094c19c22
  
  +---------+--------------------------------------+
  | Field   | Value                                |
  +---------+--------------------------------------+
  | VNFD ID | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  +---------+--------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm create --name 'n22' --description 'n22' 47ecd16b-69da-4fd1-be49-ce979635cc4a
  
  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  | Field                    | Value                                                                                                            |
  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  | ID                       | 279e8879-6db2-4439-968f-ed2c28f35862                                                                             |
  | Instantiation State      | NOT_INSTANTIATED                                                                                                 |
  | Links                    | {                                                                                                                |
  |                          |     "self": {                                                                                                    |
  |                          |         "href": "http://localhost:9890/vnflcm/v1/vnf_instances/279e8879-6db2-4439-968f-ed2c28f35862";             |
  |                          |     },                                                                                                           |
  |                          |     "instantiate": {                                                                                             |
  |                          |         "href": "http://localhost:9890/vnflcm/v1/vnf_instances/279e8879-6db2-4439-968f-ed2c28f35862/instantiate"; |
  |                          |     }                                                                                                            |
  |                          | }                                                                                                                |
  | VNF Instance Description | n22                                                                                                              |
  | VNF Instance Name        | n22                                                                                                              |
  | VNF Product Name         | Sample VNF                                                                                                       |
  | VNF Provider             | Company                                                                                                          |
  | VNF Software Version     | 1.0                                                                                                              |
  | VNFD ID                  | 47ecd16b-69da-4fd1-be49-ce979635cc4a                                                                             |
  | VNFD Version             | 1.0                                                                                                              |
  | vnfPkgId                 |                                                                                                                  |
  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cd ..
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm instantiate instantiateVnfRequest.json
  
  usage: openstack vnflcm instantiate [-h] <vnf-instance> <param-file>
  openstack vnflcm instantiate: error: the following arguments are required: <param-file>
  
  navum_public@instance-vnfm-2nd-20210413:~$ ls
  devstack  get-pip.py  instantiateVnfRequest.json  instantiateVnfRequest_default.json  issue_47  log  temporary
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm instantiate 279e8879-6db2-4439-968f-ed2c28f35862 instantiateVnfRequest.json
  
  Instantiate request for VNF Instance 279e8879-6db2-4439-968f-
  ed2c28f35862 has been accepted.
  
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm list
  
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | ID                                   | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID                              |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | 279e8879-6db2-4439-968f-ed2c28f35862 | n22               | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  | 34a78a34-2099-40c6-8bb6-b8ef0dbd4823 | SHANU_VNF_DEFAULT | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | 55b17862-17cc-4acd-9f36-35160d6772e5 | navum_11          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | eff46db4-579a-4ed7-88ce-7897984dc750 | navum_tt          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | f73c9d77-3505-4806-bd18-271c72b8c0b6 | n21               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 5331c61a-d1fa-4a55-9d41-dc5ca9d54d3a |
  | f9e32007-0043-40cc-89e3-cf307baa54a2 | SHANU_VNF         | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package create
  
  +-------------------+-------------------------------------------------------------------------------------------------+
  | Field             | Value                                                                                           |
  +-------------------+-------------------------------------------------------------------------------------------------+
  | ID                | 6f0eb8d9-8386-4008-aade-75801b4b3686                                                            |
  | Links             | {                                                                                               |
  |                   |     "self": {                                                                                   |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/6f0eb8d9-8386-4008-aade-75801b4b3686"                 |
  |                   |     },                                                                                          |
  |                   |     "packageContent": {                                                                         |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/6f0eb8d9-8386-4008-aade-75801b4b3686/package_content" |
  |                   |     }                                                                                           |
  |                   | }                                                                                               |
  | Onboarding State  | CREATED                                                                                         |
  | Operational State | DISABLED                                                                                        |
  | Usage State       | NOT_IN_USE                                                                                      |
  | User Defined Data | {}                                                                                              |
  +-------------------+-------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ cd temporary/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package upload --path vnfpackage.zip 6f0eb8d9-8386-4008-aade-75801b4b3686
  
  Upload request for VNF package 6f0eb8d9-8386-4008-aade-75801b4b3686 has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm terminate 279e8879-6db2-4439-968f-ed2c28f35862
  
  Terminate request for VNF Instance '279e8879-6db2-4439-968f-ed2c28f35862' has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm list
  
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | ID                                   | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID                              |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | 279e8879-6db2-4439-968f-ed2c28f35862 | n22               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  | 34a78a34-2099-40c6-8bb6-b8ef0dbd4823 | SHANU_VNF_DEFAULT | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | 55b17862-17cc-4acd-9f36-35160d6772e5 | navum_11          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | eff46db4-579a-4ed7-88ce-7897984dc750 | navum_tt          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | f73c9d77-3505-4806-bd18-271c72b8c0b6 | n21               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 5331c61a-d1fa-4a55-9d41-dc5ca9d54d3a |
  | f9e32007-0043-40cc-89e3-cf307baa54a2 | SHANU_VNF         | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1929265

Title:
  Uploading same VNF package with different package id then VNF
  termination is failing for VNF which was onboarded with first vnf
  package

Status in Glance:
  New

Bug description:
  when uploading same package with different package id then VNF
  termination is failing for VNF which was onboarded with first vnf
  package

  <operation log>

  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package
  create

  +-------------------+-------------------------------------------------------------------------------------------------+
  | Field             | Value                                                                                           |
  +-------------------+-------------------------------------------------------------------------------------------------+
  | ID                | 1142e6d0-9967-4249-b6dc-60d094c19c22                                                            |
  | Links             | {                                                                                               |
  |                   |     "self": {                                                                                   |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/1142e6d0-9967-4249-b6dc-60d094c19c22"                 |
  |                   |     },                                                                                          |
  |                   |     "packageContent": {                                                                         |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/1142e6d0-9967-4249-b6dc-60d094c19c22/package_content" |
  |                   |     }                                                                                           |
  |                   | }                                                                                               |
  | Onboarding State  | CREATED                                                                                         |
  | Operational State | DISABLED                                                                                        |
  | Usage State       | NOT_IN_USE                                                                                      |
  | User Defined Data | {}                                                                                              |
  +-------------------+-------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package list -c Id -c 'Vnf Product Name'

  +--------------------------------------+------------------+
  | Id                                   | Vnf Product Name |
  +--------------------------------------+------------------+
  | 08984ebc-fafd-47ab-807f-a3d708844294 |                  |
  | 1142e6d0-9967-4249-b6dc-60d094c19c22 |                  |
  | 20ee138d-2f78-4a0f-a8fa-833a0a2e387f |                  |
  | 646013d2-5098-4351-9da0-ec95b28bd550 | Sample VNF       |
  | 71f391ea-82df-4bf6-9fc8-e825eaf1d06e |                  |
  | 86f54570-b17a-459c-a5ca-103dd674d51c | Sample VNF       |
  | cf9444ed-6159-4743-a77d-289b7f111983 |                  |
  | e3a16588-42da-468e-ac30-9f65baef9a1b | Sample VNF       |
  +--------------------------------------+------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ mkdir temporary
  navum_public@instance-vnfm-2nd-20210413:~$ cd temporary/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf /opt/stack/tacker/tacker/tests/etc/samples/etsi/nfv/vnflcm1 .
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf /opt/stack/tacker/tacker/tests/etc/samples/etsi/nfv/common .
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ mkdir vnfpackage
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cp -prf common/* vnflcm1/* vnfpackage/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cd vnfpackage/
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ uuidgen
  47ecd16b-69da-4fd1-be49-ce979635cc4a
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ vim Definitions/helloworld3_top.vnfd.yaml
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ vim Definitions/helloworld3_types.yaml
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ zip -r ../vnfpackage.zip *
    adding: Definitions/ (stored 0%)
    adding: Definitions/etsi_nfv_sol001_common_types.yaml (deflated 76%)
    adding: Definitions/etsi_nfv_sol001_vnfd_types.yaml (deflated 84%)
    adding: Definitions/helloworld3_types.yaml (deflated 70%)
    adding: Definitions/helloworld3_df_simple.yaml (deflated 75%)
    adding: Definitions/helloworld3_top.vnfd.yaml (deflated 54%)
    adding: Files/ (stored 0%)
    adding: Files/images/ (stored 0%)
    adding: Files/images/cirros-0.4.0-x86_64-disk.img (deflated 4%)
    adding: Files/kubernetes/ (stored 0%)
    adding: Files/kubernetes/deployment.yaml (deflated 62%)
    adding: Scripts/ (stored 0%)
    adding: Scripts/install.sh (stored 0%)
    adding: TOSCA-Metadata/ (stored 0%)
    adding: TOSCA-Metadata/TOSCA.meta (deflated 21%)
  navum_public@instance-vnfm-2nd-20210413:~/temporary/vnfpackage$ cd ../
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package upload --path vnfpackage.zip 1142e6d0-9967-4249-b6dc-60d094c19c22

  Upload request for VNF package 1142e6d0-9967-4249-b6dc-60d094c19c22 has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package show -c 'VNFD ID' 1142e6d0-9967-4249-b6dc-60d094c19c22

  +---------+--------------------------------------+
  | Field   | Value                                |
  +---------+--------------------------------------+
  | VNFD ID | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  +---------+--------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm create --name 'n22' --description 'n22' 47ecd16b-69da-4fd1-be49-ce979635cc4a

  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  | Field                    | Value                                                                                                            |
  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  | ID                       | 279e8879-6db2-4439-968f-ed2c28f35862                                                                             |
  | Instantiation State      | NOT_INSTANTIATED                                                                                                 |
  | Links                    | {                                                                                                                |
  |                          |     "self": {                                                                                                    |
  |                          |         "href": "http://localhost:9890/vnflcm/v1/vnf_instances/279e8879-6db2-4439-968f-ed2c28f35862";             |
  |                          |     },                                                                                                           |
  |                          |     "instantiate": {                                                                                             |
  |                          |         "href": "http://localhost:9890/vnflcm/v1/vnf_instances/279e8879-6db2-4439-968f-ed2c28f35862/instantiate"; |
  |                          |     }                                                                                                            |
  |                          | }                                                                                                                |
  | VNF Instance Description | n22                                                                                                              |
  | VNF Instance Name        | n22                                                                                                              |
  | VNF Product Name         | Sample VNF                                                                                                       |
  | VNF Provider             | Company                                                                                                          |
  | VNF Software Version     | 1.0                                                                                                              |
  | VNFD ID                  | 47ecd16b-69da-4fd1-be49-ce979635cc4a                                                                             |
  | VNFD Version             | 1.0                                                                                                              |
  | vnfPkgId                 |                                                                                                                  |
  +--------------------------+------------------------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ cd ..
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm instantiate instantiateVnfRequest.json

  usage: openstack vnflcm instantiate [-h] <vnf-instance> <param-file>
  openstack vnflcm instantiate: error: the following arguments are required: <param-file>

  navum_public@instance-vnfm-2nd-20210413:~$ ls
  devstack  get-pip.py  instantiateVnfRequest.json  instantiateVnfRequest_default.json  issue_47  log  temporary
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm instantiate 279e8879-6db2-4439-968f-ed2c28f35862 instantiateVnfRequest.json

  Instantiate request for VNF Instance 279e8879-6db2-4439-968f-
  ed2c28f35862 has been accepted.

  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnflcm list

  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | ID                                   | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID                              |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | 279e8879-6db2-4439-968f-ed2c28f35862 | n22               | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  | 34a78a34-2099-40c6-8bb6-b8ef0dbd4823 | SHANU_VNF_DEFAULT | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | 55b17862-17cc-4acd-9f36-35160d6772e5 | navum_11          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | eff46db4-579a-4ed7-88ce-7897984dc750 | navum_tt          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | f73c9d77-3505-4806-bd18-271c72b8c0b6 | n21               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 5331c61a-d1fa-4a55-9d41-dc5ca9d54d3a |
  | f9e32007-0043-40cc-89e3-cf307baa54a2 | SHANU_VNF         | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package create

  +-------------------+-------------------------------------------------------------------------------------------------+
  | Field             | Value                                                                                           |
  +-------------------+-------------------------------------------------------------------------------------------------+
  | ID                | 6f0eb8d9-8386-4008-aade-75801b4b3686                                                            |
  | Links             | {                                                                                               |
  |                   |     "self": {                                                                                   |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/6f0eb8d9-8386-4008-aade-75801b4b3686"                 |
  |                   |     },                                                                                          |
  |                   |     "packageContent": {                                                                         |
  |                   |         "href": "/vnfpkgm/v1/vnf_packages/6f0eb8d9-8386-4008-aade-75801b4b3686/package_content" |
  |                   |     }                                                                                           |
  |                   | }                                                                                               |
  | Onboarding State  | CREATED                                                                                         |
  | Operational State | DISABLED                                                                                        |
  | Usage State       | NOT_IN_USE                                                                                      |
  | User Defined Data | {}                                                                                              |
  +-------------------+-------------------------------------------------------------------------------------------------+
  navum_public@instance-vnfm-2nd-20210413:~$ cd temporary/
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package upload --path vnfpackage.zip 6f0eb8d9-8386-4008-aade-75801b4b3686

  Upload request for VNF package 6f0eb8d9-8386-4008-aade-75801b4b3686 has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm terminate 279e8879-6db2-4439-968f-ed2c28f35862

  Terminate request for VNF Instance '279e8879-6db2-4439-968f-ed2c28f35862' has been accepted.
  navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm list

  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | ID                                   | VNF Instance Name | Instantiation State | VNF Provider | VNF Software Version | VNF Product Name | VNFD ID                              |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+
  | 279e8879-6db2-4439-968f-ed2c28f35862 | n22               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 47ecd16b-69da-4fd1-be49-ce979635cc4a |
  | 34a78a34-2099-40c6-8bb6-b8ef0dbd4823 | SHANU_VNF_DEFAULT | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | 55b17862-17cc-4acd-9f36-35160d6772e5 | navum_11          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | eff46db4-579a-4ed7-88ce-7897984dc750 | navum_tt          | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  | f73c9d77-3505-4806-bd18-271c72b8c0b6 | n21               | NOT_INSTANTIATED    | Company      | 1.0                  | Sample VNF       | 5331c61a-d1fa-4a55-9d41-dc5ca9d54d3a |
  | f9e32007-0043-40cc-89e3-cf307baa54a2 | SHANU_VNF         | INSTANTIATED        | Company      | 1.0                  | Sample VNF       | 95141bce-dea6-47b9-b08f-0034159f3bef |
  +--------------------------------------+-------------------+---------------------+--------------+----------------------+------------------+--------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1929265/+subscriptions


Follow ups