/srv/irclogs.ubuntu.com/2012/03/25/#juju.txt

arashbmguys I get ` charm not found in repository` when deploying00:08
arashbmI have correct folder tree (repo/oneiric/charm-name) and no syntax error in config.yaml or metadata.yaml00:08
_mup_juju/local-cloud-img r487 committed by kapil.thangavelu@canonical.com00:47
_mup_merge trunk00:47
_mup_juju/local-cloud-img r488 committed by kapil.thangavelu@canonical.com01:54
_mup_wip, scope is starting to feel to large on this one, leaving off01:54
=== nijaba_ is now known as nijaba
marcoceppiAnyway to change the verbosity of the juju commands? IE If I want to get rid of the INFO messages on the client side?16:02
SpamapSmarcoceppi: yes debug-log allows a level to be passed16:04
SpamapSmarcoceppi:   -l {DEBUG,INFO,ERROR,WARNING,CRITICAL}, --level {DEBUG,INFO,ERROR,WARNING,CRITICAL}16:05
SpamapS                        Log level to show16:05
SpamapSthose are in the wrong order I think16:05
SpamapSI think CRITICAL should be between INFO and ERROR16:05
SpamapShm no ...16:07
SpamapSshould be DEBUG,INFO,WARNING,ERROR,CRITICAL16:07
* SpamapS opens low bug w/ patch attached16:07
marcoceppiDoesn't seem to wsork16:09
marcoceppijuju status --level=WARNING16:09
SpamapSoh16:10
SpamapSthat level of logging16:10
marcoceppiyeah16:10
SpamapSmarcoceppi: that -l has to go *before* the subcommand16:10
marcoceppiSpamapS: Ah! Gotchya16:11
marcoceppiExcellent, thanks16:11
SpamapSI believe that is going to be changed in the go version.. kind of annoying the way that works16:11
SpamapSimbrandon: I did know that nginx speaks other protocols... I'm not sure it warrants its own singular primary charm.. but definitely as a subordinate it will be a swiss army knife of fun. :)16:31
_mup_Bug #964640 was filed: debug-log online help needs some minor tweaks <juju:In Progress by clint-fewbar> < https://launchpad.net/bugs/964640 >16:35
imbrandonSpamapS: well i was thinking a Nginx charm with examples like you said in sites-available16:43
imbrandonbut also a "sane" rockstar defaults too16:44
imbrandonfor normal web serving16:44
imbrandonsomthing that like omg-wp or others could depend on like the provies: db: mysql kinda thing and then build on16:44
imbrandonbut also have some kick ass examples in the sites avail for those that use it alone16:45
hazmatmarcoceppi, logging options for the client, are just -v before the subcommand16:54
SpamapSimbrandon: right. All of that is good in the subordinate sense.. but nginx alone on its own host is only useful for specific uses like as a super high volume loadbalancer.17:01
imbrandonnah. its quickly becoming the goto webserver, i think another year and it will have a good 15% of the market17:05
imbrandoneven for mom and pop shops that overoptimize17:06
SpamapSimbrandon: but what use is a static webserver with no way to get files onto it?17:06
SpamapSimbrandon: it will always be paired with something else17:06
imbrandoni mean yea me and you know its overkill but tell johny he dont need a farri when the farri is the same cost as the pento17:06
imbrandon;)17:06
imbrandonsure we use it with php-fpm now17:07
imbrandoneven for omg17:07
imbrandoni guess i'm missing someething or assume something your not17:07
SpamapSimbrandon: charms define all the things that go onto a server right now17:07
imbrandonwhen i said an nginx applince i mean a general suped up server charm - the db17:08
SpamapSimbrandon: when subordinates land, it will be easier to componentize things like nginx in a generic way.17:08
imbrandonwell yea , i'm thinking ahead, and using the provides db mysql think as a platform in my head17:08
imbrandonthinking that drupal or wp can site onyop of a nginx provide and a mysql provide17:09
imbrandonand reallly cant that be done now, i mean there is an example i thought with like something that was using a ton of provides and then just did a relation on them all at the end17:09
imbrandonwere they all on single instances ? i dident look close17:10
SpamapSimbrandon: 1 charm, 1 instance17:10
imbrandonouch ok , yea i dident have that part in my head17:10
imbrandonouch ouch17:10
SpamapSimbrandon: subordinates let you define special charms that will relate to services via the filesystem or 127.0.0.1 ...17:11
imbrandonanything i can do to put my code where my mouth is and help the17:11
imbrandoncompartmentalizing up17:11
imbrandonor what you called it17:11
SpamapSimbrandon: so in that case, we can make every PHP app a subordinate to nginx, or lighttpd, or whatever, and just have them always run php5-fpm17:11
imbrandonright17:11
imbrandonyea17:11
SpamapSimbrandon: not really. The branches are in review and landing in trunk. Once that lands, you can write the nginx charm. :)17:12
imbrandoni like that idea, even better if it lets you overlay like somehinh along the lines of say17:12
imbrandoncasperfs17:12
imbrandoni mean not litterly but thats the idea in my brain17:12
imbrandona filesystem overlay of charm ontop of chamr17:13
SpamapSimbrandon: well they all just get extracted and run inside a single instance.. not sure where overlays would come in.17:13
imbrandoncharm* so like a base nginx with and then a fcgi or fpm php and then a drupal but the drupal sets fpm settings "overlayed" etcv17:13
imbrandoninstead of conflicts like the dpkg system17:14
imbrandonso drupal can come with a specialized php.ini17:14
imbrandonthat overides the php-fpm php.ini charm17:14
imbrandonintentionaly17:14
imbrandonbut in an overlayed type way17:14
SpamapSimbrandon: Ahh I see now17:15
imbrandonmake any more sense, its like a brain puke i'm having here so some of its by the seat of my pants just learning charms are one per instance atm17:15
SpamapSimbrandon: I think we can make that work with just charm store policy on how files get written by subordinates17:16
imbrandonso not well thought out but still i think something along those lines is better than say a conflicts system17:16
_mup_Bug #964658 was filed: juju crashes when talking to MAAS without an explicit port <juju:New> < https://launchpad.net/bugs/964658 >17:16
imbrandonright, the hard(er) part is what happens if the drupal is replaced by wordpress, but i guss in that case its just re-deploy17:17
SpamapSimbrandon: its more like Replaces in dpkg terms.. "let me overwrite that charm's files"17:17
imbrandonand ont worry about restoring back to php and overlay somehting new17:17
imbrandonyea17:17
SpamapSimbrandon: yeah, the beauty of the cloud.. if you want to repurpose.. you just spin up new ones. :)17:17
imbrandonyea like replaces, but i say overlay that way it can inderit defaults from the parent package even if that package normaly wouldnt support it17:18
ninjixjuju crew, do you have a team preference for Python editor or IDE?17:18
SpamapSninjix: I know hazmat uses emacs17:19
SpamapSI prefer vim17:19
imbrandonlike php.ini is a bad example because it lets you only specify some settingswing natively17:19
imbrandonbut say ummm cant come up with a good example atm17:19
imbrandonlol17:19
ninjixis there a any coding style? PEP8 etc?17:19
hazmatninjix, emacs and vim are most common among the dev team, although i've been playing with sublime.. specifically for python.. pycharm or wingide are two commercial well done python ides17:20
SpamapSimbrandon: there's also dotdee.. which lets you regenerate a config whenever files in a .d dir change17:20
* imbrandon uses Zend Studio + Espresso.app + nano ( but my charms are in bash or php heh )17:20
marcoceppiI haven't seen a php charm yet, mostly bash/dash and Python17:20
SpamapSninjix: pep8 yes17:20
imbrandonand vim-full when nessesary, but tryies to avoid it17:20
marcoceppiI started writing one17:20
SpamapSmarcoceppi: mediawiki has a hook in php :)17:20
ninjixI'm starting in on a Proxmox provider17:20
ninjixany debug env tips?17:21
marcoceppibooya :D17:21
imbrandonmarcoceppi: my drupal uber charm is in php17:21
SpamapSmade it simpler to read the configs17:21
marcoceppiyeah17:21
imbrandonbootsrapped in bash and majority of code is php17:21
imbrandonto do all the rest17:21
hazmatninjix, proxmox in what sense?17:21
hazmatninjix, as a local provider or controlling remote containers?17:22
ninjixI want my juju instances to launch faster so I'm going to cut cobbler middle man out17:22
hazmatgotcha17:22
imbrandonmarcoceppi: basicly after apt-get install blah blah , then eveything else is in php, kinda half way intentional to be diffrent and since drupal sysadmins/users likely will know it more so than python17:23
ninjixhazmat: remote proxmox qemu17:23
SpamapSninjix: remind me again.. proxmox is a virtualization frontend, like libvirt or XenServer ?17:23
hazmatninjix, cool, there's a half implemented xen server provider as well.. but the nutshell is look at providers/common/base.py  it basically defines the interface17:23
SpamapSimbrandon: yeah thats part of the reason juju just uses execs.. lets people write charms in whatever language they're comfortable in17:23
ninjixSpamapS: proxmox is a virtualization env more along the lines of ESX17:24
SpamapShazmat: there's one evil place in juju/unit/address.py where providers are ifelse'd17:24
hazmatninjix, here's a list of provider responsibilities, its a bit dated, we have constraints for machine/image selection now.. https://lists.ubuntu.com/archives/juju/2011-November/000906.html17:24
hazmatSpamapS, yeah.. its a dispatch for provider specific logic17:24
ninjixhazmat: thanks17:24
SpamapShazmat: should be moved into the providers as a new method of MachineProvider17:25
imbrandonyea, its not rally the _best_ for cli apps, but its definately not unpresidented , using the pear Console class and Drush ( php drupal cli app ) the community is already familiar with and saves me alot of code17:25
hazmatSpamapS, the things running that shouldn't have access to the provider17:25
SpamapSimbrandon: I wrote quite a few useful PHP cli apps at my former employer17:25
imbrandonsides release early realase often right, who knows maybe it will have some vb6 code before all said and done ;)17:26
hazmatSpamapS, but yeah.. it could use for some restructuring to push/centralize that knowledge to the appropriate place17:27
imbrandonyea i have as well, most were / are just phing extenstions though :)17:27
imbrandonback in a bit17:28
ninjixhazmat: ahh... wish I had the link last night... had to discover most of those behaviors and methods the hard way. :)17:28
hazmatalthough, mostly its just a dictionary lookup based on provider type which is commonly known, its an additional responsibility that's not advertised very well17:28
imbrandonbtw /waves , hi everyone else17:28
SpamapShazmat: ultimately, IMO, it should only take a directory in juju/providers to recognize a provider....17:28
SpamapShazmat: they're so close to being plugins already :)17:28
SpamapShazmat: just have to drop the hooks in juju/unit/address and juju/environment/config17:29
imbrandonso hows the namespace thing work with charms , first come first server ? are there plans to let remote charms be listed ( if anyone here is familiar with the "brew" and "tap" structure for OSS OS X apps is what i'm thinking, its like bsd ports and dpkg mixed up, but in a goood way )17:32
SpamapSimbrandon: flat namespace just like packages.17:32
imbrandonhrm kk17:32
hazmatSpamapS, while its true we could make them pluggable, my attempts to get independently distributed plugins into core have met with resistance17:32
SpamapSactually thats not entirelya ccurate..17:32
hazmatat least to the extent they relied on python specific mechanisms17:32
SpamapSimbrandon: local: and cs: are independent of one another..17:33
SpamapShazmat: hm.. I wonder why. :)17:33
imbrandonhazmat: heh i think thats what i'm asking about too in another way17:33
SpamapSany growth of the python version's capabilities means more for the go team to duplicate. I think its fair to resist non-essential extensions for that reason.17:33
SpamapSimbrandon: so your local:foo won't interfere with cs:foo17:34
imbrandonSpamapS: yea but what about dist, say i want something dist but not via the charm store17:34
imbrandonlike akin to adding a source to apt.list ( obviosuly diff )17:35
imbrandonso github:foo17:35
imbrandonor something17:35
SpamapSimbrandon: no, there's cs, and local, thats it17:36
imbrandonagain alot of this is brain puking as i'm just now wrapping my head around alot of this , so if i'm being to bothersome tell me to stfu and rtfm :)17:36
hazmatimbrandon, ninjix, at the moment, the best way to contribute a provider plugin is writing it in go.. but that won't be useful with 12.04. its not clear if we'd add any new pythons ones into 12.04.1 core if they didn't have go analogues.17:36
SpamapSimbrandon: of course, you can also have  cs:~imbrandon/precise/foo17:36
imbrandonahh gonna bake in lp like bzr did ?17:37
SpamapSimbrandon: its not LP actually, but yes17:37
SpamapSimbrandon: the charm store does pull from launchpad.. but it doesn't have to17:37
imbrandoncool17:37
ninjixhazmat: no problem. I'm learning as I go here. Going to use the Orchestra provider as my starting template.17:37
imbrandonhrm i guess thats where the bit hazmat was talking about adding a provider17:38
imbrandonerr wait17:38
imbrandonnot really cuz thats a deployment target not17:38
imbrandona source17:38
imbrandonhrm17:38
hazmatninjix, ugh.. the testing for that one is a bit gnarly17:39
hazmatninjix, i'd use the  maas provider, its probably the simplest of the bunch17:39
hazmatalthough its also the one with the least amount of real world usage.17:40
imbrandonso if it dont have to how do i specify cs:~imbrandon/precise/foo == github.com/bholtsclaw/charms/foo+branch_precise17:40
imbrandoni kknow there isnt now, but like is it planned or like a nono17:40
imbrandonand alot of it is just semantics as once the inital charm is downloaded then it can come from anywhere17:41
imbrandoni know that17:41
imbrandonokies, actually i got to run anyhow, thanks SpamapS and hazmat for entertaining my thoughts for a bit, i'll be back in hour or two to finish the drupal charm up today hopefully17:42
imbrandonand now i gotta come up with as uber name for it :)17:43
imbrandons#as#a17:43
ninjixhazmat: ok17:44
imbrandonSpamapS: btw dont you take weekends off ? hahaha j/k man17:45
* imbrandon is out17:45
SpamapSI do17:48
SpamapSand I'm out too17:48
SpamapS:)17:48
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away

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