Wednesday, 2013-10-16

*** krow has quit IRC00:00
*** krow has joined #openstack-trove00:01
*** yogeshmehra has joined #openstack-trove00:05
*** krow has quit IRC00:07
*** yogeshmehra has quit IRC00:12
*** yidclare has quit IRC00:15
*** yogeshmehra has joined #openstack-trove00:16
*** mmcdaris has quit IRC00:19
*** mmcdaris has joined #openstack-trove00:19
*** matsuhashi has joined #openstack-trove00:20
*** yogeshmehra has quit IRC00:22
*** mmcdaris has quit IRC00:32
*** mmcdaris has joined #openstack-trove00:35
*** mmcdaris has quit IRC00:44
*** grapex has joined #openstack-trove00:49
*** saurabhs has quit IRC01:01
*** nosnos has joined #openstack-trove01:11
*** yogeshmehra has joined #openstack-trove01:16
*** yogeshmehra has quit IRC01:21
*** grapex has quit IRC01:24
*** jlucci has quit IRC01:29
*** jmontemayor has joined #openstack-trove01:30
*** erkules_ has joined #openstack-trove01:33
*** erkules has quit IRC01:36
*** jmontemayor has quit IRC01:41
*** matsuhashi has quit IRC01:46
*** matsuhashi has joined #openstack-trove01:47
*** matsuhas_ has joined #openstack-trove01:49
*** matsuhashi has quit IRC01:49
*** tanisdl has quit IRC01:52
*** haomaiwang has quit IRC01:57
*** haomaiwang has joined #openstack-trove01:58
*** adrian_otto has quit IRC02:09
*** haomaiwa_ has joined #openstack-trove02:11
*** haomaiwang has quit IRC02:14
*** yogeshmehra has joined #openstack-trove02:17
*** demorris has joined #openstack-trove02:21
*** yogeshmehra has quit IRC02:23
*** amcrn has quit IRC02:26
*** coolsvap has joined #openstack-trove02:58
*** jasonb365 has joined #openstack-trove03:12
*** yogeshmehra has joined #openstack-trove03:18
*** yogeshmehra has quit IRC03:23
*** yogeshmehra has joined #openstack-trove04:19
*** KapilSaxena has joined #openstack-trove04:22
*** yogeshmehra has quit IRC04:25
*** radez_g0n3 has quit IRC04:40
*** SushilKM has joined #openstack-trove04:48
*** radez_g0n3 has joined #openstack-trove04:49
*** amytron has joined #openstack-trove04:56
*** yogeshmehra has joined #openstack-trove05:01
*** yogeshmehra has quit IRC05:01
*** dmakogon has joined #openstack-trove05:05
*** demorris has quit IRC05:09
*** ashestakov has joined #openstack-trove05:09
ashestakovvipul here?05:10
*** krow has joined #openstack-trove05:42
*** ashestakov has quit IRC05:57
*** yogeshmehra has joined #openstack-trove06:01
*** yogeshmehra has quit IRC06:06
*** yogeshmehra has joined #openstack-trove06:12
*** vipul has quit IRC06:12
*** vipul has joined #openstack-trove06:12
*** yogeshmehra has quit IRC06:17
*** yogeshmehra has joined #openstack-trove06:19
*** vipul is now known as vipul-away06:31
*** yogeshmehra has quit IRC06:32
*** vipul-away is now known as vipul06:34
*** yogeshmehra has joined #openstack-trove06:52
*** erkules_ is now known as erkules06:56
*** yogeshmehra has quit IRC06:56
*** adrian_otto has joined #openstack-trove07:03
*** yogeshmehra has joined #openstack-trove07:18
*** dafter has joined #openstack-trove07:50
*** tvb|afk has joined #openstack-trove07:51
*** adrian_otto1 has joined #openstack-trove07:52
*** adrian_otto has quit IRC07:52
*** dmakogon has quit IRC07:55
*** dafter has quit IRC07:55
*** adrian_otto1 has quit IRC07:55
*** krow1 has joined #openstack-trove07:56
*** krow has quit IRC07:59
*** yogeshmehra has quit IRC08:18
*** krow has joined #openstack-trove08:21
*** krow1 has quit IRC08:25
*** adrian_otto has joined #openstack-trove08:42
*** krow has quit IRC08:56
*** KapilSaxena_ has joined #openstack-trove09:13
*** KapilSaxena has quit IRC09:15
*** tvb|afk has quit IRC09:18
*** yogeshmehra has joined #openstack-trove09:18
*** matsuhas_ has quit IRC09:19
*** matsuhas_ has joined #openstack-trove09:19
*** yogeshmehra has quit IRC09:23
openstackgerritA change was merged to openstack/python-troveclient: change mode to octal for os.makedirs()  https://review.openstack.org/5195209:27
openstackgerritIllia Khudoshyn proposed a change to openstack/trove: Initial support for single instance MongoDB support  https://review.openstack.org/5059709:28
*** yogeshmehra has joined #openstack-trove09:29
*** SnowDust has joined #openstack-trove09:33
*** yogeshmehra has quit IRC09:33
openstackgerritA change was merged to openstack/trove-integration: Adds conductor to ENABLED_SERVICES in localrc.  https://review.openstack.org/5188809:35
*** dafter has joined #openstack-trove09:36
*** dafter has quit IRC09:36
*** dafter has joined #openstack-trove09:36
*** KapilSaxena_ has quit IRC09:37
*** KapilSaxena_ has joined #openstack-trove09:38
openstackgerritA change was merged to openstack/trove: Add GA related parameters to trove-taskmanager.conf.sample  https://review.openstack.org/5062409:46
openstackgerritA change was merged to openstack/trove: Replace deprecated method aliases in tests  https://review.openstack.org/5028609:47
openstackgerritDenis M. proposed a change to openstack/trove: Provide service type management code structure  https://review.openstack.org/5068610:17
SnowDustdmakogon_work10:24
SnowDustaround ?10:24
dmakogon_workyes10:24
SnowDustlets talk security group through heat template10:24
SnowDustu made changes too but were asked questions ..10:25
dmakogon_workok10:25
SnowDustthe problem to flexibility is because of two alternate routes of instance creation10:25
SnowDustif we create a template with security group10:25
SnowDustthe security group is dependent  to service type and required number of ports ..10:26
dmakogon_worki'd like to keep default ports for now, than use ConfigurationParameters for changing database config parameters10:26
SnowDustand can be configured directly from the template.10:26
dmakogon_workwe could define port range or single port10:26
SnowDustbut .. then .. we miss when the code attaches security group for non heat instance creation10:26
dmakogon_workwe would need it in future10:27
dmakogon_work*would not10:27
SnowDustyeah ...10:28
SnowDustrt now i dont have clarity on this ..10:28
SnowDuststill thinking :-)10:28
dmakogon_workheat would assign SG to instance10:28
SnowDustrt now ..10:28
SnowDustSG is not attached to the heat instance10:28
SnowDustor is it ?10:28
dmakogon_workyes10:29
SnowDusteven in case of mysql ?10:29
dmakogon_workmissing nova call10:29
dmakogon_workbut current heat support is a mess10:29
SnowDustwe see the SG created .. for 3306 .. but none attached to the heat insance10:29
dmakogon_workyes10:29
SnowDustyeah .. so .. as am changing around it10:29
SnowDustthinking what changes we can go with10:29
SnowDustor we are tied to your checkin blocked by vipul's question :)10:30
dmakogon_workjust call novaclient.servers.add_security group(name)10:30
dmakogon_workno we are not tied10:30
SnowDustunderstand .. but in that case we always add 3306 security group ..10:30
dmakogon_worki must go, will available in 1 hour10:30
dmakogon_workyes10:31
SnowDustthat _create_server_volume_heat receives as argument10:31
dmakogon_worki know10:31
SnowDustthen ?10:31
dmakogon_workwe need flexibility10:31
SnowDustas the implementation is refactoring around service_type10:31
SnowDustwe need to do it around service_type10:31
dmakogon_workyes10:31
SnowDustsimilar to the  service_registry_ext10:31
dmakogon_workSnowDust: must go, i'll ping you later10:31
SnowDustsure10:31
SnowDustbye 4 now10:31
*** dmakogon_work is now known as dmakogon_away10:32
*** jasonb365 has quit IRC10:44
*** yogeshmehra has joined #openstack-trove11:30
*** KapilSaxena_ has quit IRC11:33
*** yogeshmehra has quit IRC11:37
dmakogon_awaySnowDust: guess who's back11:40
SnowDustguess crazymac11:41
dmakogon_awaymaybe11:41
*** dmakogon_away is now known as dmakogon_work11:41
dmakogon_workwhat do we need to discuss ?11:41
SnowDustsecurity group11:42
SnowDustduring instance creation11:42
SnowDusthow to make it flexible11:43
SnowDustto handle all kinds of it11:43
SnowDustif we keep it in templates .. heat side .. goes fine11:43
SnowDustbut non-heat instance creation is still .. 3306 bound :)11:43
SnowDust?11:47
dmakogon_workcurrent API v1 fully supports only nova provisioning11:51
dmakogon_workheat support as a part of new API11:51
dmakogon_workv211:51
dmakogon_workin v2 we would support only heat11:51
dmakogon_workand all resources would be as defaults(no flags turn-on/off) and they would be parts of heat template11:53
*** pdmars has joined #openstack-trove12:02
*** KapilSaxena has joined #openstack-trove12:08
SnowDustthat says ..12:11
SnowDusti can go ahead with security group in templates ..12:11
SnowDustdmakogon_work: thats agreed ?12:12
dmakogon_workyes12:12
dmakogon_workthat is what i was doing12:13
dmakogon_workyou can do that, even copy it from my review12:13
*** adrian_otto has quit IRC12:14
openstackgerritJenkins proposed a change to openstack/trove: Updated from global requirements  https://review.openstack.org/5104212:22
*** adrian_otto has joined #openstack-trove12:33
*** yogeshmehra has joined #openstack-trove12:33
*** SnowDust has quit IRC12:37
*** yogeshmehra has quit IRC12:38
openstackgerritDenis M. proposed a change to openstack/trove: Initial support for single instance Cassandra Database  https://review.openstack.org/5188412:41
*** coolsvap has quit IRC12:44
*** nosnos has quit IRC12:55
*** nosnos has joined #openstack-trove12:55
*** KapilSaxena has quit IRC12:57
*** KapilSaxena has joined #openstack-trove12:59
*** nosnos has quit IRC13:00
*** radez_g0n3 is now known as radez13:04
*** robertmyers has joined #openstack-trove13:17
*** shakayumi has joined #openstack-trove13:32
*** amytron has quit IRC13:32
*** SnowDust has joined #openstack-trove13:33
*** yogeshmehra has joined #openstack-trove13:34
*** rnirmal has joined #openstack-trove13:37
*** yogeshmehra has quit IRC13:39
*** ashestakov has joined #openstack-trove13:40
*** SnowDust has quit IRC13:44
*** jlucci has joined #openstack-trove13:55
*** SushilKM has quit IRC13:58
*** jcru has joined #openstack-trove14:01
*** amytron has joined #openstack-trove14:02
*** robertmyers has quit IRC14:04
*** robertmyers has joined #openstack-trove14:07
*** Nate1 has joined #openstack-trove14:18
openstackgerritAndrey Shestakov proposed a change to openstack/python-troveclient: Support datastore types  https://review.openstack.org/4793614:25
openstackgerritAndrey Shestakov proposed a change to openstack/python-troveclient: Support datastore types  https://review.openstack.org/4793614:32
*** demorris has joined #openstack-trove14:36
*** cweidenk1ller has joined #openstack-trove14:36
*** matsuhas_ has quit IRC14:38
*** matsuhashi has joined #openstack-trove14:39
*** matsuhashi has quit IRC14:39
*** matsuhashi has joined #openstack-trove14:40
*** matsuhashi has quit IRC14:42
*** matsuhashi has joined #openstack-trove14:42
*** matsuhashi has quit IRC14:47
*** tanisdl has joined #openstack-trove14:52
*** KapilSaxena has left #openstack-trove15:04
*** rnirmal has quit IRC15:13
*** grapex has joined #openstack-trove15:15
*** paul_lodronio has joined #openstack-trove15:18
*** yidclare has joined #openstack-trove15:26
*** haomaiwa_ has quit IRC15:29
*** haomaiwang has joined #openstack-trove15:30
dmakogon_workhaomaiwang: hi15:33
haomaiwanghere15:33
dmakogon_workhaomaiwang: have you read my comment ?15:33
haomaiwangsorry, going15:33
dmakogon_workabout review and renaming/moving ?15:34
*** jasonb365 has joined #openstack-trove15:34
haomaiwangdmakogon_work: Oh, yes. I find your patch https://review.openstack.org/#/c/51884/ rename mysql relevant files15:35
dmakogon_workhaomaiwang: yes15:35
haomaiwangbut you did it another too15:35
dmakogon_workhaomaiwang: yes15:35
dmakogon_workit would be better to merge into already prepared file structure15:36
haomaiwangAnd the previous is dependent to latter15:36
*** yogeshmehra has joined #openstack-trove15:36
dmakogon_workhaomaiwang: historically refactoring review was first one15:36
dmakogon_workhaomaiwang: it would prepare guestagent for integration with other services15:37
haomaiwangdmakogon_work: Hmm, seemed no real problem. Thanks.15:37
haomaiwangAnother question, cloudinit is integrated into trove-integration?15:37
haomaiwangdmakogon_work: I find your review is the first15:38
dmakogon_workhaomaiwang: cloudinit was already in trove15:38
haomaiwangdmakogon_work: yes15:38
dmakogon_workhaomaiwang: i just used it for cassandra, because it needs special preparations15:39
haomaiwangwget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py15:39
haomaiwang37python ez_setup.py15:39
haomaiwang38wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py15:39
haomaiwang39python get-pip.py15:39
haomaiwangI don't think cloudinit should contain source codes from github or others15:40
dmakogon_workhaomaiwang: cloud-init script would be polished15:41
*** yogeshmehra has quit IRC15:41
dmakogon_workhaomaiwang: this one is for my own tests15:41
haomaiwangdmakogon_work: OK15:41
*** jasonb365 has quit IRC15:49
*** jlucci has quit IRC16:02
*** Barker has joined #openstack-trove16:03
*** dmakogon_work is now known as me_gone16:03
*** Barker has quit IRC16:07
*** Barker has joined #openstack-trove16:08
*** saurabhs has joined #openstack-trove16:11
*** Barker has quit IRC16:13
*** Barker has joined #openstack-trove16:16
*** dafter has quit IRC16:16
*** grapex has quit IRC16:20
*** jmontemayor has joined #openstack-trove16:20
*** SushilKM has joined #openstack-trove16:23
*** romainh has joined #openstack-trove16:27
*** ashestakov has quit IRC16:27
*** shakayumi has quit IRC16:33
*** rnirmal has joined #openstack-trove16:38
*** adrian_otto has quit IRC16:43
openstackgerritIllia Khudoshyn proposed a change to openstack/trove: Initial support for single instance MongoDB support  https://review.openstack.org/5059716:45
*** demorris has quit IRC16:46
*** demorris has joined #openstack-trove17:02
*** demorris_ has joined #openstack-trove17:06
*** demorris has quit IRC17:07
*** demorris_ is now known as demorris17:07
*** arborism has joined #openstack-trove17:08
*** arborism is now known as amcrn17:08
*** yogeshmehra has joined #openstack-trove17:11
*** ashestakov has joined #openstack-trove17:17
*** jasonb365 has joined #openstack-trove17:30
*** jasonb365 has quit IRC17:30
*** amytron_ has joined #openstack-trove17:37
*** amytron has quit IRC17:38
*** amytron_ is now known as amytron17:38
*** SushilKM has quit IRC17:38
*** yogesh has joined #openstack-trove17:40
*** romainh has quit IRC17:48
*** SushilKM has joined #openstack-trove17:51
*** yogesh has quit IRC17:55
*** SnowDust has joined #openstack-trove17:59
*** demorris has quit IRC18:00
*** jasonb365 has joined #openstack-trove18:01
*** yogesh has joined #openstack-trove18:11
*** yogesh has quit IRC18:13
*** jasonb365 has quit IRC18:28
*** datsun180b has joined #openstack-trove18:30
*** jlucci has joined #openstack-trove18:31
*** datsun180b has quit IRC18:35
*** datsun180b has joined #openstack-trove18:36
*** yidclare has quit IRC18:37
*** SushilKM has quit IRC18:37
*** jasonb365 has joined #openstack-trove18:46
openstackgerritTim Simpson proposed a change to openstack/trove: Fixes trove-api daemon fake mode functionality.  https://review.openstack.org/5126218:47
*** jasonb365 has quit IRC18:50
*** demorris has joined #openstack-trove18:55
*** vipul is now known as vipul-away18:56
*** vipul-away is now known as vipul18:56
*** jasonb365 has joined #openstack-trove18:59
*** yogesh has joined #openstack-trove19:00
*** jasonb365 has quit IRC19:01
*** demorris has quit IRC19:05
*** jasonb365 has joined #openstack-trove19:06
*** demorris has joined #openstack-trove19:09
*** romainh has joined #openstack-trove19:11
*** vipul is now known as vipul-away19:11
*** kevinconway has quit IRC19:16
*** mmcdaris has joined #openstack-trove19:19
openstackgerritEd Cranford proposed a change to openstack/trove: Conductor proxies host db access for guests  https://review.openstack.org/4511619:19
*** mmcdaris has quit IRC19:20
*** romainh1 has joined #openstack-trove19:20
*** romainh has quit IRC19:20
*** kevinconway has joined #openstack-trove19:21
SnowDusthello guys19:22
SnowDustany news on tempest ?19:22
*** grapex has joined #openstack-trove19:29
*** yogesh has quit IRC19:32
*** romainh1 has quit IRC19:33
*** yogesh has joined #openstack-trove19:34
grapexHi everyone- the agenda for this week is a tad sparse if anyone has something they'd like to add: https://wiki.openstack.org/wiki/Meetings/TroveMeeting19:39
*** yogesh has quit IRC19:40
SnowDustgrapex tempest ?19:40
grapexSnowDust: Sure19:41
grapexWasn't hub_cap on that? He's away for the day unfortunately.19:41
SnowDustyeah .. thats why i put it here19:41
SnowDustam curious :)19:41
SnowDusti heard few more to join him in tempest effort19:42
grapexSnowDust: Ok, then feel free to add it. There may be no response today unless someone's heard something recently from hub_cap.19:42
*** Barker has quit IRC19:43
SnowDustok added19:45
grapexSnowDust: Thanks19:50
*** jlucci has left #openstack-trove19:55
*** ashestakov has quit IRC19:55
datsun180bhttps://review.openstack.org/#/c/45116/ i think i've appeased the beast appropriately19:58
datsun180bthank you by the way for +2ing and merging the necessary plumbing already19:58
*** vipul-away is now known as vipul19:59
*** dmakogon has joined #openstack-trove20:01
openstackgerritSteve Leon proposed a change to openstack/trove: Handling security group error when booting an instance  https://review.openstack.org/5220020:02
*** demorris has quit IRC20:02
*** yogeshmehra has quit IRC20:05
*** yogesh has joined #openstack-trove20:05
*** jmontemayor has quit IRC20:06
*** Barker has joined #openstack-trove20:06
*** romainh has joined #openstack-trove20:08
espfyi, I have a few fixes for trove-int regarding rd-client20:08
espanyone know if we have bugs for this yet?20:09
*** aignatov has quit IRC20:11
*** aignatov has joined #openstack-trove20:11
SlickNikesp: I haven't seen any bugs for trove-int.20:12
SlickNikFeel free to file them as you see fit.20:12
espyeah I just encounter them today.  you gotta build a new redstack (trove-integration)  I'll create a bug and submit a patch.20:13
amcrnesp: i believe hub_cap said earlier yesterday that the plan was to rip out rd-client?20:17
espah, maybe I should hold off then.  thx amcrn :)20:17
amcrnnp20:17
*** ashestakov has joined #openstack-trove20:19
dmakogon amcrn, i had fixed patch according you comments20:19
dmakogonamcrn, https://review.openstack.org/#/c/50686/20:20
amcrni saw, i'll re-review by eod20:20
amcrnstuck doing some good ol' powerpoint at the moment20:20
amcrn:|20:20
ashestakovamcrn: hey, https://review.openstack.org/#/c/47936/20:21
datsun180bmore like just "ol' powerpoint"20:21
amcrnpreaching to the choir ;)20:21
datsun180bhttps://review.openstack.org/#/c/45116/ the robots are happy20:25
*** demorris has joined #openstack-trove20:31
redthruxi meant to ask - I had to miss last meeting - are we moving ancilliary services after instances come active?20:37
*** demorris has quit IRC20:39
redthruxvipul:  ^ i think we were going to talk about it and I had to give my talking points to someone else20:39
vipulredthrux: we decided against it because it meant that the service status potentially wouldn't be accurately reflected20:40
vipulredthrux: I was just revisiting your DNS patch..20:41
redthruxah - okay -20:41
dmakogonlol, fastest meeting ever20:43
kevinconwaydmakogon: you can get to sleep early tonight20:43
dmakogonkevinconway, would i ?20:43
redthrux:D he never sleeps!20:43
redthruxhe's a machine!20:43
dmakogonredthrux, with cold heart20:44
SlickNikdmakogon: so that you're ready for the 6 a.m. meeting that kevinconway scheduled.20:44
redthruxlol dmakogon20:44
dmakogon6 AM PST ?20:44
kevinconwayCST20:44
dmakogoncodereviewing process http://500px.com/photo/49219126?from=popular20:44
openstackgerritEd Cranford proposed a change to openstack/trove: Conductor proxies host db access for guests  https://review.openstack.org/4511620:45
datsun180bdmakogon: ^^ thanks20:45
*** ashestakov has quit IRC20:46
vipulredthrux: rebase and i'll reapprove20:46
redthruxcool that's what i figured - rebase time20:46
dmakogondatsun180b: np, i'll take a look at it closer tomorrow20:46
dmakogonvipul: what about reviewing my refactoring ?20:47
vipuldmakogon: yep will get there20:47
dmakogonvipul, thanks, very20:47
dmakogonhttp://500px.com/DenisM - photos made by mine20:49
kevinconwaydmakogon: NSFW?20:49
dmakogonkevinconway, you could not see photos with NSFW tah20:50
dmakogon*tag20:50
dmakogonthat is my favorite http://500px.com/photo/423485720:51
*** radez is now known as radez_g0n320:52
*** SnowDust has quit IRC20:52
openstackgerritErik Redding proposed a change to openstack/trove: Moved create_instance DNS attempt to post-prepare  https://review.openstack.org/4818821:04
*** pdmars has quit IRC21:04
*** yogesh has quit IRC21:07
*** romainh has left #openstack-trove21:09
*** yogesh has joined #openstack-trove21:12
*** yogesh has quit IRC21:13
openstackgerritErik Redding proposed a change to openstack/trove: Moved create_instance DNS attempt to post-prepare  https://review.openstack.org/4818821:13
*** yogesh has joined #openstack-trove21:23
*** yogesh has quit IRC21:36
*** yidclare has joined #openstack-trove21:37
*** jmontemayor has joined #openstack-trove21:38
*** Barker has quit IRC21:45
datsun180bso here's a thing that is a thing21:45
datsun180bhttps://github.com/openstack/trove/blob/master/trove/guestagent/backup/backupagent.py#L9821:45
datsun180bthat bkup reference is outside the scope of the with block it was created in21:45
datsun180bthat looks like a problem21:46
robertmyersdatsun180b: tis magic!21:49
datsun180brobertmyers: black magic21:49
*** Barker has joined #openstack-trove21:49
robertmyersdatsun180b: https://github.com/openstack/trove/blob/master/trove/guestagent/backup/backupagent.py#L7821:51
robertmyersthat too21:51
datsun180byeah, i'm trying to pull those into conductor functions and saw them both21:51
datsun180bso is my concern valid here or what21:51
robertmyersyes, that should only be used in the with statement21:52
datsun180bi'll replace magic with provable code21:53
*** amytron has quit IRC21:55
vipulit does seem to be getting set correctly.. possibly by something else21:55
datsun180bi'll try swapping the with and the try21:56
datsun180bthat else needs the backup type21:57
*** yogesh has joined #openstack-trove21:57
*** robertmyers has quit IRC22:03
*** Barker has quit IRC22:05
*** Barker has joined #openstack-trove22:07
*** Nate2 has joined #openstack-trove22:09
*** yogesh has quit IRC22:10
dmakogongrapex22:10
grapexdmakogon: Hi22:10
grapexQuick question to the room22:10
grapexvipul SlickNik others: ^22:10
vipulshoot22:10
dmakogonhi, again22:10
grapexdmakogon currently have a disagreement on what should happen if a Trove instance is provisioned but the security group cannot be created in Nova.22:10
grapexThe code that determines something went wrong in Nova lives in the trove-api22:11
grapexhttps://review.openstack.org/#/c/45708/39/trove/instance/models.py22:11
*** Nate1 has quit IRC22:11
grapexdmakogon thinks a SimpleInstance should be returned as its easier for the user to see22:11
*** zigo_ has quit IRC22:11
grapexI think an exception should be raised which means the user will see a 500 status code or some other status code.22:11
grapexThoughts?22:11
*** zigo has joined #openstack-trove22:11
dmakogongrapex, not only me, esmute also22:11
grapexdmakogon: I believe esmute's concern was that quotas would be broken.22:12
vipulwhat is the behavior if DNS provisioning fails22:12
vipulwe throw22:12
grapexThat's in task manager so by that point the instance has to be set to an error state and the user must poll to find out it failed.22:12
grapexvipul: And I believe we do raise for DNS failures.22:12
vipuloh yes.. we don't do DNS here yet22:13
datsun180bif an instance asked for a secgroup and didn't get one, that's a paddlin'22:13
esmutegrapex: If an exception is raised, the quota engine will think that the resource provisioning failed and it will not consume.22:13
datsun180bwhich is HTTP 500 Paddlin'22:13
esmutewe can remove that quota roll back but that may open a different can of worm22:13
vipulSo by this time, we have an DB instance record created... if we fail to create secgroup.. just mark the DB instance record as failed22:13
vipuland throw22:13
dmakogonvipul, +122:14
esmutethrowing causes the quota to rollback the reservation22:14
dmakogonand if we would not stop process of instance provisioning, we would get an exception22:14
dmakogonat create server call22:14
esmuteso the user will see an instance in error state but the quota will not reflect that instance22:14
datsun180bchanging vote to mark-as-failed22:15
dmakogondatsun180b, +122:15
esmutewhat is the issue with marking as failed and returning?22:15
grapexMaybe the issue here is security groups should be provisioned not in the API but in task manager22:15
vipulYes definitely..22:15
esmutegrapex: that will fix things too.22:15
dmakogongrapex, we shouldn't move it22:16
grapexBecause the API does some very quick and limited book keeping stuff, like storing it in the database. Calling Nova may be out of scope since it can take longer.22:16
grapexdmakogon: How come?22:16
dmakogongrapex, when heat comes all this code would be deleted as well22:16
*** rnirmal has quit IRC22:16
dmakogonas i remember, we already decided not to move code22:16
dmakogononly make it more safe22:17
esmutedmakogon: When heat comes out, we would have to remove the secgroup provsioning from the api anyways right?22:17
dmakogonesmute, yes22:17
grapexdmakogon: I believe we decided Heat was a reason to not write a bunch of code to automatically roll back all provisioned resources when code in the task manager detected a problem.22:17
dmakogonesmute, heat would manage all resources22:17
grapexThis isn't the same thing- its just existing code that should live in taskmanager to be more consistent with current semantics.22:18
esmuteso why not move it to the TM. That way, when the heat work comes, the api would not be affected22:18
grapexesmute: Agreed. If we don't move it now, it will mean when we move to Heat the API might change behavior.22:18
dmakogongrapex, what the difference between removing code from TM and API ?22:19
grapexdmakogon: Sorry, I should've realized this earlier22:19
grapexdmakogon: Not removing it, just moving it.22:19
vipulyou should get the code in place where we can repalce the create_instance method of Taskmanager and make that Heat22:19
dmakogongrapex, code should stay where it is22:19
vipulthe way the code is right now, you can't do that22:19
esmutewhether with have Heat or not, the provisioning of secgroup should not be in the api22:20
vipulesmute: agreed22:20
vipulYou could also do it post-nova boot if you want to22:21
dmakogonwhat is the differense where to create SG ?22:21
redthruxvipul++22:21
vipuldmakogon: run_with_quotas22:22
dmakogonwe can avoid it22:22
dmakogonas we discussed earlier22:22
*** jmontemayor has quit IRC22:24
vipulso the quota framework will handle committing / rolling quota back if you provision things within the run_with_quotas method22:24
vipulIf you dont'.. then you have to do things like not throw an exception22:24
*** jasonb365 has quit IRC22:25
esmuteim still not clear why we cant have the secgroup provision in the TM? At least for now until heat comes into the picture22:26
*** jmontemayor has joined #openstack-trove22:26
grapexAn observation- looking at the create method, I think the code is a bit misleading, because on lines 477-481 we do some DNS stuff so it looks like we're provisioning resources in the API. But actually, that code just sets things in the database for task manager to do later (this was a request from operations who said it made it easier to track instance provisioning). So actually DNS is not provisioned anywhere but taskmanager.22:27
redthruxgrapex thats correct22:27
redthruxdns casts are just in taskmanager22:27
redthruxi have to drop off - feel free to cast questions; I'm async22:28
dmakogonyou are offering to mess up TM create method code22:29
grapexdmakogon: I think if you move it you'll see it won't be that bad. It'll actually make it somewhat easier to deal with exceptions from Nova.22:30
dmakogonit seems not so critical to move code22:30
dmakogoni could do that, but in other patch22:37
dmakogonok wit that ?22:38
datsun180bi'd submit this conductor-backup change if the unittests weren't frozen in time22:38
esmutedmakogon: Why not do it in this patch?22:39
grapexdmakogon: I disagree. I think returning a SimpleInstance introduces a problem with this patch in that its so nonstandard. Since the goal is to handle the error from Nova correctly moving it to TM makes sense.22:39
*** paul_lodronio has left #openstack-trove22:42
*** vipul is now known as vipul-away22:45
openstackgerritEd Cranford proposed a change to openstack/trove: Use conductor to update backup status  https://review.openstack.org/5224122:50
datsun180bneat, that worked22:50
datsun180bthe review, not the unittests22:50
*** jcru has quit IRC22:52
*** datsun180b has quit IRC22:58
*** grapex has quit IRC22:58
*** tanisdl has quit IRC23:08
*** vipul-away is now known as vipul23:15
*** dmakogon has quit IRC23:30
*** jmontemayor has quit IRC23:30
*** Barker has quit IRC23:31
*** saurabhs1 has joined #openstack-trove23:34
*** saurabhs has quit IRC23:35
*** adrian_otto has joined #openstack-trove23:38

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