{"id":601,"date":"2023-05-27T15:50:01","date_gmt":"2023-05-27T20:50:01","guid":{"rendered":"https:\/\/carminebufano.com\/?p=601"},"modified":"2023-05-27T15:55:26","modified_gmt":"2023-05-27T20:55:26","slug":"microstack-openstack-image-service","status":"publish","type":"post","link":"https:\/\/carminebufano.com\/index.php\/2023\/05\/27\/microstack-openstack-image-service\/","title":{"rendered":"Microstack Openstack Image Service"},"content":{"rendered":"\n\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\">How to add Image to Glance<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"225\" height=\"225\" data-attachment-id=\"602\" data-permalink=\"https:\/\/carminebufano.com\/index.php\/2023\/05\/27\/microstack-openstack-image-service\/ubuntu-microstack\/#main\" data-orig-file=\"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2023\/05\/ubuntu-microstack.png?fit=225%2C225&amp;ssl=1\" data-orig-size=\"225,225\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"ubuntu-microstack\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2023\/05\/ubuntu-microstack.png?fit=225%2C225&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2023\/05\/ubuntu-microstack.png?resize=225%2C225&#038;ssl=1\" alt=\"\" class=\"wp-image-602\" srcset=\"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2023\/05\/ubuntu-microstack.png?w=225&amp;ssl=1 225w, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2023\/05\/ubuntu-microstack.png?resize=150%2C150&amp;ssl=1 150w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/figure><\/div>\n\n\n<p><strong><em>For the impatient:<\/em><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Move the image to <code>\/var\/snap\/microstack\/common\/images<\/code><\/li>\n\n\n\n<li>Create the image with: <code>microstack.openstack image create --public --container-format=bare --disk-format=qcow2 --file \/var\/snap\/microstack\/common\/images\/FedoraCloudx86.qcow2 FedoraCloudx86<\/code><\/li>\n<\/ol>\n\n\n\n\n\n\n\n<p>Microstack is admittedly not my favorite way to deploy openstack, probably because it takes some getting used to.<\/p>\n\n\n\n<p>Running openstack services in isolated containers makes things more secure, easier to deploy, homogeneous.. there are so many obvious reasons Canonical did it this way. But it is &#8220;different&#8221; and I need to remind myself that different is not bad&#8230; just different so I am sure as I spend more time working on it my attitude will change. <\/p>\n\n\n\n<p>My Multi-Node Microstack deployment has 2 nodes so far, a controller running as a vm and a compute node running on bare metal.<\/p>\n\n\n\n<p>First thing you will notice right away after deploying Microstack is that command line openstack commands do not work unless you preface them with:<\/p>\n\n\n\n<p><code>microstack.openstack <\/code><\/p>\n\n\n\n<p>Another thing are file paths, specifically in this example we will focus on uploading qcow2 images to Glance.<\/p>\n\n\n\n<p>Lets say you have a image named &#8220;FedoraCloudx86.qcow2&#8221; that you uploaded to your users home directory.<\/p>\n\n\n\n<p>First move the image to a place where Microstack will be able to see it. We can do this with:<\/p>\n\n\n\n<p><code>mv FedoraCloudx86.qcow2 \/var\/snap\/microstack\/common\/images\/<\/code><\/p>\n\n\n\n<p>Now run:<\/p>\n\n\n\n<p><code>microstack.openstack image create --public --container-format=bare --disk-format=qcow2 --file \/var\/snap\/microstack\/common\/images\/FedoraCloudx86.qcow2 FedoraCloudx86<\/code><\/p>\n\n\n\n<p>That should do it!<\/p>\n\n\n\n<p>-Carmine<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to add Image to Glance For the impatient: Microstack is admittedly not my favorite way to deploy openstack, probably because it takes some getting used to. Running openstack services in isolated containers makes things more secure, easier to deploy, homogeneous.. there are so many obvious reasons Canonical did it this way. But it is&hellip; <a class=\"read-more\" href=\"https:\/\/carminebufano.com\/index.php\/2023\/05\/27\/microstack-openstack-image-service\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8,127,10,15],"tags":[123,126,22,124,125,121,120,122,44,46],"class_list":["post-601","post","type-post","status-publish","format-standard","hentry","category-linux","category-microstack","category-openstack","category-walkthroughs","tag-add","tag-glance","tag-how","tag-image","tag-micro","tag-microstack","tag-open","tag-openstack","tag-stack","tag-to"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":609,"url":"https:\/\/carminebufano.com\/index.php\/2023\/05\/30\/restarting-microstack-after-a-reboot\/","url_meta":{"origin":601,"position":0},"title":"Restarting Microstack after a Reboot","author":"Carmine Bufano","date":"May 30, 2023","format":false,"excerpt":"In order to restart all service and be able to login, use: sudo snap start microstack","rel":"","context":"In &quot;Walkthroughs&quot;","block_context":{"text":"Walkthroughs","link":"https:\/\/carminebufano.com\/index.php\/category\/walkthroughs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":709,"url":"https:\/\/carminebufano.com\/index.php\/2024\/11\/02\/how-to-fix-openstack-horizon-dashboard-on-centos-stream-9-error-invalidcachebackenderror\/","url_meta":{"origin":601,"position":1},"title":"How to Fix Openstack Horizon Dashboard on Centos Stream 9 error: InvalidCacheBackendError","author":"Carmine Bufano","date":"November 2, 2024","format":false,"excerpt":"If you have recently deployed Openstack Caracal with RDO Packstack you may run into a problem when you first load the Horizon Dashboard. If you get the \"Something went wrong\" text instead of the regular login page even though Packstack finished successfully check the following. Try the following: Login to\u2026","rel":"","context":"In &quot;Microstack&quot;","block_context":{"text":"Microstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/microstack\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":698,"url":"https:\/\/carminebufano.com\/index.php\/2024\/09\/20\/quality-free-resources-to-learn-programming\/","url_meta":{"origin":601,"position":2},"title":"Top 3 Online Resources to Learn Coding","author":"Carmine Bufano","date":"September 20, 2024","format":false,"excerpt":"Learn to write your own applications for fun and profit. Here are quality free resources online that I can personally vouch for. I get nothing for suggesting these websites.","rel":"","context":"In &quot;Announcements&quot;","block_context":{"text":"Announcements","link":"https:\/\/carminebufano.com\/index.php\/category\/announcements\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/09\/usefull-sites-learn-to-code.jpeg?fit=1200%2C686&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":145,"url":"https:\/\/carminebufano.com\/index.php\/2015\/07\/07\/how-to-upload-turnkey-linux-appliances-to-openstack-juno\/","url_meta":{"origin":601,"position":3},"title":"How to Upload Turnkey Linux Appliances to Openstack Juno","author":"Carmine Bufano","date":"July 7, 2015","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":68,"url":"https:\/\/carminebufano.com\/index.php\/2014\/08\/26\/how-to-create-a-virtual-network-that-spans-every-project-in-your-openstack-based-cloud\/","url_meta":{"origin":601,"position":4},"title":"How to create a virtual network that spans every project in your Openstack based cloud.","author":"Carmine Bufano","date":"August 26, 2014","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":153,"url":"https:\/\/carminebufano.com\/index.php\/2015\/07\/08\/launching-a-openstack-instance-from-turnkey-linux\/","url_meta":{"origin":601,"position":5},"title":"Launching a Openstack instance from Turnkey Linux","author":"Carmine Bufano","date":"July 8, 2015","format":false,"excerpt":"","rel":"","context":"In &quot;Openstack&quot;","block_context":{"text":"Openstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p70MUT-9H","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/comments?post=601"}],"version-history":[{"count":3,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/601\/revisions"}],"predecessor-version":[{"id":605,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/601\/revisions\/605"}],"wp:attachment":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/media?parent=601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/categories?post=601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/tags?post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}