Public bug reported: the api of 'create port' does not check validity of mac-address, if you use this invalid port to create VM , it will failed, root@ubuntu01:~# neutron port-create --mac-address 123 test2 Created a new port: +-----------------------+-----------------------------------------------------------------------------------+ | Field | Value | +-----------------------+-----------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:capabilities | {"port_filter": false} | | binding:host_id | | | binding:vif_type | unbound | | device_id | | | device_owner | | | fixed_ips | {"subnet_id": "5519e015-fc83-44c2-99ad-d669b3c2c9d7", "ip_address": "10.10.10.4"} | | id | ae33af6e-6f8f-4ce8-928b-4f05396a7db3 | | mac_address | 123 | | name | | | network_id | 255f3e92-5a6e-44a5-bbf9-1a62bf5d5935 | | security_groups | f627556d-64a3-4c1b-8c50-10a58ddaf29f | | status | DOWN | | tenant_id | 34fddbc22c184214b823be267837ef81 |
the failed log of creating VM: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1037, in _build_instance set_access_ip=set_access_ip) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1420, in _spawn LOG.exception(_('Instance failed to spawn'), instance=instance) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1417, in _spawn block_device_info) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2070, in spawn block_device_info, context=context) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3225, in _create_domain_and_network domain = self._create_domain(xml, instance=instance, power_on=power_on) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3159, in _create_domain raise e libvirtError: XML error: unable to parse mac address '123' ** Affects: neutron Importance: Undecided Assignee: shihanzhang (shihanzhang) Status: New ** Changed in: neutron Assignee: (unassigned) => shihanzhang (shihanzhang) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1291163 Title: Create port done not check validity of mac-address Status in OpenStack Neutron (virtual network service): New Bug description: the api of 'create port' does not check validity of mac-address, if you use this invalid port to create VM , it will failed, root@ubuntu01:~# neutron port-create --mac-address 123 test2 Created a new port: +-----------------------+-----------------------------------------------------------------------------------+ | Field | Value | +-----------------------+-----------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:capabilities | {"port_filter": false} | | binding:host_id | | | binding:vif_type | unbound | | device_id | | | device_owner | | | fixed_ips | {"subnet_id": "5519e015-fc83-44c2-99ad-d669b3c2c9d7", "ip_address": "10.10.10.4"} | | id | ae33af6e-6f8f-4ce8-928b-4f05396a7db3 | | mac_address | 123 | | name | | | network_id | 255f3e92-5a6e-44a5-bbf9-1a62bf5d5935 | | security_groups | f627556d-64a3-4c1b-8c50-10a58ddaf29f | | status | DOWN | | tenant_id | 34fddbc22c184214b823be267837ef81 | the failed log of creating VM: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1037, in _build_instance set_access_ip=set_access_ip) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1420, in _spawn LOG.exception(_('Instance failed to spawn'), instance=instance) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1417, in _spawn block_device_info) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2070, in spawn block_device_info, context=context) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3225, in _create_domain_and_network domain = self._create_domain(xml, instance=instance, power_on=power_on) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3159, in _create_domain raise e libvirtError: XML error: unable to parse mac address '123' To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1291163/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp