What if Openstack for Newton fails to create a CVM?
0, then the total number attempts # is (retries + 1) attempts = 1 if retries > = 1: attempts = retries + 1 for attempt in range (1, attempts + 1): volume = self.volume_api.get (context, vol_id) volume_status = volume ['status'] if volume_status not in [' creating' 'downloading']: if volume_status =' available': return attempt LOG.warning (_ LW ("Volume id:% (vol_id) s finished being"created but its status is% (vol_status) s."), {'vol_id': vol_id 'vol_status': volume_status}) break greenthread.sleep (CONF.block_device_allocate_retries_interval) raise exception.VolumeNotCreated (volume_id=vol_id, seconds=int (time.time ()-start), attempts=attempt Volume_status=volume_status)
There are two parameters, block_device_allocate_retries and block_device_allocate_retries_interval. By looking at the name, you can see that one is the number of attempts and the other is the interval between attempts.
5. Settlement process
Parameter default value
Block_device_allocate_retries_interval=3block_device_allocate_retries=60
Modify the interval first
Block_device_allocate_retries_interval=10
Restart nova-compute
Systemctl restart openstack-nova-compute.service
Create a CVM in the same way and find that it can be created successfully.
The above is all the contents of the article "how to create a CVM failed in Openstack for Newton". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!