/srv/irclogs.ubuntu.com/2019/09/10/#juju.txt

babbageclunkwallyworld: Do we have a convenient way for taking multiple model operations and applying them as one transaction?00:59
wallyworldbabbageclunk: yes, ModelOperation00:59
babbageclunkwallyworld: but if I have multiple ModelOperations is there a function to combine them into one?01:00
babbageclunkie, I'm calling LeaveScopeOperation on n relation units, but I want to run them all as one transaction.01:01
babbageclunkHmm, actually that might not be a good idea, since each one will change the unitcount and the last needs to remove the relation01:02
babbageclunkok, I'll just run them as separate txns01:02
wallyworldyeah +101:02
wallyworldkelvinliu: i don't understand the newPreconditionDeleteOptions stuff - why do we need to wait for UID sometimes and not others?01:19
kelvinliuwallyworld: that ensures it asserts the deleted resource has the that id01:20
wallyworldand name is not sufficient?01:20
wallyworldwe seem to use both?01:21
kelvinliuideally, we should follow this pattern for all deleting resources01:21
wallyworldgiven name is unique, why is that not sufficient?01:21
kelvinliuname is uniq, but the deletion is async01:21
wallyworldwe can't create another one with the same name until the current one is totally gone, not just in terminating state though01:23
kelvinliuand it's not deleted immediately which usually takes a bit time01:23
kelvinliubut we can't prevent non-juju ppl or app create a resource with same name, right?01:23
wallyworldtrue, but while it's being terminated, we can't create another can we? you get an error from the api01:24
kelvinliuthere was a discussion about this, i will find it for u01:24
wallyworldok01:24
wallyworldif we need to change our code we should do it for everything rather than leave stuff done 2 different ways01:25
kelvinliuwallyworld: u can see i left a TODO for refactoring all updating/deleting places01:42
wallyworldok01:43
kelvinliuwallyworld: i think this change is really good to have.01:43
wallyworldkelvinliu: is there a reason for swapping the order of update and create in the ensure() methods? we have been calling update() first then create()01:43
kelvinliuhttps://github.com/kubernetes/kubernetes/issues/2057201:43
kelvinliuyes, there is a reason, and i think we  should refactor all the ensure like this later as well01:44
kelvinliuwallyworld: HO to discuss?01:44
wallyworldsure01:44
atdprhshello everyone, everytime I try to run juju add-unit kubernetes-worker i get `failed to start machine 28 (failed to acquire node: No available machine matches constraints: [('agent_name', ['93d500ee-7e14-4ece-81ae-69137d451f3a']), ('cpu_count', ['6']), ('mem', ['32768']), ('storage', ['root:1024']), ('zone', ['default'])] (resolved to01:48
atdprhs"cpu_count=6.0 mem=32768.0 storage=root:1024 zone=default")), retrying in 10s (9 more attempts)`01:48
atdprhscan anyone help please?01:48
wallyworldatdprhs: looks like the cloud on which k8s is deployed doesn't have a machine with the required memory to host the new worker02:18
wallyworldlooks like this is cdk on maas?02:19
=== exsdev0 is now known as exsdev
anastasiamacwallyworld: autoload-creds ask-or-tell PTAL https://github.com/juju/juju/pull/1061704:04
wallyworldok04:04
anastasiamac\o/04:04
wallyworldanastasiamac: lgtm, ty04:14
atdprhsHello wallyworld, sorry I missed your message04:44
atdprhsyes, it is on KVM Pod on MaaS04:44
wallyworldi'm not 100% across kvm pod allocation on maas. there would be maas specific set up which controls how kvm pods are allocated. you can use juju constraints to limit what is asked for which may help, but it could still be additional maas setup is needed. eg the error messages says cpu count = 6. perhaps asking for 2 or something would work04:48
atdprhsahhh, got it04:48
atdprhswill test it out04:48
wallyworldthe maas ux will show what machines have been allocated already and what's available04:48
wallyworldbut i can't give you specific advice as i'm not a heavy maas user04:49
wallyworldone thing to note is adding a unit will use the constraints the original charm was deployed with04:50
wallyworldif you want to use different ones, you need to use juju add-machine --constraints="blah" first, and then "juju add-unit --to <machinenum>"04:50
wallyworldatdprhs: you could also try asking here https://discourse.maas.io/04:51
wallyworldthe maas folks there can help much better than me about the kvm setup stuff04:52
babbageclunkwallyworld: review plz? https://github.com/juju/juju/pull/1061805:59
babbageclunkwallyworld: ended up being a bit fiddlier than I expected.05:59
wallyworldbabbageclunk: no worries, looking06:05
wallyworldbabbageclunk: lgtm, a couple of comments and a question06:19
kelvinliuwallyworld: ru still there?07:11
manadartjam: I am going to do QA testing on PR 10566 today, but I want to squash the commits at some point. If you want to take a look before I do (preserving the context of your prior comments) please go ahead.07:42
jammanadart: np, I think the big thing is to know which parts are the interesting ones and just focus there07:50
manadartjam: core/network and state.07:51
manadartjam: And probably apiserver/facades, where ProviderAddress -> SpaceAddress conversion is now occurring.08:12
manadartI am doing my own review now, and will annotate where appropriate.08:12
atdprhshello everyone, I seem to have a model or controller that keeps creating VMs no matter how many times I keep deleting them, it recreates them08:53
atdprhsdo anyone know if there is any way for me to find out whose doing that?08:53
atdprhsI keep seeing > 120 VMs that gets created08:54
atdprhsis there anyway that I can cleanup juju from all controllers, models everything09:15
timClicksatdprhs: what is the output of juju status?09:26
timClicksdo you know what command triggered the first VM to be created?09:27
atdprhsit's stuck09:29
atdprhsI deleted the wrong vm09:29
atdprhsit doesn't respond anymore, i am really flooded with tons of them09:29
timClicksthat sounds really horrible09:30
atdprhsyes, extremely horrible09:30
timClicksi recommend trying to remove the models first, hopefully the logs on the controller can be saved for a postmortem09:30
atdprhsluckily this is a test environment09:30
timClicksjuju destroy-model <model-name>09:31
atdprhsok, I'll destroy all of the moels09:31
timClicksactually do this09:31
timClicksjuju destroy-model <model-name> --force --no-wait09:31
timClicksif you have many units, that will be faster09:32
timClicksyou can also add a -y flag to avoid the confirmation prompts09:32
atdprhsone problem09:33
atdprhsI can't see models09:33
atdprhsand so I don't know what models I have09:33
timClicksokay09:33
atdprhsit says no controller registered09:33
timClicksoh, that's not okay09:33
timClickswhat is the output of juju controllers09:34
atdprhsERROR No controllers registered.09:44
atdprhstimClicks: is there a way that I can just simply reset or clean up juju?10:05
stickupkidatdprhs, what do you mean by reset? what does `juju controllers` say?10:06
timClicksnot without the controller, I don't think10:06
atdprhsso I'll have to live with those VMs that keeps getting created?10:07
atdprhs:O10:07
timClicksit's the controller that would be creating them10:09
atdprhsis htere something like juju discover controllers?10:10
timClicksjuju register10:10
stickupkidatdprhs, can you tell me what's in "less ~/.local/share/juju/controllers.yaml"10:11
atdprhsit's empty10:11
timClicksatdprhs: I'll hand over to stickupkid (it's after 10pm where I am)10:11
stickupkidatdprhs, do you have access to where vm software, i.e. where juju registered the controller?10:12
atdprhsthanks timClicks10:12
atdprhsyes, it's KVM10:12
stickupkidatdprhs, so you should be able to list all your vms, virsh list --all or similar10:13
atdprhsThere are  lot of VMs10:13
atdprhsnot sure which one10:13
atdprhscuz sadly when juju creates a VM, it doesn't give MaaS a proper name for the VM10:13
atdprhsso I end up with ideal-bream, clean-cougar, fresh-beetle, free-chimp, comic-orca, ace-mink10:14
stickupkidatdprhs, so without knowing which is the controller, you'd have to resort to arp -n or ifconfig to get the ip address and then kill it10:17
atdprhsI'd just delete all of the Vms10:17
atdprhsthey are all created by juju10:17
stickupkidatdprhs, then you can start again, by bootstrapping, sorry I'm not much more of a help10:18
atdprhsthe thing is10:19
atdprhsthat if i rebooted the server10:19
stickupkidatdprhs, otherwise juju register would be better to go down10:19
atdprhsjuju will continue to recreate the VMs again10:19
stickupkidbut if you've removed the controller, I've no idea how it's doing that10:20
rick_hstickupkid:  atdprhs did you juju unregister? that just removes the local cache of the controller information. It doesn't remove the controller11:20
rick_hstickupkid:  atdprhs if you unregistered and don't have it anywhere else you're going to be a bit stuck unfortunately. If you know what machine the controller is running on you can try to login to it, but you need to know the password of the admin user11:20
stickupkidrick_h, according to tailback atdprhs did juju destroy-model11:21
rick_hstickupkid:  looking at the traceback atdprhs is getting "it says no controller registered" so can't actually run any commands/etc11:21
jamrick_h: mine, brb11:37
=== grumble is now known as \emph{grumble}
atdprhshi stickupkid / rick_h : I deleted the VMs12:41
atdprhsi'll bootup the server and see if anything gets created12:42
atdprhsIf you guys say that no controller nothing gets created, so could it be possible MaaS? But what in MaaS could be doing that?12:42
atdprhsbut from the specs of the VMs that gets created, I know it's from juju for one reason, the specs matches exactly the storage machines that I was trying to create12:43
atdprhsI booted up the server and I couldn't find any new machines13:25
atdprhsvery strange13:25
stickupkidachilleasa, let me switch and bootstrap the last test case, land and if it no worky i'll let you know13:37
achilleasastickupkid: sure thing13:38
stickupkidachilleasa, it worked13:52
achilleasastickupkid: rick_h can I get a sanity check on https://github.com/juju/juju/pull/10620?14:58
stickupkidachilleasa, of course14:58
stickupkidachilleasa, scanned all the files, seems like very thing is spot on15:04
achilleasastickupkid: the commits merged more or less cleanly (I had to tweak some imports because we have renamed some network pkgs on develop)15:07
stickupkidachilleasa, nice nice15:07
stickupkidhml, got a sec?16:42
hmlstickupkid:  sure16:42
stickupkidhml, meet in daily?16:43
hmlstickupkid: omw16:43
pepperheado/20:58
pepperheadIf I have a node reporting "pending" when running "juju status", how can it be forcibly cleared?20:59
pepperheadI think it happened because I removed an application before it finished deploying.21:00
pepperheadthen aborted from MAAS21:00
pepperheadAnyone know how to tell if my bootstrap of juju installed the gui juju-gui?21:25
timClickspepperhead: execute `juju gui`21:42
pepperheadSWEET! You ROCK!21:43
=== exsdev0 is now known as exsdev
pepperheadHarder question: I have a juju State of pending on a maas node that wont stop. Is there a way to force kill it?21:44
pepperheadIt was a deploy job that a killed "removed" before it ended, now stuck.21:45
timClicksjuju remove-unit --force <app>/<n>21:46
babbageclunkpepperhead: does `juju remove-machine --force <id>` work?21:46
pepperheadstarted deploying mysql, and removed it in the middle, bad idea.21:46
pepperheaddoes remove-machine destroy the machin in maas?21:46
timClicksperhaps `juju remove-machine <n>`21:46
babbageclunkit should release it back to the maas available pool21:46
timClicksit'll put that machine back into the maas pool iirc21:46
babbageclunkha timClicks beat you that time21:47
timClicksha21:47
pepperheadLooks like that did it, I was afraid to try something that said "remove machine"... :)21:48
timClickspepperhead: luckily juju doesn't have the ability to order a truck to send hardware to the landfill21:49
pepperheadBut what if it did ;)21:49
* babbageclunk starts coding it up21:49
pepperheadLOL21:49
timClicksplease use the coffee pot protocol21:50
timClickspepperhead: in terms of the wording though, everything juju-related is wrapped within a model21:50
timClicksso when you see remove anywhere, it means remove from the model21:50
pepperheadAhhhhh, THAT makes sense.21:51
timClicksalso remove-* commands are recoverable, they have a symmetric command add-* that reverses the removal21:51
timClicksdestroy-* commands are, in a sense, unrecoverable21:51
timClicksthey require you to start from scratch if you want to get back to pre-destruction21:52
pepperheadMy last Q of the day, promise: I want to try deploying OpenStack on a set of hardware nodes, but they only have one drive and one nic in eeach. Is this possible? the blog I was going to follow mentioned it REQUIRED two drives in each and two nics.21:53
timClickspepperhead: which guide?21:54
pepperheadOr is that more a mass thing, need to work around with curtin?21:54
pepperheadhttps://docs.openstack.org/project-deploy-guide/charm-deployment-guide/rocky/install-openstack.html21:55
timClicksi'm not familiar enough with openstack to speak authoritatively on production-grade deployments, but it's likely those "requirements" are actually "very strong recommendations"21:55
timClicksif you have the compute resources available, my recommendation would be to try it and see what happens21:57
pepperheadI am just doing a POC. Newly hired and the company REALLY need a private cloud to test terraform k8s control. It looked like Openstack look great, and I sold them on the maas/juju solution.21:57
pepperheadtimClicks yes, I have struggling getting juju up. They handed me a stack of Intel NUC's, and juju would NOT bootstrap. FINALLY found it was a bios issue.21:58
pepperheadbeen struggling even21:58
pepperheadThe bios is super poorly designed. Had to turn off the optical drive boot selection, the node being bootstrapped froze on reboot looking for it it seems. Also had to turn off "boot nic last", it overrode the boot order. and the boot order was specified in two locaions in a gui that required a mouse. Nightmare.22:01
pepperheadThanks Intel22:01
timClickssounds like you've had a fun few hours then22:03
pepperheadThis fun is driving me to drinkin22:04
pepperheadadmittedly a short drive22:04
pepperheadSo the juju gui allows building a model, but wouldnt help with drive requirements/locations, right?22:05
pepperheadWOOT, the gui is working. VERY NICE!22:08
pepperheadVERY polished interface, kudos if any of y'all worked on it22:13
pepperheadGot that node re-commissioned, thanks again for the help!22:29
timClickspepperhead: really great to hear that you're moving forward; do make sure that you're signed up here: https://discourse.jujucharms.com/22:36

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