openstack failed to create instance (instances) from volume (volume) Error creating server: test-serverError creating server
. s solution
The following error was encountered while the control node was creating an instance. First make sure the command format is correct.
[root@controller ~]# openstack server create --flavor 0f29be3e-089d-4339-88c1-28b4edf3778b --image df4a76af-1dad-43cc-95c5-6700fee1374d --network 3b92a5e0-db76-4207-82eb-c8d6c392bb1c --block-device uuid=906ff027-3fe1-4d6e-a0f0-aeaaa4b46985 --wait test-server
Error creating server: test-server
Error creating server
Open the /var/log/nova/nova-conductor.log
log to check the error report.
WARNING nova.scheduler.utils [req-2ef18f53-7d27-42e7-a367-059ab7f2bfcd ba89422fdc8b4202bbe1fca7a9c358b0 f0be814d573449b2aa0c20178d14195e- default default] [instance: 70222c6a-eb6b-4327-af37-36b4d071d2d7] Setting instance to ERROR state.: MaxRetriesExceeded:Exceeded maximum number of attempts。Exhausted all hosts available for retrying build failures for instance 70222c6a-eb6b-4327-af37-36b4d071d2d7.
Looking at the online solution, you need to check the cat /var/log/neutron/linuxbridge-agent.log
file of the neutron
of the computing node.
The error reported is as follows:
[root@compute ~]# cat /var/log/neutron/linuxbridge-agent.log
2022-02-22 19:05:03.674 8023 ERROR neutron % (opt.name, str(ve)))
2022-02-22 19:05:03.674 8023 ERROR neutron ConfigFileValueError: Value for option l ocal_ip is not valid: OVERLAY_INTERFACE_IP_ADDRESS is not IPv4 or IPv6 address
2022-02-22 19:05:03.674 8023 ERROR neutron
It seems that there is a place where the IP address is not configured correctly. I finally found this configuration file on the computing node.
[root@compute neutron]# vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini
# change:
[vxlan]
enable_vxlan = true
local_ip = OVERLAY_INTERFACE_IP_ADDRESS
l2_population = true
# to:
[vxlan]
enable_vxlan = true
local_ip = 192.168.100.102
l2_population = true
Return to the control node and run the create instance command successfully.
[root@controller nova]# openstack server create --flavor 0f29be3e-089d-4339-88c1-28b4edf3778b --image df4a76af-1dad-43cc-95c5-6700fee1374d --network 3b92a5e0-db76-4207-82eb-c8d6c392bb1c --block-device uuid=906ff027-3fe1-4d6e-a0f0-aeaaa4b46985 --wait test-server
+-------------------------------------+----------------------------------------------------------+
| Field | Value |
+-------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | compute |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute |
| OS-EXT-SRV-ATTR:instance_name | instance-00000008 |
| OS-EXT-STS:power_state | Running |
| OS-EXT-STS:task_state | None |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2022-02-22T11:16:29.000000 |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | public=172.16.175.105 |
| adminPass | GpYVx3fBCYh8 |
| config_drive | |
| created | 2022-02-22T11:16:15Z |
| flavor | m1.tiny (0f29be3e-089d-4339-88c1-28b4edf3778b) |
| hostId | e07c8abe1164a36eafc939bed7256486e4e2bea6c685b9337d4ce165 |
| id | 0b2c2aa6-d3a9-4618-8d39-c7ce1d745a02 |
| image | cirros (df4a76af-1dad-43cc-95c5-6700fee1374d) |
| key_name | None |
| name | test-server |
| progress | 0 |
| project_id | f0be814d573449b2aa0c20178d14195e |
| properties | |
| security_groups | name='default' |
| status | ACTIVE |
| updated | 2022-02-22T11:16:29Z |
| user_id | ba89422fdc8b4202bbe1fca7a9c358b0 |
| volumes_attached | id='906ff027-3fe1-4d6e-a0f0-aeaaa4b46985' |
+-------------------------------------+----------------------------------------------------------+
————————————————