Upgraded to 4.12 : Problem with deploying VMs due to network post script error

Just updated to 4.12 and now am getting an error when deploying VMs. I have my hosts added with the 802.1q model and created the virtual networks with that as well. the kernel module is loaded on all nodes. Here’s the log output:

Wed Mar 11 12:54:57 2015 [Z0][DiM][I]: New VM state is ACTIVE.
Wed Mar 11 12:54:57 2015 [Z0][LCM][I]: New VM state is PROLOG.
Wed Mar 11 12:55:04 2015 [Z0][LCM][I]: New VM state is BOOT
Wed Mar 11 12:55:04 2015 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/184/deployment.0
Wed Mar 11 12:55:04 2015 [Z0][VMM][I]: ExitCode: 0
Wed Mar 11 12:55:04 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Wed Mar 11 12:55:04 2015 [Z0][VMM][I]: ExitCode: 0
Wed Mar 11 12:55:04 2015 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Wed
 Mar 11 12:55:04 2015 [Z0][VMM][I]: Command execution fail: 
/var/tmp/one/vnm/802.1Q/post <LongHashHere>   'one-184'
Wed Mar 11 12:55:04 2015 [Z0][VMM][I]: sudo: Kein TTY vorhanden und kein »askpass«-Programm angegeben
Wed Mar 11 12:55:04 2015 [Z0][VMM][E]: post: Command Error: sudo ipset list -name
Wed
 Mar 11 12:55:04 2015 [Z0][VMM][E]: post: 
["/var/tmp/one/vnm/command.rb:76:in `block in run!'", 
"/var/tmp/one/vnm/command.rb:73:in `each'", 
"/var/tmp/one/vnm/command.rb:73:in `run!'", 
"/var/tmp/one/vnm/security_groups_iptables.rb:177:in `info'", 
"/var/tmp/one/vnm/security_groups_iptables.rb:306:in `nic_deactivate'", 
"/var/tmp/one/vnm/sg_driver.rb:96:in `block in deactivate'", 
"/var/tmp/one/vnm/sg_driver.rb:95:in `each'", 
"/var/tmp/one/vnm/sg_driver.rb:95:in `deactivate'", 
"/var/tmp/one/vnm/sg_driver.rb:54:in `activate'", 
"/var/tmp/one/vnm/802.1Q/post:29:in `<main>'"]
Wed Mar 11 12:55:04 2015 [Z0][VMM][I]: ExitCode: 1
Wed Mar 11 12:55:14 2015 [Z0][VMM][I]: error: failed to get domain 'one-184'
Wed Mar 11 12:55:14 2015 [Z0][VMM][I]: error: Domain nicht gefunden: Kein Domain mit übereinstimmendem Namen 'one-184'
Wed Mar 11 12:55:14 2015 [Z0][VMM][I]: ExitCode: 0
Wed Mar 11 12:55:14 2015 [Z0][VMM][I]: Successfully execute virtualization driver operation: cancel.
Wed Mar 11 12:55:14 2015 [Z0][VMM][I]: Failed to execute network driver operation: post.
Wed Mar 11 12:55:14 2015 [Z0][VMM][E]: Error deploying virtual machine
Wed Mar 11 12:55:14 2015 [Z0][DiM][I]: New VM state is FAILED

Does anybody know anything about this error?

Cheers,
christian

This error was reported some hours ago. Here is the issue and the fix:

http://dev.opennebula.org/issues/3665

Basically you should add ipset to the line for ONE_NET in /etc/sudoers.d/opennebula for all your nodes. For example:

Cmnd_Alias ONE_NET = /sbin/brctl, /sbin/ebtables, /sbin/iptables, /sbin/ip, /usr/sbin/ipset
2 Likes

Whoops sorry, did the search, but maybe with wrong keywords. Thanks! It’s working now.

Hi
I have a VM with the same error in boot, I checked /etc/sudoers.d/opennebula in all my nodes and they contain that line.
What should i do to resolve this error?