Running the VNF LCM instantiate using the sample vnf package fails

Bug #1886124 reported by Naoaki Horie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Medium
Naoaki Horie

Bug Description

I've confirmed that using the following sample VNF package, running the VNF LCM instantiate fails.
https://opendev.org/openstack/tacker/src/branch/master/samples/vnf_packages/sample_vnf_pkg.zip

I think that the uploaded VNF package should execute the VNF LCM instantiate normally.

additional information:

As show following log message when run the VNF LCM instantiate.

------------------<tacker-conductor.log>------------------
2020-07-02 06:31:47.365 ERROR oslo_messaging.rpc.server [req-03855374-411f-49ea-be00-892fdd6b01fb nfv_user nfv] Exception during message handling: tacker.common.exceptions.VnfPreInstantiationFailed: Vnf '4dd00c66-cd7a-4a17-a802-df010c4ed14e' failed during pre-instantiation due to error: Image 5537f3d8-563e-41ea-b9db-18252782f9ec checksum verification failed. Glance calculated checksum is sha512:9a318acd9d049bbd6a8c662b18be95414b3b1f2e3d27e38e59bf99347193ac2831220aa54296ee35aee8f53c399000f095c8eca7eb611c5b2c83eeb7c30834a8. Checksum in VNFD is sha-256:b9c3036539fd7a5f87a1bf38eb05fdde8b556a1a7e664dbeda90ed3cd74b4f9d.
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/vnfm/infra_drivers/openstack/openstack.py", line 651, in pre_instantiation_vnf
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server 'active', vnflcm.ImageCreateWaitFailed)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/vnfm/infra_drivers/openstack/openstack.py", line 704, in _image_create_wait
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server "image_hash_value": vnf_software_image.hash})
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server Exception: Image 5537f3d8-563e-41ea-b9db-18252782f9ec checksum verification failed. Glance calculated checksum is sha512:9a318acd9d049bbd6a8c662b18be95414b3b1f2e3d27e38e59bf99347193ac2831220aa54296ee35aee8f53c399000f095c8eca7eb611c5b2c83eeb7c30834a8. Checksum in VNFD is sha-256:b9c3036539fd7a5f87a1bf38eb05fdde8b556a1a7e664dbeda90ed3cd74b4f9d.
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.6/dist-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.6/dist-packages/oslo_messaging/rpc/dispatcher.py", line 273, in dispatch
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.6/dist-packages/oslo_messaging/rpc/dispatcher.py", line 193, in _do_dispatch
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "<decorator-gen-2>", line 2, in instantiate
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/common/coordination.py", line 143, in _synchronized
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server return f(*a, **k)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/conductor/conductor_server.py", line 425, in instantiate
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server instantiate_vnf)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/common/log.py", line 35, in wrapper
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server return method(*args, **kwargs)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/vnflcm/vnflcm_driver.py", line 84, in decorated_function
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server _rollback_vnf(self, context, vnf_instance)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.6/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server self.force_reraise()
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.6/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.6/dist-packages/six.py", line 703, in reraise
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server raise value
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/vnflcm/vnflcm_driver.py", line 73, in decorated_function
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server return function(self, context, *args, **kwargs)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/vnflcm/vnflcm_driver.py", line 242, in instantiate_vnf
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server instantiate_vnf_req)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/vnflcm/vnflcm_driver.py", line 158, in _instantiate_vnf
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server vnf_software_images=vnf_software_images)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/common/driver_manager.py", line 71, in invoke
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server return getattr(driver, method_name)(**kwargs)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/common/log.py", line 35, in wrapper
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server return method(*args, **kwargs)
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server File "/opt/stack/tacker/tacker/vnfm/infra_drivers/openstack/openstack.py", line 679, in pre_instantiation_vnf
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server error=encodeutils.exception_to_unicode(exp))
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server tacker.common.exceptions.VnfPreInstantiationFailed: Vnf '4dd00c66-cd7a-4a17-a802-df010c4ed14e' failed during pre-instantiation due to error: Image 5537f3d8-563e-41ea-b9db-18252782f9ec checksum verification failed. Glance calculated checksum is sha512:9a318acd9d049bbd6a8c662b18be95414b3b1f2e3d27e38e59bf99347193ac2831220aa54296ee35aee8f53c399000f095c8eca7eb611c5b2c83eeb7c30834a8. Checksum in VNFD is sha-256:b9c3036539fd7a5f87a1bf38eb05fdde8b556a1a7e664dbeda90ed3cd74b4f9d.
2020-07-02 06:31:47.365 15240 ERROR oslo_messaging.rpc.server

