Hi Felipe, Did you restart the agent after updating the `agent.properties` file? I've set this on my lab with the values you have shared, and it gets the correct Vif driver.
Best regards, Slavka On Thu, Apr 28, 2022 at 1:28 AM Felipe Polanco <felipeapola...@gmail.com> wrote: > Hi, > > We are trying to setup Open Vswitch in ACS 4.16 and we have added the > following lines to the agent config file and manually created the bridges > in OVS: > > network.bridge.type=openvswitch > libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.OvsVifDriver > > # ovs-vsctl show > a6558802-d843-4285-90bc-c884ee9df0d2 > Bridge cloudbr0 > Port bond0 > Interface eth2 > Interface eth3 > Port cloudbr0 > Interface cloudbr0 > type: internal > Port vlan110 > tag: 110 > Interface vlan110 > type: internal > Port vlan100 > tag: 100 > Interface vlan100 > type: internal > ovs_version: "2.13.5" > > > > However, cloudstack-agent keeps crashing with error about not being able to > find the private NIC and that the libvirt.vif.driver is not specified and > is defaulting to BridgeVifDriver and failing > > Mar 24 21:50:10 PS-NODE5 java[164130]: INFO [cloud.agent.AgentShell] > (main:) (logid:) Agent started > Mar 24 21:50:10 PS-NODE5 java[164130]: INFO [cloud.agent.AgentShell] > (main:) (logid:) Implementation Version is 4.16.1.0 > Mar 24 21:50:10 PS-NODE5 java[164130]: INFO [cloud.agent.AgentShell] > (main:) (logid:) agent.properties found at > /etc/cloudstack/agent/agent.properties > Mar 24 21:50:10 PS-NODE5 java[164130]: INFO [cloud.agent.AgentShell] > (main:) (logid:) Defaulting to using properties file for storage > Mar 24 21:50:10 PS-NODE5 java[164130]: INFO [cloud.agent.AgentShell] > (main:) (logid:) Defaulting to the constant time backoff algorithm > Mar 24 21:50:10 PS-NODE5 java[164130]: INFO [cloud.utils.LogUtils] (main:) > (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml > Mar 24 21:50:10 PS-NODE5 java[164130]: INFO [cloud.agent.AgentShell] > (main:) (logid:) Using default Java settings for IPv6 preference for agent > connection > Mar 24 21:50:11 PS-NODE5 java[164130]: INFO [cloud.agent.Agent] (main:) > (logid:) id is > Mar 24 21:50:11 PS-NODE5 java[164130]: WARN > [cloud.resource.ServerResourceBase] (main:) (logid:) Nics are not > specified in properties file/db, will try to au > todiscover > Mar 24 21:50:11 PS-NODE5 java[164130]: INFO > [cloud.resource.ServerResourceBase] (main:) (logid:) Designating private > to be nic cni-podman0 > Mar 24 21:50:11 PS-NODE5 java[164130]: ERROR > [kvm.resource.LibvirtComputingResource] (main:) (logid:) uefi properties > file not found due to: Unable to find fi > le uefi.properties. > Mar 24 21:50:11 PS-NODE5 java[164130]: INFO > [kvm.resource.LibvirtConnection] (main:) (logid:) No existing libvirtd > connection found. Opening a new one > Mar 24 21:50:11 PS-NODE5 java[164130]: WARN > [kvm.storage.KVMStoragePoolManager] (main:) (logid:) Duplicate > StorageAdaptor type PowerFlex, not loading com.clo > ud.hypervisor.kvm.storage.ScaleIOStorageAdaptor > Mar 24 21:50:11 PS-NODE5 java[164130]: INFO > [kvm.resource.LibvirtComputingResource] (main:) (logid:) *No > libvirt.vif.driver specified. Defaults to BridgeVifDr* > iver. > Mar 24 21:50:11 PS-NODE5 java[164130]: ERROR > [kvm.resource.LibvirtComputingResource] (main:) (logid:) Failed to get > private nic name > Mar 24 21:50:11 PS-NODE5 java[164130]: ERROR [cloud.agent.AgentShell] > (main:) (logid:) Unable to start agent: Failed to get private nic name > > Any idea why the agent would ignore this line? > > Thanks, >