{"id":642,"date":"2021-09-20T07:46:56","date_gmt":"2021-09-19T23:46:56","guid":{"rendered":"https:\/\/cdn.igene.tw\/?p=642"},"modified":"2021-09-20T07:46:56","modified_gmt":"2021-09-19T23:46:56","slug":"openstack-glance-intro","status":"publish","type":"post","link":"https:\/\/igene.tw\/openstack-glance-intro","title":{"rendered":"\u5f9e\u88f8\u6a5f\u5230\u96f2\u7aef\uff1aOpenStack Glance \u4ecb\u7d39"},"content":{"rendered":"<p>\u5728\u7d93\u904e\u4e86\u597d\u5e7e\u7bc7\u7684 Neutron \u4e4b\u5f8c\u6211\u5011\u7d42\u65bc\u4f86\u5230\u4e0b\u4e00\u500b OpenStack \u6838\u5fc3\u5c08\u6848\uff0c\u9019\u6b21\u8981\u4ecb\u7d39\u7684\u662f\u5927\u5bb6\u5e38\u5e38\u5ffd\u7565\uff0c\u4f46\u662f\u537b\u53c8\u5f88\u91cd\u8981\u7684 Glance\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f282c879e62\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f282c879e62\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/igene.tw\/openstack-glance-intro\/#Glance_%E6%98%AF%E4%BB%80%E9%BA%BC%EF%BC%9F\" >Glance \u662f\u4ec0\u9ebc\uff1f<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/igene.tw\/openstack-glance-intro\/#%E6%98%A0%E5%83%8F%E6%AA%94\" >\u6620\u50cf\u6a94<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/igene.tw\/openstack-glance-intro\/#Metadata_Definitions\" >Metadata Definitions<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/igene.tw\/openstack-glance-intro\/#%E6%9E%B6%E6%A7%8B\" >\u67b6\u69cb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/igene.tw\/openstack-glance-intro\/#%E5%B0%8F%E7%B5%90\" >\u5c0f\u7d50<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Glance_%E6%98%AF%E4%BB%80%E9%BA%BC%EF%BC%9F\"><\/span>Glance \u662f\u4ec0\u9ebc\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728<a href=\"https:\/\/docs.openstack.org\/glance\/latest\/\">\u5b98\u65b9\u6587\u4ef6\u7684\u5b9a\u7fa9<\/a>\u4e2d\u662f\u9019\u9ebc\u8aaa\u7684\uff1a<\/p>\n<blockquote>\n<p>Image service (Glance) \u63d0\u4f9b\u8b93\u4f7f\u7528\u8005\u53ef\u4ee5\u4e0a\u50b3\u548c\u767c\u73fe\u76ee\u7684\u5728\u65bc\u8207\u5176\u4ed6\u670d\u52d9\u4e00\u8d77\u4f7f\u7528\u7684\u6578\u64da\u8cc7\u7522\u3002\u76ee\u524d\u63d0\u4f9b\u7684\u662f\u6620\u50cf\u6a94 (Images) \u548c metadata definitions\u3002<\/p>\n<\/blockquote>\n<p>\u7c21\u55ae\u4f86\u8aaa\uff0cGlance \u5c31\u662f\u4e00\u500b\u8b93\u4f60\u5132\u5b58\u548c\u4e0b\u8f09\u6620\u50cf\u6a94\u548c metadata definitions \u7684\u670d\u52d9\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%98%A0%E5%83%8F%E6%AA%94\"><\/span>\u6620\u50cf\u6a94<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Glance \u6620\u50cf\u670d\u52d9\u5305\u62ec\u641c\u5c0b\u3001\u4e0a\u50b3\u548c\u4e0b\u8f09\u865b\u64ec\u6a5f (VM) \u6620\u50cf\u6a94\u3002 Glance \u6709\u4e00\u500b RESTful API\uff0c\u63d0\u4f9b\u4f7f\u7528\u8005\u67e5\u8a62 VM \u6620\u50cf\u6a94 metadata \u4ee5\u53ca\u4e0b\u8f09\u5be6\u969b\u7684\u6620\u50cf\u6a94\u8cc7\u6599\u3002<\/p>\n<p>\u800c\u5132\u5b58\u6620\u50cf\u6a94\u7684\u65b9\u5f0f\u53ef\u4ee5\u6709\u975e\u5e38\u591a\u7a2e\uff0c\u76ee\u524d\u5e38\u898b\u7684\u70ba\uff1alocal filesystem, Ceph, Swift \u7b49\u7b49\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Metadata_Definitions\"><\/span>Metadata Definitions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Glance \u5728\u5132\u5b58\u6620\u50cf\u6a94\u7684\u540c\u6642\u4e5f\u53ef\u4ee5\u5132\u5b58\u4e00\u500b Metadata Definitions \u76ee\u9304 (Catalog)\u3002 \u9019\u70ba OpenStack \u7684\u5176\u4ed6\u670d\u52d9\u63d0\u4f9b\u4e86\u4e00\u7a2e\u4ee5 API call \u78ba\u5b9a\u53ef\u61c9\u7528\u65bc OpenStack \u8cc7\u6e90\u7684\u5404\u7a2e metadata key names \u8ddf\u6578\u503c\u7684\u65b9\u6cd5\u3002<\/p>\n<p>\u8981\u6ce8\u610f\u7684\u662f Glance \u53ea\u8ca0\u8cac\u5132\u5b58\u9019\u4e9b key value pairs\uff0c\u9664\u975e\u4f60\u5c07\u5176\u61c9\u7528\u5230\u5176\u4ed6 OpenStack \u670d\u52d9\u4e0a\u4e0d\u7136\u9019\u4e9b\u8cc7\u6599\u662f\u4e0d\u6703\u8d77\u4f5c\u7528\u7684\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%9E%B6%E6%A7%8B\"><\/span>\u67b6\u69cb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Glance \u7684\u67b6\u69cb\u975e\u5e38\u7684\u7c21\u55ae\uff0c\u57fa\u672c\u4e0a\u53ea\u6709\u4e00\u500b\u5143\u4ef6\uff0cglance-api \u8ca0\u8cac\u63d0\u4f9b\u5c0d\u4f7f\u7528\u8005\u7684 API \u4ee5\u53ca\u4e32\u63a5\u5176\u80cc\u5f8c\u4e0d\u540c\u7684\u5132\u5b58\u5f8c\u7aef\u3002<\/p>\n<p><a href=\"https:\/\/docs.openstack.org\/glance\/latest\/_images\/architecture.png\"><img decoding=\"async\" src=\"https:\/\/docs.openstack.org\/glance\/latest\/_images\/architecture.png\" alt=\"\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%B0%8F%E7%B5%90\"><\/span>\u5c0f\u7d50<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u96d6\u7136 Glance \u5728 OpenStack \u4e4b\u4e2d\u662f\u76f8\u5c0d\u7c21\u55ae\u7684\u5143\u4ef6\uff0c\u4f46\u662f\u5b83\u6240\u63d0\u4f9b\u7684\u6620\u50cf\u6a94\u5132\u5b58\u670d\u52d9\u53ef\u662f\u5728 OpenStack \u4e4b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u74b0\u3002\u4e0b\u4e00\u7bc7\u7b46\u8005\u5c07\u6703\u4ecb\u7d39 Cinder\uff0c\u4e4b\u5f8c\u5c31\u6703\u958b\u59cb\u9032\u5165\u5be6\u969b\u90e8\u5c6c OpenStack \u5230\u5be6\u9ad4\u6a5f\u5668\u7684\u74b0\u7bc0\u4e86\u3002<\/p>\n<hr \/>\n<p>Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u7d93\u904e\u4e86\u597d\u5e7e\u7bc7\u7684 Neutron \u4e4b\u5f8c\u6211\u5011\u7d42\u65bc\u4f86\u5230\u4e0b\u4e00\u500b OpenStack \u6838\u5fc3\u5c08\u6848\uff0c\u9019\u6b21\u8981\u4ecb\u7d39\u7684\u662f\u5927\u5bb6\u5e38\u5e38\u5ffd\u7565\uff0c\u4f46\u662f\u537b\u53c8\u5f88\u91cd\u8981\u7684 Glance\u3002 Glance \u662f\u4ec0\u9ebc\uff1f \u5728\u5b98\u65b9\u6587\u4ef6\u7684\u5b9a\u7fa9\u4e2d\u662f\u9019\u9ebc\u8aaa\u7684\uff1a Image service (Glance) \u63d0\u4f9b\u8b93\u4f7f\u7528\u8005\u53ef\u4ee5\u4e0a\u50b3\u548c\u767c\u73fe\u76ee\u7684\u5728\u65bc\u8207\u5176\u4ed6\u670d\u52d9\u4e00\u8d77\u4f7f\u7528\u7684\u6578\u64da\u8cc7\u7522\u3002\u76ee\u524d\u63d0\u4f9b\u7684\u662f\u6620\u50cf\u6a94 (Images) \u548c metadata definitions\u3002 \u7c21\u55ae\u4f86\u8aaa\uff0cGlance \u5c31\u662f\u4e00\u500b\u8b93\u4f60\u5132\u5b58\u548c\u4e0b\u8f09\u6620\u50cf\u6a94\u548c metadata definitions \u7684\u670d\u52d9\u3002 \u6620\u50cf\u6a94 Glance \u6620\u50cf\u670d\u52d9\u5305\u62ec\u641c\u5c0b\u3001\u4e0a\u50b3\u548c\u4e0b\u8f09\u865b\u64ec\u6a5f (VM) \u6620\u50cf\u6a94\u3002 Glance \u6709\u4e00\u500b RESTful API\uff0c\u63d0\u4f9b\u4f7f\u7528\u8005\u67e5\u8a62 VM \u6620\u50cf\u6a94 metadata \u4ee5\u53ca\u4e0b\u8f09\u5be6\u969b\u7684\u6620\u50cf\u6a94\u8cc7\u6599\u3002 \u800c\u5132\u5b58\u6620\u50cf\u6a94\u7684\u65b9\u5f0f\u53ef\u4ee5\u6709\u975e\u5e38\u591a\u7a2e\uff0c\u76ee\u524d\u5e38\u898b\u7684\u70ba\uff1alocal filesystem, Ceph, Swift \u7b49\u7b49\u3002 Metadata Definitions Glance \u5728\u5132\u5b58\u6620\u50cf\u6a94\u7684\u540c\u6642\u4e5f\u53ef\u4ee5\u5132\u5b58\u4e00\u500b Metadata Definitions \u76ee\u9304 (Catalog)\u3002 \u9019\u70ba OpenStack \u7684\u5176\u4ed6\u670d\u52d9\u63d0\u4f9b\u4e86\u4e00\u7a2e\u4ee5 API call \u78ba\u5b9a\u53ef\u61c9\u7528\u65bc OpenStack [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":645,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/object-storage-ca-ymq-1.vexxhost.net\/swift\/v1\/6e4619c416ff4bd19e1c087f27a43eea\/www-images-prod\/project-mascots\/Glance\/OpenStack_Project_Glance_vertical.jpg","fifu_image_alt":"\u5f9e\u88f8\u6a5f\u5230\u96f2\u7aef\uff1aOpenStack Glance \u4ecb\u7d39","footnotes":""},"categories":[13,4],"tags":[],"class_list":["post-642","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-openstack"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/comments?post=642"}],"version-history":[{"count":3,"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/posts\/642\/revisions\/646"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/media\/645"}],"wp:attachment":[{"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/media?parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/categories?post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/igene.tw\/wp-json\/wp\/v2\/tags?post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}