Friday, 2019-03-29

*** rosmaita has left #openstack-glance00:34
*** markvoelker has joined #openstack-glance00:40
*** jistr has quit IRC01:00
*** jistr has joined #openstack-glance01:00
*** itlinux has joined #openstack-glance01:05
*** Sravan has quit IRC01:48
*** Sravan has joined #openstack-glance01:52
*** Sravan has quit IRC01:53
*** awalende has joined #openstack-glance02:29
*** awalende has quit IRC02:33
*** Sravan has joined #openstack-glance02:35
*** Sravan has quit IRC03:01
*** Sravan has joined #openstack-glance03:43
*** Sravan has quit IRC03:48
*** udesale has joined #openstack-glance03:56
*** abhishekk has joined #openstack-glance04:40
*** Sravan has joined #openstack-glance04:45
*** ratailor has joined #openstack-glance05:34
*** Sravan has quit IRC06:03
*** Sravan has joined #openstack-glance06:04
*** mosulica has joined #openstack-glance06:08
*** openstackgerrit has joined #openstack-glance06:08
openstackgerritAbhishek Kekane proposed openstack/glance master: Periodic jobs are failing for python 3.5  https://review.openstack.org/64861406:08
*** Sravan has quit IRC06:08
*** rcernin has quit IRC06:38
*** udesale has quit IRC06:41
*** udesale has joined #openstack-glance06:41
*** Luzi has joined #openstack-glance06:51
*** mosulica has quit IRC06:58
*** mosulica has joined #openstack-glance07:51
*** awalende has joined #openstack-glance08:05
*** tkajinam has quit IRC08:07
*** rcernin has joined #openstack-glance08:22
*** rcernin has quit IRC08:57
*** udesale has quit IRC08:57
*** udesale has joined #openstack-glance08:58
*** udesale has quit IRC09:07
*** udesale has joined #openstack-glance09:10
*** pcaruana has joined #openstack-glance09:15
*** udesale has quit IRC09:15
*** itlinux_ has joined #openstack-glance09:29
*** itlinux has quit IRC09:31
*** priteau has joined #openstack-glance09:33
*** abhishekk has quit IRC10:20
*** Luzi has quit IRC12:02
*** rosmaita has joined #openstack-glance12:11
*** ratailor has quit IRC12:21
openstackgerritBrian Rosmaita proposed openstack/glance_store master: DNM/WIP: Refactor functional tests to use more realistic data  https://review.openstack.org/64489512:29
*** markvoelker has quit IRC12:32
*** lpetrut has joined #openstack-glance13:15
*** mvkr has joined #openstack-glance13:22
*** priteau has quit IRC13:37
openstackgerritBrian Rosmaita proposed openstack/glance_store master: DNM/WIP: Refactor functional tests to use more realistic data  https://review.openstack.org/64489513:50
*** Sravan has joined #openstack-glance14:23
*** Sravan has quit IRC14:28
*** ratailor has joined #openstack-glance15:00
*** awalende has quit IRC15:06
*** _alastor_ has quit IRC15:14
*** _alastor_ has joined #openstack-glance15:14
*** jokke_ has quit IRC15:24
*** gmann is now known as gmann_afk15:32
*** lpetrut has quit IRC15:47
*** ratailor has quit IRC15:56
*** mosulica has quit IRC16:03
*** mosulica has joined #openstack-glance16:24
*** Sravan has joined #openstack-glance16:36
openstackgerritBrian Rosmaita proposed openstack/glance_store master: DNM/WIP: Refactor functional tests to use more realistic data  https://review.openstack.org/64489516:42
*** jmlowe has quit IRC16:46
*** jmlowe has joined #openstack-glance17:07
*** Sravan has quit IRC17:12
*** Sravan has joined #openstack-glance17:12
*** mosulica has quit IRC17:13
*** Sravan has quit IRC17:14
*** Sravan has joined #openstack-glance17:14
*** mosulica has joined #openstack-glance17:18
*** Sravan has quit IRC17:34
*** Sravan has joined #openstack-glance17:40
*** jistr is now known as jistr|off17:45
*** jistr|off is now known as jistr17:45
*** Sravan has quit IRC17:50
*** Sravan has joined #openstack-glance17:53
*** Sravan has quit IRC18:03
*** Sravan has joined #openstack-glance18:04
*** jmlowe has quit IRC18:07
*** jmlowe has joined #openstack-glance18:16
*** Sravan has quit IRC18:26
*** Sravan has joined #openstack-glance18:28
*** Sravan has quit IRC18:30
*** pcaruana has quit IRC18:38
*** mloza has joined #openstack-glance18:57
*** Sravan has joined #openstack-glance19:00
*** mosulica has quit IRC19:01
mlozaSo I'm following this guide https://docs.openstack.org/glance/rocky/admin/interoperable-image-import.html#the-image-conversion to inject metadata when an image is uploaded and but it doesn't inject metadata to the image. This is my glance-image-import.conf http://sprunge.us/ODXLL419:02
mlozaIs there any steps that I am missing?19:04
*** Sravan has quit IRC19:05
mlozaSorry I pasted the wrong link19:06
mlozahttps://docs.openstack.org/glance/rocky/admin/interoperable-image-import.html#the-image-property-injection-plugin19:06
*** Sravan has joined #openstack-glance19:08
*** MattMan_ has quit IRC19:08
*** MattMan_ has joined #openstack-glance19:09
*** Sravan has quit IRC19:12
*** gmann_afk is now known as gmann19:19
rosmaitamloza: that looks ok, is there anything in the logs? and also forgive me for asking, but when you say "upload", you mean "image import", right?19:20
mlozaI normally upload the image with `openstack image create --container-format bare --disk-format raw --public --file name.img`19:23
mlozaIs there a different command to the image import?19:24
*** Sravan has joined #openstack-glance19:40
*** mosulica has joined #openstack-glance19:42
*** Sravan has quit IRC19:45
*** mosulica has quit IRC19:59
mlozarosmaita: This is the logs http://sprunge.us/q0S5da20:03
mlozaI did an image import `glance image-create-via-import --disk-format qcow2 --container-format bare --name cirros --import-method web-download --uri http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img`20:03
rosmaitaok, the image-create-via-import is definintely an import call, should have triggered the metatdata injection ... looking at your logs now20:05
mlozathe metadata properties werent injected when I check via `openstack image show cirros` http://sprunge.us/DI0D2Y20:05
rosmaitamloza: you said the image did get created, but without the metadata?  what was the image status?20:05
rosmaitaoh, ok, will look at your output20:05
rosmaitajust for the heck of it, could you do: glance image-show b351ddce-cd8c-4fb0-b192-262e77cad3e720:06
mlozarosmaita: http://sprunge.us/0ziJJE20:08
rosmaitaty20:08
mlozanp20:12
rosmaitaare you using the credentials of an admin user by any chance?20:16
*** jmlowe has quit IRC20:21
rosmaitamloza: ^^20:33
mlozarosmaita: yep20:33
mlozai'm login as the default admin20:33
rosmaitaok, that's why it's not working20:33
rosmaitadon't think it's mentioned in the docs20:34
rosmaitathere's an option to ignore certain roles when injecting metadata20:34
rosmaitathe default it 'admin'20:34
rosmaitain your [inject-metadata-properties] section of the config file20:35
rosmaitaset default = []20:35
rosmaitai think you need the [ ] , it should be a list20:36
mlozaoh yeah20:37
mlozahttps://github.com/openstack/glance/blob/070179948ba6dad714373ceda51bc9d2328ce2e9/glance/async_/flows/plugins/inject_image_metadata.py#L3020:37
mlozaI didn't thought about that20:37
rosmaitayeah, i forgot about it too20:37
mlozathanks20:37
mlozawill give it try again20:37
rosmaitahth20:37
rosmaitamloza: https://github.com/openstack/glance/blob/master/etc/glance-image-import.conf.sample#L241-L26620:38
*** Sravan has joined #openstack-glance20:44
mlozarosmaita: it still didn't get the metadata injected to the image20:47
mlozaoutput of glance image-show http://sprunge.us/iCLr5a20:47
mlozaglance-api.log http://sprunge.us/2agfvS20:47
mlozaglance-image-import.conf http://sprunge.us/m2zTwE20:48
*** Sravan has quit IRC20:48
rosmaitamloza: looking20:49
mlozaglance-image-import.conf is wrong20:50
mlozai mean the link20:50
rosmaitainject should be a dict, i think20:50
mlozathis is the correct one http://sprunge.us/HajvwE20:50
rosmaitaok20:50
mlozathe output is from cat /etc/kolla/glance-api/glance-image-import.conf20:51
rosmaitaok, looks like the way we have the opt defined, you don't need the '{ }' around the metadata20:53
rosmaita(which you don't have, i was hoping that might be the problem)20:53
mlozatried putting { } http://sprunge.us/cwY5Um20:58
mlozait didnt worked too20:58
rosmaitaok, thanks for trying20:58
rosmaitamloza: what happens when you do: glance task-list21:03
mlozarosmaita: http://sprunge.us/1lOiir21:04
rosmaitaty21:05
rosmaitamloza: try: glance task-show 6103699c-8ec9-48f6-a8ec-6c90ffab4baf21:06
mlozahttp://sprunge.us/id4B4521:07
mlozarosmaita: if change to --import-method glance-direct --file cirros.raw it get this error in glance-api.log http://sprunge.us/YFutJK21:11
mlozaand the instance status is stuck in importing http://sprunge.us/017WuV21:12
*** jmlowe has joined #openstack-glance21:14
mlozai confirm that there is /tmp/staging inside the glance_api container http://sprunge.us/0Fk4hC21:14
mlozainside /tmp/staging i have http://sprunge.us/RwaheL21:15
rosmaitathanks21:16
mlozathis is what i have glance-api.conf http://sprunge.us/6TNnam21:17
rosmaitawhat do you have for 'stores' and 'default_store'21:18
rosmaitaalso, what release are you using, and how many glance nodes do you have?21:21
mlozawait21:21
mlozadefault_store = rbd and stores = rbd,file21:22
mlozastable/rocky is the release21:22
mloza3 glance nodes21:22
rosmaitathis doesn't help the metadata injection, but i think what is going on with glance-direct is that the staged data is going to one node, and the import call is going to a different one21:24
rosmaitadoesn't happen with web-download because that's all done in one step (behind the scenes)21:24
rosmaitaunless you have /tmp/staging mounted on a shared filesystem21:24
*** Sravan has joined #openstack-glance21:25
*** Sravan has quit IRC21:29
mlozaI see21:31
rosmaitai'm still not sure what is happening with the injection, though21:33
rosmaitaif you look on each node, you'll probably see some files in each /tmp/staging21:33
rosmaitathe filename is the image uuid21:34
rosmaitaso some of them should map to the failed imports21:34
mlozarosmaita: yep and the ones that were successfully imported were not there anymore21:45
rosmaitamloza: btw, there's a bug in rocky that was just fixed that if you don't have 'file' in your 'stores' option, the staged data won't be deleted21:47
rosmaitaso you are ok21:47
rosmaitathe fix will be in the next stable release21:47
mlozaI added `file` in `store` because I was hitting this issue https://bugs.launchpad.net/glance/+bug/1803498/comments/121:49
openstackLaunchpad bug 1803498 in Glance "node_staging_uri needs the file store to be configured" [High,Fix released] - Assigned to Abhishek Kekane (abhishek-kekane)21:49
rosmaitathat's the one!21:49
*** Sravan has joined #openstack-glance22:11
*** Sravan has quit IRC22:15
*** Sravan has joined #openstack-glance22:43
*** Sravan has quit IRC22:48
*** Sravan has joined #openstack-glance22:48
*** Sravan has quit IRC22:50
*** Sravan has joined #openstack-glance22:57
rosmaitamloza: the plugins aren't being loaded, not sure why23:01
rosmaitawill look more later23:01
*** awalende has joined #openstack-glance23:08
*** awalende has quit IRC23:13
*** Sravan has quit IRC23:30
*** Sravan has joined #openstack-glance23:32
*** Sravan has quit IRC23:34

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!