{"id":8992,"date":"2023-10-23T16:41:19","date_gmt":"2023-10-23T16:41:19","guid":{"rendered":"https:\/\/www.linuxandotherstuff.com\/?p=8992"},"modified":"2023-10-23T17:13:37","modified_gmt":"2023-10-23T17:13:37","slug":"create-an-instance-error","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2023\/10\/23\/create-an-instance-error\/","title":{"rendered":"Create an Instance Error"},"content":{"rendered":"\n<p>When I try and create a new instance in openstack, I get an error. Here is the error:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nError: Failed to perform requested operation on instance &quot;ubuntu&quot;, the instance has an error status: Please try again later &#x5B;Error: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance e9abcfec-5621-44c9-8326-5243c8dc79d6.]. \n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"178\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/10\/2023-10-23_11-50-12.png\" alt=\"\" class=\"wp-image-8997\"\/><\/figure>\n\n\n\n<p>Edit the nova.conf file.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncd \/etc\/nova\/\ncp nova.conf nova.conf.bak\nnano nova.conf\n<\/pre><\/div>\n\n\n<p>Search for &#8220;block_device_allocate_retries=60.&#8221; Change from 60 to 300<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# The number of times to check for a volume to be &quot;available&quot; before attaching\n# it during server create. For more information, refer to the documentation.\n# (integer value)\n# Minimum value: 0\n#block_device_allocate_retries=300\n<\/pre><\/div>\n\n\n<p>Also, check this variable. 3 seems to work but you may adjust.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# Interval (in seconds) between block device allocation retries on failures. For\n# more information, refer to the documentation. (integer value)\n# Minimum value: 0\n#block_device_allocate_retries_interval=3\n<\/pre><\/div>\n\n\n<p>Save and exit. Retry creating a new instance.<\/p>\n\n\n\n<p>In a CirrOS image, the login account is cirros. The password is gocubsgo. Since the fixed PW allows anyone to login, you should not run this image with a public IP attached.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I try and create a new instance in openstack, I get an error. Here is the error: Edit the nova.conf file. Search for &#8220;block_device_allocate_retries=60.&#8221; Change from 60 to 300 Also, check this variable. 3 seems to work but you may adjust. Save and exit. Retry creating a new instance. In a CirrOS image, the &#8230; <a title=\"Create an Instance Error\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2023\/10\/23\/create-an-instance-error\/\" aria-label=\"Read more about Create an Instance Error\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[152],"tags":[],"class_list":["post-8992","post","type-post","status-publish","format-standard","hentry","category-openstack"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/8992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=8992"}],"version-history":[{"count":4,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/8992\/revisions"}],"predecessor-version":[{"id":8999,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/8992\/revisions\/8999"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=8992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=8992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=8992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}