The module lifecycle stage: General Availability

How to get the vNIC profile ID?

You can get the ID of the vNIC profile set in the vnicProfileID parameter of the ZvirtInstanceClass resource by querying the zVirt API:

  1. Get an access token for the zVirt API:

    curl -s -X POST <ZVIRT_ENGINE_URL>/sso/oauth/token \
      -H "Accept: application/json" \
      --data-urlencode "grant_type=password" \
      --data-urlencode "scope=ovirt-app-api" \
      --data-urlencode "username=<USERNAME>" \
      --data-urlencode "password=<PASSWORD>"
    

    Replace <ZVIRT_ENGINE_URL> with the URL from the server parameter of the module settings without the trailing /api, for example, https://zvirt.example.com/ovirt-engine. Replace <USERNAME> and <PASSWORD> with the zVirt user login and password in the same format as in the credentials Secret.

    The token is given in the access_token field of the response.

  2. Get the list of vNIC profiles:

    curl -s -H "Authorization: Bearer <TOKEN>" <ZVIRT_ENGINE_URL>/api/vnicprofiles
    

    Replace <TOKEN> with the token from the previous step.

The profile ID is given in the id attribute of the vnic_profile element. Response example:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vnic_profiles>
    <vnic_profile href="/ovirt-engine/api/vnicprofiles/49bb4594-0cd4-4eb7-8288-8594eafd5a86" id="49bb4594-0cd4-4eb7-8288-8594eafd5a86">
        <name>vm-net-01</name>
        <link href="/ovirt-engine/api/vnicprofiles/49bb4594-0cd4-4eb7-8288-8594eafd5a86/permissions" rel="permissions"/>
        <pass_through>
            <mode>disabled</mode>
        </pass_through>
        <port_mirroring>false</port_mirroring>
        <network href="/ovirt-engine/api/networks/74a741c9-0d40-4008-8e58-1c903ee6eba7" id="74a741c9-0d40-4008-8e58-1c903ee6eba7"/>
    </vnic_profile>
    ...
</vnic_profiles>

How to disable individual provider subsystems?

To disable the nodes, storage, or Cloud Controller Manager subsystem, in the ModuleConfig resource of the cloud-provider-zvirt module, set the nodes.disabled, storage.disabled, or ccm.disabled parameter to true.