vif_type - vrouter_port_control script - Invalid argument for vif_type

Bug #1602047 reported by kratna
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Undecided
Ashok Singh
R2.21.x
Fix Committed
Undecided
Ashok Singh
R2.22.x
Fix Committed
Undecided
Ashok Singh
R3.0
Fix Committed
Undecided
Ashok Singh
R3.0.2.x
Fix Committed
Undecided
Ashok Singh
R3.1
Fix Committed
Undecided
Ashok Singh
Trunk
Fix Committed
Undecided
Ashok Singh

Bug Description

Interfaces are not getting created in the Virtual Network

nova log

--------

2016-07-11 15:49:03.844 94868 INFO nova.virt.libvirt.driver [req-5bf22d23-fe68-4d37-9871-f098c900bfce 180678f14926400c9866297944760e1b 25d1ed8e54584bb
f8df992615c5787be - - -] [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] Creating image
2016-07-11 15:49:04.943 94868 INFO nova.virt.disk.vfs.api [req-5bf22d23-fe68-4d37-9871-f098c900bfce 180678f14926400c9866297944760e1b 25d1ed8e54584bbf8
df992615c5787be - - -] Unable to import guestfs, falling back to VFSLocalFS
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [req-5bf22d23-fe68-4d37-9871-f098c900bfce 180678f14926400c9866297944760e1b 25d1ed8e54584bbf8
df992615c5787be - - -] [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] Failed while plugging vif
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] Traceback (most recent call last):
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] File "/usr/lib/python2.7/dist-packages/no
va/virt/libvirt/vif.py", line 714, in plug_vrouter
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] utils.execute('vrouter-port-control', c
md_args, run_as_root=True)
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] File "/usr/lib/python2.7/dist-packages/no
va/utils.py", line 389, in execute
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] return RootwrapProcessHelper().execute(
*cmd, **kwargs)
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] File "/usr/lib/python2.7/dist-packages/no
va/utils.py", line 272, in execute
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] return processutils.execute(*cmd, **kwa
rgs)
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] File "/usr/lib/python2.7/dist-packages/os
lo_concurrency/processutils.py", line 275, in execute
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] cmd=sanitized_cmd)
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] ProcessExecutionError: Unexpected error whi
le running command.
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] Command: sudo nova-rootwrap /etc/nova/rootw
rap.conf vrouter-port-control --oper=add --uuid=80dd6055-3bd1-4df5-b3c3-0e4a4f55aa0c --instance_uuid=06142af8-dd08-4795-9e64-216fdc3eeba9 --vn_uuid=ea
29ef1c-ed8c-4cd0-9dd6-ce9c29d90089 --vm_project_uuid=25d1ed8e54584bbf8df992615c5787be --ip_address=192.168.111.13 --ipv6_address=None --vm_name=newand
rey --mac=02:80:dd:60:55:3b --tap_name=tap80dd6055-3b --port_type=NovaVMPort --tx_vlan_id=-1 --rx_vlan_id=-1
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] Exit code: 1
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] Stdout: u'Invalid argument for vif_type Non
e\n'
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9] Stderr: u''
2016-07-11 15:49:05.836 94868 ERROR nova.virt.libvirt.vif [instance: 06142af8-dd08-4795-9e64-216fdc3eeba9]
2016-07-11 15:49:06.281 94868 INFO nova.compute.manager [req-db2c16c5-ead0-460f-8f44-7b5f5a0cf2ba - - - - -] [instance: 06142af8-dd08-4795-9e64-216fdc
3eeba9] VM Started (Lifecycle Event)

tested with the following patch - seems to be working...

