Skip to content

Panic could generate with this change when Multus is configured with cniVersion 0.3.1 or 0.4.0 #1497

@xiangfeiz

Description

@xiangfeiz

emptyResult := emptyCNIResult(args, n.CNIVersion)

In case that mulus is configured with cniVersion: 0.3.1 or 0.4.0, this will create a *types100.Result with CNIVersion 0.31 or 0.4.0. Eventually it leads to github.com/containernetworking/cni/pkg/types/100.convertFrom04x throws out a panic when trying to cast *types100.Result to *types040.Result.

The issue was fixed by ccfd8f5 . But later commit 921191d reverts the fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions