21:00:15 #startmeeting Solum Team Meeting 21:00:17 Meeting started Tue Mar 3 21:00:15 2015 UTC and is due to finish in 60 minutes. The chair is devkulkarni. Information about MeetBot at http://wiki.debian.org/MeetBot. 21:00:18 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 21:00:20 The meeting name has been set to 'solum_team_meeting' 21:00:31 #topic Roll Call 21:00:37 Devdatta Kulkarni 21:00:44 Akshay Chhajed 21:00:50 james li 21:00:55 Ravi Sankar Penta 21:00:56 Melissa Kam 21:01:16 Ed Cranford 21:01:31 hi akshayc, ravips, james_li, mkam, datsun180b 21:01:40 thanks for joining 21:01:42 hi devkulkarni 21:01:45 hi dev 21:01:46 here is our agenda for today: 21:01:54 #link https://wiki.openstack.org/wiki/Meetings/Solum 21:02:06 there is only one item under 3-3 21:02:16 but we have not completed items from 2-24 21:02:28 so we can continue where we left of last time 21:02:33 makes sense to start from where we left off 21:03:09 so last week I think james_li informed us about the features of custom port support and robustness improvements 21:03:52 today I would like to start with giving some updates about changes to the deployment 21:04:03 (devkulkarni): Supporting different backends for deployment 21:04:31 So till now, we were only supporting deployment of docker containers via heat+nova-docker driver 21:05:01 ok 21:05:04 we thought what if we don't have the nova-docker driver available in a our deployment? what could we do? 21:05:18 the solution was to consider alternative deployment strategies. 21:05:41 the one that became immediately apparent was to consider something like CoreOS and deploy DUs on it 21:05:56 PaulCzar had started on that effort sometime back 21:06:17 We continued that patch forward and took it to completion 21:06:25 basic idea is that 21:06:48 Heat will deploy a CoreOS VM and pass the location of the DU via user-data section of the template 21:07:10 the location 21:07:26 could be either docker registry based, or swift based 21:07:48 for swift, we are generating a tempURL with configurable expiry time 21:08:21 so we construct the template in our deployer, set the image-id to use as the CoreOS VM image id, and then create the heat stack 21:08:39 Heat spins up the VM, and then executes the user-data section 21:09:04 which consists of: downloading the DU, importing it in the local docker registry, and then executing 'docker run 21:09:32 currently you may not be able to try this feature in our vagrant setup 21:09:42 I am still working on it 21:10:15 we need to register the coreos vm in glance as part of spinning up the Vagrant devstack environment 21:10:31 I have that patch submitted 21:10:57 but currently our vagrant deployments have not been working for some reason 21:11:18 I am getting 'No valid host found' error (even after increasing memory to 10 G) 21:12:14 any questions/comments so far? I would be happy to walk you through the relevant code changes if anyone is interested 21:12:43 no valid host error from heat? 21:12:51 yeah.. 21:12:57 after you upload a coreos image to glance, can you do nova boot? 21:13:12 yes, I can do a nova boot 21:13:39 ok, can you boot a coreos Vm via heat? 21:13:51 a related problem is that injecting keys via nova boot does not seem to work for the coreos image that I am using 21:14:11 james_li: good question. 21:14:31 the only reason we use coreos is that it already has docker 21:14:44 people can use any ubuntu image and install docker on it 21:14:58 so we are not limited to coreOS 21:15:08 On vagrant I think I am not able to boot Coreos vm via heat. It gives the 'no valid host' found error, which is thrown by nova 21:15:13 james_li: you are right 21:15:20 gilbert pilz is here 21:15:36 devkulkarni: did we check heat event list 21:16:07 james_li: also the fact that we are not using the 'units' as defined in the coreos terminology, makes it more the reason for us to not get constrained to coreos 21:16:32 ravips: yes, I did. I looked at heat's service screens 21:16:49 I was able to correlate the 'no valid host' found error from heat to nova 21:17:34 james_li: however, for our Vagrant setup, I think the coreos image is good as it already has docker on it. We don't need to build or maintain it. 21:17:45 I mean an image that has docker on it 21:18:18 james_li: here is the image that we are using: http://alpha.release.core-os.net/amd64-usr/current/coreos_production_openstack_image.img.bz2 21:18:46 https://github.com/stackforge/solum/blob/master/contrib/devstack/lib/solum 21:18:55 check solum_install_core_os function from there 21:19:49 anyways. ping me on solum if you want to discuss/find out more about deployments 21:19:59 devkulkarni: not the heat service screen, heat event-list shows all stages for the given stack and event-show can give you more insights 21:20:09 ravips: oh okay. 21:20:17 did not know about that. 21:20:37 I will try heat even-list and see what events are being emitted by heat 21:20:42 ravips: learned that from angus when i ran into some issue 21:20:42 heat event-list 21:20:45 probably we need to implement a similar thing for solum :) 21:20:55 solum event-list 21:20:55 james_li: +10 21:21:10 +1 21:21:47 ravips: thanks for suggesting those two commands. will definitely try them next time I am debugging the Vagrant setup 21:22:09 Ok. lets move on to the next topic. It is from datsun180b 21:22:12 (datsun180b): CLI changes (introduction of the new 'app' namespace) 21:22:29 datsun180b: floor is yours 21:22:58 You may have noticed these 'app' commands in the CLI. They're the forerunners of a number of changes I'm looking to make to Solum 21:23:53 Namely, streamlining the user experience of dealing with apps via assemblies and plans. The end goal is to expose just 'apps' in the CLI and API, and leave the fate of plans and assemblies and such as internal details 21:24:26 #link: https://wiki.openstack.org/wiki/Solum/FeatureBlueprints/NewCLI 21:24:57 we had discussed this in one of our recent meetings 21:25:32 datsun180b: so, how far have you progressed on this change? 21:25:56 At present, the CLI presents apps as gloms of apps and plans 21:26:17 I'd like to, eventually, make app _the_ resource of interaction for Solum 21:26:53 You mean on the API side? Makes sense to have one-to-one mapping from CLI to API 21:27:13 +1 21:27:23 but this recent change does somethign drastic by, instead of 409ing on 'plan delete ', going ahead and taking care of the assemblies (and stacks/components and logs and such) and deleting the plan 21:27:48 which recent change? 21:28:07 #link https://review.openstack.org/#/c/160501/ 21:28:43 I think that stopping a deleting a running application because you've deleted the blueprint for that application (the plan) seems a little drastic 21:28:44 datsun180b: new cli is awesome, don't we still want to keep plan cli (at least for admins)? I'm thinking the case where vendor wants to distribute some app templates that users can readily use instead of writing custom plan files 21:28:56 it would be like burning my house to ground because I shredded the blueprint 21:29:04 I don't know why you would do that 21:29:24 gpilz: we won't always destroy them, current thinking is instead to stop them and maintain the assembly rows as a history of actions upon an app 21:29:49 we just don't have an "assembly stop" mechanism 21:29:51 gpilz: also, there will be 'app stop' command coming soon 21:30:13 ed: that seems the be the real issue 21:30:19 further, there's the matter of associating an app with up to one deployed-and-running instance of your code 21:31:18 ravips: in the use case that you described, how will having the plan cli help? 21:31:21 ravips: i imagine the plan and assembly commands will be removed in the future 21:32:13 registering an app will be a matter of "app create", not "plan create", and building & deploying an app will be a matter of "app build" or "app deploy", not "assembly create" 21:32:42 devkulkarni: admins can register plans using plan cli and user can use plan id in the app cli to reference existing plans (need some auth checks) 21:32:43 that a plan or assembly is created or destroyed is not a concerning matter for a user, ideally 21:32:54 +1 21:33:23 ravips: there's also the matter of separating registered plans from provided templates 21:33:25 ravips: that could be done by introducing 'app register' 21:35:09 devkulkarni: register app will create an assembly? 21:35:15 no, an app 21:35:19 ravips: no 21:35:39 assemblies are instances of building/built/deployed user code 21:35:42 what's the difference between assembly and an app? 21:36:01 I am saying that the use case that you described — that someone registers a app template/plan file and others use it — can be achieved by something like 'app register'. we don't specifically need plan cli for that 21:36:20 an app includes the registration, overhead like heat components, logfiles, user secrets, and activity history 21:36:27 ravips: what datsun180b mentioned above 21:36:36 by "includes" i mean "will ideally include" 21:36:40 okay, app deploy will create a running instance 21:36:48 ravips: yep 21:36:49 (building it if need be) 21:37:13 ravips: you might want to take a look at my comment on this: #link https://review.openstack.org/#/c/160501/ 21:37:19 ah, perfect 21:38:32 so this all to say, lacking an app resource, a user deleting an app means to destroy every aspect of it, no questions asked 21:39:14 datsun180b: even when we have app resource, 21:39:14 if that means stopping and possibly removing assemblies, that's what it means 21:39:33 wouldn't deleting the app amount to deleting all aspects of it. no? 21:39:43 ummm 21:39:46 may be we can take query params at that point 21:39:57 what i mean is, since we have no app but a plan, deleting a plan should mean the same thing 21:39:58 and selectively delete some or other things 21:40:14 datsun180b: ok, makes sense. 21:40:18 the reason CAMP doesn't say you must delete the plan when you delete the app 21:40:48 is that the user may have spent some considerable time and effort uploading various artifacts to the platform (datasets, etc.) 21:41:00 of course, the registration information is important 21:41:23 and, if they wanted to start *another* app (that was very much like the app they just deleted but maybe slightly different) 21:41:30 so there's another matter of our db's foreign-key reference from assemblies to plans 21:41:37 I remember that the CLI makes that distinction between 'delete' and 'destroy' 21:41:38 we didn't want to force the user to have to re-upload all that information 21:41:48 sure 21:41:51 that's the underlying reason--when an assembly is updated, it has to make reference to plan data 21:41:55 however, it doesn't seem like Solum is that worried about this case 21:42:09 all of the stuff I've seen just uses reference to git 21:42:10 from user point of view though, there is no 'plan'. there is just an 'app' 21:42:42 but with the future app model, assemblies won't be updated--each new app deploy would create a new app from the current registered plan 21:42:56 datsun180b: minor correction 21:43:03 go ahead 21:43:04 ed: that makes sense 21:43:09 each new app deploy would create a new assembly 21:43:18 thanks yes 21:43:28 that's what i mean, promise 21:43:44 gpilz: point about not deleting the registration information is valid 21:43:53 it's the same app, it may be a different plan, but it's a new assembly 21:44:04 I think in the cli that distinction is made by specifying 'app delete' and 'app destroy' 21:44:31 that makes sense 21:44:35 at least at one point that was the case. 21:44:49 i'm not sure about conflating "apps" and "plans" 21:44:58 devkulkarni: can you elaborate distinction between app delete/destroy 21:44:58 i never signed off on destroy 21:45:03 a plan is not an app - it is information about how to create an app 21:45:05 ravips: sure 21:45:18 gpilz: completely correct about plans and apps 21:45:32 an app will own one or more plans for versioning 21:45:54 can two apps reference the same plan? 21:45:57 and that app will own one or more assemblies, up to one of which is deployed unless i'm wrong 21:46:11 datsun180b: that is correct 21:46:29 gpilz: i wouldn't think so 21:47:05 i hear you saying that, to support versioning, you need a higher level resource, "app", which references one or more assemblies 21:47:14 gpilz: what do you mean? an 'app' includes the following: a template describing the relevant thinngs like git url + some workflow defn + various instantiations of the associated workflows 21:47:15 each assembly is a different version of the app? 21:47:51 gpilz: an assembly is instantiation of different workflows associated with an app 21:48:07 why don't you model those workflows as components? 21:48:28 how will that help? 21:48:46 it seems to me like you are inventing a higher-level collection resource 21:49:18 because you've ignored the fact that the resource you've been working with, "assembly", is actually a collection of components 21:49:23 maybe i'm wrong 21:49:52 i've been working on removing some of those things from an assembly, like the triggers 21:50:00 gpilz: we are starting from the point of view of what did currently an assembly represent in Solum's current architecture 21:50:08 datsun180b: +1 21:50:10 and shortly, heat components for example 21:50:40 so if an app owns an LB, we can swap out the assembly and point the LB to a new web head without the IP of the app changing 21:50:53 gpilz: this #link https://review.openstack.org/#/c/160501/ has more explanation of the rationale 21:51:01 for example 21:51:12 oh we are nearly out of time 21:52:38 So I propose we get a solid write-up of what all this app resource entails so far as changes to Solum 21:53:00 datsun180b: +1 21:53:04 +1 21:53:19 We have the NewCLI doc in the wiki that we can use to drive some design 21:53:19 +1 21:53:22 +1 21:53:44 cool. 21:53:48 we are almost out of time. 21:53:56 lets just jump to open discussion 21:54:03 #topic Open discussion 21:54:04 devkulkarni, you're the chair, can you task me with that? 21:54:57 #agreed datsun180b will document the changes to Solum due to the introduction of the app resource 21:55:13 that ought to show up on the record 21:55:23 #action datsun180b will document the changes to Solum due to the introduction of the app resource 21:55:55 akshayc: did you see james_li's patch? 21:56:03 yep 21:56:11 james_li: mind updating folks about your patch 21:56:44 converting bash to python requires installing docker-py 21:57:01 which is not in the global requirements of openstack 21:58:07 so in the light of akshayc's infra patch I submitted another patch so that we can enable docker-py just by making a local change 21:58:19 https://review.openstack.org/#/c/160041/ 21:58:26 datsun180b had a comment on it 21:58:38 cool…. any picks for python git library? 21:59:21 akshayc: no clue, pick one and go nuts 21:59:24 akshayc: did a quick looking on that, but it seems there is not yet a stable py-git that we can use 21:59:44 ok…. so use shell? 21:59:51 its about time. 21:59:55 ok 22:00:01 back to #solum, thanks everyone 22:00:06 I mean't we are at the end of our meeting 22:00:09 thanks 22:00:14 #endmeeting