Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-4523

ONU SW download fails if the already present stdby image is NOT valid

    XMLWordPrintable

    Details

      Description

      Image list before triggering the download:
      bash-5.1# voltctl device onuimage list 40352954-6070-4cbf-b94e-d3b28f749ffe

      bash-5.1# voltctl device onuimage list 40352954-6070-4cbf-b94e-d3b28f749ffe
      VERSION           ISCOMMITED    ISACTIVE    ISVALID    PRODUCTCODE    HASH
      090140.1.0.304    false         false       false                     00000000000000000000000000000000
      090140.2.0.002    true          true        true                      00000000000000000000000000000000

       

      Now if we try to download a new image, the onu-adapter shows the following error:

      {"level":"error","ts":"2021-12-14T16:13:13.933Z","caller":"onuadaptercore/device_handler.go:1290","msg":"start Onu SW upgrade rejected: no inactive image","instanceId":"voltha1-adapter-openonu-voltha-adapter-openonu-fdd6995d6-jd5s5","pkg":"adaptercoreonu","op-name":"/voltha.VolthaService/DownloadImageToDevice","task-id":"6a89cf57c1bf48fb","task-name":"kafka-rpc-Download_onu_image","op-id":"66c26aa69fe44328","device-id":"40352954-6070-4cbf-b94e-d3b28f749ffe","error":"no valid inactive image found: 40352954-6070-4cbf-b94e-d3b28f749ffe","stacktrace":"github.com/opencord/voltha-lib-go/v5/pkg/log.clogger.Errorw\n\t/go/src/vendor/github.com/opencord/voltha-lib-go/v5/pkg/log/log.go:612\ngithub.com/opencord/voltha-openonu-adapter-go/internal/pkg/onuadaptercore.(*deviceHandler).onuSwUpgradeAfterDownload\n\t/go/src/internal/pkg/onuadaptercore/device_handler.go:1290"}
      

      Onu-adapter-version: v1.3.15

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            HolgerH Holger Hildebrandt
            Reporter:
            salmansiddiqui Salman Siddiqui
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes