Issues creating 802.1q interface on remote host

Hello,

I have an issue with Opennebula where when I try to attach a NIC on a remote host via the frontent it fails with the bellow logs, the bridge interface is setup on the remote host, VLANS are enabled and in use, bridge utils etc. is all installed

I have disabled TTY in the sudoers file alsoe as its throwing a no tty error, any help on this would be appreciated.

On the frontend I also have this as a compute node and the VLAN deploys / attached fine.

Logs

Wed Oct 3 10:21:10 2018 [Z0][VM][I]: New LCM state is HOTPLUG_NIC
Wed Oct 3 10:21:11 2018 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vnm/802.1Q/pre PFZNPjxJRD4xPC9JRD48REVQTE9ZX0lEPm9uZS0xPC9ERVBMT1lfSUQ+PFRFTVBMQVRFPjxDT05URVhUPjxESVNLX0lEPjwhW0NEQVRBWzFdXT48L0RJU0tfSUQ+PEVUSDBfQ09OVEVYVF9GT1JDRV9JUFY0PjwhW0NEQVRBW11dPjwvRVRIMF9DT05URVhUX0ZPUkNFX0lQVjQ+PEVUSDBfRE5TPjwhW0NEQVRBWzguOC44LjhdXT48L0VUSDBfRE5TPjxFVEgwX0dBVEVXQVk+PCFbQ0RBVEFbMTAuMC41MC4yNTRdXT48L0VUSDBfR0FURVdBWT48RVRIMF9HQVRFV0FZNj48IVtDREFUQVtdXT48L0VUSDBfR0FURVdBWTY+PEVUSDBfSVA+PCFbQ0RBVEFbMTAuMC41MC4xMl1dPjwvRVRIMF9JUD48RVRIMF9JUDY+PCFbQ0RBVEFbXV0+PC9FVEgwX0lQNj48RVRIMF9JUDZfUFJFRklYX0xFTkdUSD48IVtDREFUQVtdXT48L0VUSDBfSVA2X1BSRUZJWF9MRU5HVEg+PEVUSDBfSVA2X1VMQT48IVtDREFUQVtdXT48L0VUSDBfSVA2X1VMQT48RVRIMF9NQUM+PCFbQ0RBVEFbMDI6MDA6MGE6MDA6MzI6MGNdXT48L0VUSDBfTUFDPjxFVEgwX01BU0s+PCFbQ0RBVEFbMjU1LjI1NS4yNTUuMF1dPjwvRVRIMF9NQVNLPjxFVEgwX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UktfSUQ+PE5FVFdPUktfVU5BTUU+PCFbQ0RBVEFbb25lYWRtaW5dXT48L05FVFdPUktfVU5BTUU+PE5JQ19JRD48IVtDREFUQVswXV0+PC9OSUNfSUQ+PFBIWURFVj48IVtDREFUQVticjBdXT48L1BIWURFVj48U0VDVVJJVFlfR1JPVVBTPjwhW0NEQVRBWzBdXT48L1NFQ1VSSVRZX0dST1VQUz48VEFSR0VUPjwhW0NEQVRBW29uZS0xLTBdXT48L1RBUkdFVD48VkxBTl9JRD48IVtDREFUQVs1MF1dPjwvVkxBTl9JRD48Vk5fTUFEPjwhW0NEQVRBWzgwMi4xUV1dPjwvVk5fTUFEPjwvTklDPjwvVEVNUExBVEU+PC9WTT4=
Wed Oct 3 10:21:11 2018 [Z0][VMM][I]: sudo: no tty present and no askpass program specified
Wed Oct 3 10:21:11 2018 [Z0][VMM][I]: /var/tmp/one/vnm/vlan.rb:166:in get_bridges': undefined methodeach’ for nil:NilClass (NoMethodError)
Wed Oct 3 10:21:11 2018 [Z0][VMM][I]: from /var/tmp/one/vnm/vlan.rb:36:in activate' Wed Oct 3 10:21:11 2018 [Z0][VMM][I]: from /var/tmp/one/vnm/802.1Q/pre:29:in<main>’
Wed Oct 3 10:21:11 2018 [Z0][VMM][I]: ExitCode: 1
Wed Oct 3 10:21:11 2018 [Z0][VMM][I]: Failed to execute network driver operation: pre.
Wed Oct 3 10:21:11 2018 [Z0][VMM][E]: Error attaching new VM NIC: 802.1Q: -
Wed Oct 3 10:21:12 2018 [Z0][VM][I]: New LCM state is RUNNING
Wed Oct 3 10:22:24 2018 [Z0][VM][I]: New LCM state is HOTPLUG_NIC
Wed Oct 3 10:22:25 2018 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vnm/802.1Q/pre PFZNPjxJRD4xPC9JRD48REVQTE9ZX0lEPm9uZS0xPC9ERVBMT1lfSUQ+PFRFTVBMQVRFPjxDT05URVhUPjxESVNLX0lEPjwhW0NEQVRBWzFdXT48L0RJU0tfSUQ+P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UQ+PFZOX01BRD48IVtDREFUQVs4MDIuMVFdXT48L1ZOX01BRD48L05JQz48L1RFTVBMQVRFPjwvVk0+
Wed Oct 3 10:22:25 2018 [Z0][VMM][I]: sudo: no tty present and no askpass program specified
Wed Oct 3 10:22:25 2018 [Z0][VMM][I]: /var/tmp/one/vnm/vlan.rb:166:in get_bridges': undefined methodeach’ for nil:NilClass (NoMethodError)
Wed Oct 3 10:22:25 2018 [Z0][VMM][I]: from /var/tmp/one/vnm/vlan.rb:36:in activate' Wed Oct 3 10:22:25 2018 [Z0][VMM][I]: from /var/tmp/one/vnm/802.1Q/pre:29:in<main>’
Wed Oct 3 10:22:25 2018 [Z0][VMM][I]: ExitCode: 1
Wed Oct 3 10:22:25 2018 [Z0][VMM][I]: Failed to execute network driver operation: pre.
Wed Oct 3 10:22:25 2018 [Z0][VMM][E]: Error attaching new VM NIC: 802.1Q: -
Wed Oct 3 10:22:26 2018 [Z0][VM][I]: New LCM state is RUNNING

I have sorted this now, turns out I messed the Suoers file and once sorted i saw the command failing for ipset,ipset needed installing on the host, installed and retried works fine