unable to spawn instance with customized MAC address.
Issue
- If I try to spawn instance with customized MAC address, instance move to
error
state.
[root@overcloud-controller-0 ~]# neutron port-create --mac-address 7f:7f:7f:7f:7f:7f 0c0d38c0-6640-4620-8f0e-455c93a8b501
Created a new port:
+-----------------------+------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+------------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "44577b25-af93-4a8e-bd96-b923363bfdc5", "ip_address": "xx.xx.xx.xx"} |
| id | 48de37be-a4ed-45e3-a411-aa597b42c517 |
| mac_address | 7f:7f:7f:7f:7f:7f |
| name | |
| network_id | 0c0d38c0-6640-4620-8f0e-455c93a8b501 |
| security_groups | bfa1b74d-88d2-479c-b756-327ee9188ffa |
| status | DOWN |
| tenant_id | a7fff89f53f34518af85ea73c0b46efe |
+-----------------------+------------------------------------------------------------------------------------+
[root@overcloud-controller-0 ~]# nova boot --flavor 1 --nic port-id=48de37be-a4ed-45e3-a411-aa597b42c517 --block-device source=image,id=c4a11b63-867b-47e5-9478-888dcb3b5566,dest=volume,type=nfs,size=2,shutdown=preserve,bootindex=0 test_mac
+--------------------------------------+-------------------------------------------------+
| Property | Value |
+--------------------------------------+-------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | |
| OS-EXT-SRV-ATTR:host | - |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - |
| OS-EXT-SRV-ATTR:instance_name | instance-00000de4 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | XcxwJT3G8V7L |
| config_drive | |
| created | 2016-10-10T08:10:43Z |
| flavor | m1.tiny (1) |
| hostId | |
| id | e975f8ef-0641-440f-abde-731b2588327c |
| image | Attempt to boot from volume - no image supplied |
| key_name | - |
| metadata | {} |
| name | test_mac |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | a7fff89f53f34518af85ea73c0b46efe |
| updated | 2016-10-10T08:10:43Z |
| user_id | e10111468d5a41a69d5f4e9b9d05c31a |
+--------------------------------------+-------------------------------------------------+
Environment
- Red Hat Open Stack
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.