*** CaptTofu has quit IRC | 00:08 | |
*** CaptTofu has joined #openstack-dns | 00:08 | |
*** CaptTofu has quit IRC | 00:08 | |
*** CaptTofu has joined #openstack-dns | 00:26 | |
*** CaptTofu has quit IRC | 01:36 | |
*** CaptTofu has joined #openstack-dns | 01:37 | |
*** CaptTofu has quit IRC | 01:37 | |
*** nosnos has joined #openstack-dns | 01:38 | |
*** jmcbride has joined #openstack-dns | 02:51 | |
*** HenryG has quit IRC | 03:09 | |
*** CaptTofu has joined #openstack-dns | 03:40 | |
*** jmcbride has quit IRC | 03:52 | |
*** CaptTofu has quit IRC | 04:36 | |
*** CaptTofu has joined #openstack-dns | 04:37 | |
*** CaptTofu has quit IRC | 04:37 | |
*** ctracey|away is now known as ctracey | 04:41 | |
*** vinod has joined #openstack-dns | 04:43 | |
*** vinod has quit IRC | 05:38 | |
*** ctracey is now known as ctracey|away | 08:09 | |
openstackgerrit | Endre Karlson proposed a change to stackforge/designate: FloatingIP PTR record functionality https://review.openstack.org/58316 | 09:17 |
---|---|---|
ekarlso | kiall: / mugsie there ya go | 09:17 |
openstackgerrit | Endre Karlson proposed a change to stackforge/designate: FloatingIP PTR record functionality https://review.openstack.org/58316 | 09:51 |
ekarlso | forgotten to expand 1 of the tests in the previous | 09:53 |
*** cflmarques has joined #openstack-dns | 11:43 | |
*** nosnos has quit IRC | 12:59 | |
*** pasquier-s has quit IRC | 13:11 | |
*** pasquier-s has joined #openstack-dns | 13:11 | |
*** cflmarques has quit IRC | 13:16 | |
mugsie | artom: i think what puck said is pretty ok... as long as you aren't mean about it | 13:20 |
*** vinod has joined #openstack-dns | 13:33 | |
kiall | artom / mugsie / puck: It depends, If the spelling mistake is something end users would see, I would -1. | 13:37 |
kiall | If it's internal, or a code comment etc, I wouldn't -1, I would leave a review saying "If you do another patchset, please correct <mistake>" | 13:38 |
kiall | And -1 for anything thats an "API" - internal or not - e.g. method names | 13:38 |
*** vinod has quit IRC | 13:40 | |
*** cflmarques has joined #openstack-dns | 14:12 | |
*** artom has quit IRC | 14:31 | |
*** artom has joined #openstack-dns | 14:38 | |
*** vinod has joined #openstack-dns | 14:38 | |
*** jmcbride has joined #openstack-dns | 15:02 | |
*** jmcbride has quit IRC | 15:06 | |
*** jmcbride has joined #openstack-dns | 15:16 | |
openstackgerrit | A change was merged to stackforge/designate: Moved Limits API endpoint to a RESTController https://review.openstack.org/66599 | 15:16 |
*** betsy has joined #openstack-dns | 15:17 | |
openstackgerrit | Endre Karlson proposed a change to stackforge/designate: FloatingIP PTR record functionality https://review.openstack.org/58316 | 15:21 |
openstackgerrit | Kiall Mac Innes proposed a change to stackforge/designate: Ensure APIv2 list respose formats are correct https://review.openstack.org/66870 | 15:30 |
*** vinod has quit IRC | 15:38 | |
*** jmcbride has quit IRC | 15:38 | |
*** betsy has quit IRC | 15:38 | |
*** vinod has joined #openstack-dns | 15:38 | |
*** betsy has joined #openstack-dns | 15:39 | |
*** vinod has quit IRC | 15:42 | |
*** betsy has quit IRC | 15:43 | |
*** CaptTofu has joined #openstack-dns | 16:16 | |
mugsie | hey, reminder that we have weeking meeting in 10 mins | 16:50 |
*** sballe has joined #openstack-dns | 16:56 | |
*** jmcbride has joined #openstack-dns | 16:57 | |
*** sballe has quit IRC | 16:57 | |
*** sballe has joined #openstack-dns | 16:57 | |
*** tsimmons has joined #openstack-dns | 16:58 | |
*** vinod has joined #openstack-dns | 16:59 | |
kiall | mugsie: still on this call, can you start the meet for me | 17:00 |
*** vinod has quit IRC | 17:21 | |
kiall | tsimmons: heya | 17:23 |
tsimmons | kiall: hey | 17:24 |
tsimmons | So | 17:24 |
tsimmons | I remember you said it would be pretty straightforward to convert the interactions with storage to proper transactions. But I looked into a bit and I wanted to see what your thoughts were on what I kind of thought up. | 17:24 |
kiall | Well - I thought I said "straight forward in theory" or something along those lines :D There's always an edge case or 12 | 17:25 |
tsimmons | hah, right. | 17:26 |
tsimmons | I was thinking of implementing the begin, commit, and rollback functions in storage/impl_sqlalchemy/__init.py__ using the session that is retrieved there. | 17:26 |
tsimmons | Using something like the logic in here http://docs.sqlalchemy.org/en/latest/orm/session.html#id1 | 17:26 |
tsimmons | (Scroll down a bit) | 17:26 |
kiall | Yea - that looks like what I'd have expected .. | 17:28 |
tsimmons | I've never worked with SQLA so this stuff is a bit foreign to me. | 17:28 |
kiall | SQLA is .. a learning curve alright :) | 17:29 |
tsimmons | So I'm unsure on how to inform the "session" of the changes made by a call to self.storage.get_server() so that it could roll them back properly in the case that something goes wrong when it sends it back to central to process in the backend etc | 17:29 |
*** tsimmons1 has joined #openstack-dns | 17:29 | |
*** tsimmons has quit IRC | 17:29 | |
tsimmons1 | ugh sorry, internet dropped. | 17:30 |
kiall | So, we don't actually need to tell the session what changed, the session tracks that all for us | 17:30 |
kiall | It's a little indirect, but all DB queries run via that session object.. So calling begin / commit / rollback should "just work" | 17:30 |
kiall | Well - All DB interactions, for a single DB | 17:31 |
kiall | e.g. the designate and powerdns (if you use it) DB's each have their own session | 17:31 |
tsimmons1 | Hm. So theoretically the functions in __init could just be self.session.begin() etc ? | 17:32 |
kiall | a small example would be the create_quota metod | 17:32 |
kiall | method* | 17:32 |
kiall | https://github.com/stackforge/designate/blob/master/designate/storage/impl_sqlalchemy/__init__.py#L132 | 17:32 |
kiall | self.session get's passed to the models save method.. which is: | 17:32 |
kiall | https://github.com/stackforge/designate/blob/master/designate/sqlalchemy/models.py#L28 | 17:33 |
kiall | Where we apply the necessary changes to the session | 17:33 |
tsimmons1 | Ok. That's what I figured was happening there. | 17:33 |
kiall | in storage/impl_sqlalchemy/__init__.py, we could end up with 3 new methods for begin / commit / rollback where they literally just call self.session.begin() etc | 17:34 |
tsimmons1 | So by calling commit() and rollback() even if it's not in that explicit place in the code, should recognize the things that have happened and roll them back should we ask. | 17:34 |
kiall | Then , then storage/api.py class with make use of those, rather than attempting to manually restore the previous state | 17:34 |
kiall | tsimmons1: exactly :) | 17:34 |
tsimmons1 | Ok. That's pretty much what I was thinking, but I wanted to run it by you so that I didn't come out with something totally stupid. | 17:35 |
kiall | lol :) | 17:36 |
kiall | It's sounds like you're planning to do it exactly how I've got it in my head.. So, either we're both stupid or not ;) | 17:36 |
tsimmons1 | Hah, nah I just wanted to make sure that I wasn't doing something totally unnecessary or arduous. I think if you're stupid we're all screwed :P | 17:37 |
tsimmons1 | I'll get working on that here in the next few days and get something out there for folks to look at. | 17:38 |
kiall | Cool :) | 17:40 |
tsimmons1 | Thanks for your help, as always. Go enjoy your evening! | 17:40 |
*** jmcbride has quit IRC | 17:41 | |
*** tsimmons1 has quit IRC | 17:43 | |
*** jmcbride has joined #openstack-dns | 17:52 | |
*** jmcbride has quit IRC | 17:57 | |
*** tsimmons has joined #openstack-dns | 18:01 | |
*** ctracey|away is now known as ctracey | 18:16 | |
openstackgerrit | Sascha Peilicke proposed a change to stackforge/designate: Sync with global requirements https://review.openstack.org/66902 | 18:19 |
openstackgerrit | A change was merged to stackforge/designate: FloatingIP PTR record functionality https://review.openstack.org/58316 | 18:21 |
*** openstackgerrit has quit IRC | 18:27 | |
*** openstackgerrit has joined #openstack-dns | 18:27 | |
*** ChanServ sets mode: +v openstackgerrit | 18:27 | |
openstackgerrit | Kiall Mac Innes proposed a change to stackforge/designate: Ensure APIv2 list respose formats are correct https://review.openstack.org/66870 | 18:29 |
*** jmcbride has joined #openstack-dns | 18:37 | |
*** jmcbride has quit IRC | 18:42 | |
*** jmcbride has joined #openstack-dns | 18:43 | |
*** jmcbride has quit IRC | 18:43 | |
*** cflmarques has quit IRC | 18:46 | |
*** tsimmons has quit IRC | 18:59 | |
openstackgerrit | Kiall Mac Innes proposed a change to stackforge/designate: Ensure APIv2 list respose formats are correct https://review.openstack.org/66870 | 19:06 |
*** jmcbride has joined #openstack-dns | 19:26 | |
*** jmcbride has quit IRC | 19:30 | |
*** jmcbride has joined #openstack-dns | 19:33 | |
*** vinod has joined #openstack-dns | 19:34 | |
*** jmcbride has quit IRC | 19:40 | |
*** sballe_ has joined #openstack-dns | 19:47 | |
*** sballe has quit IRC | 19:48 | |
*** jorgem has joined #openstack-dns | 19:55 | |
openstackgerrit | A change was merged to stackforge/designate: Ensure APIv2 list respose formats are correct https://review.openstack.org/66870 | 19:56 |
*** vipul is now known as vipul-away | 19:57 | |
*** vipul-away is now known as vipul | 19:57 | |
*** vinod has quit IRC | 20:06 | |
*** vipul is now known as vipul-away | 20:13 | |
*** jmcbride has joined #openstack-dns | 20:15 | |
*** jmcbride has quit IRC | 20:35 | |
*** vinod has joined #openstack-dns | 20:38 | |
*** jmcbride has joined #openstack-dns | 20:43 | |
*** vipul-away is now known as vipul | 20:49 | |
*** HenryG has joined #openstack-dns | 20:52 | |
*** vinod has quit IRC | 21:00 | |
*** CaptTofu has quit IRC | 21:10 | |
*** vinod has joined #openstack-dns | 21:14 | |
*** tsimmons has joined #openstack-dns | 21:16 | |
*** tsimmons has left #openstack-dns | 21:19 | |
*** richm has joined #openstack-dns | 21:31 | |
*** vinod has quit IRC | 21:36 | |
*** jmcbride has quit IRC | 21:40 | |
*** jmcbride has joined #openstack-dns | 21:54 | |
*** vinod has joined #openstack-dns | 21:57 | |
*** vinod has quit IRC | 22:01 | |
*** vinod has joined #openstack-dns | 22:07 | |
*** EmilienM has quit IRC | 22:10 | |
*** EmilienM has joined #openstack-dns | 22:12 | |
*** vinod has quit IRC | 22:17 | |
*** jmcbride has quit IRC | 22:19 | |
*** CaptTofu has joined #openstack-dns | 22:30 | |
*** HenryG has quit IRC | 22:42 | |
*** jmcbride has joined #openstack-dns | 22:43 | |
*** jmcbride has quit IRC | 22:45 | |
*** jmcbride has joined #openstack-dns | 22:47 | |
*** jmcbride has quit IRC | 22:48 | |
*** CaptTofu has quit IRC | 23:06 | |
*** nkinder has joined #openstack-dns | 23:11 | |
*** pasquier-s_ has joined #openstack-dns | 23:16 | |
*** pasquier-s has quit IRC | 23:17 | |
*** bauruine has quit IRC | 23:17 | |
*** bauruine has joined #openstack-dns | 23:18 | |
*** sballe_ has quit IRC | 23:24 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!