description: updated
Changed in tacker:
assignee: nobody → Naoaki Horie (naoaki-horie)
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/739692

Changed in tacker:
status: New → In Progress
Revision history for this message
Yasufumi Ogawa (yasufum) wrote :

Could you explain WHAT is the problem? In addition, we need to understand HOW to see this error for inspecting it ourselves. I can roughly understand what is going on your environment, but not for the details. Thanks

Changed in tacker:
importance: Undecided → Medium
Revision history for this message
Toshiaki Takahashi (takahashi-tsc) wrote :

In my understanding, this bug is fixed by proposed patch above as sample's bug.
But this bug also includes source code bug. Tacker always use glance with default checksum algorithm of glance setting.
Can I fix the bug? If OK, I create a new bug report and a patch.

Revision history for this message
Toshiaki Takahashi (takahashi-tsc) wrote :

Hmm... is hash algorithm fixed value in Glance setting? If so, it is only a issue of package...
I'll check it, but it may be not source code bug.

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

Reviewed: https://review.opendev.org/739692
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=b397d01a3e4fb77809c8c48e78eebe8cf2a3fcf4
Submitter: Zuul
Branch: master

commit b397d01a3e4fb77809c8c48e78eebe8cf2a3fcf4
Author: Naoaki Horie <email address hidden>
Date: Tue Jul 7 09:30:33 2020 +0000

    Running the VNF LCM instantiate using the sample vnf package fails

    The CSAR file for VNF package registered as a sample fails to run
    the VNF LCM instantiate. The cause of this issue is typo and invalid
    definition for the VNFD. I think that the csar zip file for uploaded VNF
    package should be able to run the VNF LCM instantiate normally.
    Therefore, fix typo and invalid definition for the VNFD in the CSAR file.

    Also, fix to the following settings that has a dependent on environment
    because the current VNFD can only be run in the limited environment.

    * Change hash algorithm from sha-256 to sha-512 according
      the Glance default hash algorithm
    * Change from 8192 MB to 256 MB in the `min_ram` size of
      the VirtualStorage to work even in a low specification environment
    * Delete `CP1.properties.vnic_type` to work even under a virtual
      environment

    Change-Id: Icccaa523d33115e8b7ec0a6fd7e9c5f177d0a363
    Closes-Bug: #1886124

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/755603

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tacker (stable/victoria)

Change abandoned by Yasufumi Ogawa (<email address hidden>) on branch: stable/victoria
Review: https://review.opendev.org/755603

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

Reviewed: https://review.opendev.org/755603
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=96ca43483deffd582666f8c717c9671e443352e6
Submitter: Zuul
Branch: stable/victoria

commit 96ca43483deffd582666f8c717c9671e443352e6
Author: Naoaki Horie <email address hidden>
Date: Tue Jul 7 09:30:33 2020 +0000

    Running the VNF LCM instantiate using the sample vnf package fails

    The CSAR file for VNF package registered as a sample fails to run
    the VNF LCM instantiate. The cause of this issue is typo and invalid
    definition for the VNFD. I think that the csar zip file for uploaded VNF
    package should be able to run the VNF LCM instantiate normally.
    Therefore, fix typo and invalid definition for the VNFD in the CSAR file.

    Also, fix to the following settings that has a dependent on environment
    because the current VNFD can only be run in the limited environment.

    * Change hash algorithm from sha-256 to sha-512 according
      the Glance default hash algorithm
    * Change from 8192 MB to 256 MB in the `min_ram` size of
      the VirtualStorage to work even in a low specification environment
    * Delete `CP1.properties.vnic_type` to work even under a virtual
      environment

    Change-Id: Icccaa523d33115e8b7ec0a6fd7e9c5f177d0a363
    Closes-Bug: #1886124
    (cherry picked from commit b397d01a3e4fb77809c8c48e78eebe8cf2a3fcf4)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 5.0.0.0rc1

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