/srv/irclogs.ubuntu.com/2014/06/18/#juju.txt

Marek1211Hi I was just wondering about scaling services. For example when we scale a wordpress services for load balancing by adding units...does it automatically manage replication of data like pictures from our main worpress service to the other? or how does it work?04:16
joseMarek1211: yes, as they scale horizontally and use the same database04:39
joseall that data is stored in the db04:40
joseif have to leave, but if you have questions you can also email juju@lists.ubuntu.com04:42
=== Ursinha is now known as Ursinha-afk
=== CyberJacob|Away is now known as CyberJacob
=== vladk|offline is now known as vladk
=== Ursinha-afk is now known as Ursinha
=== jam2 is now known as jam
=== vladk is now known as vladk|offline
MosibiWhen doing a 'juju bootstrap -e openstack', the bootstrapped instance is trying to connect (apt) to internet sources.07:43
MosibiHow/where can i configure that our own internal mirror is used for that?07:43
jamMosibi: there is a configuration item "apt-http-proxy" and "apt-https-proxy", but I don't know that there is a way to tell it to use a different mirror entirely07:54
Mosibijam: there are indeed several proxy config items, and setting http-proxy works, but we will end up with a totaly isolated (private) cloud. So i must have the possibility to point at our own mirror.07:56
Mosibijam: but thx for looking and answering!07:56
lazyPowerMosibi: you may have to stuff some of that info to rewrite teh proxies in cloud init. I would think we'd have an easier way to do it but thats all i'm coming up with08:01
lazyPowerand i'm far from an expert08:01
lazyPower..on that subject.08:01
MosibilazyPower: how does the integration with juju and cloud-init work?08:02
jamTim Penhey (thumper) was the one who did the original proxy setting stuff. He would be the one to ask why there wasn't just an explicit "use this mirror" instead.08:02
lazyPowerMosibi: cloud-init is isolated from juju. What you would be accomplishing with cloud-init is adding the proxy configuration logic so that info is written on the hosts first boot.08:03
MosibiCan i put/include some cloud-init config file that i can include with juju bootstrap?08:03
MosibiOr do ik have to hack it myself in juju-core?08:04
Mosibiik=i08:04
lazyPowerhttps://help.ubuntu.com/community/CloudInit08:04
lazyPowerMosibi: i'd do some light reading on cloud-init first to verify this is feesable.08:04
lazyPowerMosibi: and here's the openstack docs on using user-data with cloud-init: http://docs.openstack.org/user-guide/content/user-data.html08:05
MosibilazyPower: user-data can be used to solve my problem, but ther are also specific apt hooks08:05
Mosibibut how do i include that with a bootstrap?08:05
lazyPowerMosibi: ah, that i'm not real familiar with and would redirect to Thumper, or the mailing list.08:06
Mosibiack08:06
Mosibithx!08:06
MosibiThumper is not online on IRC?08:06
lazyPowerhe's not around atm. he may be out today - i'm not positive.08:07
MosibilazyPower: thx... i will hang around :)08:10
jamlazyPower: thumper is in AU so it is after midnight for him right now.08:11
jamMosibi: I think the mailing list is probably your best bet08:11
lazyPowerjam: i thought he was a Kiwi08:12
lazyPoweri guess thats close enough to be considered AU08:12
jamlazyPower: you'r right08:12
jamAU is my shorthand for way in the >+10 Timezones, but I do know he is in NZ08:12
lazyPowerI just remember that being important to distinguish in social situations... dont ask me why.08:13
* lazyPower is feeling kind of loopy being up this early08:13
=== CyberJacob is now known as CyberJacob|Away
MosibilazyPower: jam: we have a 'go' freak/fan/expert in our team. I am going to ask him to look at the juju-core code. Maybe he can implement it..08:35
lazyPowerthat would be pretty excellent. We love community contributions08:36
=== vladk|offline is now known as vladk
=== isviridov|away is now known as isviridov
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
=== vladk is now known as vladk|offline
=== vladk|offline is now known as vladk
dpb1hi lazyPower, sorry I missed our meeting on monday. I scheduled a last-minute vacation and forgot to decline my appointments.  :(13:45
hazmatMosibi, user data supports mirror config, its a matter of wiring that support through core.. as an env config option used when rendering cloudinit userdata.13:46
lazyPowerdpb1: no worries. I realized it was better suited to follow up with the charm mainainer than the landscape team.13:51
lazyPowerso i actually canceled it13:51
dpb1lazyPower: cool.  good to hear13:52
lazyPowerdpb1: thanks for putting up with my overzealous templar charmer persona. He has been sacked and replaced with more estute persona befitting a charmer.13:53
dpb1lazyPower: give the old chap my regards if you see him again. :)13:53
lazyPowerDuly noted.13:55
jrwrenMosibi: can you let me know what you find on that front? I've been curious about it for a while.13:56
=== pie is now known as Guest2308
allomovhey, all pardon me for ignorance, but what is this thing in juju-gui ? https://www.evernote.com/shard/s108/sh/bd43cfbf-7767-42b8-b1d1-9f874e8d882e/8582ddd01135755bd944cac368aef62414:09
allomovhey, all! pardon me for ignorance, but what is this thing in juju-gui ? https://www.evernote.com/shard/s108/sh/bd43cfbf-7767-42b8-b1d1-9f874e8d882e/8582ddd01135755bd944cac368aef62414:09
lazyPowerallomov: greetings. That's an indicator for how many services are attached to the subordinate charm.14:10
Guest2308Hi guys, I have a problem in bootstrapping juju environment with openstack. It creates the VM and install all software, but after apt-get installation the command returns "no instance found" error. Do you have any idea?14:12
allomovlazyPower: thank you for answer. still not sure I've got it right. is it count of external services or count of "green relations", could you tell where I can read about it ?14:13
lazyPowerallomov: https://juju.ubuntu.com/docs/authors-subordinate-services.html14:14
allomovGuest2308: can you try to ssh to this instance ?14:14
allomovlazyPower: great. thank you 1 > time14:15
Guest2308allomov: yes I have ssh access to instance14:16
Guest23082014-06-18 14:16:27 INFO juju.cmd supercommand.go:302 running juju-1.18.4-precise-amd64 [gc] 2014-06-18 14:16:27 DEBUG juju.agent agent.go:384 read agent config, format "1.18" 2014-06-18 14:16:27 INFO juju.provider.openstack provider.go:202 opening environment "openstack" 2014-06-18 14:17:27 ERROR juju.cmd supercommand.go:305 no instances found 2014-06-18 14:17:29 ERROR juju.provider.common bootstrap.go:123 bootstrap failed: rc: 114:19
=== jacekn_ is now known as jacekn
dpb1tvansteenburgh: hey there -- I pushed an update: https://code.launchpad.net/~davidpbritton/charms/precise/apache2/avoid-regen-cert/+merge/221102  sorry about that!15:28
leftyfbwhere can I get help to understand how the nagios/NRPE charms work? Specifically, as an example, with an apache charm being monitored, why isn't the nagios charm monitoring port 80 and/or why isn't the NRPE charm monitoring the apache2 service locally?15:33
automatemecolemahypothetical question: what happens if I lose access to my zookeeper? I'm really afraid to use juju for enterprise consumption because of so any unknowns15:53
tvansteenburghdpb1: thanks! i'll have a look after lunch16:00
marcoceppiautomatemecolema: we haven't used zookeeper in over a year. I assume you mean the bootstrap node, but I have to ask: What version of juju are you using?16:00
automatemecolemayes I mean the bootstrap node16:00
automatemecolemathe latest baked into 14.04 now16:01
automatemecolemaAlso, does anyone have a good place to point me on development around building charms with puppet?16:03
=== cHilDPROdigY1337 is now known as nottrobin
=== wendar_ is now known as wendar
automatemecolemaSomething I've noticed using the trusty juju-gui charm is dragging and dropping your .yaml files into the canvas doesn't work so great16:43
automatemecolemaWorks fine with precise16:43
automatemecolemaOr do I have it wrong, and my environment has to be running in quickstart bootstrap to get that bundled functionality16:44
=== isviridov is now known as isviridov|away
dpb1Can I mix and match local provider lxc and kvm containers?17:11
automatemecolemadpb1 I don't see why not17:16
automatemecolemaYou would specify to local environments17:16
automatemecolematwo*17:16
dpb1automatemecolema: ok, good idea, thx17:18
* dpb1 searches for special foo to get that work (something with an alternate port for the mongodb process)17:18
automatemecolemabinford2k so your saying you feel like there are major concerns with running foreman in the area of performance and reliability? That doesn't really answer the question though, because if you can write something better, then why doesn't something better exist?17:18
marcoceppitvansteenburgh: hey, I've got a merge on it's way for charm-tools, last bug before release, will you be around to review in about 20 mins?17:20
pmatulisi did 'juju destroy-environment local' and now i would like to start fresh.  but neither 'juju bootstrap' ('environment is already bootstrapped') nor 'juju deploy wordpress' ('environment is no longer alive') works17:35
sparkiegeekpmatulis: what does juju status show?17:37
=== vladk is now known as vladk|offline
pmatulissparkiegeek: it does show the previous machines (lxc containers).  weird17:38
=== CyberJacob|Away is now known as CyberJacob
sparkiegeekpmatulis: be brutal and try "juju destroy-environment --force local"17:38
marcoceppitvansteenburgh: https://code.launchpad.net/~marcoceppi/charm-tools/require-series/+merge/22362017:42
pmatulissparkiegeek: actually, i think i messed up my lxc machines.  how do i really start fresh with juju?  can i remove ~/.juju and do the bootstrap thing?17:44
automatemecolemaI probably wouldn't remove juju17:45
sparkiegeekpmatulis: IIRC there's a "kill" plugin17:45
sparkiegeekpmatulis: https://github.com/juju/plugins/17:45
sparkiegeektry that first :)17:45
automatemecolemadid you try the force parameter to kill the environment?17:45
pmatulisautomatemecolema: yeah, that's what i did originally17:45
automatemecolemabut juju status still shows the environment is still around?17:46
pmatulisyeah17:46
pmatuliscan't i just remove some file(s) under ~/.juju ?17:46
pmatulisand then bootstrap thingy?17:46
automatemecolemayou can remove the environments.yaml file and the file inside the environments directory .env17:47
automatemecolemathen do a juju init17:47
automatemecolemaand reconfigure your environments file and try another bootstrap17:47
avoinepmatulis: check this out: http://askubuntu.com/questions/403618/how-do-i-clean-up-a-machine-after-using-the-local-provider17:48
pmatulisavoine: wow ok, that's a lot of stuff but it looks like what i'm after17:49
automatemecolemaavoine nice find17:50
tvansteenburghmarcoceppi: ack, will review this afternoon17:51
arosalespmatulis: I think you can safely keep your environment.yaml around. Its the ~/.juju/environments/local.jenv is the file that has tripped me up.17:53
pmatulisarosales: i removed it but still no dice17:54
pmatulishmm, almost there:17:54
pmatulisjuju bootstrap17:54
pmatulisERROR cannot use 37017 as state port, already in use17:54
arosalespmatulis: if your home directory is encrypted you will need to make sure juju is using a mount point outside your home dir.17:55
pmatulisarosales: no encryption17:55
arosalesok17:55
arosalespmatulis: sounds like mongo is still running17:55
pmatulisarosales: killed it, but now back to square one:17:57
pmatulisjuju bootstrap17:57
pmatulisBootstrap failed, destroying environment17:57
pmatulisERROR environment is already bootstrapped17:57
arosalesafter you kill mongo you'll need to clean up once more from your previous bootstrap17:57
arosaleshttp://blog.naydenov.net/2014/03/remove-juju-local-environment-cleanly/ also had some nice script suggestions from the link automatemecolema provided17:57
arosalespmatulis: so consider killing mongo in the same swoop when cleaning up lxc and juju17:58
pmatulisgrrr17:59
pmatulisbootstrap worked but the new wordpress/mysql setup failed:18:15
pmatulishttp://paste.ubuntu.com/7664967/18:15
=== vladk|offline is now known as vladk
pmatuliswow i actually learned something.  i looked at the logs ~/.juju/local/logs/unit-wordpress-0.log and found & corrected the error18:39
pmatulisall good now, at least according to 'juju status'18:39
tvansteenburghmarcoceppi: require-series patch back to you18:52
marcoceppitvansteenburgh: thanks, I was about to write tests, but got distracted18:54
josehey mbruzek, are there any chances you may check the owncloud MP again today?18:59
pmatulissudo find / -name charm | grep wordpress19:01
pmatulis/vol1/lxc_images/ubuntu-local-machine-1/rootfs/var/lib/juju/agents/unit-wordpress-0/charm19:01
pmatuliswhere do i find the actual charms?  after deploying wordpress & mysql i found that ↑19:01
pmatulisbut nothing for mysql19:01
tvansteenburghdpb1: i don't see a new commit on apache2/avoid-regen-cert19:03
dpb1tvansteenburgh: pushing now.  D'oh!19:05
tvansteenburgh:)19:05
dpb1r5719:05
tvansteenburghcool, thanks!19:05
dpb1tvansteenburgh: I also want to make the same change against trusty, should that be a separate mp?19:06
tvansteenburgheh, i think so? lazyPower?19:06
tvansteenburghor marcoceppi, mbruzek? (see dpb1's questions above) i assume the answer is yes...?19:11
mbruzekdpb1 yes19:12
marcoceppidpb1: yes19:12
marcoceppiunfortunately19:12
dpb1all: thanks19:15
jcastromarcoceppi, https://github.com/juju/docs/commit/6bdac65670c9fcedfa5421b615ee08cc0c9d9ccf19:20
jcastrowhat does this metadata field do in the markdown?19:20
marcoceppiwhat?19:20
marcoceppirather, can you re-ask your question jcastro?19:20
jcastrose how he added19:20
jcastro+ Title: blah blah19:21
jcastroin the markdown19:21
jcastrowhat does that mean?19:21
marcoceppino idea, there's no plugin for that to my knowledge19:21
marcoceppiIt's going to render like crap in the live docs19:21
aquariusjose, ping19:22
joseaquarius: pong19:22
jcastromarcoceppi, maybe he added stuff?19:22
joselooks like you read that post :)19:22
aquariusjose, you wanted my help to charm soonsnap?19:22
marcoceppijcastro: I don't see it anywhere19:22
aquariusI did. :)19:22
joseaquarius: yeah, check http://ec2-54-85-96-127.compute-1.amazonaws.com/19:22
marcoceppiwe already track metadata about the page in the navigation19:22
joseaquarius: when I click the buttons nothing happened, I just downloaded apache and clones19:23
josecloned*19:23
aquarius"ReferenceError: io is not defined" in the console.19:23
aquariusthat looks relevant.19:23
jcastromarcoceppi, commits on truck without review? tsk tsk.19:23
joseaquarius: if you want, I can give you ssh access to the box so you can take a look19:23
marcoceppiwe should get a bot lander to force no one being able to commit on trunk19:23
aquariusyou don't have socket.io installed, by the look of it19:23
marcoceppijcastro: like what core is doing19:24
josehmm, /me checks19:24
aquariusjose, did you npm install?19:24
jcastromarcoceppi, https://github.com/juju/docs/commit/d8504af882455766389ccc095a0551ead78d13b419:24
joseaquarius: not actually19:24
jcastromarcoceppi, yeah, we should be doing that anyway19:24
aquariusthat's likely to be a reasonable part of the problem, then19:24
marcoceppijcastro: looks like he made a new plugin19:24
aquariusjose, note that it's a node application. It's not a pure client-side app. So the server is run with "node app.js", as you'll see from Procfile19:25
joseah, ok19:26
aquarius(or from "npm start", as defined in package.json)19:26
jcastroo/ aq!19:26
aquariusIt can't be pure client-side until everyone supports webrtc. :)19:26
aquariusheya jcastro!19:26
=== roadmr is now known as roadmr_afk
josenpm ERR! message failed to fetch from registry: socket.io, weird19:26
joseI'm just creating a brand new machine19:28
joseaquarius: any idea on why I may get http://paste.ubuntu.com/7665293/ ?19:34
josefresh install, just installed npm19:35
aquariuserm19:35
aquariusshould work19:35
aquariuseverybody uses express.19:35
aquariusmight just be npm weirdness19:35
aquariusah19:35
aquariusyou're using an ancient node19:36
aquariususe a newer one.19:36
josehmm, those are the ones from the repos, I may need to get one from a PPA19:36
aquariusindeed, yeah19:36
josedo you think https://launchpad.net/~chris-lea/+archive/node.js/ is recommended?19:37
aquariustrusty has a modernish node19:37
aquariusif you're on something old, then use chris lea's ppa, indeed19:37
aquariusthat's what I use19:37
joseawesome, thanks19:37
joseI'm on precise, so... :P19:38
joseaquarius: awesome, looks like I got it working. thanks! :)19:48
aquariusexcellent.19:49
joseI hope you'll see that charm on the store soon :)19:49
joseaquarius: want it to be listed as soonsnap or pubphoto?19:50
aquariusdon't know19:51
aquariuspubphoto was its original codename19:51
josewell, it's your app19:51
joseI can do whichever you like19:51
aquariussoonsnap is what the live real version is called19:51
aquariusmaybe call it pubphoto19:51
aquariusso it doesn't conflict :)19:51
joseok, pubphoto then19:51
joseI'll make sure to edit the index.html in order for it to display pubphoto and not soonsnap :)19:52
jcastrojose, I need to pick a new charm school schedule19:53
jcastroshould I just put them directly on the onair cal?19:53
josejcastro: you just let me know and it'll be done19:53
joseyou can do that too19:53
jcastroI can add them19:53
josebare in mind that there may be cases when I won't be available to host19:53
jcastrothat's fine19:54
jcastroI can host19:54
jcastroI like to work too. :)19:55
jose:)19:56
joseremember to let me know when you can have that call19:56
lifelessjcastro: you like to work it19:56
jcastroI need to step it up before jose ends up doing everything, heh19:56
joseaquarius: also, you have your analytics code on the branch19:57
aquariusjose, feel free to take that out if you want19:57
josecool, thanks19:57
=== michael__ is now known as Guest48997
=== lazyPower is now known as lazypower-travel
=== vladk is now known as vladk|offline
wrale_can i deploy ceph osd and nova compute charms on the same node?  I have 67 nodes with two 3tb disks in each..  i'd like all nodes to be both ceph storage node and hypervisor for openstack20:30
wrale_*67 compute nodes20:30
josehey guys, does anyone know how can I run an node.js app in a port lower than 1024 without being sudo/root?20:36
josewrale_: if you notice, there's a machine number for each node. just do 'deploy charmname --to #' where # is the machine number20:37
josenot sure if it will work for openstack, though, I haven't played with openstack :)20:37
wrale_thanks jose.. i'll try that20:37
joseor you can do lxc:# instead of just # and it'll deploy it in an LXC container inside that machine20:37
josewrale_: ^20:37
joselet me know how it went20:37
wrale_will do.. once my maas node installs and the rest comes together.. :)20:38
wrale_using 14.04 LTS now..20:38
wrale_first time20:38
joseawesome!20:39
wrale_maas on 12.04 hated me ..lol .20:39
=== roadmr_afk is now known as roadmr
joseif you have any troubles with maas, people in #maas may be able to help you20:42
wrale_they ignored me :)  but it's cool now, i hope20:44
jrwrenjose: if you can use your own nodejs binary, CAP_NET_BIND_SERVICE might work.20:51
josejrwren: figured it out, looks like setcap will be useful20:52
josethanks :)20:52
=== roadmr is now known as roadmr_afk
=== roadmr_afk is now known as roadmr
achianganyone know how to work around https://bugs.launchpad.net/charms/+source/mongodb/+bug/131238921:39
_mup_Bug #1312389: Need to make trusty version of the charm available in the charm store <mongodb (Juju Charms Collection):New> <https://launchpad.net/bugs/1312389>21:39
achiangi suppose i should just type juju deploy cs:precise/mongodb instead21:46
achiangswitching topics... i had a bug in another charm i wrote. i think i've fixed the bug... but how do i redeploy the charm to test it?21:55
tvansteenburghachiang: juju destroy-service mycharm && juju deploy mycharm21:59
achiangtvansteenburgh: ok. that's kinda what i figured21:59
achiangthanks21:59
tvansteenburghsure thing22:00
joseachiang: make sure to specify it's local and set the repository location22:02
achiangjose: no, that wasn't it. i had to issue juju resolved <unit> multiple times22:02
joseyou mentioned redeployment of a charm you fixed, you need to specify those to deploy a local charm22:03
achiangjose: i was already deploying a local charm though22:04
joseah, ok22:04
achiangjuju destroy-service doesn't seem to have removed the machine from my pool22:04
achiangi guess i need to do that manually22:04
josecorrect, it just destroys the service, but not the machine22:04
joseterminate-machine #22:04
achiangthat seems silly22:05
achiangif i remove a service, juju should know what machine it's assigned to. if no other services are on that machine, it should remove the machine from the pool automatically22:05
josewhat in the manual provider?22:05
tvansteenburghbut you might want to reuse it for something else22:05
tvansteenburghit's faster to deploy a service to an existing machine22:06
achiangtvansteenburgh: well... when i did the 2nd juju deploy mycharm, it created a new machine instead of reusing the existing machine22:06
tvansteenburghyeah, that's the default22:07
joseyou could've specified --to # and deployed it to an existing machine, though :)22:07
achiangof course the knobs are there -- i am simply relating my onramp experience with juju as a new user, who has heard many magical things about it, and discovering that it's not quite so magic22:08
sarnoldachiang: I think the reasoning also includes "don't destroy the user's data"22:09
achiangsarnold: what are the semantics of 'destroy-service' then?22:09
achiangthe verb 'destroy' would normally imply... destroy ;)22:10
sarnoldachiang: as I understand it, tear down the service but preserve the machines/data in case you want to collect it before terminating instances or storage22:10
achiangwell, we have 'destroy-service' and 'remove-machine'22:10
achiangmy mistake22:11
achiangit is remove-service, not destroy-service22:11
achiangat least according to the docs22:12
tvansteenburghthe latter is an alias22:12
tvansteenburgh`juju help commands`22:13
sarnoldI could see a 'destroy-' variant cleaning up after itself...22:13
joseI agree that destroy- sounds a little bit more... aggresive22:14
=== CyberJacob is now known as CyberJacob|Away
josenew charm on the revq22:39

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