vif_type = 'Vrouter'
        vhostuser_socket = ''
        if vif['type'] == network_model.VIF_TYPE_VHOSTUSER:
            vif_type = 'VhostUser'
            vhostuser_socket = ' --vhostuser_socket=%s' % \
                vif['details'][network_model.VIF_DETAILS_VHOSTUSER_SOCKET]

        cmd_args = ("--oper=add --uuid=%s --instance_uuid=%s --vn_uuid=%s "

 cmd_args = ("--oper=add --uuid=%s --instance_uuid=%s --vn_uuid=%s "
                    "--vm_project_uuid=%s --ip_address=%s --ipv6_address=%s"
                    " --vm_name=%s --mac=%s --tap_name=%s --port_type=%s "
                    "--vif_type=%s%s --tx_vlan_id=%d --rx_vlan_id=%d" %
                    (vif['id'], instance.uuid, vif['network']['id'],
                    instance.project_id, ip_addr, ip6_addr,
                    instance.display_name, vif['address'],
                    vif['devname'], ptype, vif_type, vhostuser_socket, -1, -1))

Ashok Singh (ashoksr)
Changed in juniperopenstack:
assignee: nobody → Ashok Singh (ashoksr)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/21857
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/21834
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/21839
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0.2.x

Review in progress for https://review.opencontrail.org/21842
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/21868
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/21839
Committed: http://github.org/Juniper/contrail-controller/commit/f69709a22cee2b3da240caca00605e44fc72d963
Submitter: Zuul
Branch: R3.0

commit f69709a22cee2b3da240caca00605e44fc72d963
Author: ashoksingh <email address hidden>
Date: Tue Jul 12 11:11:28 2016 +0530

Provide default value for vif_type and port_type arguments of vrouter-port-control

This is required to make it backward compatible with its previous version.

Closes-Bug: #1602047
(cherry picked from commit 7937372249a80bad24a0a92e5f4d77749051adb6)

Change-Id: If181498a0eabbeb26eebce9bb959c102621dcc33

Jeba Paulaiyan (jebap)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/21842
Committed: http://github.org/Juniper/contrail-controller/commit/ca919c4545348aebb53589bd8f1ec22a6caf8bac
Submitter: Zuul
Branch: R3.0.2.x

commit ca919c4545348aebb53589bd8f1ec22a6caf8bac
Author: ashoksingh <email address hidden>
Date: Tue Jul 12 11:11:28 2016 +0530

Provide default value for vif_type and port_type arguments of vrouter-port-control

This is required to make it backward compatible with its previous version.

Closes-Bug: #1602047
(cherry picked from commit 7937372249a80bad24a0a92e5f4d77749051adb6)

Change-Id: Ib119aadb542e6fb0878025a9fa29075dea62dfaa

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/21868
Committed: http://github.org/Juniper/contrail-controller/commit/a8ab0c340228baa6f77cff0911c8c47b2ba6d1c2
Submitter: Zuul
Branch: R3.1

commit a8ab0c340228baa6f77cff0911c8c47b2ba6d1c2
Author: ashoksingh <email address hidden>
Date: Tue Jul 12 14:32:07 2016 +0530

Provide default value for vif_type and port_type arguments of vrouter-port-control

This is required to make it backward compatible with its previous version.

Change-Id: I8c2503ed2d19d2ff71d0099cd6a69e725c28c652
Closes-Bug: #1602047

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/21834
Committed: http://github.org/Juniper/contrail-controller/commit/60346aca9e61c36c249e2a87bf1edede12062c89
Submitter: Zuul
Branch: master

commit 60346aca9e61c36c249e2a87bf1edede12062c89
Author: ashoksingh <email address hidden>
Date: Tue Jul 12 11:11:28 2016 +0530

Provide default value for vif_type and port_type arguments of vrouter-port-control

This is required to make it backward compatible with its previous version.

Change-Id: I3e8874270be55fdd364e354f4c9a99efac274f06
Closes-Bug: #1602047

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/21857
Committed: http://github.org/Juniper/contrail-controller/commit/a8ac813c845082ece6022ce8a2763a4e5aee5bda
Submitter: Zuul
Branch: R2.21.x

commit a8ac813c845082ece6022ce8a2763a4e5aee5bda
Author: ashoksingh <email address hidden>
Date: Tue Jul 12 11:11:28 2016 +0530

Provide default value for vif_type and port_type arguments of vrouter-port-control

This is required to make it backward compatible with its previous version.

Change-Id: I0368a8aac6d6eab2b6db8eae97318001bb544310
Closes-Bug: #1602047

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/22419
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/22420
Submitter: Ashok Singh (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22420
Committed: http://github.org/Juniper/contrail-controller/commit/accaf54c7963927cff92943b63b638eb3f75916a
Submitter: Zuul
Branch: R2.22.x

commit accaf54c7963927cff92943b63b638eb3f75916a
Author: ashoksingh <email address hidden>
Date: Tue Jul 12 11:11:28 2016 +0530

Provide default value for vif_type and port_type arguments of vrouter-port-control

This is required to make it backward compatible with its previous version.

Closes-Bug: #1602047
(cherry picked from commit a8ac813c845082ece6022ce8a2763a4e5aee5bda)

Change-Id: I7c6491d8d7761c958775934521f7484f7736cbf0

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/22419
Committed: http://github.org/Juniper/contrail-controller/commit/aec36e048d570c0a90a74925506c782e7b4db333
Submitter: Zuul
Branch: R2.20

commit aec36e048d570c0a90a74925506c782e7b4db333
Author: ashoksingh <email address hidden>
Date: Tue Jul 12 11:11:28 2016 +0530

Provide default value for vif_type and port_type arguments of vrouter-port-control

This is required to make it backward compatible with its previous version.

Closes-Bug: #1602047
(cherry picked from commit a8ac813c845082ece6022ce8a2763a4e5aee5bda)

Change-Id: I3ccdeffa97d38db0ca533517178af2aa9cd797f7

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.