In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
< 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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.