=== natefinch-afk is now known as natefinch === urulama__ is now known as urulama [04:51] bdx: If you want to deploy a version of PostgreSQL that is not 9.3 with trusty, then you either need to set the pgdg flag when you deploy (or change it when the charm fails and retry), or have it in some other repository pointed to by the install_sources line. That second option is why it isn't on by default - the many installs where there is no egress. [04:53] bdx: For example, we have PG 9.1 packages in our internal archives which get deployed to trusty. === blahdeblah_ is now known as blahdeblah [07:23] hi late night juju groupies... [07:23] I'm wondering if anyone knows who specificaly invented juju? the various writeups I've found on it did not say [07:28] I would like to contact the person who invented juju, reguarding some additional ideas I have. [07:29] bolthole_: The person who invented it is not really relevant any more; there are several teams of full-time developers working on it now. [07:29] The best way to discuss those things would be to open a bug on Launchpad, or join the juju or juju-dev mailing list and post your thoughts there. [07:34] is that a code phrase for "that person no longer works at Canonical"? :-/ I would like to know how to contact them, because I have some ideas that, while sort of related to juju, are not actually applicable to normal juju itself. [07:35] Not code at all; I don't actually know who invented it. [07:35] fair enough :) [07:36] But if that's the path you want to take, juju was renamed from ensemble around 2010/2011, I think, so you might want to Google for that instead. === ryotagami_ is now known as ryotagami [15:08] Hi Matt [15:08] suchvenu: hello [15:09] Regarding the DB2 design Doc I sent for your review [15:09] You mentioned, relation-joined should create unique database-name/username/password so multiple charms can connect to the same db2 instance. [15:10] I am creating unique username, password and instance as per config values , but this is done in Config change hook and not in relation hook [15:10] Now to create database name in the relation hooks, the charm which needs the DB to be created on DB2 needs to give the DB name to the DB2 charm. [15:11] Also some products may need only one DB to be created , while others may need multiple DBs [15:11] suchvenu: Yes I think that may be incorrect. For other database charms I believe this is done in the relation-joined hook so different charm types have different database names. [15:12] So how do we control the no of DBs to be created and their names ? [15:12] Ok, so the username and password should be provided by the related charm to DB2 charm ? [15:14] suchvenu: If you do it per config value it is clear to me that you can not get multiple databases. Let us assume mediawiki had a db2 relation and so did dokuwiki had a db2 relation. Your config-changed hook would only create one instance, database, username, and password, but both charms could relate to the ibm-db2 charm. These both would get the same information and write to each other's database. [15:15] suchvenu: I am not a database expert but I know two different services (mediawiki and dokuwiki) using the same database would be a problem. [15:18] suchvenu: kwmonroe and I looked into this before we made the recommendation I believe you can make multiple databases in the same instance, so your db2-relation-joined hook would use the service name to create a unique database name. You could hash the name or just replace the invalid characters. So in my previous example if you get a relation, and the remote service name comes back as 'mediawiki/0' you can convert that to 'mediawiki0' and 'dokuwiki [15:20] suchvenu: that way the DB2 charm could relate to different charms and they would not use the same database name. Check out the mysql or mariadb charms for examples of how this is done. [15:20] mbruzek you would really need to just split on '/' otherwise mediawiki/1 would turn into mediawiki1 - just chiming in with a slight addendum there [15:20] ok. But if any service wants more than 1 DB , how do we control it ? And if they need DB with specific name [15:21] lazypower: I don't remember if mysql makes a 'mediawiki1' database or if it makes a 'mediawiki' database for all the units of mediawiki to share. [15:21] Also for each user i am creating a separate instance with same name as user name. This is as per one of the review comment i got previously to have unique username, password and instance [15:22] mbruzek - it uses the service name, and strips invalid characters + anything after the / is dropped. [15:25] suchvenu: That may have been a review comment from someone who didn't fully understand how DB2 worked, and if it was me I apologize. kwmonroe and I looked into the DB2 documentation last night, and you _can_ create different instances, and it appears you can create different instances. What Kevin and I discussed last night was to have one instance but different database names to make it work more like the other databases we are familiar with. [15:25] ok. So one instance name and have mulitple user names to connect to same is what you are proposing. [15:26] Db2 has the feature to create multiple instances, that's the reason i implemented it in that way. [15:26] I will relook at this one [15:26] suchvenu: After yesterday's read of the documentation, I think different instances may be too complicated and doing different database names is the way to go. I didn't understand what a different instance was different than a different database [15:27] suchvenu: What we found from reading the documentation that you would have to create a different host user for each instance and you could give different memory constraints to each instance. [15:28] suchvenu: We thought it would be better to give ALL the memory on the host to the one DB2 instance and just create different databases in the one instance [15:28] ok. I will explore this one [15:28] On removal of a db2 relation the username and password should be destroyed - This also i am not sure whether it will cause any problem if we delete the user [15:29] suchvenu - those are 2 separate use cases really, consider the db2 charm implements 2 relationships for the 2 styles of use-case where the regular db: relationship auto-generates the database for the relating charm, based on that charms name. And each unit joining the conversation gets that database name, and a unique username/password combo per unit. This mimics the MySQL and PostGRES charms behavior which many users/applications will fall [15:29] into this category. The DB2 charm only sends a connection string back to the relating charm. [15:29] Consider another relationship db-programmable: where the relating charm can then send the details of what databases it requires, creating 1-n+1 databases and then hands back the multiple database connection strings on the wire. This gives you a pathway to support both use-cases, single charm, and multiple relations enable the behavior outlined. [15:30] suchvenu: The user is overloaded here. You need to create a user on the host to run the db2 instance, but you can create many database users. The review comment that we left was to remove the database user when the relation was removed. [15:36] suchvenu: not the host user running the db2 instance. === redelmann is now known as rudi|comida [15:55] suchvenu: some confusion might be coming because instance users seem to be both linux system users as well as database users. do you know if you can create separate database users for a given instance? (for example, can i create 'kevin' as a database user that can access a db in the 'db2inst1' instance?) [15:56] or does db2 require that database users are also instance users, meaning 'kevin' would have to have his own instance to get his own database? [16:00] I had created linus users for the new users i created . I need to explore on whether we can create database users and conenct to the single instance [16:02] is this a known problem in charms generate using "charm compose"? http://pastebin.ubuntu.com/14679942/ [16:03] jacekn - its 'charm build' - and thats a new one. which version of charm tools are you on? [16:03] lazypower: charm-tools 1.11.1 [16:04] lazypower: wher eare the official docs about "charm build"? links I had saved no longer exist ( https://jujucharms.com/docs/devel/authors-charm-composing/ for example) [16:05] jacekn - the devel docs start with building from layers from teh get-started guide - https://jujucharms.com/docs/devel/getting-started [16:05] that was after I solved this: http://pastebin.ubuntu.com/14679951/ [16:05] https://jujucharms.com/docs/devel/developer-getting-started [16:05] rather ^ that is the correct link [16:06] this is probably more of a maas question, but if i were to use maas+juju to create shared storage with gluster, what happens when we need to upgrade the Ubuntu OS. Wont maas+juju basically destroy the machines and rebuild them with the newest OS version? Consequently destroying the shared data? [16:06] and there is a deeper dive into layers under its topic page - https://jujucharms.com/docs/devel/developer-layers [16:08] jacekn - sorry about the moving target, the road to 2.0 and the docs has been a bit of a turbulent ride while we re-work and massage the devel docs. [16:10] also is it expected that juju-local now uses twice as much space? I think it pulls lxc images to disk and then into mongodb? [16:12] So in relation joined hook, the db2 charm will create username, password and a DB name (as per the service name which tries to connect to it ) and when the relation is broken the username needs to be deleted. Also we have only one instance name which will be shared by all users and multiple DBs can be created in the same instance. [16:13] the username, password will be provided by the related charm in the relation hooks . [16:13] Is that right ? [16:14] lazypower: so any ideas where to do about that error? I am testing in a fresh trusty environment so it may be affecting all charm authors [16:15] jacekn - i'm attempting to reproduce now in charmbox. seems to work in the :devel flavor when i update charm-tools from pypi - there's a pip 8.x bug that landed in teh 1.11.x series but that was a complaint about pyyaml verion(s) [16:15] *versions [16:15] jacekn what layer are you building with? i'd like to keep this as close to your configuration as possible so i can reproduce [16:16] When the relation is broken the db username needs to be deleted without disturbing the DBs. [16:16] kwmonroe ^ [16:16] lazypower: there is no layer yet, I'm writing one on top of 'layer:basic' [16:17] tertiary - thats a possibility. Unless you have modeled the storage. And even then i'm not 100% sure. I would certainly bring this up on the mailing list [16:17] i see, thanks [16:17] tertiary - i feel like this has been answered before, and posting to the list raises visibility, so they can chime in [16:17] If any product needs mutiple DBs with specific names ( like for example IBM MobileServer ) let that service create the required DB as per its requirements. [16:18] lazypower: is there really no way around installing gcc and pulling packages using pypi? I can see that blocking juju deployments due to security policies in many places [16:19] jacekn - is this in reference to charm build making the wheelhouse? [16:19] suchvenu: reading your questions now [16:19] Matt:Kevin: lazypower: Does it sound ok ? [16:19] ok [16:19] yeah it means software is partially outside of OS security patching coverage [16:20] lazypower: plus compilers on appservers are considered a security risk in some places [16:20] jacekn - right. I would certainly bring this up on the list as well as a talking point, i dont know that I have a good answer to that question [16:21] ack. I'll soon report a but about that ImportError: No module named 'charmhelpers.cli' problem [16:21] jacekn - and using the vanilla charmbox image, i was able to build both - an empty layer with only a layer.yaml containing " includes: [layer:basic]" , and a few other layers i maintain. No issue with charmhelpers.cli :/ [16:21] are you running in a virtualenv or something similar? [16:22] suchvenu: That looks correct, except for the part about the "the username, password will be provided by the related charm in the relation hooks" the db2 charm will create the username and password, the username and password would not be provided by say the mediawiki charm. [16:22] the user/pass would be set on the db2 relation, for the mediawiki charm to read [16:22] then how do I take the username and password ? Based on service name ? [16:23] lazypower: nope but who knows, maybe there is somethin on my test box that would affect "charm build" (kind of another reason to stick to apt-get install in the charm rather than ship depds with the charm) [16:23] lazypower: I can publish my WIP charm somewhere if you want? [16:23] sure [16:23] I mean how do I select any username for the mediawiki ? [16:23] jacekn lets try that, maybe theres something hinky in that layer path thats causing the problem [16:23] jacekn: I share your values and I've tried to avoid even installing pip on some of our charms, but most charm authors don't share these values and so many install python-pip and python-dev which pulls in gcc :( [16:26] Also I need to explore whether we can create DB users without creating linux system users. If that is not possible, then I am not sure whether removal of users will cause some issues [16:26] when the relation is broken [16:26] suchvenu: MySQL creates a unique database schema for every service connected, and a unique user/pass for that schema for every unit connected [16:26] suchvenu: I don't think the linux user is directly related to the database user [16:26] lazypower: hmm I wonder...I wonder if "charm build" found some junk in my "charms/trusty/" subdirectory and composed the charm on top of it. Let me verify that maybe that's the cause [16:28] Matt: I will check this up [16:28] suchvenu: if I remember correctly db2inst1 is running the instance and that is needed to start and stop processes, but the db2admin is not a user on the filesystem. [16:29] jrwren: yes understood. One other things I would point out is that this will happen on all units. So it's fine for small scale but if you want to deploy 100 units that means dozens of GBs that need to go over the network [16:30] jacekn: yup. If you solve any of these issues, I look forward to hearing how you did so. [16:37] jrwren: lazypower: hmm OK then so when I started completely fresh it worked. "charm build" must have composed on top of some old files which caused this problem [16:37] sorry for the noise [16:37] jacekn ah i htink i may know the issue then [16:37] charm build is additive, so if an older dependency is embedded, you need to rm -rf the output charm artifact. We have an open bug on this, as its not clear that this behavior can lead to unexpected behavior [16:38] removals are hard :/ [16:38] lazypower: aha! that would make sense, thanks for help. If you find that but # let me know I'll meto [16:39] jacekn https://github.com/juju/charm-tools/issues/83 [16:42] lazypower: is there anything in LP? [16:42] charm-tools has migrated over to github afaict [16:46] Matt : db2inst1 is the username used to install DB2 and it creates the instance and runs it. [16:46] db2admin is a db2 utility [16:47] suchvenu: OK. I meant db2admin as the administrative user for db2 then. [16:47] I am not an expert in db2, it was just a guess [16:50] No, db2admin user doesn't exist [16:50] After installing db2 , I see the following users only : [16:50] db2inst1:x:1001:1001::/home/db2inst1: dasusr1:x:1002:1002::/home/dasusr1: db2fenc1:x:1003:1003::/home/db2fenc1: db2usr1:x:1004:1001::/home/db2usr1: [16:51] where db2inst1, dasusr1 and db2fenc1 are required for installing db2 and db2usr1 is a new user i created as per the config value in DB2 charm [16:58] yeah suchvenu, mbruzek wasn't suggesting that a 'db2admin' system user should be created. he just meant that there would be a "db2 admin" as a user that could interact with the database without being a system user. [17:01] suchvenu: according to this, there are no "database users". authenticating to the database requires a system account: http://www.ibm.com/developerworks/data/library/techarticle/dm-0508wasserman/ [17:01] "This is different from other database management systems (DBMSs), such as Oracle and SQL Server, where user accounts may be defined and authenticated in the database itself, as well as in an external facility such as the operating system." [17:04] suchvenu: this implies that any new service that connects to db2 will need a new system account. therefore, in the db relation-joined hook, you should call useradd to create a new user (the username can be a random string), and then call 'db2icrt -u '. this will create a db2 instance name based on the new system user you just created. [17:04] Kevin : Ok. I was also searching whether we can create database users which are not OS users [17:05] right.. I am actually doing this in config changed hook [17:05] creating a new user and a new instance [17:05] but now that code has to go to relation hook [17:06] so in this case when the realtion is broken, and i try to delete the user, it may get into issues [17:06] as the db2 instance will be running using this userid [17:09] yeah suchvenu, i suggest you do not remove the system user, but simply drop the instance with 'db2idrop ' [17:10] according to this, the database will remain in tact: Dropping an instance will not drop your databases, so you will not lose data. You can drop your instance, recreate it and then catalog the databases to make them available. You can use the db2cfexp and db2cfimp commands to export and import instance profiles. [17:10] https://www-01.ibm.com/support/knowledgecenter/#!/SSEPGG_9.5.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0002058.html [17:12] bundletester is giving me a version conflict error for pyyaml on trusty. it was installed via pip. its looking for 3.11, but 3.10 is installed. the system is a fresh maas deployment to an x86 host [17:13] tvansteenburgh - is this the same symptom we saw emitting from charm-tools 1.11.x series? ^ [17:13] ok kwmonroe. I can try this out [17:15] cmagina: curious if you installed it in a virtualenv or not [17:15] tvansteenburgh: just a simple pip install bundletester [17:16] cmagina: would you mind trying it in a virtualenv? [17:16] tvansteenburgh: i can do that [17:16] my guess is that pip refused to upgrade the pyyaml system dep that was already installed [17:17] kwmonroe: Suppose the related charm needs more than the default db , then its up to that charm to create the DB. DB2 charm will not handle it. Is that approach fine ? [17:19] where do I report charms.reactive bugs? [17:19] or "where should I" rather [17:19] jacekn: against charm-tools [17:19] let me get you a link [17:20] jacekn: https://github.com/juju/charm-tools/issues [17:23] suchvenu: as long as the database user has the permission to create a database or table that should be fine [17:25] Yes the db user has permission to create DB. As per the current implementation where we are not creating any default DB in DB2 charm, we are returnign the db2 user name to the related charm [17:25] Using this db2 user the related charm can create DBs === rudi|comida is now known as redelmann [17:28] suchvenu: i think after you create an instance, you will still need to create a db. but your approach seems fine -- a connecting service should receive the ip, port, user, password, and db name. [17:28] yes after creating instance for new user, we need to creatre DB as well. [17:29] yes, i was not sending db name . I will add that as well [17:31] when we remove the relation the instance name is deleted. Now again if we try to set relation, it will create a new username and instance , right ? [17:35] that's correct suchvenu [17:35] i will chk whether the username and instance name exists and reuse the same if it exists [17:36] instead of creating multiple usernames for the same service [17:36] i think instance will not have issue, as we are deleting it when the relation is broken [17:40] Thanks a lot mbruzek, kwmonroe,lazypower, marcoceppi for your time to clear some of the design related queries i had on DB2 charm. Appreciate your help [17:43] I will send updated design doc with the points we discussed today [17:55] thanks suchvenu!! [18:49] I'd like to write a charm that deploys a webapp to a tomcat service. As such, I think I need to require some kind of relationship between a tomcat charm instance, and my charm, to make sure it gets deployed to the same machine? What should I be looking at for this? [18:49] Hi, I'm trying to add an lxc instance to a maas environment with juju-deployer. I have several other ones deployed this exact same with with 'to: lxc:agent-host' in my deployer bundle, so I just copied one of those as I've done before, and made the necessary changes. [18:49] but when I try to run juju-deployer, I get an error: 2016-01-28 02:46:03 Invalid service placement snappyx86003 to lxc:agent-host [18:49] mbruzek - bolthole is asking about tomcat :) [18:50] any ideas where to look to figure out what's wrong? [18:54] hi bolthole: let me dust that section of my memory off [18:57] bolthole: What you are looking for is what Juju calls a subordinate service [18:57] https://jujucharms.com/docs/master/authors-subordinate-services [18:58] Sounds good. thanks [18:58] The tomcat charm (written by me) accepts subordinate charms with the juju-info relation. Look to the openmrs charm for an example. [18:59] https://jujucharms.com/openmrs/precise/1 [19:00] bolthole: It was pointed out to me that tomcat should not use the juju-info relation and instead provide a "webapp" relation or something of that kind, but I have not implemented that yet, and I don't see that in the current cs:trusty/tomcat charm [19:01] So that is the way it works now, and if you look at the openmrs code that should help. [19:02] bolthole: please let me know if you have any other questions. [19:02] Hm. Is there really a requirement to have a particular relationship defined in juju, to make use of the subordinate designation? [19:04] bolthole: no. But a webapp has some expectations of things (like the directory where it should put the war file). Currently the openmrs can be a subordinate to any regular charm and that is probably not a good thing. [19:04] And if there is.. the page you referenced seems to imply I could just define "a standard client-server relation" fpr tjos [19:04] * for this [19:05] bolthole: it probably makes more sense to have tomcat provide a webapp interface and charms that are webapps only consume that [19:05] ah. so the relationship would define the webapp directory, then [19:05] bolthole: yes. It would be a very basic thing [19:17] I see that openmrs "requires: tomcat-war:". Wouldnt it be more accurate to say that it *provides* tomcat-war ? And does the other side have to be coded to support the same relation [19:18] plars - can i see your bundle? [19:18] lazypower: sure, one sec... === lathiat_ is now known as lathiat [19:20] lazypower: http://paste.ubuntu.com/14681702/ [19:20] plars - try adding the unit number --to lxc:agent-host/0 [19:20] lazypower: actually, I am doing it without the bit for deploying agent-host. It's already deployed, but I include it here for clarity [19:21] lazypower: I did, same error [19:21] :-\ hmm... we used the --to operator in our k8s bundle... let me fish that up [19:21] contrast/compare [19:21] lazypower: I've used it *exactly* like this in this same environment on lots of other units [19:22] yeah, that looks correct [19:22] looks like there may be a regression or something going on here [19:22] i'm not positive [19:22] sorry :( [19:23] lazypower: any tips for debugging? or where to go from here? [19:25] mbruzek: erm. it seems like the tomcat module now already looks for webapp: java-webapp [19:25] plars not off the top of my head, i've been working with the newer juju deploy bin for the last month or so [19:25] a lot of that info is now replaced [19:25] bolthole: I pulled the trust/tomcat one I don't see that in metadat.yaml, where do you see this? Are you on precise/tomcat? [19:26] lazypower: so is there a better way I should be doing this? [19:26] plars - aside from upgrading to 2.0-alpha1 and giving it a go [19:27] I.... think so? still new to ubuntu. i'm using ubuntu15.10, which I think is "precise", so I was looking at https://jujucharms.com/tomcat/precise/1 [19:27] plars - obv. thats not recommended if this is a production environment [19:27] bolthole - "wiley" - ftfy :) [19:27] lazypower: heh, well it is production, but it's not working [19:28] bogus :\ [19:28] oh wait. my actual deployed stuff, says verison of tomcat = cs/trusty/tomcat-1 [19:28] bolthole: yes, https://wiki.ubuntu.com/Releases [19:28] whcih is .. neither precise, nor wily. wth.... [19:29] bolthole If you deployed "tomcat" you likely got the precise version (12.04) I think that is how juju defaults. I also see the java-webapp in the metadata.yaml for precise/tomcat [19:29] whatisthisidonteven [19:30] bolthole sorry for the confusion. I think this change is not in the more recent version of tomcat [19:32] so... precise is the OLDER version ... butit is better for having more logical relations defined? [19:34] bolthole: it appears that someone updated the older version of tomcat with the fix I described earlier, but did not move this to the later version of tomcat. [19:35] and this is extra sad, since I cant seem to use the "change version" to switch to the older version, in juju-gui. [19:37] bolthole: Does it matter to you what version of the operating system you have? precise (12.04) compared to trusty (14.04)? [19:39] bolthole you will still get tomcat7 with either install, both should work very well [19:40] i have no idea. [19:40] comparing things, I guess my desktop is 15.10... [19:40] but i've deployed to azure, which uses 14.04.1 ubuntu imags [19:40] by default, I guess. [19:41] marcoceppi: with resources, what's the charm you've got in your mind that would use the most number of individual resources? (/cc lazypower aisrael mbruzek) [19:41] rick_h_ - easily the big data stack [19:41] lazypower: right, so a single service with how many resources declared? 2, 4? [19:41] rick_h_ - considering each install ships w/ a 90MB JVM + each component has a suite of jars. [19:41] cory_fu kwmonroe admcleod1 ^ can you chime in on this? like, ballpack [19:41] mbruzek I still think whoever "fixed" it, fixed it backwards again. the app should be the thing "providing" webapp. :-/ [19:41] *ballpark [19:42] rick_h_: I'd see about 6 at most [19:42] marcoceppi: lazypower k, ty for the feedback. [19:44] bolthole: the webapp charm will need to require the "webapp" relationship because a relationship needs both sides. [19:44] rick_h_ - hey i found a good place to look - https://api.jujucharms.com/charmstore/v5/~bigdata-dev/trusty/cloudera-hadoo-yarn-master-0/archive/resources.yaml [19:44] rick_h_: The core Hadoop charms have around 9 resources defined currently, most of which are different arch and versions of the libraries [19:45] mbruzek technically speaking, using java language, I believe the proper terminology would be that it "provides: webcontainer" [19:45] lazypower: This is better: https://api.jujucharms.com/charmstore/v5/~bigdata-dev/apache-hadoop-yarn-master/archive/resources.yaml [19:46] rick_h_: ^ [19:46] woo [19:46] A couple of those are python deps that go away with layers, and there are a couple dupes for handling older charms that don't have a version specified and will go away [19:47] Is there a way to search the store for (Charms that use relation: webapp) ? [19:47] But at a minimum it will be 7, until we add new supported versions [19:48] Or arches [19:48] bolthole: You'd want https://jujucharms.com/provides/webapp or https://jujucharms.com/requires/webapp [19:48] But neither of those return any results [19:49] bolthole: Here's one that has results: https://jujucharms.com/provides/http [19:50] got it thanks. [19:50] bolthole: You can discover this on the store by going to a charm that you know of that uses a given interface and clicking on the link in the "Connects to:" section on the right, just above the files list [19:51] thanks [19:51] so if I want to file a bug "please provide webcontainer", should I do it against tomcat or tomcat7 charm? [19:52] seems like the tomcat7 writeup suggests tomcat. but the tomcat code seems in chaos ;-} [19:53] lazypower, mbruzek: ^ [19:54] I think that https://jujucharms.com/tomcat/trusty is the most recent [19:54] But I defer to those who have actually worked on it [19:54] contrariwise... if I want to submit code... can I do that? It seems like stuff owned by "charmers" has some kind of extraspecial layer where people cant submit proposed stuffs through the normal process [19:54] bolthole I did a diff between precise and trusty on the tomcat charm. Only that webapp relation is different [19:58] bolthole: do not use tomcat7 that is deprecated, use trusty/tomcat and I can move the fix for precise forward. [20:00] bolthole - you are correct that "charmer" owned charms have a layer of "special" - they are reviewed and curated charms. You can propose fixes against them through a traditional launchpad merge proposal. This process will change sometime near APril, but we will have docs in place for that process change. [20:00] bolthole there's docs on contributing here: https://jujucharms.com/docs/devel/authors-charm-store#submitting [20:00] bolthole - but if this is only to scratch an itch where you dont want a review to block you, you can always publish to your personal namespace, which is covered in the doc as well [20:16] mbruzek i can wait for the official code fix, thats fine.... Just please fix the naming ;) [20:16] bolthole what naming? [20:17] the usage is backwards. tomcat needs to require 'webapp', not provide it. Or, it could provide 'webcontainer' [20:17] bolthole: that is not wrong, that is a Juju convention. [20:17] nooo... what i described, matches mysql usage [20:18] bolthole: tomcat provides a webapp relationship, that webapps can require. [20:18] i compared with that first ;) [20:19] look at it this way. wordpress is an aplication, that requires a database (mysql) to run. It *requires* mysql [20:19] i think the confusion here is because we're talking about a subordinate relation to tomcat. [20:19] openmrs is a webapp, that requires a webcontainer (like tomcat) to run. therefore, it *requires* webcontainer [20:19] so bolthole, it is actually correct as written -- tomcat is "providing the ability for a java-webapp to be connected" [20:20] tomcat is not providing an ability, it is providing a platform/service. just like mysql provides a platform/service. [20:21] yeah, i get the overall descriptions you're using, but when you're talking about a juju charm being subordinate to another, the principal provides that interface, the subordinate requires it. [20:22] yes. exactly. tomcat is the principle. it provides webcontainer. any webapp, Requires a webcontainer to run [20:22] so rename webapp to webcontainer, and it's all good [20:24] oh, sure - i don't have any skin in the naming of the relation.. just trying to explain why provides/requires may seem reversed in a principal/subordinate context. [20:24] got it [20:35] tvansteenburgh: i tested it in a virtualenv and hit the same issue [20:55] awwright... I have used bzr to make myself a local clone thingie, and made the trivial code changes. trying to push it up to my "personal space"... but its giving me permission denied? [20:55] ("Cannot create branch at /~s-phil-s/charms/blahblah") [21:01] lazypower I did try to carefully follow the instructions at that url. but it doesnt seem to work :( [21:01] bolthole: is the ssh-key (~/.ssh/id_?rs.pub) listed in your launchpad account? [21:01] yes [21:02] bolthole: what's the push command you gave? just 'bzr push'? [21:02] ( ssh missing, gives an explicit "you havent registered any keys" error ;) [21:02] I did a very explicit push as follows: [21:03] bzr push lp:~s-phil-s/charms/tomcat/trunk. [21:04] hmph, that's looks legit [21:04] newp [21:04] missing series [21:04] ah [21:04] bzr push lp:~s-phil-s/charms/trusty/tomcat/trunk [21:04] bolthole: give that a try ^ [21:05] tried it. nope. === clvx1 is now known as clvx [21:05] oh qr [21:05] wait [21:05] differnt error [21:06] "project s-phil-s does not exist" [21:06] oops typo [21:06] added tilde back... and it works [21:06] thats annoying. i thought launchpad was more free-form [21:08] i think it's more restrictive with charms because the ingestion process that scrapes launchpad to pick up namespaced charms needs them in a specific structure -- charms/series/foo/trunk [21:10] alternatively bolthole, if you didn't want to wait for your modified charm to hit the charm store, you can deploy a local charm with "JUJU_REPOSITORY=~/charms juju deploy local:trusty/" [21:10] naw I can wait a bit. and want to do this right anyways [21:10] cool [21:11] so, now, do I do the "proposal to merge" from my branch, or from the main one? [21:12] the "propose merge" stuff on the web, is a little.. lacking in documentation [21:12] bolthole: you'd do it from your branch.. click the "Propose for merging" link here: https://code.launchpad.net/~s-phil-s/charms/trusty/tomcat/trunk [21:12] ah okay, now it looks more helpful then :) [21:13] although I also pushed a precise branch. which one is better? I would think the precise one since thats where charms/tomcat seems to redirect to, but iunno [21:15] well, generally speaking, you'd propose your precise branch into lp:charms/precise/tomcat and your trusty branch into lp:charms/trusty/tomcat.. but in this case, mbruzek already has you beat ;) he's testing a similiar change to those branches at this very moment. [21:15] kewl. well, good practice either way :) [21:17] that's the spirit!! and thanks for bringing this up.. it's the right way to handle webapp subordinates in tomcat. (vs a more generic interface) === urulama is now known as urulama__ [21:27] I'm considering using juju to deploy a few services in mesos/marathon, including a webservice app, front end app, postgres, and a cassandra cluster. Does this even sound reasonable, or would it be too much hassle to use juju to deploy through mesos/marathon? [21:29] cmagina: weird. i'll try it in a clean container and see if i can figure out what's happening [21:29] tvansteenburgh: ok, thanks [21:33] anyone know where a list of “actions” that I can send to my openstack charms for neutron would be? [21:34] firl: "juju action defined $servicename" [21:35] ty [21:35] np [21:43] anyone know how to have neutron recreate qdhcp/qrouter besides uninstall and reinstall with juju? [22:00] jw4 - that would be an excellent question on the juju mailing list. one of our isv partners has been working in marathon/juju land for the last 4 months [22:00] lazypower: cool.. will do [22:00] jw4 - they don't idle on irc, but with a mailing list post, i can signpost them to it. [22:00] +1 [22:01] :) happy to help. ping me when you've sent so i do it before i forget. [22:02] will do - is that https://lists.ubuntu.com/mailman/listinfo/juju or https://lists.ubuntu.com/mailman/listinfo/juju-dev? I assume the former? [22:02] juju@ [22:02] perfect [22:02] juju-dev is if you're a golang hacker and want to discuss the innards of juju [22:03] It's all coming back to me slowly :) [22:04] * lazypower eyes narrow... "wait.... you *were* a core hacker weren't you jw4?" [22:04] uh oh [22:04] now I'm in trouble [22:04] \o/ man its been a while :D [22:04] :) [22:05] yep; I miss this team :) [22:11] bolthole: I created 2 Merge proposals for the problems we discussed today, https://code.launchpad.net/~mbruzek/charms/trusty/tomcat/trunk/+merge/284189 [22:13] bolthole: https://code.launchpad.net/~mbruzek/charms/precise/tomcat/trunk/+merge/284188 [22:13] bolthole: Please take a look and let me know if that was in-line from what you suggested. [22:23] lazypower: sent: subject "Mesos / Marathon with Juju" [22:37] So, has anyone tried to deal with upgrading an existing deployed service from a non-layered charm to a layered charm? [22:38] cory_fu: nope >:D [22:40] I'm running into a pretty big road block because the interface states (well, all of the states) need to be reconstructed without the chain of hooks actually being invoked [22:41] Is it reasonable as a community to say that upgrading from non-layered to layered charms just isn't feasible? [22:43] marcoceppi: ^? [22:54] cory_fu: it's possible. but couldn't upgrade hook do this? [22:54] cory_fu: the only thing it cant' really do is relation stuff [22:55] can't really do *easily* [22:56] cory_fu: want to jump on a hangout in like 5 mins? [22:56] maybe 10 mins [23:03] jw4 done and done === lazypower is now known as lazypower|travel [23:06] awesome sauce [23:11] marcoceppi: You up for that hangout?