Skip to content

get_networks and set_network does not use the same source #165

@sigbjornaib

Description

@sigbjornaib

When the get_networks (/ RedHatConsulting_Utilities / Service / Provisioning / DynamicDialogs / get_networks) method is used to display available networks for a new provision request for RHV/OVIRT, it uses the Network name (Network -> Networks in RHV-M) to find available networks to display to the end user.

When the provisioning request is executing, and the set_network (/ RedHatConsulting_Utilities / Infrastructure / VM / Provisioning / StateMachines / Methods / set_network) method is used to update the vlan for the provisioning request, the vNIC Profile ID is used. (Network -> vNIC Profiles in RHV-M).

The result is when a Network name is set to "my_network", and the vNIC Profile is set to "my-network", the provisioning dialog displays a selectable VM network, however the provisioning request fails during the set_network stage:

[workernode1] VM [myvmname.domain] Step [PreProvision_2] Status [Error setting network: State=<PreProvision_2> running raised exception: <Method exited with rc=Unknown RC: [1]>] Message [Setting Network]

The issue is with the get_networks method, as the vNIC profile name should be used for matching to allow selecting different vNIC profiles.

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