Monday, 2018-10-08

*** wxy-xiyuan has joined #openstack-glance01:17
*** MattMan_1 has quit IRC01:43
*** MattMan_1 has joined #openstack-glance01:43
*** mhen has quit IRC01:58
*** mhen has joined #openstack-glance02:00
*** LiangFang has joined #openstack-glance03:24
*** pooja_jadhav has joined #openstack-glance04:33
*** abhishekk has joined #openstack-glance04:38
*** ratailor has joined #openstack-glance05:53
*** ratailor has quit IRC06:28
*** mosulica has joined #openstack-glance06:31
*** ratailor has joined #openstack-glance06:35
*** rcernin has quit IRC07:21
*** belmoreira has joined #openstack-glance08:17
openstackgerritMerged openstack/glance master: Handle StopIteration for Py3.7 PEP 0479  https://review.openstack.org/58262808:36
*** LiangFang has quit IRC10:05
*** abhishekk has quit IRC10:15
*** rcernin has joined #openstack-glance10:35
*** dpawlik has joined #openstack-glance10:37
*** Luzi has joined #openstack-glance10:46
*** rcernin has quit IRC11:17
*** ratailor has quit IRC11:20
*** belmorei_ has joined #openstack-glance11:48
*** belmoreira has quit IRC11:51
*** mosulica has quit IRC12:02
*** mosulica has joined #openstack-glance12:27
*** brinzhang has quit IRC12:28
*** zul has quit IRC13:38
*** kukacz has quit IRC13:54
*** kukacz has joined #openstack-glance13:54
*** munimeha1 has joined #openstack-glance14:08
*** rosmaita has joined #openstack-glance14:13
*** itlinux has quit IRC14:50
*** gcb_ has joined #openstack-glance14:53
*** mosulica has quit IRC15:04
*** Luzi has quit IRC15:17
*** itlinux has joined #openstack-glance15:43
aspiershi, please can someone point me at docs for how OS::Compute::HostCapabilities can be used?16:01
aspiersIt claims to use ComputeCapabilitiesFilter, but isn't it achieving pretty much the same thing as ImagePropertiesFilter? When should one be used over the other?16:01
*** gcb_ has quit IRC16:03
rosmaitaaspiers: I guess you've looked at https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html ?  I think this is really a nova question16:08
aspiersrosmaita: yeah, I've looked at that, but this is about image metadata16:08
rosmaitahave you seen https://docs.openstack.org/glance/latest/admin/useful-image-properties.html ?16:09
aspiersit's defined in https://github.com/openstack/glance/blob/master/etc/metadefs/compute-host-capabilities.json16:09
aspiersyes I've seen that too16:09
rosmaitaaspiers: the metadefs by themselves don't do anything, they just give you a programmatic way to find namespaces and values16:10
rosmaitayou have to actually put the info on an image as additional image properties in order to get something to happen16:10
aspiersright, so that schema is associating the capabilities: prefix with flavors, right?16:10
*** belmorei_ has quit IRC16:11
aspiersI already knew about ComputeCapabilitiesFilter, but I thought the idea was that capabilities: extra specs could also be put on glance images?16:12
aspiersotherwise why is this file in the glance project?16:12
rosmaitaaspiers: the metadefs are in Glance ... for no particular reason16:12
aspiersor is it because nova's extra spec mechanism relies on namespaces/schema which are defined by glance?16:13
aspiersah16:13
aspiersso the only way to require a particular CPU capability on an image is via the new trait:... feature?16:13
rosmaitayeah, Glance is just providing a home for the metadata definitions catalog16:13
aspiersOK16:13
rosmaitawell, there are 2 steps, i think16:13
aspiersthank you! that sheds a lot of light where I was previously confused16:13
rosmaitayou need to have nova configured properly16:13
rosmaitaand then you need to put the metadata on images that require it16:14
rosmaita(don't know if that helps)16:14
aspierssure, you need the nova filter configured16:14
aspiersbut IIUC, if I use traits then there is no need for that16:14
aspierstrait filtering seems to be built-in, both on images and flavors16:14
aspiersAFAICS16:14
rosmaitai think you are correct16:16
aspiersI have to dash now but this was extremely helpful - thanks a LOT!16:16
rosmaitathe basic deal is that you can run a cloud without putting special stuff on the images; it's only when your infrastructure is complicated (for example, mixed hypervisors) that it may be useful to put stuff on the images16:17
rosmaitaaspiers: np, hth16:17
imacdonnrosmaita: I added a little bit more to the etherpad since Friday .... looks like no one else has :/ Actually, though, at the end of the day, it's basically what I had already implemented, with some clarification on the schema addition16:29
rosmaitaimacdonn: ok, thanks, i'll take a look after lunch.  i'll also make sure it gets discussed at the thursday meeting16:29
rosmaitawhich, i know, is a long ways away from your point of view!16:30
imacdonnrosmaita: I'd like to know what you need to see added/changed in the spec-lite, so at least we can hopefully get that finally approved ... also if you have any comments on the implementation, that's up for review too. Thanks!16:31
rosmaitasounds good, i'll get you some comments later today16:31
imacdonncool16:31
*** gyee has joined #openstack-glance16:48
prometheanfireso, now that it's monday...16:50
prometheanfirenew oslo-messaging seems to be breaking things http://logs.openstack.org/21/607521/2/check/cross-glance-py35/e2161d7/testr_results.html.gz16:50
*** imacdonn has quit IRC18:23
*** imacdonn has joined #openstack-glance18:23
openstackgerritBrian Rosmaita proposed openstack/glance master: Do not use oslo.messaging 9.0.0  https://review.openstack.org/60876020:06
rosmaitaprometheanfire: ^^20:06
imacdonnthat seems like the ostrich approach? Will have to deal with the deprecation at some point.......20:15
rosmaitafrom the patch to oslo.messaging master, looks like the problem is a missing default value on the oslo side20:21
imacdonnthat may be one problem, but there's also a deprecated option that's been removed20:22
rosmaitafeel free to -1 the patch, i did not look too closely into this other than to note that our tests all pass against oslo.messaging master20:23
imacdonnhmm, strang20:24
imacdonnI haven't gotten to try yet ... but I do see use of the removed option (rpc_backend) in there, so not sure how it could work20:25
rosmaitayeah, i may be over-relying on our test coverage20:25
imacdonnhow did you test with oslo.messaging master ?20:25
rosmaitaThere20:31
rosmaita's a periodic job defined that tests all the oslo project masters against glance master20:32
rosmaitafor unit and functional tests20:32
rosmaitaif you want to do it locally, i'm not sure how to do it short of hacking the patch into your tox virtualenvs20:33
imacdonnfor cinder, I activated the venv, and used pip to upgrade oslo.messaging (to 9.0.0) .. that reproduced the problems20:34
imacdonnactivated the tox py27 venv, that is20:35
rosmaitai think i have paste somewhere from when i had to do this with glance_store master, hang on, i''ll look20:35
rosmaitaimacdonn: http://paste.openstack.org/show/726942/20:37
imacdonnrosmaita: OK, yeah, I guess that would work for testing a patch that's not merged yet20:42
rosmaitathere's probably a fancier way to do it, but this works if you just need to test one change that isn't available in a release yet20:44
imacdonnright20:44
imacdonnI'd want to start by reproducing the problem - I may have a go this afternoon ... working on a cinder patch right now20:45
rosmaitaimacdonn: if you have time, that would be great20:45
*** pcaruana has quit IRC20:49
openstackgerritBrian Rosmaita proposed openstack/glance master: Clarify the Glance/metadefs relationship  https://review.openstack.org/60876920:53
*** prometheanfire has left #openstack-glance20:59
*** itlinux has quit IRC21:08
imacdonnrosmaita: on closer inspection, the only mentions of rpc_backend in the glance source are in the example config files - e.g. https://github.com/openstack/glance/blob/master/etc/glance-api.conf#L1841-L184621:44
imacdonnwhilst that won't break any tests, it prob should be removed21:45
rosmaitagood to know, thanks for checking21:56
rosmaitaimacdonn: that should be corrected automatically when the config file is regenerated21:57
rosmaitaso nothing to do ... the best kind of change!21:57
imacdonnI was going to try to hack in the oslo.messaging fix and see if it makes all the other problems go away21:59
rosmaita:)21:59
imacdonnand apparently it does!22:02
imacdonnwhere does that example config auto-generation happen ?22:04
rosmaitait has to be triggered manually22:04
imacdonnto it'll get manually automatically corrected? ;)22:05
rosmaitaimacdonn: https://docs.openstack.org/glance/latest/contributor/refreshing-configs.html22:05
rosmaitayeah, i know22:05
imacdonnheh22:05
*** munimeha1 has quit IRC22:50
*** rcernin has joined #openstack-glance22:50
*** gyee has quit IRC23:57

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