Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-76431

[rapidast] openapi spec v3 is incorrect for subresources_kubevirt_io_v1and subresources_kubevirt_io_v1alpha3

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • CNV v4.21.0
    • CNV Infrastructure
    • None
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Moderate
    • None

      Description of problem:

      https://jenkins-csb-cnvqe-main.dno.corp.redhat.com/job/rapidast-scan-cnv-4.21/44/artifact/artifacts/rapidast/results/zap_subresources_kubevirt_io_v1/zap.log
      
      https://jenkins-csb-cnvqe-main.dno.corp.redhat.com/job/rapidast-scan-cnv-4.21/44/artifact/artifacts/rapidast/results/zap_subresources_kubevirt_io_v1alpha3/zap.log
      
      2026-01-02 15:42:25,834 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}'. There are duplicate parameter values
      2026-01-02 15:42:25,834 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol}'. There are duplicate parameter values
      2026-01-02 15:42:25,834 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol}'. There are duplicate parameter values
      2026-01-02 15:42:25,835 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc'. There are duplicate parameter values
      2026-01-02 15:42:25,835 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot'. There are duplicate parameter values
      2026-01-02 15:42:25,835 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock'. There are duplicate parameter values
      2026-01-02 15:42:25,835 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock'. There are duplicate parameter values
      2026-01-02 15:42:25,835 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}'. There are duplicate parameter values
      2026-01-02 15:42:25,835 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol}'. There are duplicate parameter values
      2026-01-02 15:42:25,835 [main ] ERROR CommandLine - Job openapi target: https://api.bm16a-tlv2.abi.cnv-qe.rhood.us:6443/ error: paths.'/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol}'. There are duplicate parameter values
      

      It looks like the v3 openapi spec is missing populated components.parameters which should contain populated referenced parameters ($ref) defined for the URLs:
      e.g.:

      "/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock":
      {"get":{"description":"Open a websocket connection forwarding traffic to the specified VirtualMachineInstance
       and port via VSOCK.","operationId":"v1VSOCK","responses":{"401":{"description":"Unauthorized"}}},
       "parameters":[{"name":"name","in":"path","description":"Name of the resource",
       "required":true,"schema":{"type":"string","uniqueItems":true}},
       {"$ref":"#/components/parameters/namespace-nfszEHZ0","schema":{"type":""}},
       {"$ref":"#/components/parameters/port-i4kLh44i","schema":{"type":""}},
       {"$ref":"#/components/parameters/tls-HU0O_z1S","schema":{"type":""}}]},"
      

      Version-Release number of selected component (if applicable):

      4.21

      How reproducible:

       

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              dholler@redhat.com Dominik Holler
              ksimon@redhat.com Karel Simon
              Geetika Kapoor Geetika Kapoor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: