Saturday, 2017-02-04

harlowjaok kevinbenton fixed, phew00:02
harlowjathought i busted it, lol00:02
harlowjakevinbenton https://github.com/openstack/oslo.db/blob/master/oslo_db/sqlalchemy/exc_filters.py#L409-L41100:06
harlowjaso that seems to be where u are going00:06
harlowjawhich is basically a catch all00:06
harlowjaseems like u want a more specific catch 'filter'00:06
harlowjamy understanding is all the filters in that file are like a switch statement00:07
harlowjawith things like00:07
harlowjacase engine == mysql && exc_type == <type> && re.match(<someregex>, exc_msg)00:08
harlowjaexcept instead of a switch statement, u get a log of decorators00:08
harlowja*lot of00:08
*** ihrachys has joined #openstack-oslo00:22
kevinbentonharlowja: so i want it to raise00:31
*** spzala has joined #openstack-oslo00:31
kevinbentonharlowja: but i don't want that icky LOG.exception call00:32
harlowjaya, seems like we should just delete the LOG.exception then00:32
harlowjanot 100% sure why its there (vs in the calling code)00:33
kevinbentonharlowja: oh00:34
kevinbentonharlowja: i suspect the expression to turn this into DBReferenceError is not matching correctly00:34
kevinbentonharlowja: it seems like this is the fallthrough for unmatched stuff00:35
harlowjacould be00:35
kevinbentonso the proper fix is probably regex of some sort :)00:35
harlowjaprob :)00:36
*** mtanino has quit IRC00:36
*** ihrachys has quit IRC00:40
*** salv-orlando has quit IRC00:43
*** Syed__ has quit IRC00:45
*** yamamoto has joined #openstack-oslo00:51
*** yamamoto has quit IRC00:52
*** dimtruck is now known as zz_dimtruck01:04
*** gcb has joined #openstack-oslo01:18
amrithharlowja, ping01:26
harlowjasup01:26
amrithhi joshua, did you get a chance to read the email I sent you01:26
amrithI've been scratching my head to figure out how to get around this little mess.01:27
*** amotoki has joined #openstack-oslo01:27
harlowjahmmm01:27
harlowjabad idea imho to mess with __dict__ :(01:27
amrithwell, here's our challenge.01:27
amrithtrove has a control plane and guests.01:27
amrithwhen you do an upgrade, you have to upgrade one before the other. pick one. any one01:28
amriththe issue we have is that once we do that upgrade (which typically is the control plane first)01:28
amriththe guest could receive a context with stuff that it can't deal with01:28
amriththis same issue can also happen in a control plane upgrade01:28
amrithif you want to upgrade one service at a time.01:28
amrithwhich is required if you want a zero-downtime upgrade mechanism.01:29
amrithhow is one supposed to handle this when a context is sent over a message (oslo_messaging.rpc) serialized as a dict?01:29
harlowjaya, fair point01:30
harlowjahttps://github.com/openstack/oslo.context/blob/master/oslo_context/context.py#L310 i don't think was altered though01:31
amrithnot this time01:33
amrithbut see https://github.com/openstack/trove/blob/master/trove/common/context.py#L67-L7701:33
amriththis code was put in when something changed in oslo.context01:33
*** amotoki has quit IRC01:33
harlowjaok01:33
harlowjavars(cls()).keys() seems bad01:34
harlowjawhy not just use to_dict().kes()01:34
harlowja*keys01:34
amrithsee https://github.com/openstack/trove/commit/24c5e8e244380e3e7e309f0b4aaffde32dbf078901:34
amrithand yes, the benefit of vars(cls()) is that you don't have to instantiate the class01:34
amrithwith to_dict() (which isn't a class method) you have to instantiate01:35
amrithI'm trying to find some way to instantiate once and cache that set of keys01:35
amrithbecause it won't change from one invocation to another.01:35
amrithbut in the fullness of time, I think we need to figure some way to make oslo.context upgrade safe or versioned or some such thing :)01:36
harlowjaya, i'd like to know more about https://github.com/openstack/trove/commit/24c5e8e2443801:37
harlowjaand what caused that01:37
amrithone second, that's easy to find01:38
amrithit was oslo.context 2.7.001:40
amrithwhich added is_admin_project01:40
amrithwhen the control plane (upgraded) sent this to the guest, the guest puked because the oslo.context (RequestContext) initialiation puked01:40
harlowjaya, i can see that, it needs to really take a **kwargs in __init__01:41
harlowja*older versions that is01:41
harlowjaand just ignore the extra kwargs it may get01:41
amrithyes, that could be one way to do it01:42
amrithbut when you change the semantics and (for example if you changed a variable from tenant to project) then that approach may not help01:42
amrithunless there's a coexistance period01:43
amrithwhere both project and tenant are sent :)01:43
amrithin the dictionary01:43
harlowjaya01:43
amrithlet me check with dougshelley6601:44
amrithhe'll know for sure whether it was the is_admin thing01:44
amrithor something else01:44
harlowjaya, that would be my guess01:44
amrithbut, it was something like that01:44
amrithin any event, I have to now find some solution whcih accounts for the fact that to_dict().keys() will differ from vars(cls()).keys()01:45
amrithfun ...01:45
amrithand I have to do it before RC101:45
harlowjaif u ever see `vars(cls()).keys()` just don't do it :)01:46
amrithis that part of a Nike commercial?01:47
harlowjashould be, ha01:47
harlowjaoverall yes though, we need to handle versioning this better01:47
harlowjaor make it so that older versions accept/discard the newer versions additions01:47
harlowjavia something simple like **kwargs that captures all of those01:47
amrith++01:48
amrithis it LP'worthy?01:48
harlowjasure01:49
amrithAHA01:49
amrithhere's a hack for you01:49
amrithI can look at RequestContext().__init__()'s arguments and decide what to take out before calling cls(**kwargs) :)01:49
amrithis that part of the Nike commercial as well?01:50
harlowjaya, that seems fair imho01:51
amrithhere ya go. https://bugs.launchpad.net/oslo.context/+bug/166179001:53
openstackLaunchpad bug 1661790 in oslo.context "oslo.context's initializer should do a better job handing class instantiation" [Undecided,New]01:53
*** browne has quit IRC01:59
*** kgiusti has left #openstack-oslo02:06
openstackgerritlihong proposed openstack/oslo.messaging master: [zmq] Dummy value aging mechanism  https://review.openstack.org/42866302:08
openstackgerritxhzhf proposed openstack/taskflow master: python3.0 has disable LOG.warn  https://review.openstack.org/41217402:11
amrithharlowja, have a good evening! thanks for listening :)02:15
harlowjanp :)02:15
amrithI have the whole day ahead of me to fix this ... while y'all take a nap.02:16
amrithI will tag you on the review02:16
harlowjacools02:16
*** yamamoto has joined #openstack-oslo02:18
*** yamamoto has quit IRC02:21
*** e0ne has joined #openstack-oslo02:30
*** e0ne has quit IRC02:39
*** yamahata has quit IRC03:23
*** e0ne has joined #openstack-oslo03:35
*** e0ne has quit IRC03:40
*** spzala has quit IRC04:16
*** nicolasbock has quit IRC04:17
openstackgerritOpenStack Proposal Bot proposed openstack/tooz master: Updated from global requirements  https://review.openstack.org/34678204:25
*** spzala has joined #openstack-oslo04:34
*** spzala has quit IRC04:36
*** e0ne has joined #openstack-oslo04:36
*** e0ne has quit IRC04:41
*** e0ne has joined #openstack-oslo04:46
*** lpetrut has joined #openstack-oslo04:49
*** e0ne has quit IRC04:55
*** e0ne has joined #openstack-oslo04:56
*** e0ne has quit IRC04:56
*** e0ne has joined #openstack-oslo04:57
*** e0ne has quit IRC04:57
*** harlowja has quit IRC05:08
*** amotoki has joined #openstack-oslo05:15
*** lpetrut has quit IRC05:16
*** amotoki has quit IRC05:20
*** lpetrut has joined #openstack-oslo05:36
*** lpetrut has quit IRC05:40
*** Rocky_g has quit IRC05:48
*** harlowja has joined #openstack-oslo06:17
*** salv-orlando has joined #openstack-oslo06:18
*** salv-orlando has quit IRC06:22
*** salv-orlando has joined #openstack-oslo06:42
*** harlowja has quit IRC06:50
*** amotoki has joined #openstack-oslo07:16
*** amotoki has quit IRC07:21
openstackgerritChangBo Guo(gcb) proposed openstack/oslo.messaging master: Test:Use unittest.mock on Python 3  https://review.openstack.org/42919607:45
*** eezhova has joined #openstack-oslo07:48
*** salv-orl_ has joined #openstack-oslo07:49
*** harlowja has joined #openstack-oslo07:50
openstackgerritChangBo Guo(gcb) proposed openstack/oslo.messaging master: Move decorator updated_kwarg_default_value to right place  https://review.openstack.org/42869307:50
*** salv-orlando has quit IRC07:51
*** harlowja has quit IRC07:57
openstackgerritChangBo Guo(gcb) proposed openstack/oslo.messaging master: Test:Use unittest.mock on Python 3  https://review.openstack.org/42919608:17
openstackgerritChangBo Guo(gcb) proposed openstack/oslo.messaging master: Move decorator updated_kwarg_default_value to right place  https://review.openstack.org/42869308:17
*** eezhova has quit IRC08:17
*** zzzeek has quit IRC09:00
*** zzzeek has joined #openstack-oslo09:00
*** amotoki has joined #openstack-oslo09:04
*** amotoki has quit IRC09:08
*** sheeprine has quit IRC09:37
*** spzala has joined #openstack-oslo09:37
*** sheeprine has joined #openstack-oslo09:41
*** spzala has quit IRC09:42
*** spzala has joined #openstack-oslo09:48
*** spzala has quit IRC09:53
*** lpetrut has joined #openstack-oslo10:06
*** yamahata has joined #openstack-oslo10:42
*** lpetrut has quit IRC10:51
*** amotoki has joined #openstack-oslo11:03
*** amotoki has quit IRC11:07
*** yamahata has quit IRC11:13
*** nicolasbock has joined #openstack-oslo11:24
*** eezhova has joined #openstack-oslo12:00
*** salv-orl_ has quit IRC12:07
*** kberger has quit IRC12:16
*** e0ne has joined #openstack-oslo12:19
*** e0ne has quit IRC12:24
*** e0ne has joined #openstack-oslo12:25
*** gcb has quit IRC12:34
*** e0ne has quit IRC12:36
*** amotoki has joined #openstack-oslo13:04
*** amotoki has quit IRC13:08
*** lucas-afk has quit IRC13:46
*** mriedem has joined #openstack-oslo13:49
*** amotoki has joined #openstack-oslo13:53
*** salv-orlando has joined #openstack-oslo14:00
*** spzala has joined #openstack-oslo14:03
*** salv-orlando has quit IRC15:14
*** ansmith has joined #openstack-oslo15:32
*** nicolasbock has quit IRC16:10
*** kberger has joined #openstack-oslo16:16
*** ansmith has quit IRC16:20
*** ansmith has joined #openstack-oslo16:31
*** ansmith has quit IRC16:54
*** ansmith has joined #openstack-oslo17:07
*** yamahata has joined #openstack-oslo17:09
*** HenryG has quit IRC17:17
*** salv-orlando has joined #openstack-oslo17:31
*** salv-orlando has quit IRC17:36
*** zz_dimtruck is now known as dimtruck17:39
*** HenryG has joined #openstack-oslo17:39
*** HenryG has quit IRC17:51
*** HenryG has joined #openstack-oslo17:55
*** kberger has quit IRC18:32
*** kberger has joined #openstack-oslo18:32
*** dimtruck is now known as zz_dimtruck18:34
*** salv-orlando has joined #openstack-oslo18:34
*** salv-orlando has quit IRC18:39
*** zz_dimtruck is now known as dimtruck18:43
*** e0ne has joined #openstack-oslo19:13
*** e0ne has quit IRC19:17
*** salv-orlando has joined #openstack-oslo19:35
*** salv-orlando has quit IRC19:39
*** dimtruck is now known as zz_dimtruck19:40
*** yamahata has quit IRC20:12
*** zz_dimtruck is now known as dimtruck20:25
*** salv-orlando has joined #openstack-oslo20:36
*** salv-orlando has quit IRC20:40
*** spzala has quit IRC20:55
*** dimtruck is now known as zz_dimtruck21:00
*** david-lyle_ has joined #openstack-oslo21:02
*** kberger has quit IRC21:04
*** david-lyle has quit IRC21:05
*** lpetrut has joined #openstack-oslo21:07
*** oanson has quit IRC21:13
*** oanson has joined #openstack-oslo21:13
*** ansmith has quit IRC21:32
*** ansmith has joined #openstack-oslo22:13
*** eezhova has quit IRC22:37
*** salv-orlando has joined #openstack-oslo22:38
*** salv-orlando has quit IRC22:42
*** spzala has joined #openstack-oslo22:56
*** zz_dimtruck is now known as dimtruck22:56
*** amotoki has quit IRC22:59
*** spzala has quit IRC23:00
*** david-lyle_ has quit IRC23:05
*** pkoniszewski has quit IRC23:06
*** lpetrut has quit IRC23:06
*** pkoniszewski has joined #openstack-oslo23:08
*** dulek has quit IRC23:29
*** dulek has joined #openstack-oslo23:32
*** salv-orlando has joined #openstack-oslo23:38
*** salv-orlando has quit IRC23:43
*** salv-orlando has joined #openstack-oslo23:48
*** salv-orl_ has joined #openstack-oslo23:50
*** salv-orlando has quit IRC23:53
*** salv-orl_ has quit IRC23:54

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