*** rosmaita has left #openstack-glance | 00:34 | |
*** markvoelker has joined #openstack-glance | 00:40 | |
*** jistr has quit IRC | 01:00 | |
*** jistr has joined #openstack-glance | 01:00 | |
*** itlinux has joined #openstack-glance | 01:05 | |
*** Sravan has quit IRC | 01:48 | |
*** Sravan has joined #openstack-glance | 01:52 | |
*** Sravan has quit IRC | 01:53 | |
*** awalende has joined #openstack-glance | 02:29 | |
*** awalende has quit IRC | 02:33 | |
*** Sravan has joined #openstack-glance | 02:35 | |
*** Sravan has quit IRC | 03:01 | |
*** Sravan has joined #openstack-glance | 03:43 | |
*** Sravan has quit IRC | 03:48 | |
*** udesale has joined #openstack-glance | 03:56 | |
*** abhishekk has joined #openstack-glance | 04:40 | |
*** Sravan has joined #openstack-glance | 04:45 | |
*** ratailor has joined #openstack-glance | 05:34 | |
*** Sravan has quit IRC | 06:03 | |
*** Sravan has joined #openstack-glance | 06:04 | |
*** mosulica has joined #openstack-glance | 06:08 | |
*** openstackgerrit has joined #openstack-glance | 06:08 | |
openstackgerrit | Abhishek Kekane proposed openstack/glance master: Periodic jobs are failing for python 3.5 https://review.openstack.org/648614 | 06:08 |
---|---|---|
*** Sravan has quit IRC | 06:08 | |
*** rcernin has quit IRC | 06:38 | |
*** udesale has quit IRC | 06:41 | |
*** udesale has joined #openstack-glance | 06:41 | |
*** Luzi has joined #openstack-glance | 06:51 | |
*** mosulica has quit IRC | 06:58 | |
*** mosulica has joined #openstack-glance | 07:51 | |
*** awalende has joined #openstack-glance | 08:05 | |
*** tkajinam has quit IRC | 08:07 | |
*** rcernin has joined #openstack-glance | 08:22 | |
*** rcernin has quit IRC | 08:57 | |
*** udesale has quit IRC | 08:57 | |
*** udesale has joined #openstack-glance | 08:58 | |
*** udesale has quit IRC | 09:07 | |
*** udesale has joined #openstack-glance | 09:10 | |
*** pcaruana has joined #openstack-glance | 09:15 | |
*** udesale has quit IRC | 09:15 | |
*** itlinux_ has joined #openstack-glance | 09:29 | |
*** itlinux has quit IRC | 09:31 | |
*** priteau has joined #openstack-glance | 09:33 | |
*** abhishekk has quit IRC | 10:20 | |
*** Luzi has quit IRC | 12:02 | |
*** rosmaita has joined #openstack-glance | 12:11 | |
*** ratailor has quit IRC | 12:21 | |
openstackgerrit | Brian Rosmaita proposed openstack/glance_store master: DNM/WIP: Refactor functional tests to use more realistic data https://review.openstack.org/644895 | 12:29 |
*** markvoelker has quit IRC | 12:32 | |
*** lpetrut has joined #openstack-glance | 13:15 | |
*** mvkr has joined #openstack-glance | 13:22 | |
*** priteau has quit IRC | 13:37 | |
openstackgerrit | Brian Rosmaita proposed openstack/glance_store master: DNM/WIP: Refactor functional tests to use more realistic data https://review.openstack.org/644895 | 13:50 |
*** Sravan has joined #openstack-glance | 14:23 | |
*** Sravan has quit IRC | 14:28 | |
*** ratailor has joined #openstack-glance | 15:00 | |
*** awalende has quit IRC | 15:06 | |
*** _alastor_ has quit IRC | 15:14 | |
*** _alastor_ has joined #openstack-glance | 15:14 | |
*** jokke_ has quit IRC | 15:24 | |
*** gmann is now known as gmann_afk | 15:32 | |
*** lpetrut has quit IRC | 15:47 | |
*** ratailor has quit IRC | 15:56 | |
*** mosulica has quit IRC | 16:03 | |
*** mosulica has joined #openstack-glance | 16:24 | |
*** Sravan has joined #openstack-glance | 16:36 | |
openstackgerrit | Brian Rosmaita proposed openstack/glance_store master: DNM/WIP: Refactor functional tests to use more realistic data https://review.openstack.org/644895 | 16:42 |
*** jmlowe has quit IRC | 16:46 | |
*** jmlowe has joined #openstack-glance | 17:07 | |
*** Sravan has quit IRC | 17:12 | |
*** Sravan has joined #openstack-glance | 17:12 | |
*** mosulica has quit IRC | 17:13 | |
*** Sravan has quit IRC | 17:14 | |
*** Sravan has joined #openstack-glance | 17:14 | |
*** mosulica has joined #openstack-glance | 17:18 | |
*** Sravan has quit IRC | 17:34 | |
*** Sravan has joined #openstack-glance | 17:40 | |
*** jistr is now known as jistr|off | 17:45 | |
*** jistr|off is now known as jistr | 17:45 | |
*** Sravan has quit IRC | 17:50 | |
*** Sravan has joined #openstack-glance | 17:53 | |
*** Sravan has quit IRC | 18:03 | |
*** Sravan has joined #openstack-glance | 18:04 | |
*** jmlowe has quit IRC | 18:07 | |
*** jmlowe has joined #openstack-glance | 18:16 | |
*** Sravan has quit IRC | 18:26 | |
*** Sravan has joined #openstack-glance | 18:28 | |
*** Sravan has quit IRC | 18:30 | |
*** pcaruana has quit IRC | 18:38 | |
*** mloza has joined #openstack-glance | 18:57 | |
*** Sravan has joined #openstack-glance | 19:00 | |
*** mosulica has quit IRC | 19:01 | |
mloza | So 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/ODXLL4 | 19:02 |
mloza | Is there any steps that I am missing? | 19:04 |
*** Sravan has quit IRC | 19:05 | |
mloza | Sorry I pasted the wrong link | 19:06 |
mloza | https://docs.openstack.org/glance/rocky/admin/interoperable-image-import.html#the-image-property-injection-plugin | 19:06 |
*** Sravan has joined #openstack-glance | 19:08 | |
*** MattMan_ has quit IRC | 19:08 | |
*** MattMan_ has joined #openstack-glance | 19:09 | |
*** Sravan has quit IRC | 19:12 | |
*** gmann_afk is now known as gmann | 19:19 | |
rosmaita | mloza: 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 |
mloza | I normally upload the image with `openstack image create --container-format bare --disk-format raw --public --file name.img` | 19:23 |
mloza | Is there a different command to the image import? | 19:24 |
*** Sravan has joined #openstack-glance | 19:40 | |
*** mosulica has joined #openstack-glance | 19:42 | |
*** Sravan has quit IRC | 19:45 | |
*** mosulica has quit IRC | 19:59 | |
mloza | rosmaita: This is the logs http://sprunge.us/q0S5da | 20:03 |
mloza | I 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 |
rosmaita | ok, the image-create-via-import is definintely an import call, should have triggered the metatdata injection ... looking at your logs now | 20:05 |
mloza | the metadata properties werent injected when I check via `openstack image show cirros` http://sprunge.us/DI0D2Y | 20:05 |
rosmaita | mloza: you said the image did get created, but without the metadata? what was the image status? | 20:05 |
rosmaita | oh, ok, will look at your output | 20:05 |
rosmaita | just for the heck of it, could you do: glance image-show b351ddce-cd8c-4fb0-b192-262e77cad3e7 | 20:06 |
mloza | rosmaita: http://sprunge.us/0ziJJE | 20:08 |
rosmaita | ty | 20:08 |
mloza | np | 20:12 |
rosmaita | are you using the credentials of an admin user by any chance? | 20:16 |
*** jmlowe has quit IRC | 20:21 | |
rosmaita | mloza: ^^ | 20:33 |
mloza | rosmaita: yep | 20:33 |
mloza | i'm login as the default admin | 20:33 |
rosmaita | ok, that's why it's not working | 20:33 |
rosmaita | don't think it's mentioned in the docs | 20:34 |
rosmaita | there's an option to ignore certain roles when injecting metadata | 20:34 |
rosmaita | the default it 'admin' | 20:34 |
rosmaita | in your [inject-metadata-properties] section of the config file | 20:35 |
rosmaita | set default = [] | 20:35 |
rosmaita | i think you need the [ ] , it should be a list | 20:36 |
mloza | oh yeah | 20:37 |
mloza | https://github.com/openstack/glance/blob/070179948ba6dad714373ceda51bc9d2328ce2e9/glance/async_/flows/plugins/inject_image_metadata.py#L30 | 20:37 |
mloza | I didn't thought about that | 20:37 |
rosmaita | yeah, i forgot about it too | 20:37 |
mloza | thanks | 20:37 |
mloza | will give it try again | 20:37 |
rosmaita | hth | 20:37 |
rosmaita | mloza: https://github.com/openstack/glance/blob/master/etc/glance-image-import.conf.sample#L241-L266 | 20:38 |
*** Sravan has joined #openstack-glance | 20:44 | |
mloza | rosmaita: it still didn't get the metadata injected to the image | 20:47 |
mloza | output of glance image-show http://sprunge.us/iCLr5a | 20:47 |
mloza | glance-api.log http://sprunge.us/2agfvS | 20:47 |
mloza | glance-image-import.conf http://sprunge.us/m2zTwE | 20:48 |
*** Sravan has quit IRC | 20:48 | |
rosmaita | mloza: looking | 20:49 |
mloza | glance-image-import.conf is wrong | 20:50 |
mloza | i mean the link | 20:50 |
rosmaita | inject should be a dict, i think | 20:50 |
mloza | this is the correct one http://sprunge.us/HajvwE | 20:50 |
rosmaita | ok | 20:50 |
mloza | the output is from cat /etc/kolla/glance-api/glance-image-import.conf | 20:51 |
rosmaita | ok, looks like the way we have the opt defined, you don't need the '{ }' around the metadata | 20:53 |
rosmaita | (which you don't have, i was hoping that might be the problem) | 20:53 |
mloza | tried putting { } http://sprunge.us/cwY5Um | 20:58 |
mloza | it didnt worked too | 20:58 |
rosmaita | ok, thanks for trying | 20:58 |
rosmaita | mloza: what happens when you do: glance task-list | 21:03 |
mloza | rosmaita: http://sprunge.us/1lOiir | 21:04 |
rosmaita | ty | 21:05 |
rosmaita | mloza: try: glance task-show 6103699c-8ec9-48f6-a8ec-6c90ffab4baf | 21:06 |
mloza | http://sprunge.us/id4B45 | 21:07 |
mloza | rosmaita: if change to --import-method glance-direct --file cirros.raw it get this error in glance-api.log http://sprunge.us/YFutJK | 21:11 |
mloza | and the instance status is stuck in importing http://sprunge.us/017WuV | 21:12 |
*** jmlowe has joined #openstack-glance | 21:14 | |
mloza | i confirm that there is /tmp/staging inside the glance_api container http://sprunge.us/0Fk4hC | 21:14 |
mloza | inside /tmp/staging i have http://sprunge.us/RwaheL | 21:15 |
rosmaita | thanks | 21:16 |
mloza | this is what i have glance-api.conf http://sprunge.us/6TNnam | 21:17 |
rosmaita | what do you have for 'stores' and 'default_store' | 21:18 |
rosmaita | also, what release are you using, and how many glance nodes do you have? | 21:21 |
mloza | wait | 21:21 |
mloza | default_store = rbd and stores = rbd,file | 21:22 |
mloza | stable/rocky is the release | 21:22 |
mloza | 3 glance nodes | 21:22 |
rosmaita | this 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 one | 21:24 |
rosmaita | doesn't happen with web-download because that's all done in one step (behind the scenes) | 21:24 |
rosmaita | unless you have /tmp/staging mounted on a shared filesystem | 21:24 |
*** Sravan has joined #openstack-glance | 21:25 | |
*** Sravan has quit IRC | 21:29 | |
mloza | I see | 21:31 |
rosmaita | i'm still not sure what is happening with the injection, though | 21:33 |
rosmaita | if you look on each node, you'll probably see some files in each /tmp/staging | 21:33 |
rosmaita | the filename is the image uuid | 21:34 |
rosmaita | so some of them should map to the failed imports | 21:34 |
mloza | rosmaita: yep and the ones that were successfully imported were not there anymore | 21:45 |
rosmaita | mloza: 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 deleted | 21:47 |
rosmaita | so you are ok | 21:47 |
rosmaita | the fix will be in the next stable release | 21:47 |
mloza | I added `file` in `store` because I was hitting this issue https://bugs.launchpad.net/glance/+bug/1803498/comments/1 | 21:49 |
openstack | Launchpad 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 |
rosmaita | that's the one! | 21:49 |
*** Sravan has joined #openstack-glance | 22:11 | |
*** Sravan has quit IRC | 22:15 | |
*** Sravan has joined #openstack-glance | 22:43 | |
*** Sravan has quit IRC | 22:48 | |
*** Sravan has joined #openstack-glance | 22:48 | |
*** Sravan has quit IRC | 22:50 | |
*** Sravan has joined #openstack-glance | 22:57 | |
rosmaita | mloza: the plugins aren't being loaded, not sure why | 23:01 |
rosmaita | will look more later | 23:01 |
*** awalende has joined #openstack-glance | 23:08 | |
*** awalende has quit IRC | 23:13 | |
*** Sravan has quit IRC | 23:30 | |
*** Sravan has joined #openstack-glance | 23:32 | |
*** Sravan has quit IRC | 23:34 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!