/srv/irclogs.ubuntu.com/2016/10/12/#juju.txt

=== thumper is now known as thumper-afk
=== frankban|afk is now known as frankban
=== thumper-afk is now known as thumper
junaidaliHi everyone, the get_hostname function in charmhelpers charmhelpers/contrib/network/ip.py is returning the hostname as "eth4.juju-5a02c3-4-lxd-18.maas" instead of "juju-5a02c3-4-lxd-18.maas"09:39
junaidaliwhere eth4 is the interface of ip that is provided to get_hostname09:40
junaidalirabbitmq charm is failing on config-changed hook as the above mentioned issues writes wrong hostna/etc/rabbitmq/rabbitmq-env.confme in09:41
junaidalisorry for the typo09:41
junaidalirabbitmq charm is failing on config-changed hook as the above mentioned issues writes wrong hostname  in /etc/rabbitmq/rabbitmq-env.con09:41
junaidalianyone faced this issue?09:46
Spauldinggday!09:57
Spauldingis there any easy way to copy file to juju charm? or basically i need to include it into hooks/reactive?09:59
Spauldingthere is render() for templates... should be enough for me.10:04
magicaltroutSpaulding: whats its purpose?10:25
magicaltroutyou can just include stuff in the charm package for templates and stuff10:25
magicaltroutor you have resources for installable packages etc10:25
=== dosaboy_ is now known as dosaboy
junaidalithe interface appended hostname that i mentioned earlier is a new feature in MAAS 2.0 but rabbitmq and many other charms are relying on reverse dns lookups to determine hostname https://bugs.launchpad.net/maas/+bug/1584569.10:29
mupBug #1584569: maas 2 adds multiple DNS entries for nodes <canonical-bootstack> <MAAS:Won't Fix> <https://launchpad.net/bugs/1584569>10:29
junaidalithis issue seems to be pretty critical for the charms, are there any workarounds available?10:30
magicaltroutprobably junaidali but the openstackers in this channel appear to be sleeping10:36
magicaltrouti'm not sure if jamespage can point you to someone who can help you10:36
jamespagejunaidali, magicaltrout: this is a tricky one, which we 'fixed' and then 'unfixed' as it completely made juju 1.25.x unreliable10:38
magicaltroutlol10:38
jamespagethe key problem here is juju makes no guarnatee to charm authors about resolvability of the local hostname to something other than 127.0.0.110:38
jamespageso on different providers, you get different behaviour10:39
jamespageRabbitMQ kinda fails to understand IP addresses10:39
jamespageso we have to use hostnames - the ip helper attempts to resolve the local IP to a real hostname - under MAAS 1.9 this works ok (a reverse-lookup of IP == single hostname)10:39
jamespagebut for 2.0 it results in two matches10:40
junaidalithanks jamespage, completely understands now. is it reliable to get the second last occurrence of a hostname splitted on '.' instead of getting the first one?10:42
jamespagejunaidali, hmm10:54
Spauldingmagicaltrout: i just want to include some of my config files10:57
magicaltroutah right Spaulding anything you put into the charm directory will be shipped when you run charm build10:58
magicaltroutbut you have a few options as well depending how they work, you could include them as resources still, that way people can overload them10:59
magicaltroutsimilarly, you could keep the config options in config.yaml10:59
magicaltroutand have users set them then populate a template when the install hook runs10:59
anrahI have problem with juju 2.0 and ipv6 addresses, on 1.25 when prefer_ipv6 was true and querying it on hookenv.unit_private_ip method it returned ipv6 address11:04
anrahnow with juju 2.0 it returns ipv4 address and that is a problem as some services I am deploying bind only to ipv6 address11:04
Spauldingmagicaltrout: i figured out different approach12:21
Spauldingimo the simplest one12:21
SpauldingI'll tar all of files that I need12:21
Spauldingand I'll just fetch them and untar them12:21
Spauldingso I should have most of the files in the right place12:22
magicaltroutSpaulding: by fetch you mean fetch over the web?13:26
magicaltroutin which case, thats basically what Resources were implemented to replace, for offline deployments behind firewalls etc13:27
petevgkwmonroe: left a comment on https://github.com/apache/bigtop/pull/148. I get an error when deploying bundle-local.yaml :-/13:27
Spauldingmagicaltrout: yes13:38
magicaltroutSpaulding: i'd consider using resources then imho13:47
magicaltroutalso you can version resources etc which keeps stuff working as charm versions change13:48
Spauldingmagicaltrout: ok, I'll try to check that13:50
cory_fuHas anyone taken a look at the charm testing libraries that free put up on the list yesterday?  bcsaller_, petevg?14:17
petevgcory_fu: I'm behind on email right now. Looking ...14:19
petevgcory_fu: which list was it? (I may be missing a subscription ...)14:27
cory_fupetevg: juju-dev.  I'm going to request that it be cross-posted to the main juju list14:28
=== scuttle|afk is now known as scuttlemonkey
aisraelAnyone have ideas on how to debug Juju 2 rc3 when it lxd allocation hangs forever? Some machines launched fine, and retry-provisioning the machine doesn't do anything.16:59
=== frankban is now known as frankban|afk
lazyPoweraisrael only lxd images launched via juju? assuming lxd launch ubuntu works as expected?17:00
aisraellazyPower, Correct. I deployed a bundle with four services. Two deployed fine. The other two didn't, and those machines aren't created in lxd either (so it's not cloud-init)17:01
lazyPowerseries were the same across the board?17:02
aisraelOhh. You might be on to something.17:02
aisraelTwo trusty, two xenial.17:03
aisraelNeither trusty machine has launched17:03
lazyPoweri think there's a bug on this17:03
* lazyPower digs17:03
aisraelding ding ding17:03
aisraelerror: Failed to clone the filesystem17:03
aisraeltrying to launch a trusty image via lxd17:03
lazyPowerhappy to help add some context :) i cant find the bug17:04
aisraelMuch appreciated. :) I was testing lxd via snap earlier but had to roll back, so that might be related.17:04
jgriffithsHas anybody seen the openstack-base bundle hang with four bare-metal (MAAS) servers (mysql, ceph-radosgww, and rabbitmq-server are "waiting for machine")? I know this isn't much information, but I'm guessing this is a common problem with a simple solution17:15
rick_h_jgriffiths: try a juju status --format=yaml and see if there's better info in the machine section17:16
jgriffithsThanks. That gives much better information than a 'juju status' it seems. "Creating container: failed to ensure LXD image: image not imported!'" and "agent not communicating with server"17:19
jgriffithsIt's only the one server. I'm pretty sure I've put those services on a different machine, but I will rebuilt the bundle with different server constraints to see if anything changes.17:21
aisraellazyPower, turned out to be a bad image in lxd. I purged 14.04 and re-launched to grab a fresh one.17:24
lazyPoweraisrael nice. glad it was a localized issue and not something bigger. This explains why I couldn't find a bug :D17:26
aisraellazyPower, yup. Although, if I could repo it, it'd be nice to handle it a little better.17:27
hallynis there a best way to have a juju install charm copy a local directory into the instance?17:30
* hallyn pings rockstar bc why not :)17:31
lazyPowerhallyn the only thing that springs to mind is to package up that local directory, and deliver it as a resource.  Another option would be to use a devicemount if you're on lxd. but thats out of band of juju/charms, and more of a manual exercise.17:33
hallynwas hoping for an automated 'juju scp' kind of thing17:33
hallyntriggered from a charm17:33
lazyPoweri'm not sure how your charm would inform your laptop to scp that over without running some kind of daemon17:34
hallyni'm not either17:34
lazyPoweri think cory_fu landed some work on dhx, and it has capabilities of attaching stuff to a charm when you enter debug-hooks17:34
lazyPowerwhich iirc, just went 2.0 compat a couple weeks ago17:34
lazyPowerhttps://github.com/juju/plugins/blob/master/juju-dhx -- according to the commit history it went 2.0 back in june.   its unofficial so ymmv - known docs for the plugin are here: https://jujucharms.com/docs/1.24/authors-hook-debug-dhx17:36
hallynok resources should work for me i think - thx17:36
* hallyn looks at the plugin real quick17:37
cory_fulazyPower: PR is still pending: https://github.com/juju/plugins/pull/7017:41
lazyPowercory_fu landed17:48
cory_fulazyPower: :)17:48
kwmonroecory_fu: petevg: we're still busted on lxd (i think this is what pete saw last week):  report: java.net.UnknownHostException: juju-c82a97-0.localdomain18:13
kwmonroeinterestingly...18:14
kwmonroeubuntu@juju-c82a97-1:~$ host juju-c82a97-0.localdomain                                                                                                                           │juju-info        slave                 ganglia-node          subordinate18:14
kwmonroeHost juju-c82a97-0.localdomain not found: 3(NXDOMAIN)                                                                                                                            │juju-info        slave                 rsyslog-forwarder-ha  subordinate18:14
kwmonroeubuntu@juju-c82a97-1:~$ host juju-c82a97-0                                                                                                                                       │18:14
kwmonroejuju-c82a97-0.lxd has address 10.44.139.23                                                                                                                                       │18:14
kwmonroewhups.. i meant:18:14
kwmonroeubuntu@juju-c82a97-1:~$ host juju-c82a97-0.localdomain18:14
kwmonroeHost juju-c82a97-0.localdomain not found: 3(NXDOMAIN)18:14
kwmonroeubuntu@juju-c82a97-1:~$ host juju-c82a97-018:14
kwmonroejuju-c82a97-0.lxd has address 10.44.139.2318:14
kwmonroeanyway cory_fu petevg.. i wonder if we can just tweak get_fqdn to use facter hostname instead of facter fqdn:  https://github.com/juju-solutions/layer-apache-bigtop-base/blob/master/lib/charms/layer/apache_bigtop_base.py#L47918:15
kwmonroethe short names seem to be resolvable in all our clouds.  the alternative would be to make .localdomain resolve throughout lxd containers.18:16
petevgkwmonroe: I think that I'm +1 to refactoring get_fqdn; I don't think that, in the places that we use it, we actually need the fqdn. (We should change the name, though.)18:18
kwmonroehey frobware, should lxd fqdns be .localdomain or .lxd?18:39
kwmonroefrobware: i ask because i can't ping one lxd container from another when i do "ping <other>.localdomain", but i can when i do "ping <other>.lxd".  i'm wondering if it's related to https://bugs.launchpad.net/juju/+bug/162348018:41
mupBug #1623480: Cannot resolve own hostname in LXD container <lxd> <network> <juju:Fix Released by dooferlad> <https://launchpad.net/bugs/1623480>18:41
cory_fupetevg: Comments made on https://github.com/juju-solutions/matrix/pull/119:12
petevgcory_fu: grazie. (Don't forget that we have that benefits meeting thingy right now.)19:13
cory_fupetevg: I'm in it.  :)19:13
=== valeech_ is now known as valeech
bdxhey whats up everyone?21:30
lazyPowe_yo yo bdx21:30
=== lazyPowe_ is now known as lazyPower
bdxcan someone help me explain what my user is experiencing here -> https://s13.postimg.org/ffzttj0if/Screen_Shot_2016_10_12_at_2_29_13_PM.png21:30
bdxI wasn't aware there was a localhost/localhost provider ...21:30
lazyPowererrr21:31
bdxlazyPowe_: perfect21:31
bdxjust the guy I was looking for :-)21:31
lazyPowerthats got to be a manual cloud21:31
lazyPoweror something similar custom named21:31
bdxlazyPower: I thought the cloud name was distinctly defined and displayed similarly though. Its the controller and that we have the capability of customizing though right .... trying to get more info from him now ..21:34
lazyPowercory_fu - did we land the excludes: key in layer.yaml?21:34
bdxlazyPower: what have you been deploying the kub stack on?21:34
lazyPowerbdx: manual provider, gce, aws, azure, openstack21:34
bdxahh ... so his reply "don’t know if is using lxd…. yes its bootstraped to localhost"21:35
bdxI'm thinking I'll point him at aws for now21:35
lazyPowerits not compatible enough with LXD to be fully containerized. We've actually just completed an initial round of that work if you're interested in the results: https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/7021:35
lazyPowerthe yield was: "Not now, but we'll work towards making this a thing"21:35
cory_fulazyPower: I don't think it's been released yet21:36
lazyPowercory_fu: ok, that makes sense then. I was looking through open PR's and the commit history and wasn't able to pin it down21:36
lazyPowerbtw, +1'd 2 of your pr's21:36
lazyPowerthanks for cleaning up the debug output and fixing layer-names vs path-names21:36
lazyPower<3 'preciate you21:36
hallynI'm using kvm local provider - how can I set the default memory limit higher?  i assume environments.yml22:22
hallynbut i'm failing to find documentation on the available keys22:22
* hallyn bets rharper or jamespage knows22:24

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