[00:20] <umbSublime> Budgie^Smore, magicaltrout I'm not even sure Canonical still uses those (pretty awesome) orange boxes for OS training anymore, IIRC they now use remote servers from different providers
[00:22] <Budgie^Smore> umbSublime pretty sure you are right there, those were still cool though
[00:22] <umbSublime> heck yah
[00:23] <umbSublime> they had me drooling when they first came out :p
[06:47] <stub> The orange boxes tend to get used where network connectivity is limited, cause they can be flown in with archive mirrors and whatnot prepopulated
[07:25] <kjackal> Good monrning Juju world!
[11:16] <BlackDex> Hello, can i run juju within a lxd when using MAAS as its cloud-provider?
[11:16] <BlackDex> i mean the juju bootstrap
[11:16] <BlackDex> so, i want to bootstrap juju within a lxd container and use maas for the rest
[11:16] <BlackDex> currently i'm creating a kvm instance and run the bootstrap on that
[11:29] <rick_h> BlackDex: not at this time. One "provider" per controller.
[11:34] <BlackDex> and if i create a lxd and let it detect by maas? Or that isn't an option?
[12:23] <rick_h> BlackDex: yes, if you load a vm of any sort into maas so that it's the maas api/provider that's in use you're ok
[12:30] <BlackDex> oke rick_h Thx, i will try that :)
[13:10] <kim0> Howdy folks .. I just tried to deploy kubernetes to Azure cloud .. And it is stuck .. I see 4 deployments have failed in Azure portal :/
[13:11] <kim0> Can anyone help me debug this or get it working
[13:18] <lazyPower> kim0: i can certainly try to lend a hand here. What units are failed and how did they fail?
[13:32] <kim0> lazyPower: actually not units .. I think it's machines that failed
[13:32] <lazyPower> kim0 ah, so azure failed to give you the machines?
[13:32] <kim0> https://www.irccloud.com/pastebin/r7A8WpgV/
[13:32] <kim0> yes .. the deployment to Azure failed
[13:32] <lazyPower> that certainly looks indicative that azure didn't give you the vms.
[13:32] <kim0> is there a way to delete those VMs and re-deploy them
[13:33] <lazyPower> you can try juju retry-provisioning 0
[13:33] <lazyPower> same with 1
[13:33] <kim0> interesting Ok
[13:33] <lazyPower> and it should re-request the machines from azure
[13:33] <kim0> I had done juju add-machine
[13:33] <lazyPower> but you may have to wait for them to enter a failed state
[13:33] <kim0> but it's not appearing into juju status for some reason
[13:33] <lazyPower> i dont think it will retry if they are marked as down
[13:34] <kim0> $ juju show-machine 0
[13:34] <kim0> model: gulfk8s
[13:34] <kim0> machines:
[13:34] <kim0>   "0":
[13:34] <kim0>     juju-status:
[13:34] <kim0>       current: down
[13:34] <kim0>       message: agent is not communicating with the server
[13:34] <kim0>       since: 04 May 2017 14:05:27+02:00
[13:34] <kim0>     instance-id: machine-0
[13:34] <kim0>     machine-status:
[13:34] <kim0>       current: provisioning error
[13:34] <kim0>       message: Failed
[13:34] <kim0> It says .. "Provisioning error" I guess juju should know it has failed :)
[13:36] <kim0> I tried juju "retry-provisioning 0" .. but as you expected, it's not retrying
[13:36] <kim0> any way to force-fail the old machines or something
[13:36] <kim0> it's been an hour really .. so I guess it might never fail them
[13:39] <kim0> lazyPower: Any ideas ^ .. Thanks!
[13:40] <lazyPower> kim0 I dont, the best i could offer woudl be to remove the model and try again.
[13:41] <kim0> yeah .. I tried deploying this a couple of months back, and got the same VM provisioning failure .. so a little :/
[13:41] <kim0> I can try one more time
[13:44] <lazyPower> kim0 : do you have any restrictions on your account or anything similar?
[13:45] <lazyPower> kwmonroe i know you have the broadest welath of knowledgea bout our azure provider
[13:45] <lazyPower> kwmonroe do you see failed provisioning often?
[13:47] <kim0> kwmonroe .. The error Azure portal gives me is like "PutVirtualNetworkOperation xxxx was cancelled and supersceeded by PutVirtualNetworkOperation yyy. Code: CancelledAndSuperseededDueToAnotherOperation)
[13:47] <kim0> To me .. this looks more like juju's fault than Azure's
[13:52] <kwmonroe> yup lazyPower.. bug 1673847 is the reference bug (kim0 has already commented).
[13:52] <mup> Bug #1673847: azure does not handle failed deployment well (juju-2.1.2) <azure-provider> <intermittent-failure> <retry> <juju:Triaged> <juju 2.1:Won't Fix> <https://launchpad.net/bugs/1673847>
[13:52] <lazyPower> kwmonroe fantastic. Thanks for confirming
[13:52] <lazyPower> :(
[13:53] <lazyPower> well poo, wont fix on 2.1 which means you wont see it in this series, but 2.2 is right around the corner
[13:53] <kim0> Is it already fixed in 2.2 devel ? can I try that ?
[13:54] <lazyPower> I don't see anything related to "fix committed" which tells me its still present in 2.2 devel
[13:54] <kim0> kwmonroe: Thanks for confirming! Any advice to manually workaround this issue ?
[13:55] <kim0> The bug OP says he hits this .. 1 out of 10 times .. to me, I hit it the 2 times I tried juju :)
[13:55] <kim0> If I should just destroy the model & retry, I can do that too
[13:58] <kim0> I tried "juju add-machine" which seems to work .. The machine is started in azure portal .. put it is not listed under my k8s model .. not sure why
[13:58] <kim0> I was hoping to replace the ill machines with healthy ones
[14:02] <kwmonroe> kim0: my workaround (i'm the bug OP btw) is to "juju add-unit <application>" on anything that juju status reports as "provisioning error".
[14:02] <kwmonroe> kim0: it's not pretty, but it keeps any relations in tact and is a bit faster than totally removing the application and re-adding it with new relations later.
[14:03] <kim0> aha .. so that will allocate a new VM and
[14:03] <kim0> deploy on it
[14:03] <kwmonroe> correct kim0
[14:03] <kim0> my only worry, if unit/0 is "special"
[14:03] <kim0> Ok .. easyrsa/0 was down .. trying to add a unit on that
[14:04] <kwmonroe> kim0: it really shouldn't be.. there's no guarantee that /0 was the first unit to become ready (ie, you may have deployed 2 units at the same time and unit/1 just happened to beat /0 to ready state)
[14:04] <kwmonroe> kim0: so things like charm leadership and even tests should not be relying on /0 as any indication of "first" or "leader" or whatever.
[14:04] <kim0> For example .. etcd/0 is on a broken machine .. while etcd/1 & /2 are on working machines .. However it seems they are blocked waiting for etcd/0 !
[14:05] <kim0> Nice .. easyrsa/1 is now healthy!
[14:05] <kim0> kwmonroe: should I somehow remove the old easyrsa/0 ?
[14:05] <kwmonroe> kim0: i'm not too familiar with etcd -- lazyPower, is there something special about etcd/0?
[14:05]  * lazyPower reads backscroll
[14:06] <lazyPower> kim0 kwmonroe - shouldn't be blocked waiting on etcd/0. Which unit has the asterisk next to its name?
[14:07] <kwmonroe> kim0: i do remove the failed units because i can't stand being reminded of them every time i type juju status ;)  i think the syntax is "juju remove-unit easyrsa/0", but if that doesn't work, "juju remove-machine <machine-number-for-easyrsa/0>" should do it.
[14:07] <lazyPower> i would presume etcd/1* if it was the first to come active which would earmark it as the leader for the rest of the units coming online.
[14:07] <kim0> lazyPower: etcd/2 has the *
[14:07] <kim0> is the "every unit on a separate VM" the norm in juju world ?
[14:08] <lazyPower> kim0 - can you provide more detail as to where it appears they are waiting on etcd/0?
[14:09] <kim0> mm it was just saying "blocked" .. since then I add-unit one etcd .. and now it says ready!
[14:09] <lazyPower> Ok, it should only be blocked if its missing the easyrsa details
[14:10] <kim0> that was indeed the case .. I had also added unit on easyrsa
[14:10] <lazyPower> it requires TLS certs to operate as of about a year ago. I flipped the switch to disallow insecure connections
[14:10] <kim0> sorry I don't know the order of events :)
[14:10] <lazyPower> All good kim0 - its a learning experience :)
[14:10] <kim0> exactly
[14:10] <kim0> I'm trying to post the full juju status
[14:11] <kim0> http://paste.ubuntu.com/24511284/
[14:12] <lazyPower> ok that status message for etcd/2 should update within 5 minutes when it runs update-status again and it'll report 2 peers
[14:12] <kim0> What does the * besides etcd/2 mean
[14:12] <lazyPower> that denotes the current juju leader
[14:12] <lazyPower> in some instances like the etcd charm, we use the juju leader to coordinate cluster events
[14:12] <kwmonroe> kim0: ideally, each unit would be isolated (either on a totally separate machine or in a separate container).  the exception is for "subordinate charms".  these are things like nagios or ganglia monitors, rsyslog, etc that make no sense to stand alone in a VM.  in that case, both a principal charm (like etc) and a subordinate (like ganglia-node) would live side-by-side on the same unit.
[14:13] <kwmonroe> kim0: this ideal isolation is not enforced, so you *can* jam a whole bunch of charms onto the same unit, but that usually leads to package conflicts or other headache..
[14:13] <kim0> aha .. Ok! I was really thinking about container isolation (k8s style)
[14:14] <lazyPower> you can also colocate using lxd which doesn't suffer from that, however it comes with other nuances you have to be aware of. Cross host container networking is only supported in MAAS at this time.
[14:14] <kim0> nvm .. I'll keep separate VMs for now
[14:15] <lazyPower> kim0 as this is your first dpeloyment, next go-around you can start with a much smaller bundle - kubernetes-core, which only requires 3 units.
[14:15] <lazyPower> colocated 1 etcd/easyrsa, 1 master, 1 worker.
[14:15] <lazyPower> same kubernetes experience, smaller requirements. CDK is more of a production-facing minimal deployment, where you wish to have HA control plane, and resilient etcd
[14:17] <kim0> I actually care about a production ready deployment
[14:17] <kim0> it seems remove-unit  does not remove the underlying machine
[14:18] <kim0> I tried to remove the machine by hand .. but it either needs time, or is not working
[14:18] <kwmonroe> kim0: use a bigger hammer:  juju remove-machine --force <number>
[14:19] <kim0> Ok .. just did :)
[14:19] <kim0> removed
[14:19] <kim0> cool
[14:19] <kim0> seems to be converging to a working setup :)
[14:19] <kim0> is there a possibility to power-off all machines (to save money) .. yet start them tomorrow ?
[14:21] <kwmonroe> kim0: even powered off, i think clouds will still charge you (not for IOPS or cpu time, but for holding the underlying resources for you)
[14:21] <kim0> yeah I understand that .. but that cost is like 5% of the running cost
[14:21] <kwmonroe> kim0: so if you really don't need the cluster overnight, just destroy the model and re-deploy it when you need it again
[14:21] <kim0> well .. I've spent 2 hours on a bunch of add-unit / remove-unit / remove-machine --force
[14:22] <kim0> so if possible .. I want to keep it
[14:22] <lazyPower> kim0 it shouldn't have any issues coming back up from a stopped state
[14:22] <lazyPower> kim0 if you find issues there, i want bugs please <3
[14:22] <kim0> do I stop from azure or juju
[14:22] <lazyPower> the azure cp
[14:22] <lazyPower> you should be able to halt the vms or suspend them without any penalty to functionality
[14:23] <kim0> cool!
[14:23] <admcleod> or you could juju run shutdown
[14:23] <kim0> I am approaching an "all-green" state .. exciting :D
[14:23] <kim0> oh checking that out
[14:23] <lazyPower> yeah
[14:23] <lazyPower> juju run --all "shutdown -h now"
[14:23] <lazyPower> admcleod i'm not sure if that marks the vm as halted in azure cp tho
[14:23] <kim0> oh that's like a parallel ssh .. I see
[14:23] <admcleod> lazyPower: neither!
[14:23] <kim0> yeah .. it doesn't
[14:24] <lazyPower> i know some providers decouple the power state in th hypervisor from the state of the unit...
[14:24] <admcleod> *adds to notes*
[14:24] <kim0> I have to "deallocate" the VM .. so I'll use the azure tools
[14:24] <lazyPower> yeah
[14:24] <lazyPower> ^
[14:24] <lazyPower> do that
[14:24] <kim0> Awesome!
[14:24] <lazyPower> kim0 now, you're basically testing our failure recovery model :)
[14:24] <lazyPower> fyi
[14:24] <kim0> hhhh
[14:24] <kim0> hope it works :)
[14:24] <lazyPower> so if you do find bugs, i want them, plz plz plz dont let that go unnoticed
[14:24] <kim0> Sure thing
[14:24] <lazyPower> <3 appreciated
[14:25] <kim0> one last thing
[14:25] <kim0> Should I expect to be able to scale kubernetes worker nodes up/down & upgrade kubernetes versions from now on ?
[14:25] <lazyPower> yes
[14:25] <kim0> ie should the above work without a party ?
[14:25] <lazyPower> we're cutting a 1.6.2 release soon (probably today)
[14:25] <kim0> Awesome!!!
[14:25] <lazyPower> so you can test that function relatively soon
[14:25] <kim0> I will love to upgrade from 1.6.1 to that
[14:25] <lazyPower> :)
[14:25] <lazyPower> wish granted
[14:25] <kim0> Great .. I appreciate a ping after it's push
[14:26] <kim0> pushed*
[14:26] <lazyPower> sure
[14:26] <lazyPower> on here?
[14:26] <kim0> Yep
[14:26] <lazyPower> k
[14:26] <kim0> lazyPower: how many hours roughly to go
[14:26] <lazyPower> if you subscribe to the juju mailing list we also hit that, kubernetes users
[14:26] <admcleod> lazyPower: the release notification also goes to a list too doenst it?
[14:26] <admcleod> right
[14:26] <lazyPower> reddit
[14:27] <kim0> All VMs get public IPs right
[14:27] <kim0> do those VMs get security updates too ? :D
[14:27] <lazyPower> kim0 not without something like landscape client attached or installing unattended-upgrades
[14:28] <lazyPower> kim0 and ot respond to your question: SUCCESS! -- 146 Passed | 0 Failed | 0 Pending | 442 Skipped
[14:28] <kim0> :D
[14:28] <lazyPower> we're close, getting clean test results from e2e on our 1.6.1 => 1.6.2 on 2 clouds now
[14:29] <kim0> any way for juju to install unattended-upgrades on the nodes it's managing ?
[14:29] <kim0> or should I do ansible for that :)
[14:29] <rick_h> kim0: yea, sec. I highlighted that charm in the juju show last week
[14:30] <rick_h> kim0: https://lists.ubuntu.com/archives/juju/2017-April/008838.html
[14:30] <kim0> 👍
[14:33] <kim0> juju deploy unattended
[14:33] <kim0> ERROR cannot resolve URL "cs:unattended": charm or bundle not found
[14:35] <rick_h> kim0: sorry, it's just a user charm atm: https://jujucharms.com/u/paulgear/unattended/
[14:35] <rick_h> kim0: try the copy/paste command there.
[14:36] <kim0> it seems to use a local file ./unattended .. should I git clone it first
[14:36] <kim0> I expected "juju deploy paulgear/unattended" to work but it didnt
[14:37] <tychicus> rick_h: is the juju show something that is recorded?
[14:38] <rick_h> tychicus: it sure is, check out https://www.youtube.com/jujucharms and there's a playlist for just the juju show episodes
[14:38] <rick_h> kim0: the copy and paste should have gotten you juju deploy cs:~paulgear/unattended-2
[14:38] <tychicus> fantastic, thanks!
[14:39] <kim0> rick_h: sorry .. my eye totally missed that little box up there :)
[14:40] <rick_h> kim0: all good, helpful for making it dirt simple to get the right username/etc.
[14:44] <kim0> @channel .. Thanks for all the awesome help .. I have an all-green deployment now ;)
[14:44] <rick_h> kim0: <3 awesome
[14:59] <lazyPower> kim0 \o/ partyyyy
[15:00] <kim0> :+1
[15:00] <kwmonroe> kim0: head's up -- i just use the azure tools to put a machine in "Stopped (deallocated)", and when i restarted it, it got a new public ip.  this seems to cause juju to switch over to the 192.x private address, which is no longer addressable.
[15:01] <lazyPower> kwmonroe good catch. we're not going to recover from that
[15:01] <kim0> hmm
[15:02] <kim0> At least you guys should allocate static IPs I guess
[15:02] <kwmonroe> rick_h: is there a way for juju to "refresh" the public-ip from the provider?  or does it perhaps poll periodically to see if a public ip has changed?
[15:03] <rick_h> kwmonroe: so...I know there's open bugs about machines rebooting to different IPs. I'm not sure what the resolution of those bugs has turned to off the top of my head
[15:03] <marcoceppi> kwmonroe: from my experience the agent will recover, eventually
[15:03] <kwmonroe> ok - i'll at least give it the update-status window and see.  meanwhile i'll checkout some lp bugs
[15:03] <kwmonroe> thx rick_h marcoceppi
[15:04] <kim0> how much is that window
[15:04] <kwmonroe> 5 minutes
[15:04] <kim0> cool :)
[15:06] <kim0> Are charms written in a way such that any app is scalable .. For example, I see kubeapi-load-balancer and kubernetes-master and I jus don't know whether or not it's wise to try scaling those up
[15:06] <lazyPower> kim0 - each of those components are written in such a way that you can scale them
[15:06] <magicaltrout> you can scale charms, whether they expect to be scaled is up to the developer
[15:06] <kim0> do I get some error if something should not be scaled
[15:06] <lazyPower> an they will reconfigure when a scale event (up or down) happens.
[15:07] <lazyPower> kim0 the only charm in that bundle that doesn't expect to be scaled at this point is easyrsa
[15:07] <kim0> so what happens when I scaled that up
[15:07] <lazyPower> we have an open item of medium priority on that functionality. it involves cloning the CA, doing intermediate signing certificates, and a dance that i haven't fully wrapped my head around.
[15:08] <lazyPower> you'll get 2 separate Certificate Authorities, adding new units may be problematic at that point.
[15:08] <lazyPower> however existing units will be uneffected.
[15:08] <kim0> Ok thanks
[15:09] <kim0> I guess it should at least error out, that scaling easyrsa is not a recommended action or something
[15:10] <kwmonroe> kim0: the juju agent on my re-started unit does eventually sync / display the new public address, which means addressability is good again.  it took 15 minutes for me -- not sure why that amount of time, but i'll deallocate again and see if it's consistent.
[15:10] <kim0> Awesome, thanks
[15:11] <magicaltrout> marcoceppi: duno who monitors the form submission at developer.juju.solutions but if you find one from my new guy and a quality message that i didn't write at all
[15:11] <magicaltrout> can you send him some tokens?
[15:13] <kim0> Docs say "By default, the channel will be set to stable, which means your cluster will always be upgraded to the latest stable version of Kubernetes available." .. Does that auto-reboot nodes by default ?
[15:14] <marcoceppi> kim0: it won't reboot your machines at all, just updates the software running on them
[15:17] <kim0> marcoceppi: so a reboot is not even needed ?
[15:18] <marcoceppi> correct
[15:18] <marcoceppi> and if you combine that with things like live patching, you won't have to reboot for kernel updates either
[15:18] <magicaltrout> winning
[15:19] <kim0> cool stuff
[15:20] <kim0> you still have to reboot for glibc updates though :P hhh
[15:23] <kwmonroe> kim0: second deallocate/restart went faster.  the unit refreshed it's public ip 5 minutes after coming back up.
[15:24] <kim0> Very good!
[15:24] <lazyPower> that may cause an issue with the certs
[15:24] <kwmonroe> kim0: so that's all well and good, but if things expect a static ip, you still might be in trouble.
[15:25] <kwmonroe> right lazyPower
[15:25] <lazyPower> certs add the public IP as a SAN
[15:25] <lazyPower> at time of request
[15:25] <lazyPower> which we have an open bug to re-key infra, but that hasn't been started yet
[15:25] <kim0> afaik, the public IP isn't even "on" the VM ?
[15:25] <kim0> does it go through the trouble of finding it out to add it to the cert
[15:25] <lazyPower> sure does
[15:26] <lazyPower> unit-get public-address is passed in as a subject-alt-name on the CSR
[15:27] <kim0> is there a mode, where almost all VMs do not get public IPs to begin with
[15:28] <lazyPower> kwmonroe https://github.com/juju-solutions/layer-tls-client/issues/8
[15:28] <lazyPower> i filed a bug about this so we can track it and get layer-tls-client updated with some logic to re-key during normal operating events
[15:28] <kwmonroe> kim0: ^^ :)
[15:29] <kim0> 👍
[15:30] <kim0> so basically today, upon nodes reboot .. I should expect the cluster to break, right
[15:30] <magicaltrout> reboots are for wimps
[15:30] <kim0> hhhh
[15:31] <magicaltrout> real men redeploy from scratch
[15:32] <kwmonroe> kim0: no, you should not expect any OS-level reboot to change the IP.  it's only when you suspend/deallocate from the cloud control panel.
[15:32] <kim0> Aha got it
[15:33] <kim0> juju set-constraints kubernetes-worker mem=8G
[15:33] <kim0> mm that ^ is still not too helpful to help me get the SSD variant of Azure VMs :/
[15:40] <kwmonroe> kim0: docs will typically use the least-common-denom for application constraints.. in your case mem=8G is a common constraint that will work across aws/gce/azure/etc.  juju also supports cloud-specific constraints.  so in your case, if you're really sure you want azure, you could run "juju set-constraints <app> instance-type=Standard_D1_v2"
[15:41] <kim0> Thanks!!
[15:42] <kwmonroe> kim0: the list of instance types for azure (in order of cost) are here:  https://github.com/juju/juju/blob/2.1/provider/azure/instancetype.go#L29, and pricing here: https://azure.microsoft.com/en-us/pricing/details/cloud-services/
[15:42] <kim0> kwmonroe: Thanks for all the help!
[15:42] <kwmonroe> np!
[15:43]  * magicaltrout gives kwmonroe a supportive pat on the back
[15:43] <magicaltrout> well done kevin \o/
[15:43] <kwmonroe> heh
[15:47] <kim0> kwmonroe: fyi, it seems the instancetype.go is missing some newer VM types like Standard_DS1_v2 (actually all DSv2-series series) and Av2-series ..etc
[15:55] <kwmonroe> yeah kim0 - looks like instancetype.go is not the definitive list (sorry 'bout that).  juju does support DSX_v2, and you can see the full instance-type constraint list here:  http://paste.ubuntu.com/24511657/
[15:56] <kim0> cool np
[16:04] <kim0> When I try to deploy a VM with constraint "instance-type=Standard_DS1" .. I only get "current: provisioning error"
[16:04] <kim0> Any way to get more meaningful errors ?
[16:22] <kwmonroe> kim0: what region are you deploying to?
[16:22] <kim0> westeurope
[16:25] <kwmonroe> kim0: i was gonna say your region might not have DS machines available, but https://azure.microsoft.com/en-us/regions/services/ shows westeurope is supported
[16:25] <kim0> Can I see the error coming back from azure somewhere
[16:25] <kwmonroe> kim0: you can go through the azure portal, select your resource group, and then "Deployments"
[16:26] <kim0> kwmonroe: Got it .. I see the error
[16:26] <kwmonroe> kim0: is it the PutVirtualNetworkOperation from bug 1673847?
[16:26] <mup> Bug #1673847: azure does not handle failed deployment well (juju-2.1.2) <azure-provider> <intermittent-failure> <retry> <juju:Triaged> <juju 2.1:Won't Fix> <https://launchpad.net/bugs/1673847>
[16:26] <kim0> Unable to create the VM bec this size is not available in the cluster where the availability set is created
[16:27] <kim0> Strange error .. first time to get this from Azure!!
[16:28] <kwmonroe> kim0: let's see if juju is exposing that with a different status format.. try "juju status <unit> --format=yaml"
[16:29] <kim0> not really the machine part is only saying "provisioning error"
[16:30] <kim0> http://paste.ubuntu.com/24511934/plain/
[16:31] <kim0> I guess this *might* be bec I'm using a test account
[16:34] <kwmonroe> ok kim0 - would you mind adding another comment to bug 1673847, listing this new error message?  i think minimally it would be nice if juju would expose these provisioning error messages rather than having to dig through the azure portal.
[16:34] <mup> Bug #1673847: azure does not handle failed deployment well (juju-2.1.2) <azure-provider> <intermittent-failure> <retry> <juju:Triaged> <juju 2.1:Won't Fix> <https://launchpad.net/bugs/1673847>
[16:37] <kim0> kwmonroe: Done
[16:37] <kim0> kwmonroe: Are we nearing the 1.6.2 push :)
[16:38] <kwmonroe> kim0: that's a question for lazyPower / kjackal / ryebot.  they're mashing lots of buttons atm.
[16:38] <lazyPower> kim0 once my co-worker gets back from lunch we were planning on a release
[16:38] <kim0> Sorry confused
[16:38] <kim0> Awesome keep rocking :)
[17:29] <Budgie^Smore>  o/ juju world
[17:39] <lazyPower> \o Budgie^Smore
[17:39] <lazyPower> got a 1.6.2 release coming your way shortly
[17:44] <Budgie^Smore> lazyPower coolio, would need to find an environment to deploy it since I no longer have the setups I had :-/
[17:45] <lazyPower> Budgie^Smore apply for cloud developer credentials
[17:45] <lazyPower> help us find bugs
[17:45] <lazyPower> http://developer.juju.solutions
[17:46] <Budgie^Smore> lazyPower you know me, always happy to go bug hunting ;-)
[17:59] <Budgie^Smore> OK I have filled in the form, soooooo now we wait ;-)
[18:02] <lazyPower> awesome :) when marco isn't out doing sprint type stuff you should get an email with some creds
[18:02] <lazyPower> or a request for more info
[18:02] <lazyPower> either way, you'll hear back from us shortly
[18:06] <Budgie^Smore> well even if it a day or 2 it is still faster than HR ;-)
[18:07] <lazyPower> allright 1.6.2 has hit stable channels
[18:07]  * lazyPower raises a cuppa coffee to the sky
[18:07] <lazyPower> kim0 1.6.2 release ping
[18:07] <kim0> \o/
[18:08] <kim0> how do I upgrade to that
[18:08] <lazyPower> https://kubernetes.io/docs/getting-started-guides/ubuntu/upgrades/
[18:54] <kim0> mm `juju status` does not show an upgrade is available .. just saying :)
[18:59] <Budgie^Smore> mmm is juju status suppose to show upgrade availbility or just the current status of the model?
[19:00] <kim0> Docs say: You can use juju status to see if an upgrade is available. There will either be an upgrade to kubernetes or etcd, or both.
[19:00] <kim0> kubernetes-master seems to have upgraded itself to 1.6.2!
[19:00] <lazyPower> juju status --format=yaml
[19:00] <lazyPower> smart output i think hides that notation
[19:01] <lazyPower> which is a good call, i had not thought about that.. one of those things i've just become accustomed to. inversely, if you're using the GUI, the GUI shows it under the charm detail
[19:01] <lazyPower> kim0 thats snaps in action ;)
[19:02] <kim0> even in the yaml format .. I cannot easily spot what should tell me there's an upgrade
[19:02] <kim0> @lazyPower .. so it's normal that master auto-upgrades right
[19:03] <lazyPower> kim0 only when there is an upgrade in its subscribed chanel.
[19:03] <lazyPower> it wont auto-uprade between minor releases, eg: when we cut and push 1.7 to stable
[19:04] <lazyPower> yo wont auto upgrade to 1.7, you will need to configure teh charms to look at that channel in order to receive the upgrade
[19:04] <lazyPower> but for minor patch releases, you get those automatically
[19:04] <marcoceppi> kim0: lazyPower juju searches for upgrades like daily
[19:04] <kim0> yeah .. so for -worker .. there is an upgrade (it's now on 1.6.1) .. but my eyes can't see where the upgrade is
[19:04] <marcoceppi> so you won't see an upgraded charm available for quite a while
[19:04] <marcoceppi> well, maybe 6 hours
[19:04] <kim0> master upgraded like 10 mins after you guys announced it :)
[19:04] <kim0> lucky me I guess
[19:04] <kim0> but -worker still waiting
[19:05] <marcoceppi> lazyPower: we should add a "refresh" action to master and worker, so people like kim0 can just get the latest "now"
[19:05] <lazyPower> kim0 juju upgrade-charm kubernetes-worker should get it prompting you to run the upgrade action.
[19:05] <lazyPower> @marcoceppi juju run-action kubernetes-worker/0 upgrade already does that ;)
[19:05] <marcoceppi> oh, udhhh
[19:05] <lazyPower> <3
[19:05] <kim0> Here's the yaml format: http://paste.ubuntu.com/24512609/
[19:06] <kim0> there's no hint there is an upgrade, or is there
[19:08] <lazyPower> kim0 - It may not tell you anything about the upgrade until the controller polls for upgrades to charms in the env.
[19:09] <lazyPower> kim0 marcoceppi stated that was ~ every 6 hours or so. perhaps daily. I'm not 100% positive on exactly when it does that either but i can certainly find out and ping back.
[19:09] <kim0> aha I see
[19:09] <marcoceppi> kim0: you can still run the upgrade, even if juju doesn't tell you about one
[19:09] <kim0> I triggered the update manually
[19:09] <marcoceppi> it'll check when you run the command
[19:09] <kim0> yep
[19:09] <kim0> I suppose that kills any running pods .. or does it
[19:10] <marcoceppi> that's why you'll get the prompt about having to run the upgrade action
[19:10] <lazyPower> Only in rare instances will it incur downtime, and thats why its gated behind an upgrade action.
[19:10] <lazyPower> but 90% of the time its only recycling kubelet, which has no effect on the running workloads
[19:10] <kim0> Well for me, there was no "prompt" .. it just did its thing
[19:10] <kim0> $ juju upgrade-charm kubernetes-worker
[19:10] <kim0> Added charm "cs:~containers/kubernetes-worker-23" to the model.
[19:10] <kim0> that was all .. no questions asked
[19:11] <kim0> Upgrade done! well .. I have to say, this is sweet!
[19:13] <lazyPower> kim0 thanks for the positive feedback :) the team appreciates it
[19:13] <kim0> What if I want to change the VM type of worker nodes
[19:14] <kim0> I can add a constraint, add new nodes .. but how do I get rid of the old ones
[19:14] <lazyPower> kim0 i would recommend blue-green style deployment
[19:14] <Budgie^Smore> kim0 you would have to add / destroy units for that
[19:14] <lazyPower> kim0 juju deploy cs:~contianers/kubernetes-worker  worker-beta --constraints="mem=16G"
[19:14] <lazyPower> add relations
[19:14] <lazyPower> wait for teh dust to settle
[19:14] <lazyPower> cordon the og nodes
[19:14] <lazyPower> juju run-action kubernetes-worker/0 pause
[19:14] <lazyPower> ... down the line...
[19:15] <lazyPower> once all nodes have been evacuated
[19:15] <lazyPower> juju remove-application kubernetes-wroker
[19:15] <kim0> Got it!
[19:16] <kim0> Why do I need to add relations manually
[19:16] <lazyPower> i have a lot fo doc updates i see
[19:16] <kim0> I didn't need that in the initial deployment
[19:16] <lazyPower> well when you do the blue-green style, there's nothing telling juju how to wire the deployment
[19:16] <lazyPower> bundles are pre-modeled applications in a specific formation for you to consume
[19:16] <kim0> ah
[19:16] <lazyPower> you could take the canonical bundle, and modify it with the alternative deployment and deploy it into the same model
[19:16] <lazyPower> it will converge
[19:17] <lazyPower> now that may come with its own flavor of challenges if you have mutated the model... which is why i would encourage you to do it manually
[19:17] <lazyPower> what you can do is just export the model as well
[19:17] <lazyPower> make changes in the yaml
[19:17] <lazyPower> then apply that yaml
[19:18] <lazyPower> there's a lot of options, but as a dev that really likes to know how things work, i'm always going to recommend the manual method. Keeps things simple when things go wrong and i can help you unwind or recover from that :)
[19:18] <lazyPower> its harder when we're playing trace the bug
[19:22] <marcoceppi> lazyPower:  it's easier to just juju set-constraints I think
[19:22] <lazyPower> or that
[19:22] <marcoceppi> kim0: we'll document this for sure
[19:22] <lazyPower> but i hope you remember you did that when you dont want that instance type anymore :)
[19:48] <lazyPower> https://www.reddit.com/r/kubernetes/comments/699v24/canonicals_support_for_kubernetes_162_released/
[19:48] <lazyPower> upboats appreciated
[19:53] <mwhudson> balloons: i think i need an illustrated map of the ppas you are using...
[20:24] <tychicus> is it possible to start a machine that is powered off via juju?
[20:27] <rick_h> tychicus: to power it back on with juju? how did you power it off via juju?
[20:28] <tychicus> juju run --machine=4 "shutdown -h now"
[20:29] <tychicus> machine is tied to maas, I know i can power it back on from maas, but I wasn't sure if there was a way to juju run —machine=x start
[20:31] <rick_h> tychicus: oh heh no. juju run works by ssh'ing to the machine
[20:32] <rick_h> tychicus: so it has to be listening to ssh for that to do anything unfortunately
[20:32] <tychicus> ok, that's what I throught
[20:32] <Budgie^Smore> OK I upboated that, now if only I had somewhere to "play" with 1.6.2! ;-)
[20:33] <tychicus> I couldn't find the upboat icon
[20:33] <Budgie^Smore> tychicus see the arrows at the side of hte link?
[20:34] <tychicus> ah those are the boat sails ;)
[20:38] <tychicus> I'll run through a cdk  deployment today, if only I could figure out why my floating IP's work in openstack, but directly connecting an instance to the ext_net does not :(
[20:55] <kim0> Would "upgrade-charm" also upgrade me to 1.7 when it's released
[20:56] <kim0> or is it involved
[21:01] <marcoceppi> kim0: you'll need to change configuration i beleive it just targets 1.6/stable
[21:02] <kim0> ok still easy enough :)
[22:26] <kim0> is it too much to ask for worker autoscaling for kubernetes :)
[22:32] <rick_h> kim0: have to see if https://jujucharms.com/charmscaler/ will work out for you
[22:33] <kim0> well that is interesting, however I really meant adding more nodes under k8s which this scaler doesn't seem to do