yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #86164
[Bug 1929265] Re: Uploading same VNF package with different package id then VNF termination is failing for VNF which was onboarded with first vnf package
** Changed in: glance
Status: New => Fix Committed
** Changed in: glance
Status: Fix Committed => Invalid
--
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:
Invalid
Bug description:
Termination of VNF is failing which was onboarded with first vnf
package when uploading same vnf package with different package id
<operation log>
navum_public@instance-vnfm-2nd-20210413:~$ openstack vnf package create
+-------------------+-------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------+-------------------------------------------------------------------------------------------------+
| ID | fe99abb6-b302-4bac-bc2b-063e86e7683f |
| Links | { |
| | "self": { |
| | "href": "/vnfpkgm/v1/vnf_packages/fe99abb6-b302-4bac-bc2b-063e86e7683f" |
| | }, |
| | "packageContent": { |
| | "href": "/vnfpkgm/v1/vnf_packages/fe99abb6-b302-4bac-bc2b-063e86e7683f/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 | Sample VNF |
| 20ee138d-2f78-4a0f-a8fa-833a0a2e387f | |
| 646013d2-5098-4351-9da0-ec95b28bd550 | Sample VNF |
| 6f0eb8d9-8386-4008-aade-75801b4b3686 | |
| 71f391ea-82df-4bf6-9fc8-e825eaf1d06e | |
| 86f54570-b17a-459c-a5ca-103dd674d51c | Sample VNF |
| cf9444ed-6159-4743-a77d-289b7f111983 | |
| e3a16588-42da-468e-ac30-9f65baef9a1b | Sample VNF |
| fe99abb6-b302-4bac-bc2b-063e86e7683f | |
+--------------------------------------+------------------+
navum_public@instance-vnfm-2nd-20210413:~$ mkdir temporary
mkdir: cannot create directory ‘temporary’: File exists
navum_public@instance-vnfm-2nd-20210413:~$ rm temporary/
rm: cannot remove 'temporary/': Is a directory
navum_public@instance-vnfm-2nd-20210413:~$ rm -rf temporary/
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
90e69b48-2b38-49e2-8e50-2d034197056c
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$ 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 53%)
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 fe99abb6-b302-4bac-bc2b-063e86e7683f
Upload request for VNF package fe99abb6-b302-4bac-bc2b-063e86e7683f has been accepted.
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package show -c 'VNFD ID' fe99abb6-b302-4bac-bc2b-063e86e7683f
+---------+--------------------------------------+
| Field | Value |
+---------+--------------------------------------+
| VNFD ID | 90e69b48-2b38-49e2-8e50-2d034197056c |
+---------+--------------------------------------+
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm create --name 'n221' --description 'n221' 90e69b48-2b38-49e2-8e50-2d034197056c
+--------------------------+------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+--------------------------+------------------------------------------------------------------------------------------------------------------+
| ID | 7fc20309-8239-4ae7-9bf9-9caba8608122 |
| Instantiation State | NOT_INSTANTIATED |
| Links | { |
| | "self": { |
| | "href": "http://localhost:9890/vnflcm/v1/vnf_instances/7fc20309-8239-4ae7-9bf9-9caba8608122" |
| | }, |
| | "instantiate": { |
| | "href": "http://localhost:9890/vnflcm/v1/vnf_instances/7fc20309-8239-4ae7-9bf9-9caba8608122/instantiate" |
| | } |
| | } |
| VNF Instance Description | n221 |
| VNF Instance Name | n221 |
| VNF Product Name | Sample VNF |
| VNF Provider | Company |
| VNF Software Version | 1.0 |
| VNFD ID | 90e69b48-2b38-49e2-8e50-2d034197056c |
| VNFD Version | 1.0 |
| vnfPkgId | |
+--------------------------+------------------------------------------------------------------------------------------------------------------+
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnf package create
+-------------------+-------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------+-------------------------------------------------------------------------------------------------+
| ID | f855d2ca-fa4d-481e-bf71-068d2cc2c6dc |
| Links | { |
| | "self": { |
| | "href": "/vnfpkgm/v1/vnf_packages/f855d2ca-fa4d-481e-bf71-068d2cc2c6dc" |
| | }, |
| | "packageContent": { |
| | "href": "/vnfpkgm/v1/vnf_packages/f855d2ca-fa4d-481e-bf71-068d2cc2c6dc/package_content" |
| | } |
| | } |
| Onboarding State | CREATED |
| Operational State | DISABLED |
| Usage State | NOT_IN_USE |
| User Defined Data | {} |
+-------------------+-------------------------------------------------------------------------------------------------+
navum_public@instance-vnfm-2nd-20210413:~/temporary$ openstack vnflcm terminate 7fc20309-8239-4ae7-9bf9-9caba8608122
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1929265/+subscriptions
References