/srv/irclogs.ubuntu.com/2015/02/27/#juju.txt

=== ericsnow_afk is now known as ericsnow
halcyonHye ..does anyone hv idea why I cannot ssh into vm as I already installed juju and setup the vm and add services and relation01:18
halcyonlast day I am able to view juju gui admin via web browser01:19
halcyonhowever, I hv to shutdown the host and today I cannot ssh into vm 1 as it said no route to host...01:19
halcyonanyone could help me01:19
halcyonhello01:36
halcyoncould anyone help me why I cannot ssh to machine 1 and as a result the juju-gui admin cannot be view01:37
halcyonI do check the status but all services mentioned is in the state of down01:38
thumperhalcyon: which provider?02:33
thumperhalcyon: have you checked that the VMs are actually started?02:33
halcyonlocal provider'02:46
halcyonalready started yesterday02:46
halcyonthumper: local provider02:47
thumperhalcyon: what do you see with 'sudo lxc-ls --fancy' ?02:47
halcyonthumper: nothing , is it something with lxc??02:48
thumperhalcyon: unless you told it to use kvm02:49
thumperhalcyon: you said it was working yesterday?02:49
halcyonthumper: yes , working yesterday02:49
thumperwhich version of juju?02:50
halcyonthumper: I managed to view gui admin already02:50
halcyonthumper: i'm not sure, how do I check the version??02:50
thumperjuju version02:50
halcyonthumper: 1.21.1-trusty-amd6402:52
thumperare you sure you used the 'sudo' part?02:52
thumperotherwise you are asking about user space lxc containers02:52
thumpersudo lxc-ls --fancy02:52
halcyonyes I used sudo02:53
halcyonanyway I can ssh into machine202:54
halcyonthumper: anyway I ccomnnect ro machine202:54
thumperif lxc-ls is not showing the containers, then you are probably not using the local provider02:55
thumpertype 'juju env'02:55
halcyonthumper: in my environments.yaml file I mentioned kvm as the container02:55
thumperah02:55
thumperthen you are using kvm containers, not lxc02:55
thumperwhich would explain why you can't see lxc containers02:55
thumperI'm not familiar enough with the kvm tools to help just now, but likely that the first machine didn't restart properly02:56
thumpernot sure why02:56
halcyonok I check juju env it mentioned local02:56
halcyonthumper: how can I restart back machine 102:57
halcyonmachine 2 I can connect as well02:57
thumperwhat does juju status say? (pastebin plz)02:57
halcyon "1":     agent-state: down     agent-state-info: (started)     agent-version: 1.21.1.1     dns-name: 192.168.122.109     instance-id: halcyon-local-machine-1     series: precise     containers:       1/lxc/1:         agent-state: down         agent-state-info: (started)         agent-version: 1.21.1.1         dns-name: 192.168.122.134         instance-id: halcyon-local-machine-1-lxc-1         series: precise         hardware: arch=amd64  02:59
halcyonthumper: this is machine 102:59
thumperyou can try this:  'ssh ubuntu@192.168.122.134' to see if the vm is up03:00
thumperhang on03:00
thumperthat is the lxc container inside03:00
thumperssh ubuntu@192.168.122.10903:01
halcyonthumper: yes lxc container is there03:03
halcyonthumper: ssh ubuntu@192.168.122.109 still get the same error , no route to host03:04
halcyonthumper: u hv any idea why?03:04
thumperyes, the VM didn't start03:05
thumperI don't know why the VM didn't start03:05
thumperI'd probably start by looking for the kvm logs locally03:05
halcyonthumper: ok , how do I check kvm logs locally??03:07
* thumper shrugs03:07
thumpernot sure03:07
thumperI'd guess something like: /var/logs/kvm03:08
thumperif you are not familiar with kvm, why use it with the local provider?03:08
halcyonthumper: previously I deploy service using this command03:08
thumperyou obviously had to choose it03:08
halcyonthumper: i'm just beginner, I follow the instruction only03:09
thumperok, in which case, lxc is much better...03:09
thumperwhich instructions said to use kvm?03:09
halcyonlike this my command : juju deploy juju-gui --to lxc:103:09
halcyonhmm...using dell whitepaper03:10
halcyonfrom above command I understand tht I deploy a service to lxc container in machine 103:10
halcyonthumper: how should I do now in order to start back my vm03:15
halcyonthumper: I try edit environments.yaml file and replace container: lxc03:16
halcyonthumper: ??03:16
thumperif you are just playing around, destroy the environment and try again with  the basic local provider03:16
thumperand just use 'juju deploy juju-gui' with no --to03:17
thumperor alternatively, find the docs on 'juju quickstart'03:17
thumperwhich also helps here03:17
lazyPowerthumper: quickstart isn't in the official doc site03:17
thumperlazyPower: oh? why?03:18
lazyPowerwe've got a pinned TODO to get that done - it only exists in the UX blog at present03:18
lazyPowershould see that land early next week actually03:18
rick_h_thumper: because quickstart doesn't support windows and so it's not the official way to go03:21
thumperrick_h_: ok, cheers03:22
rick_h_thumper: and we've got a todo to help with a quickstart docs section as a sub-section then to help it03:22
thumperlazyPower: could you point halcyon in the direction of some good new starter documentation?03:22
rick_h_but <3 you think of us :) quickstart ftw03:22
thumperrick_h_: you guys are awesome03:22
halcyonthumper: can I used command line for quickstart03:22
thumperrick_h_: remember that I love you guys when you do my 360 review :-)03:23
thumperrick_h_: if you were asked that is03:23
lazyPowerthumper: as of today - https://jujucharms.com/docs/getting-started03:23
rick_h_halcyon: yes, quickstart is a cli tool that helps bootstrap and get a gui running quickly03:23
* thumper chuckles03:23
rick_h_thumper: yea, on my todo list03:23
rick_h_thumper: damn 360s :P03:23
thumperI've done mine...03:23
halcyonthumper: if it means basic local , it means w/o kvm??03:24
thumpercorrect03:24
rick_h_man, I had 8 reviews to do already just with myself/team. Though I like the nice short/sweet format of the 360's this go round03:25
halcyonthumper: which manual do u used? could u share with me03:25
lazyPowerhalcyon: https://jujucharms.com/docs/config-LXC03:25
thumperhalcyon: lazyPower recommends  https://jujucharms.com/docs/getting-started.  I didn't use a manual, I work on the Juju project03:25
halcyonthumper: I hv already play around several times and this include my 4th times I would need to destroy the environment03:25
* thumper destroys environments regularly :)03:26
lazyPowerhalcyon: i'm sorry you've had a rough go, its hard for us to QA any dell documents around juju or even know how out-of/up-to date they are.03:26
lazyPowerhowever, thats the power of the local provider, is its intended to be a staging environment to be used for development and evaluation of charms - its not a full provider thats intended to be used for production purposes03:26
lazyPowerthat would be left to a public/private cloud (and if they aren't officially supported - the manual provider lets you orchestrate them too!)03:27
lazyPoweri invite you to look at our docs, and if you have any issues with them, file a bug - we'd be more than happy to help you work through the problems and fix anything you feel is a weak point in our official docs03:27
halcyonlazypower: i see..btw tq..I'm bit stress coz dont know y my vm suddenly cant ssh ...:D03:28
lazyPowerhalcyon: so you say VM - you're using a KVM provider03:28
lazyPowerare you using a front end to that like virt-manager?03:28
halcyonlazyposer: yes I do install virt-manager as well\03:28
lazyPowerif so, why not fire it up using virt-manager and give it a look? see what the IP address is, i imagine what has happened is your KVM is set to obtain an IP from your DHCP server, when it came back online the IP address has changed03:29
halcyon*lazyPower03:29
lazyPowerwhich means we'll need to edit some config files03:29
lazyPowerhalcyon: its super simple - i've outlined the process here - http://blog.dasroot.net/reconnecting-juju-connectivity.html03:29
rick_h_lazyPower: did you get your demo stuff all good?03:31
rick_h_lazyPower: e.g. keys and isos end up helping?03:31
lazyPowerrick_h_: i've got the iso's but i've been having a real bummer of a time getting the win2k12 image to boot properly03:31
rick_h_:(03:31
halcyonlazyPower: ok let me clear my mind, I would destroy the environment again and would try to bootstrap new environment which still local...and I'll not follow from dell whitepaper anymore03:31
lazyPoweryeah 11'th hour of this project03:31
lazyPowerwhich is why you see me this late :)03:31
lazyPowerhalcyon: i'll be around to help if you need anything03:31
halcyonit make me confused anyway to refer to many manual in once03:31
lazyPowerhalcyon: i would recommend giving the LXC packages a try - which was linked above.03:32
rick_h_lazyPower: ugh, best of luck man03:32
lazyPowerrick_h_: thanks :)03:32
halcyonlazyPower: ok noted03:32
halcyonlazyPower: thnkx :)03:33
halcyonlazyPower: I already follow the manual using local provicer04:05
halcyonlazyPower: but when I exposed the service I cannot view in web browser , it said bad gateway...is it something to do with my firewall??04:06
lazyPowerhard to tell - what service?04:07
halcyonhalcyon: wordpress04:07
halcyonlazyPower: wordpress04:08
lazyPowerhalcyon: ok, i'm assuming you deployed a mysql service as well, set data-size to 20% (its bugged on local provider, thats called out in teh readme) and added a relation between wordpress and mysql?04:08
halcyonlazyPower: do l need to do something with bridging part, coz I did some bridge connectivity before? and it able to display04:09
lazyPower*data-set-size04:09
halcyonlazyPower: I forget to set constraint yet on the machine I created yet04:10
halcyonlazyPower: just try to exposed the service first04:10
lazyPowerhalcyon: let me get some more info about your deployment environment, this is all running on your local machine right?04:10
halcyonlazyPower: yes local machine04:11
lazyPowerok, good - the 502 bad gateway typically is one of 2 things04:12
lazyPoweryou either attempted to load teh service before it was done configuring, or something went awry during the service configuration04:12
lazyPowerthe 502 bad gateway is coming back from apache trying to communicate with the php-fpm daemon04:12
lazyPowerrun this and see if there is any log information beign emitted from teh wordpress unit04:12
lazyPowerjuju debug-log -x machine-004:12
halcyonlazyPower: I already exposed and the command executed correct, then I prompt juju status it display the public ip-address\04:13
halcyonlazyPower: I'm trying once again04:15
halcyonlazyPower: and will let u know hows04:15
lazyPowerok04:18
=== Murali_ is now known as Murali
halcyonlazyPower:  i'm able to display and view the wordpress04:30
lazyPowergood news!04:30
halcyonusing local machine04:30
halcyonlazyPower: tq :)04:30
halcyonlazyPower: hye! if let's say I would like to view the service using web browser from other machine in my home network , it wont allow , right?? so how would I configure all those ? it is smtg to do with networking am I right?07:19
lazyPowerhalcyon: it can be tricky -  i suggest to read this thoroughly before you follow it blindly07:20
lazyPowerhttp://blog.dasroot.net/making-juju-visible-on-your-lan.html07:20
lazyPowerhalcyon: what you can do is use sshuttle to create a vpn style connection between two pcs and you wont have to make any changes in your networking07:21
halcyonlazyPower: will try read the article first07:24
=== Murali_ is now known as Murali
=== Murali_ is now known as Murali
=== Murali_ is now known as Murali
halcyonlazyPower: have u experience on how from host to supply IP to the services or vm created under juju?08:37
halcyonhalcyon: is it possible to do so??08:37
halcyonlazyPower: is it possible to do so?08:38
=== yo61 is now known as Ho
=== Ho is now known as yo61
Muntanerhello guys o/15:15
marcoceppihey Muntaner15:15
Muntanerhi marcoceppi15:16
Muntanerdid you read my question in juju-dev? :)15:16
marcoceppiso, the way WordPress does this, you don't want to install MySQL on the machine itself because then you lose scale15:16
marcoceppiMuntaner: yup!15:16
jrwrenMuntaner: do you mean the web application is installed via apt and it is asking you debconf settings?15:16
Muntanermarcoceppi, exactly: I would like to use the mysql existing charm15:17
marcoceppiMuntaner: what software are you installing? out of curiosity15:17
Muntanerthe web application (prestashop) asks, in installation phase, where the mysql server is15:18
Muntaneryep marcoceppi, it's prestashop15:18
jcastrodoes it write that information to a config file?15:18
Muntanermarcoceppi, https://www.howtoforge.com/prestashop-ubuntu-14.04 <- I'm trying to follow that guide15:18
frendaHi15:18
Muntanerjcastro, dunno exactly - I started working on it this morning15:18
marcoceppiMuntaner: Yeah, one thing you can do is just bypass the whole web interface and write the configuration file directly when you get the values15:18
frendaI've written an app, it's a accountancy software. I want to force people to use a hosted solution via my domain.15:19
frendaI need a hosting service and I need a software to manage auto-installation15:19
frendaUsers should be able to update themselves!15:19
Muntanermarcoceppi, so, does prestashop use this configuration file? not sure about that15:19
frendaI want something like this: https://community.nodebb.org/topic/2552, what is you advice?15:19
frendaCan juju help me?15:20
marcoceppiMuntaner: another thing you can do is just use CURL to hit the webpage when teh database relation connects and seed the information you would normally fill out to have it completed there15:20
marcoceppiMuntaner: let me take a looksy15:20
Muntanermarcoceppi, another curiosity: how do I tell to the mysql charm (or my personal charm?) the user and password to use on the DBMS?15:21
MuntanerI know I look noobish, but first time I try this stuff :)15:21
marcoceppiMuntaner: you don't tell it, when you connect MySQL to your charm MySQL will create a schema name, username and password when you connect and it'll tell that information to your charm15:22
frendaThis is an example: http://vanillaforums.com/plans15:22
marcoceppiMuntaner: It looks like you can put the configuration values in config/settings.inc.php15:22
frendaI want to have something like that, can juju do it?15:22
marcoceppiMuntaner: I recommend checking out the WordPress charm and seeing how it manages the database information, etc. You'll need to do something similar when writing prestashop15:22
marcoceppiMuntaner: https://jujucharms.com/wordpress/15:23
Muntanermarcoceppi, that's a really good idea15:23
Muntanermarcoceppi, so... does wordpress have an apache2 "inside" itself?15:23
marcoceppiMuntaner: in this case yes, the charm even lets you choose between nginx or apache215:23
jcastrofrenda, sure, you can use juju to deploy whatever a customer wants for example15:24
Muntanermarcoceppi, great!15:24
Muntanerit looks clearer now15:24
frendaSo, Is juju a SaaS?15:24
marcoceppifrenda: well, no15:24
marcoceppifrenda: you can create a SaaS around juju, but it will require you to codify all the SaaS bits15:24
jcastronot really, you can use juju to deploy a saas15:24
marcoceppiJuju is just a deployment/service orchestration tool15:25
frendaIt's not important for to be/not be a SaaS; I just need something to automate installation of my software for customers15:25
jcastroyeah, that's what it can do15:26
frendafor me*15:26
frendaSo Juju can do it, yes?15:26
jcastroyes15:26
frendaDo you have any hosted juju or I should find a hosting service?15:27
jcastroI don't know of any hosted juju solutions atm15:27
mwakhelo15:29
frendaWhat does 'jujucharms.com' offer currently? Isn't it installed Juju?!15:32
frendaIs Juju translate-able?15:33
frendaIs it also RTLable?15:34
marcoceppifrenda: no, jujucharms.com is a sandbox to play with juju, Juju is written in golang, not sure if the client is easily translatbale or not, not sure what RTLable is15:36
frendaRTL: Right-to-Left for RTL language15:37
marcoceppiwell, juju is a command line tool, I'm guessing you're talking about the Juju GUI15:38
frendayes, I'm talking about demo.jujucharms.com (GUI)15:40
marcoceppifrenda: that's something seperate from juju but works with juju. It's actually itself a charm15:40
marcoceppifrenda: https://github.com/juju/juju-gui15:41
frendawell; tanx15:41
nicopacewhit, marcoceppi, asanjar, jcastro, arosales: Hi guys... just letting you know that today is my last day for canonical, and there are over 30 pending branches (and some that couldn't ask for merge because of pending bugs): https://code.launchpad.net/~nicopace/+activereviews https://bugs.launchpad.net/~nicopace/+reportedbugs15:55
jcastroack16:00
nicopacewhit, marcoceppi, asanjar, jcastro, arosales: all of the merge requests are pretty small... i'm sure you will be able to review them pretty fast (if you have time)16:03
whithey nicopace dunno how much time you have left, but combining tests against the same charm into a single MP would greatly speed up reviewing16:05
nicopacewhit: i don't get how this could increase the speed, as each of the tests builds it's own environment16:06
whitnicopace,  not the speed of the tests running, the amount of work required for an reviewer16:07
nicopacewhit: btw, i left you some comments on my possition about integrating all tests in one setup-teardown step16:07
whitnicopace, I saw those16:07
whitnicopace, I believe I replied16:08
nicopacei think not :(16:08
* whit will check for new one16:08
nicopacewhit ^16:08
whitah ok, maybe I did not hit send16:08
whitnicopace, in summary, there are many times when in the course of reviewing charms, reviewers need to run all the tests themselves16:09
nicopacewhit, and is better if you have them all together?16:10
nicopacewhit, i can merge them for you if it lightens the job16:10
whitnicopace,  wrt to merge proposals,  a single MP for a group of tests is preferable16:10
arosalesnicopace: we'll hammer on them. How much longer are you available today?16:11
nicopacewhit: ok, i'll send you a list of links via email then16:11
nicopacearosales: 4 more hours16:11
whitnicopace, wrt the separation of tests and fixtures, don't worry about that, the way you have done it is idiomatic for the how tests are written now16:12
* whit would just like to improve that16:12
nicopacewhit: i've already done that16:12
jshiehHey, is there a maintained list or a web site where I can look at all the available charms that work on Power?  Obviously 14.04, but I'm not to sure that ALL trusty charms work on Power.  Clarification appreciated16:12
nicopacewhit: i disagree in merging multiple tests into one big setup-multiple tests-teardown block16:12
nicopaceas one failure (or side effect) could affect the others16:13
nicopacewhit ^16:13
whitnicopace, of course it depends on the test and what you are testing of course, but for the examples I was looking at with logstash forwarder, iirc most of those tests were not creating actions that should have sideeffects16:16
whitand considering the time for spin up and teardown, if even one of those tests did not need isolation, combining would be a win16:16
whitnicopace, understand this though, what you did was perfect correct for the corpus of examples we have16:16
whitI just think we are generally doing it kinda wrong16:17
whitnicopace, please understand per my message to the list, this is a critiscism of how we do charm testing, not of your work16:20
mbruzekjshieh: There used to be a list only a few of the charms did not work on Power (ones that depended on specific architecture).  Which charms are you specifically interested in?16:22
jshiehActually, my goal is to "debug" those that don't work on Power. i.e. find out what the issue is and help it along, where possible16:23
jshiehso I'm trying to find the delta16:23
jshiehAnd, also trying to determine if the list has widened since the last list was generated and debug that too, if possible16:23
nicopacewhit: i understand16:24
nicopacewhit: i'll merge the different branches, and send you an email16:25
whitnicopace, awesome! thanks16:25
mbruzekjshieh: https://bugs.launchpad.net/charms/+source/hive/+bug/135608616:25
mupBug #1356086: Charm fails on PPA  <audit> <ppc64el> <hive (Juju Charms Collection):New> <https://launchpad.net/bugs/1356086>16:25
mbruzekjshieh: A charm could fail on power for many reasons, in this case it is using a ppa which does not build a power version16:26
mbruzekjshieh: https://bugs.launchpad.net/charms/+source/phpmyadmin/+bug/135002316:27
mupBug #1350023: Charm fails on charm helper PPA <audit> <ppc64el> <phpmyadmin (Juju Charms Collection):New> <https://launchpad.net/bugs/1350023>16:27
jshiehright.  appreciate this.  Also, I have:  https://bugs.launchpad.net/charms/+bugs?field.tag=ppc64el16:27
mbruzekjshieh: Yes that is the list16:28
mbruzekthat we know about16:28
jshiehokay - thanks.  I wanted to confirm.  Building a list, etc...thanks for pointers.16:28
mbruzekjshieh: happy to help, if you have more questions ping me directly I worked on this last year.16:29
jshiehahhh, great.  will be in touch soon!16:30
mbruzekjshieh ... oh he left16:31
nicopacewhit, marcoceppi, asanjar, jcastro, arosales: i've sent you the first batch of merged tests16:43
nicopaceafter lunch i'll send you the rest16:43
nicopaceregards16:43
arosalesnicopace: thanks16:43
=== ant______ is now known as antdillon
=== urulama is now known as urulama___
Muntanermarcoceppi,17:04
marcoceppio/17:05
MuntanerI wrote my charm code. When I deploy it, it runs in juju (can see it in juju-gui), but no VM is instanced and stays in pending state17:05
Muntanermarcoceppi, I just wrote in the install and the start hook some basic things (apt-get, etc) and nothing more17:06
marcoceppiMuntaner: what provider are you using?17:06
MuntanerOpenStack, a local all-in-one installation17:06
Muntanerother charms (mysql, wordpress, etc.) deploy perfectly17:06
Muntaneralso, I did some juju-log...where are exactly the logs?17:07
Muntanermarcoceppi, where do I tell to the charm what kind of VM it should instance?17:16
mbruzekMuntaner that is constraints17:42
mbruzekMuntaner: https://juju-docs.readthedocs.org/en/latest/constraints.html17:50
jcastrohttps://jujucharms.com/docs/charms-constraints18:58
jcastrois the proper link18:58
jcastrohttps://jujucharms.com/docs/reference-constraints18:59
jcastroalso18:59
nicopacewhit, marcoceppi, asanjar, jcastro, arosales: i've sent you the second (and last) batch of merged tests via email19:27
marcoceppinicopace: thank you!19:27
nicopacewhit, marcoceppi, asanjar, jcastro, arosales: hope you can look over them... i'm going offline now... but i'll check any review you do later today19:27
arosalesnicopace: thanks for the work on those tests!19:33
sinzuirbasak, bug 1417771 is fixed. there is nothing for you or I to do19:55
mupBug #1417771: juju-core vivid ppc64el fails to build <packaging> <ppc64el> <vivid> <juju-release-tools:Invalid by sinzui> <gcc-4.9 (Ubuntu):Invalid> <gccgo-5 (Ubuntu):Fix Released> <gccgo-go (Ubuntu):Fix Released by canonical-server> <gcc-4.9 (Ubuntu Vivid):Invalid> <gccgo-5 (Ubuntu Vivid):Fix19:55
mupReleased> <gccgo-go (Ubuntu Vivid):Fix Released by canonical-server> <https://launchpad.net/bugs/1417771>19:55
=== roadmr is now known as roadmr_afk
=== rogpeppe is now known as rogpeppe1
=== roadmr_afk is now known as roadmr
kwmonroehey nicopace, i'm disapproving your individual merge proposals in favor of all-tests proposals where applicable.. don't take it personally though -- the work is much appreciated!  i just want to make sure future reviewers see that we're consolidating comments into the all-tests merge proposals.20:58
kwmonroeand thanks again, btw, for merging those together.  it really does help speed up reviews.20:58
nicopacekwmonroe: thanks... i forgot to remove them22:44
kwmonroenp - thank you nicopace!  wanted to make sure i wasn't coming off like a jerk with a bunch of naks ;)  the re-merged proposals are much appreciated.22:45
nicopacewhit, marcoceppi, asanjar, jcastro, arosales: i've replied to your comments, and removed all the unneded individual merge requests. Also, you can look over the merge proposals here: https://code.launchpad.net/~nicopace/+activereviews23:20
nicopacewhit, marcoceppi, asanjar, jcastro, arosales: i've replied to your comments, and removed all the unneded individual merge requests. Also, you can look over the merge proposals here: https://code.launchpad.net/~nicopace/+activereviews23:20
=== lazyPower is now known as lp|away
lp|awaynicopace: Thanks for that cleanup. o/23:51
lp|awayand all the effort on those tests to boot23:52

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