Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if Openstack for Newton fails to create a CVM?

Shulou Source: shulou.com Published: 2022-05-31 16:17:17 10月01日 Update

< 0: LOG.warning(_LW("Treating negative config value (%(retries)s) for " "'block_device_retries' as 0."), {'retries': retries}) # (1) treat negative config value as 0 # (2) the configured value is 0, one attempt should be made # (3) the configured value is >

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!

Tags: Host parameter number of times error how to do success two content article speed mirror attempt check value information interest function method can be passed at the same time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei MySQL MariaDB OPPO Reno Linux