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

=== brandon is now known as Guest62612
=== Guest62612 is now known as web
aisraelweb: I responded to your question00:54
flying_nomadhi there, testing juju 1.22 with MAAS 1.700:56
flying_nomadafter bootstraping to kvm node00:56
flying_nomadmachine-0: 2015-03-25 00:44:39 DEBUG juju.mongo open.go:122 TLS handshake failed: x509: certificate is valid for localhost, juju-apiserver, <juju-bootstrap-node-name-here>, not juju-mongodb00:57
flying_nomadafter bootstrap it works but when jujud-machine-0 process is restarted (or host is restarted)00:57
flying_nomadabove happens00:58
flying_nomadand environment becomes unusable, nothing works because API fails to start00:58
flying_nomadany idea?01:01
flying_nomad1.20 with same MAAS 1.7 was working fine01:01
webI haven't01:19
weboops01:20
webtypos:x01:20
=== brandon is now known as Guest87093
=== Guest87093 is now known as web
=== kadams54 is now known as kadams54-away
jamespagegnuoy, if you have time https://code.launchpad.net/~james-page/charm-helpers/openstack-snippets/+merge/25405709:09
jamespagedoing a few snippet refactoring for kilo templates09:09
gnuoyjamespage, approved. If you get a sec I have a larger mp https://code.launchpad.net/~gnuoy/charm-helpers/neutron-shuffle/+merge/25395809:13
gnuoymostly stolen from quantum-gateway apart from NeutronAPIContext09:13
jamespagegnuoy, +1 and merged09:18
gnuoyfantastic, thank you09:18
=== rbasak_ is now known as rbasak
apuimedognuoy: if a charm does not require any configuration, should it have a config.yaml?14:09
marcoceppi_apuimedo: no, it should be ommited14:13
apuimedomarcoceppi_: thanks ;-)14:13
apuimedomarcoceppi_: I guess then hookenv.config will return {}, right?14:14
apuimedoor None?14:14
marcoceppi_apuimedo: probably {}, not sure the implications14:14
apuimedomarcoceppi_: is there the possibility that something breaks?14:14
apuimedoi.e., is it tested?14:15
marcoceppi_apuimedo: well if there's no config.yaml why even invoke hookenv.config?14:15
apuimedotrue ;-)14:16
marcoceppi_apuimedo: it'll parse however juju handle config-get without config, which should just be {}14:16
apuimedoit's just that I took neutron-api's charm test module and I'm making it into a test utility that can be used by any charm14:17
Muntanerhello guys15:15
MuntanerI need to be free in what distro I launch with my charms: CentOS, Kali, etc... can I actually do that with juju?15:15
lp|sprintMuntaner: we're getting support landing for centos this cycle, along with windows16:09
lp|sprintand debian16:09
stubmbruzek: Did you see my comments in https://bugs.launchpad.net/charms/+bug/1419116 ? It explains in more detail the problems  I'm seeing with the test environment and some of the pollution I've spotted.16:10
mupBug #1419116: New trusty/cassandra charm <Juju Charms Collection:Fix Committed> <https://launchpad.net/bugs/1419116>16:10
lp|sprintI dont have an ETA on when it will be available, but i know that preliminary support is being landed between maas and juju for these "series"16:10
lp|sprintstub: we did, we're talking about it now actually16:11
lp|sprintstub: we're looking at containerizing our CI to get a better level of isolation and a distributable tool that will mirror CI a whole lot better than just saying "Run bundletester on your local setup"16:11
mbruzekstub: Yes thank you for the additional details. tvansteenburgh is taking a look at that.  We are discussing a new way to isolate the tests better with docker.16:12
mbruzekthanks lp|sprint16:12
stublp|sprint: Yeah, without isolation its a timebomb (the python3 unittests *have* passed before, so this is new)16:12
stublp|sprint: We have solved this problem before with thinks like the Ubuntu build daemons, but that is probably overkill for this.16:13
lp|sprintI'm not familiar with them - but yeah. This isn't a new problem :)16:14
lp|sprintI dont think we are re-engineering the wheel - but having a distributable docker container to leverage for your testing would be a big win in terms of isolation, and reusable everywhere16:14
lp|sprintstub: one of the things we've been looking at is taking whitmo's charmbox/jujubox as the base, and using that directly in jenkins to handle our isolation16:15
stubyes. I was thinking lxc container, but docker is distributable and probably a better choice.16:15
stubI'd actually love to not install juju at all on my actual machine, and have everything isolated in a VM.16:16
lp|sprintyou can do that today with jujubox/charmbox16:16
stubI will look into that.16:16
lp|sprinthttps://github.com/whitmo/jujubox16:17
lp|sprintstub: you may want to use charmbox over jujubox - as it comes pre-installed with a lot of the common author deps16:17
lp|sprintlike charmtools, bundletester, venv, et-al16:17
stubreally low googlejuice on both jujubox and charmbox. I'd hate to see what I turned up with safesearch off.16:18
stubAhh, there we go.16:18
Muntanerlp|sprint,16:19
Muntanerwhen is the support for CentOS, debian and windows released?16:20
lp|sprintMuntaner: I dont have an ETA on when it will be available, but i know that preliminary support is being landed between maas and juju for these "series"16:20
lp|sprintas is, windows support has snuck in during the 1.21 release, they may already be there for the other series - however - if the images aren't listed in simple streams its not officially supported.16:21
mbruzekstub charmbox is what we use to run tests.16:22
lp|sprintMuntaner: i'm going to guess months (I try to keep info like this in the public channel so others can benefit) - but thats hard for me to call as i dont work on core - so i don't really hae the insight into when that will land16:27
Muntanerlp|sprint, thanks16:34
Muntanerlp|sprint, thanks16:35
lp|sprintMuntaner: i would suggest to email the list, as someone thats working on the integration will more than likely be able to reply with more info on when it will land.16:35
marcoceppi_stub: mbruzek it's what we're looking to use to run tests in. It's a docker container with isolation16:35
mbruzekmarcoceppi_: I already use it for testing/reviewing charms.16:36
Muntanerlp|sprint, thanks, how can I do that? never did it16:36
marcoceppi_Muntaner: butit's not usedon CI yet16:36
lp|sprintMuntaner: email juju@lists.ubuntu.com16:36
lp|sprinti'm not sure what marcoceppi_ was trying to say there, i think he's in 2 conversations16:37
stubmarcoceppi_: yeah, I'll give it a shot tomorrow but you are more than welcome to beat me to it at the sprint :)16:37
=== brandon is now known as Guest2452
stubmarcoceppi_: If you haven't seen it already, have a look at amuletfixture.py in either my cassandra or the enable-integration-tests postgresql branch. You might want it in amulet core.16:41
=== Guest2452 is now known as web
marcoceppi_stub: awesome, thanks. I'll take a look at that and possibly put it in as amulet.fixture in the next release17:07
Muntanerguys, I have use floating-ip = true in my environemnts.yaml. I want to be able to deploy a service without a floating-ip, can I?17:08
=== anthonyf is now known as Guest6628
webaisreal: Thank you again.  Your changes stopped the load failure on config-change but now a new issue "503 NO SERVER FOUND".  Hopefully I can hash this out real quick.17:38
webaisrael17:39
weboops17:39
aisraelweb: Excellent good to hear!17:39
web;)17:39
webaisrael: sorry to bug, but in that yaml model you made is `demo` is the name of the haproxy server?18:07
aisraelweb: demo was the name of the charm I wrote to test it, so in your case it would be mindproject18:08
aisraelweb: can you juju ssh haproxy/0 and pastebin the /etc/haproxy/haproxy.cfg file?18:09
webaisrael: sure deal.  let me try this fix real quick.18:10
=== kadams54 is now known as kadams54-away
webaisrael: http://paste.ubuntu.com/10679715/18:20
aisraelweb: I think I see the problem. private-address is returning the internal amazon hostname.18:22
webaisrael: making sure the right address is associated18:22
webisn't supposed to be18:23
webI thought that was one of the beautiful things about haproxy is it hides the actual server18:23
aisraelwhat about getting public-address?18:24
webor is it because of ssl I have to use public?18:24
aisraelHmm. Maybe you're right18:24
aisraelfrom the haproxy machine, can you ping that internal hostname?18:24
webaisrael: 82 packets sent and received with 0 loss http://paste.ubuntu.com/10679750/18:28
aisraelDoes haproxy.log show anything relevant?18:29
webaisrael: gonna try and replace it with the internal ip instead of dns18:29
weboh good idea :x  haven't even looked(i know, stupied)18:30
webaisrael: the juju default log shows http://paste.ubuntu.com/10679839/.  Is there another Haproxy log beside `/var/lib/haproxy/dev/log`(present) and `/var/log/haproxy.log`(missing) I should maybe look at?18:55
aisraelThere should be a /var/log/haproxy.log (or /var/log/haproxy/haproxy.log). Are you sure your service is listening on port 80?18:57
webi am reading that but its not there18:57
websudo tail -v -n 1 /var/log/{syslog,messages,haproxy-*} <--should return all logs18:58
webbut looking in there only related log is juju18:58
webthere is supposed to be `/var/log/messages` also18:59
webnot there18:59
BungalowBoyHi folks, does anyone have any experience of deploying juju to Azure and can offer some help?19:00
jcastrowhat's the issue?19:01
BungalowBoyIt doesn't work :)19:01
BungalowBoyMore specifically:19:01
BungalowBoyBootstrap fails19:01
BungalowBoyERROR failed to bootstrap environment: PUT request failed: BadRequest - XML Schema validation error in network configuration at line 39,18. (http code 400: Bad Request)19:02
jcastrowhat version of juju?19:06
BungalowBoystable from the ppa: 1.22.0-0ubuntu1~14.10.2~juju1 running from my utopic desktop19:07
webaisrael: The thing that is getting me is the only ports ever referenced are 80 and 82.  I opened 443 to the haproxy server in hopes it was an oversight, but no.19:10
webaisrael: I am trying the self signed option but still nothing here are my new logs and config setup.  Think I am gonna try a public NS to see if it works like you thought.19:12
aisraelweb: The thing you want to make sure is that you can reach the mindproject unit on port 80 and 44319:13
BungalowBoyI'm guessing my problem is related to the fact I'm trying to deploy a juju environment to an Azure subscription that already has networking and subnets set up19:16
webaisrael: http://paste.ubuntu.com/10679974/ (conf) http://paste.ubuntu.com/10679983/ (log)  I thought maybe I could at least get though with a warning on the cert, but nope.  Gonna revert back and try messing with the config for 443 instead of public first, then I'll try public.19:17
jcastrosinzui, ^^ any ideas for BungalowBoy?19:18
BungalowBoyLooking at the source code for juju-core shows a hard coded network http://bazaar.launchpad.net/~go-bot/juju-core/trunk/view/head:/provider/azure/environ.go19:19
BungalowBoybut I'm no coder so I could be wrong19:19
sinzuiBungalowBoy, That happens a lot on azure. CI often fails and retries19:19
=== kadams54-away is now known as kadams54
sinzuiBungalowBoy, Azure is very slow at cleaning up resources. so after a failure, instance and networks take a 30 minutes to be removed before you can try bootstrapping again. Juju often doesn't have permission to clean up after a problem because Azure is blocking19:21
BungalowBoy@sinzui thanks. excuse my ignorance but what is CI?19:21
sinzuiBungalowBoy, you can try renaming the juju-environment to minimise the reuse of existing networks and containers19:21
sinzuiBungalowBoy, I run Juju's CI. It deploys stable and test juju's to verify cloud-health and juju's health19:22
BungalowBoyCommandline interface?19:22
BungalowBoymy environment.yaml file is set up correctly, I run 'juju bootstrap -e azure --constraints instance-type=Small' from bash and get the above error19:24
BungalowBoyI haven't defined networking anywhere19:25
sinzuiBungalowBoy, Continuous Integration: We can see that Azure hasn't been very reliable. Each red/blue do it an hour;y health check http://juju-ci.vapour.ws:8080/view/Cloud%20Health/job/test-cloud-azure/19:25
BungalowBoythe Azure subscription I'm trying to bootstrap has a 172.16.x.x network19:25
BungalowBoyah, so juju doesn't currently work with Azure very well at all then!19:28
sinzuiBungalowBoy, "PUT request failed: BadRequest" means Azure's own resources are not available when they needed to be. There is little you or Juju can do about it19:28
BungalowBoyoh the joys of MS! :)19:29
BungalowBoywell thanks for taking the time @jcastro and @sinzui, guess I'm going to have to rethink19:35
jcastrosinzui, hey since I already bothered you once, any ideas on this one? http://askubuntu.com/questions/600168/juju-no-matching-tools-found-for-constraint20:03
sinzuijcastro, I am not making progress on that one, which is also https://bugs.launchpad.net/juju-core/+bug/143564420:04
mupBug #1435644: private cloud:( environment is openstack )index file has no data for cloud <juju-core:New> <https://launchpad.net/bugs/1435644>20:04
jcastrooh good, it's the same person at least20:05
sinzuijcastro, The failure is talking to the openstack, but I know know why since he clearly got a working instance20:05
webaisrael: Progress!!!! Now I am getting through on port 80 but when I force HTTPS it wont connect on 443 and now returns a 504 timeout response20:15
webaisrael: But progress!!!20:15
aisraelweb: Excellent! I think there's something in Haproxy's readme about ssl needing to use apache.20:16
webaisrael: It looked to me what it was saying was that if you want to serve your own ssl certs then the common method is for apache distribution but i am using uncommon node.js application  using express to manage my certs.20:19
webaisrael: I am almost positive it is a port issue because I cant ping 44320:20
aisraelweb: did you expose 443?20:21
webaisrael: using debug to view each request being sent instead of running as service for the time.20:21
webyep20:21
=== kadams54 is now known as kadams54-away
aisraelweb: Unfortunately, I haven't done much with SSL.20:47
webaisrael: making my own SaaS cloud framework for the first time.  Never needed more than one SSL app server.  So my experience isn't huge either, I really appreciate the help you've provided.20:51
webaisrael:  Think I found the problem.  SSL pass though not possible without `mode tcp`.  https://serversforhackers.com/using-ssl-certificates-with-haproxy#ssl_passthru20:59
aisraelweb: Ah, that makes sense. Let me know if it works for you!21:01
=== kadams54-away is now known as kadams54
webaisrael: well I don't see ssl conn error in the browser anymore but my connection is being refused.21:09
webWait damn charm keeps reseting config when I restart server, so maybe it will. trying again. May have to make a modified charm.21:12
wgrantWhat's the recommended way to deploy a custom SSH service using Juju?21:28
wgrantI need to run something other than OpenSSH on port 22.21:29
=== mattgrif_ is now known as mattgriffin
=== kadams54 is now known as kadams54-away
webaisrael:  Not done yet but I think I know what I need to do.  One thing I need to do is stop trying to create a HTTPS express application and leave it as HTTP.  SSL will initiate and be maintained though Haproxy only.23:55
weblet you know what happens23:55
aisraelweb: awesome, thanks! I'll update the haproxy docs with your findings23:55
webFor sure!  Especially your findings yesterday23:56

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