Bug #2172

NIC Hot Plug with OpenVSwitch not working

Added by Jaime Melis over 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:07/15/2013
Priority:NormalDue date:
Assignee:Jaime Melis% Done:

0%

Category:Drivers - Network
Target version:Release 4.4
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.0

Description

As reported by this thread [1] this functionality is not currently working.

[1] http://lists.opennebula.org/pipermail/users-opennebula.org/2013-July/023795.html

Associated revisions

Revision 514ffed5
Added by Jaime Melis about 5 years ago

Bug #2172: NIC Hot Plug with OpenVSwitch not working

Revision 8de607c8
Added by Jaime Melis almost 5 years ago

Bug #2172: Incorrect parameter deploy_info passed to network post script

Revision f2dd1fb7
Added by Jaime Melis almost 5 years ago

Bug #2172: Incorrect parameter deploy_info passed to network post script

(cherry picked from commit 8de607c88901b56f46272a19b54ae54658d6fe7b)

History

#1 Updated by John Robert Mendoza over 5 years ago

I think this affects both the attach_nic and detach_nic. Detaching the nic also requires a type bridge argument which may not work.

#2 Updated by Ruben S. Montero over 5 years ago

  • Status changed from Pending to New

#3 Updated by novid Agha Hasani about 5 years ago

I have this problem too even when detach_nic, anybody does find any solution?

#4 Updated by Daniel Dehennin about 5 years ago

+1

I thought it was an occasional use case to attach new nics but I try to use it quite often ;-)

Thanks.

#5 Updated by Ruben S. Montero about 5 years ago

  • Target version set to Release 4.4

#6 Updated by Ruben S. Montero about 5 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

#7 Updated by novid Agha Hasani about 5 years ago

today, I upgrade to opennebula 4.4 beta2, but still I cant attach new nic and problem still exist..

Tue Nov 19 01:46:05 2013 [VMM][I]: Successfully execute network driver operation: pre.
Tue Nov 19 01:46:05 2013 [VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/attach_nic 'one-116' '02:00:ac:14:04:08' 'br0' '-' 116 kvm-hv4
Tue Nov 19 01:46:05 2013 [VMM][E]: attach_nic: Command "virsh --connect qemu:///system attach-interface --domain one-116 --type bridge --source br0 --mac 02:00:ac:14:04:08" failed: error: Failed to attach interface
Tue Nov 19 01:46:05 2013 [VMM][I]: error: Unable to add bridge br0 port vnet2: Operation not supported
Tue Nov 19 01:46:05 2013 [VMM][E]: Could not attach NIC (02:00:ac:14:04:08) to one-116
Tue Nov 19 01:46:05 2013 [VMM][I]: ExitCode: 1
Tue Nov 19 01:46:05 2013 [VMM][I]: Failed to execute virtualization driver operation: attach_nic.
Tue Nov 19 01:46:05 2013 [VMM][E]: Error attaching new VM NIC: Could not attach NIC (02:00:ac:14:04:08) to one-116

#8 Updated by Jaime Melis about 5 years ago

Please run 'onehost sync' to update the probes and try again.

#9 Updated by novid Agha Hasani almost 5 years ago

Jaime Melis wrote:

Please run 'onehost sync' to update the probes and try again.

after upgrade to 4.3.90, I ran these two commands

oneadmin@one-server2:/root/opennebula-4.3.90-1$ onedb upgrade -v --sqlite /var/lib/one/one.db 
Version read:
4.3.85 : Database migrated from 4.3.80 to 4.3.85 (OpenNebula 4.3.85) by onedb command.

Sqlite database backup stored in /var/lib/one/one.db.bck
Use 'onedb restore' or copy the file back to restore the DB.
  > Running migrator /usr/lib/one/ruby/onedb/4.3.85_to_4.3.90.rb
  > Done

Database migrated from 4.3.85 to 4.3.90 (OpenNebula 4.3.90) by onedb command.
oneadmin@one-server2:/root/opennebula-4.3.90-1$ onehost sync
All hosts updated successfully.

but still, I cant still attach nic live and get these errors

Sat Nov 23 07:03:12 2013 [VMM][I]: ExitCode: 0
Sat Nov 23 07:03:12 2013 [VMM][I]: Successfully execute network driver operation: pre.
Sat Nov 23 07:03:13 2013 [VMM][I]: ExitCode: 0
Sat Nov 23 07:03:13 2013 [VMM][I]: Successfully execute virtualization driver operation: attach_nic.
Sat Nov 23 07:03:13 2013 [VMM][I]: Command execution fail: /var/tmp/one/vnm/ovswitch/post PFZNPjxJRD4xMTY8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC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MM][E]: post: ovs-vsctl: 'set' command requires at least 3 arguments
Sat Nov 23 07:03:13 2013 [VMM][E]: ovs-vsctl: 'set' command requires at least 3 arguments
Sat Nov 23 07:03:13 2013 [VMM][E]:
Sat Nov 23 07:03:13 2013 [VMM][I]: ExitCode: 1
Sat Nov 23 07:03:13 2013 [VMM][I]: ExitCode: 0
Sat Nov 23 07:03:13 2013 [VMM][I]: Successfully execute virtualization driver operation: detach_nic.
Sat Nov 23 07:03:13 2013 [VMM][I]: Failed to execute network driver operation: post.
Sat Nov 23 07:03:13 2013 [VMM][E]: Error attaching new VM NIC: ovs-vsctl: 'set' command requires at least 3 arguments

#10 Updated by Ruben S. Montero almost 5 years ago

  • Status changed from Closed to Pending
  • Resolution deleted (fixed)

#11 Updated by Jaime Melis almost 5 years ago

Apparently the second argument to the post script is mal-formed. It shows '' but it should be something like one-117. What happens if you do onevm show -x 117 ?

#12 Updated by Jaime Melis almost 5 years ago

Nevermind, bug confirmed. Fixing...

#13 Updated by Jaime Melis almost 5 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

Please try again with this one_vmm_exec.rb:
http://dev.opennebula.org/projects/opennebula/repository/revisions/8de607c88901b56f46272a19b54ae54658d6fe7b/entry/src/vmm_mad/exec/one_vmm_exec.rb
(installed to /usr/lib/one/mads/one_vmm_exec.rb)

After updating that file in the frontend, restart opennebula and try again.

#14 Updated by novid Agha Hasani almost 5 years ago

Jaime Melis wrote:

Please try again with this one_vmm_exec.rb:
http://dev.opennebula.org/projects/opennebula/repository/revisions/8de607c88901b56f46272a19b54ae54658d6fe7b/entry/src/vmm_mad/exec/one_vmm_exec.rb
(installed to /usr/lib/one/mads/one_vmm_exec.rb)

After updating that file in the frontend, restart opennebula and try again.

thx man thx man :D

now it seems really work with this new driver :)

Also available in: Atom PDF