When creating a vm with a bridge network interface I get this error:
Sat Aug 31 14:32:52 2019 [Z0][VMM][D]: Message received: LOG I 13 sudo: no tty present and no askpass program specified
Sat Aug 31 14:32:52 2019 [Z0][VMM][D]: Message received: LOG I 13 /var/tmp/one/vnm/vlan.rb:166:in `get_bridges': undefined method `each' for nil:NilClass (NoMethodError)
Sat Aug 31 14:32:52 2019 [Z0][VMM][D]: Message received: LOG I 13 from /var/tmp/one/vnm/vlan.rb:36:in `activate'
Sat Aug 31 14:32:52 2019 [Z0][VMM][D]: Message received: LOG I 13 from /var/tmp/one/vnm/bridge/pre:29:in `<main>'
Sat Aug 31 14:32:52 2019 [Z0][VMM][D]: Message received: LOG I 13 ExitCode: 1
Sat Aug 31 14:32:52 2019 [Z0][VMM][D]: Message received: LOG I 13 Failed to execute network driver operation: pre.
Sat Aug 31 14:32:52 2019 [Z0][VMM][D]: Message received: DEPLOY FAILURE 13 bridge: -
I also get the error when trying to attach the nic to an existing vm.
To test if this was the issue i changed it to
oneadmin ALL = (ALL) NOPASSWD:ALL
And the virt did deploy (aside from needing the bridge-utils package still). Can you tell if there is anything missing from my sudoers file that might be causing this?
@cgonzalez
Disregard my last post. It looks like all I needed was to install bridge-utils. For some reason I wasn’t getting a good error message about this until I changed the sudoers file.
The sudoers file didn’t actually need to be changed. I tried on a different node that was still using the stock sudoers file and it worked after installing bridge-utils.