Hi Harish,
Thanks for point it out.
Maciej
On 11/25/2015 06:28 AM, Harish Kumar wrote:
Hi Maciej,
This is a bug in vrouter-port-control, it is tracked in this bug -
https://bugs.launchpad.net/juniperopenstack/+bug/1519768
Thanks,
Harish
*From: *Maciej Lecki <[email protected] <mailto:[email protected]>>
*Subject: **[Users] Can Contrail 2.21 handle instance names with spaces?*
*Date: *November 23, 2015 9:58:01 PM GMT+05:30
*To: *"[email protected]
<mailto:[email protected]>" <[email protected]
<mailto:[email protected]>>
I just observed that if i put a whitespace in my instance name, my
instance can never connect to the network. Are whitespaces allowed in
Instance names when using Contrail?
BTW - this is what happens in nova-compute.log when i try to boot a
instance with whitespaces in the name:
2015-11-23 08:04:34.885 1867 ERROR nova.virt.libvirt.vif [-]
[instance: aaf64e04-d792-4ed6-82fe-c83c4424be99] Failed while
plugging vif
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] Traceback (most recent call last):
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line
593, in plug_vrouter
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99]
utils.execute('vrouter-port-control', cmd_args, run_as_root=True)
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] File
"/usr/lib/python2.7/dist-packages/nova/utils.py", line 163, in execute
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] return
processutils.execute(*cmd, **kwargs)
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] File
"/usr/lib/python2.7/dist-packages/nova/openstack/common/processutils.py",
line 203, in execute
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] cmd=sanitized_cmd)
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] ProcessExecutionError:
Unexpected error while running command.
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] Command: sudo nova-rootwrap
/etc/nova/rootwrap.conf vrouter-port-control --oper=add
--uuid=f8c0e7c4-580c-40b2-b1b7-ef105cd57ebf
--instance_uuid=aaf64e04-d792-4ed6-82fe-c83c4424be99
--vn_uuid=0d7d6379-3771-46b4-af96-ee95556097d5
--vm_project_uuid=de7d3ecd59e14fe5a87ffc4545de8e3f
--ip_address=192.168.0.3 --ipv6_address=None --vm_name=maciej
instance a --mac=02:f8:c0:e7:c4:58 --tap_name=tapf8c0e7c4-58
--port_type=NovaVMPort --tx_vlan_id=-1 --rx_vlan_id=-1
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] Exit code: 2
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] Stdout: u''
2015-11-23 08:04:34.885 1867 TRACE nova.virt.libvirt.vif [instance:
aaf64e04-d792-4ed6-82fe-c83c4424be99] Stderr: u'usage:
vrouter-port-control [-h] [--oper {add,delete}] [--uuid
UUID]\n [--instance_uuid INSTANCE_UUID]\n
[--vn_uuid VN_UUID]\n [--vm_project_uuid VM_PROJECT_UUID]\n
[--ip_address IP_ADDRESS]\n [--ipv6_address IPV6_ADDRESS] [--vm_name
VM_NAME]\n [--mac MAC] [--tap_name
TAP_NAME]\n [--port_type {NovaVMPort,NameSpacePort}]\n [--tx_vlan_id
TX_VLAN_ID]\n [--rx_vlan_id RX_VLAN_ID]\n [--no_persist
NO_PERSIST]\nvrouter-port-control: error: unrecognized arguments:
instance a\n'
Thanks,
Maciej
------------------------------------------------------------------------
DISCLAIMER: This e-mail and any attachments are intended
only for use by the addresse(s) named herein and may
contain legally privileged and/or confidential information.
If you are not the intended recipient of this e-mail, you
are hereby notified any dissemination, distribution or
copying of this email, and any attachments thereto, is
strictly prohibited. If you receive this email in error
please immediately notify the sender and permanently delete
the original copy and any copy of any e-mail, and any
printout thereof.
_______________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org
_______________________________________________
Users mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org