Error deploying virtual machine: 802.1Q: -

Hi,

I’ve created a VR and there’re 11 NICS (all 802.1Q driver). It got booted without any problem. Then I shut it down inside the VR and then booted it again. Now I’m getting deployment error. Here’s the VM log:

Mon Jul 25 08:58:39 2016 [Z0][VM][I]: New LCM state is LCM_INIT
Mon Jul 25 09:08:04 2016 [Z0][VM][I]: New state is ACTIVE
Mon Jul 25 09:08:04 2016 [Z0][VM][I]: New LCM state is BOOT_POWEROFF
Mon Jul 25 09:08:04 2016 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/41/deployment.3
Mon Jul 25 09:08:05 2016 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Mon Jul 25 09:08:06 2016 [Z0][VMM][I]: ExitCode: 0
Mon Jul 25 09:08:06 2016 [Z0][VMM][I]: ExitCode: 0
Mon Jul 25 09:08:06 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon Jul 25 09:08:07 2016 [Z0][VMM][I]: ExitCode: 0
Mon Jul 25 09:08:07 2016 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Mon Jul 25 09:08:08 2016 [Z0][VMM][I]: Command execution fail: /var/tmp/one/vnm/802.1Q/post PFZNPjxJRD40MTwvSUQ+PERFUExPWV9JRD5vbmUtNDE8L0RFUExPWV9JRD48VEVNUExBVEU+PFNFQ1VSSVRZX0dST1VQX1JVTEU+PFBST1RPQ09MPjwhW0NEQVRBW0FMTF1dPjwvUFJPVE9DT0w+PFJVTEVfVFlQRT48IVtDREFUQVtpbmJvdW5kXV0+PC9SVUxFX1RZUEU+PFNFQ1VSSVRZX0dST1VQX0lEPjwhW0NEQVRBWzBdXT48L1NFQ1VSSVRZX0dST1VQX0lEPjxTRUNVUklUWV9HUk9VUF9OQU1FPjwhW0NEQVRBW2RlZmF1bHRdXT48L1NFQ1VSSVRZX0dST1VQX05BTUU+PC9TRUNVUklUWV9HUk9VUF9SVUxFPjwvVEVNUExBVEU+PFRFTVBMQVRFPjxTRUNVUklUWV9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5fSUQ+PFZOX01BRD48IVtDREFUQVs4MDIuMVFdXT48L1ZOX01BRD48L05JQz48L1RFTVBMQVRFPjxURU1QTEFURT48TklDPjxBUl9JRD48IVtDREFUQVswXV0+PC9BUl9JRD48QlJJREdFPjwhW0NEQVRBW2JyMF1dPjwvQlJJREdFPjxDTFVTVEVSX0lEPjwhW0NEQVRBWzBdXT48L0NMVVNURVJfSUQ+PEZJTFRFUl9JUF9TUE9PRklORz48IVtDREFUQVtZRVNdXT48L0ZJTFRFUl9JUF9TUE9PRklORz48RklMVEVSX01BQ19TUE9PRklORz48IVtDREFUQVtZRVNdXT48L0ZJTFRFUl9NQUNfU1BPT0ZJTkc+PElQPjwhW0NEQVRBWzE5Mi4xNjguNi41OV1dPjwvSVA+PE1BQz48IVtDREFUQVswMjowMDpjMDphODowNjozYl1dPjwvTUFDPjxNT0RFTD48IVtDREFUQVt2aXJ0aW9dXT48L01PREVMPjxORVRXT1JLPjwhW0NEQVRBW0VCRy1mdy1uZXQtMTkyLjE2OC42LjUxXV0+PC9ORVRXT1JLPjxORVRXT1JLX0lEPjwhW0NEQVRBWzZdXT48L05FVFdPUktfSUQ+PE5JQ19JRD48IVtDREFUQVsxMF1dPjwvTklDX0lEPjxTRUNVUklUWV9HUk9VUFM+PCFbQ0RBVEFbMF1dPjwvU0VDVVJJVFlfR1JPVVBTPjxUQVJHRVQ+PCFbQ0RBVEFbb25lLTQxLTEwXV0+PC9UQVJHRVQ+PFZOX01BRD48IVtDREFUQVtmd11dPjwvVk5fTUFEPjwvTklDPjwvVEVNUExBVEU+PC9WTT4= ‘one-41’
Mon Jul 25 09:08:08 2016 [Z0][VMM][I]: iptables: Too many links.
Mon Jul 25 09:08:08 2016 [Z0][VMM][E]: post: Command Error: sudo iptables -X one-41-10-i
Mon Jul 25 09:08:08 2016 [Z0][VMM][E]: post: ["/var/tmp/one/vnm/command.rb:61:in block in run!'", "/var/tmp/one/vnm/command.rb:58:ineach’", “/var/tmp/one/vnm/command.rb:58:in run!'", "/var/tmp/one/vnm/security_groups_iptables.rb:345:innic_deactivate’”, “/var/tmp/one/vnm/sg_driver.rb:128:in block in deactivate'", "/var/tmp/one/vnm/sg_driver.rb:125:ineach’”, “/var/tmp/one/vnm/sg_driver.rb:125:in deactivate'", "/var/tmp/one/vnm/sg_driver.rb:75:inactivate’”, “/var/tmp/one/vnm/802.1Q/post:32:in `’”]
Mon Jul 25 09:08:08 2016 [Z0][VMM][I]: ExitCode: 1
Mon Jul 25 09:08:08 2016 [Z0][VMM][I]: ExitCode: 0
Mon Jul 25 09:08:08 2016 [Z0][VMM][I]: Successfully execute virtualization driver operation: cancel.
Mon Jul 25 09:08:08 2016 [Z0][VMM][I]: Failed to execute network driver operation: post.
Mon Jul 25 09:08:08 2016 [Z0][VMM][E]: Error deploying virtual machine: 802.1Q: -
Mon Jul 25 09:08:08 2016 [Z0][VM][I]: New state is POWEROFF
Mon Jul 25 09:08:08 2016 [Z0][VM][I]: New LCM state is LCM_INIT

Kind regards,
Orhan

May be it’s related; I checked with iptables-save command, when a VM is powered off, all entries are removed. But for this VR, though it is in power off state, all iptables rules still exist. Is this normal?

Kind regards,
Orhan

Yes this maybe the problem, it should be the same for both, though (VM and
VR VMs)

I had to save the iptables config and manually remove all VR entries in it, then reload the config. Then I was able to boot the VR. Then I shut it down inside the VR (I couldn’t find a way to poweroff&reboot a VR through sunstone, is there any?) and checked the iptables rules: again they all exist… So it looks like the behavior is different in VMs and VRs

Then I powered it on and all OK. Why did it give error in the first place? have no idea…