Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-5019 Publish latest version of VOTLHA software
  3. VOL-5063

v2.12 - voltha-system-tests: target voltctl-docker-image-build problem

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: VOLTHA v2.13
    • Component/s: Testing
    • Labels:
      None
    • Story Points:
      0

      Description

      Target / Dockerfile.voltctl:18 retrieves an invalid/hardcoded version of voltctl.

       

      Update for master and release

      • master should always download the latest version available.
      • release branches should freeze on latest version and checkout as hardcoded version string instead of /latest.
      • Update release howto: branching to mention this ticket.
      [crucible:voltha-system-tests] make voltctl-docker-image-build
      
      cd docker && docker build -t opencord/voltctl:local -f Dockerfile.voltctl .
      
      [+] Building 2.9s (8/10)                                                                                
       => [internal] load build definition from Dockerfile.voltctl                                      0.0s
      
       => => transferring dockerfile: 965B                                                              0.0s  
       => [internal] load .dockerignore                                                                 0.0s  
       => => transferring context: 2B                                                                   0.0s  
       => [internal] load metadata for docker.io/library/busybox:1.31.1-glibc                           2.1s  
       => [auth] library/busybox:pull token for registry-1.docker.io                                    0.0s
      
       => [internal] load build context                                                                 0.0s  
       => => transferring context: 983B                                                                 0.0s
      
       => [1/5] FROM docker.io/library/busybox:1.31.1-glibc@sha256:1f81263701cddf6402afe9f33fca0266d9f  0.0s
      
       => => resolve docker.io/library/busybox:1.31.1-glibc@sha256:1f81263701cddf6402afe9f33fca0266d9f  0.0s
      
       => => sha256:7a2331af229207e4ebade5cdaf5c86d971aea59adbb37e126ec8da602021f0bb 1.49kB / 1.49kB    0.0s  
       => => sha256:1f81263701cddf6402afe9f33fca0266d9fff379e59b1748f33d3072da71ee85 1.85kB / 1.85kB    0.0s  
       => => sha256:55c756c1a3c8e4a17e465d513de8374c7615ba6f7f5d3d0a4c7ad30ccabe2eb4 528B / 528B        0.0s  
       => [2/5] RUN mkdir -p /usr/bin                                                                   0.2s  
       => ERROR [3/5] RUN wget -O - https://github.com/opencord/voltctl/releases/download/v1.6.1/voltc  0.5s
      
      ------                                                                                                  
       > [3/5] RUN wget -O - https://github.com/opencord/voltctl/releases/download/v1.6.1/voltctl-1.6.1-linux
      -amd64 > /usr/bin/voltctl:
      
      #0 0.196 Connecting to github.com (140.82.113.4:443)
      
      #0 0.221 wget: note: TLS certificate validation not implemented
      
      #0 0.429 wget: server returned error: HTTP/1.1 404 Not Found
      
      ------
      
      Dockerfile.voltctl:18
      
      --------------------
      
        16 |      
        17 |     RUN mkdir -p /usr/bin
      
        18 | >>> RUN wget -O - https://github.com/opencord/voltctl/releases/download/v1.6.1/voltctl-1.6.1-lin
      ux-amd64 > /usr/bin/voltctl
      
        19 |     COPY volt.config /root/.volt/config
      
        20 |     RUN chmod a+x /usr/bin/voltctl && sync && voltctl completion bash >> /root/.bashrc
      
      --------------------
      
      ERROR: failed to solve: process "/bin/sh -c wget -O - https://github.com/opencord/voltctl/releases/down
      load/v1.6.1/voltctl-1.6.1-linux-amd64 > /usr/bin/voltctl" did not complete successfully: exit code: 1
      
      make: *** [Makefile:1002: voltctl-docker-image-build] Error 1
      
      
      *no* further _formatting_ is done here

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            joey Joey Armstrong
            Reporter:
            joey Joey Armstrong
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes