/srv/irclogs.ubuntu.com/2020/05/05/#juju.txt

thumperanyone on know mocks well? I need to discuss a test00:03
thumperbabbageclunk, wallyworld[m] ?00:04
* thumper goes to make lunch instead00:04
* thumper looks for babbageclunk again00:56
thumpero/ kirkland00:56
* thumper checked calendar and saw babbageclunk out01:00
thumperwallyworld: I was wanting to chat about a test using mocks01:08
thumperas I'm struggling a little01:08
thumperwallyworld: could probably get it over in 5 minutes01:09
wallyworldsure, i'm free01:09
thumperwallyworld: I'll jump in your standup01:09
thumperwallyworld: https://github.com/juju/juju/pull/1153001:47
wallyworldok01:47
wallyworldjust finishing this other one01:47
thumperack01:50
wallyworldthumper: lgtm02:05
thumperta02:16
wallyworldthumper: a small fix to restore a api method to the latest facade https://github.com/juju/juju/pull/1152903:31
wallyworldand a +1/0 https://github.com/juju/juju/pull/1153103:43
* thumper loogs04:14
* thumper looks even04:14
thumperwallyworld: already commented on the first one04:14
thumperapproved second04:15
wallyworldta04:17
babbageclunkwallyworld: hey, you already merged my stuff forward into develop!04:18
babbageclunkthanks!04:18
wallyworldthumper: nah, not useful to me, just a pita to keep up to date. YMMV. i was also going for consistency. i can add them back if you feel strongly04:18
babbageclunkhuh, I think I've gotten confused from too much birthday cake04:20
wallyworldbabbageclunk: how was the birthday?04:21
babbageclunkabout as much fun as you can have at a party! (given that you're not allowed to invite friends)04:22
babbageclunkShe decided that you don't turn 4 until you've eaten the cake, it was very cute04:22
wallyworldwell, none of *my* parties have friends04:23
babbageclunkBugger, I landed that change in the wrong branch, backporting04:25
babbageclunkI mean, I intended to get it into develop, but had meant to do it first04:25
babbageclunkin 2.704:25
wallyworldooops04:25
babbageclunkfixing now04:29
thumperwallyworld: I think I do feel strongly enough to keep them, I'd like to see that pattern extended04:32
thumperwallyworld: the key here is that if they change, it should be obvious04:32
thumperand we shouldn't be changing older facades04:32
wallyworldok, i'll revert. but it's not a great check for facade breakage since you can add methods to a facade and not even know about the interfaces04:34
wallyworldi do question whether they carry their weight04:35
wallyworldthumper: pr much smaller now, interfaces restored04:46
babbageclunkkelvinliu: want to rubber-stamp the PR you've already approved but this time for the 2.7 branch? :) https://github.com/juju/juju/pull/1153204:52
kelvinliubabbageclunk: yep05:01
babbageclunkthanks!05:01
kelvinliunp : >05:02
wallyworldthumper: small one if you're still here https://github.com/juju/juju/pull/11533 otherwise can wait05:09
babbageclunkwallyworld: I done it05:20
wallyworldty05:21
thumperty05:43
thumperwell that was a very annoying hour debugging06:52
thumperfor the record, if you use a standard http client and have an url that looks like "http://something//action" and you call PostForm, it gets converted into a Get silently06:52
thumperremove the double slash and you're fine06:53
thumperFFS06:53
* thumper well past EOD07:20
thumperlater peeps07:20
=== balloons3 is now known as balloons
achilleasa_jam: do you want me to take a look at 11527 or do you want to land it as it's already approved?09:03
jamachilleasa_, I'm happy to have your feedback, if you're busy I can just land it.09:07
achilleasa_jam: will take a look now since I am waiting on CI ;-)09:08
jamgreat!09:15
=== salmankhan1 is now known as salmankhan
skatsaounisHi, I have a question regarding cloud-init of juju models' machines and juju controllers10:17
skatsaounisIs there an option during juju bootstrap or by providing juju model constraints to set some options to cloud-init of created machines?10:17
skatsaounisfor example, I would love to add a user with password to troubleshoot some issues with my OpenStack cloud provider.10:18
skatsaounisBeing more specific, I want to use the virsh console to login to a juju machine (nova instance) and login with my user to troubleshoot my connectivity issues10:19
Eryn_1983_FLhey guys12:10
Eryn_1983_FLI got an issue12:10
Eryn_1983_FLi remove my nic config on a server in the cluster and i cant login to it locall12:10
Eryn_1983_FLlocally12:10
Eryn_1983_FLthis is for openstack12:11
achilleasa_manadart: I am trying to add an address dedup layer on top of the NetworkInfo API call (uniter). An interface address is a tuple (host, address, cidr). I am trying to recall whether it is legal to have the same CIDR in two different spaces12:18
achilleasa_or do you think that dedupping on the address alone would be sufficient?12:19
manadartachilleasa_: As of right now, where CIDR:Subnet is 1:1, a CIDR can only be in one space.12:19
Eryn_1983_FLhello12:24
Eryn_1983_FLso how do i get into an admin account for a node on the cluster?12:25
Eryn_1983_FLi cant ssh into it.12:25
=== balloons4 is now known as balloons
Eryn_1983_FL???12:30
Eryn_1983_FLcan somebody tell me how i can rescue a box w/o any networking working?12:37
manadartEryn_1983_FL: If you add an interface via OpenStack, Juju should detect the change shortly thereafter, allow you to `juju ssh`.12:43
hmlachilleasa_:  11526 is looking good, just running a few of the qa steps again12:46
Eryn_1983_FLok..12:46
Eryn_1983_FLi dont think it can even communicate to it manadart12:46
Eryn_1983_FLi cant ping any nics12:48
Eryn_1983_FLheading towards a rescue cd..12:48
manadartEryn_1983_FL: This node is part of a Juju model, correct?12:49
Eryn_1983_FLyeah12:50
Eryn_1983_FLi move the netplan file12:50
Eryn_1983_FLand it messed it up12:50
Eryn_1983_FLatleast i found u guys finally12:51
Eryn_1983_FLand the docs the proper docs12:51
Eryn_1983_FLi got serious network issues12:51
Eryn_1983_FLi have broken the fabrics of spacetime/network :(12:51
=== marcosilva_ is now known as marcosilva
Eryn_1983_FLcan you explain how openstack is using netplan and vswitch?12:55
Eryn_1983_FLit seems like it was making only one bridge eth0 and thats what i remove thinking it was in error and then everything went down after reboot12:56
flxfoohi all,13:13
flxfoosorry to bother, I killed a juju process during bootstrap attempt, now I have `ERROR no API addresses" when trying to do a `juju status`, any idea?13:13
flxfoothanks in advance13:13
flxfoo(still wanted to create a new controller)13:14
Eryn_1983_FLnot sure flxfoo13:21
Eryn_1983_FLmanadart: ?13:22
Eryn_1983_FLnoobie here13:22
flxfooEryn_1983_FL: ok, got something13:30
Eryn_1983_FLok13:32
Eryn_1983_FLwhats the root passes?13:32
Eryn_1983_FLdamn it13:33
Eryn_1983_FLi didnt add it to the admin group or whatever13:33
Eryn_1983_FLsigh13:35
Eryn_1983_FLso i got vswitch and netplan running on the same boxes..13:37
Eryn_1983_FLwhy is that?13:37
Eryn_1983_FLis that normal?13:37
Eryn_1983_FLok i almost got it back to normal i hope13:56
Eryn_1983_FLwell less broken13:56
hmlflxfoo:  you need to remove the attempted controller and rebootstrap.  remove the controller machine via your cloud, and run juju unregister <controller name>14:06
petevgflxfoo: the --force flags on destroy controller, and the juju unregister <controller> command should help you get into a state where you can cleanup the borked controller. You can then bootstrap a new one.14:06
Eryn_1983_FLok guys i am going to post some pastebins of whats going on with my stuff14:07
petevgEryn_1983_FL: the internals of how the OpenStack charms work are documented at https://docs.openstack.org/charm-guide/latest/14:09
petevgIf you have specific questions after reading the docs, we'd be happy to answer them.14:09
Eryn_1983_FLhttps://paste.debian.net/1145121/14:10
Eryn_1983_FLok14:10
petevgEryn_1983_FL: juju and the charms are meant to abstract a lot of the internals away, so that you don't have to worry about them. You're welcome to experiment with your system, of course, but you will break things if you start removing network interfaces and network configuration files around. :-)14:11
Eryn_1983_FLok14:12
Eryn_1983_FLwell is there a way to go back?14:12
Eryn_1983_FLi think the problem is the co worker used juju and messed soemthing up14:13
Eryn_1983_FLthe switching fabric  broke14:13
Eryn_1983_FLlets start with how can i verify the status of my openstack, and juju, and then what can i do to reinstall rebuild14:14
Eryn_1983_FLhttps://paste.debian.net/1145123/14:17
Eryn_1983_FLthat looks good to me petevg14:17
Eryn_1983_FLexcept for ceph14:18
petevgEryn_1983_FL: if there are still problems, it looks like juju doesn't know about them. Do you know what actions the co-worker ran?14:18
Eryn_1983_FLno clue14:20
Eryn_1983_FLwe ere getting permission denied erros when we try to start instances14:20
Eryn_1983_FLi need to reinstall the switching on the machines is there a way to do that14:20
Eryn_1983_FLi think the rest is fine14:21
Eryn_1983_FLif i were to redeploy like web414:22
Eryn_1983_FLdoes that affect my instances or whatever14:22
petevgEryn_1983_FL: were you getting permission denied in the OpenStack tooling? What lead you to think that the root cause was networking?14:25
Eryn_1983_FLwell i saw the networking when i went in14:30
Eryn_1983_FLi think we saw some errors for br-int was busy14:30
Eryn_1983_FLand then the processes for openvswitch was down14:30
Eryn_1983_FLfailed14:30
Eryn_1983_FLthe webgui we got the permission denied error14:30
Eryn_1983_FLwhen we tried to restart the instaces after some external network issues and reboots14:32
petevgEryn_1983_FL: Open vSwitch is the virtualized networking layer for OpenStack. If you remove the bridges or interfaces or configuration it creates, you'll interfere with the OpenStack services' ability to communicate with each other.14:36
petevgWhen you fixed the external network issues, did you bring the network back up in the same state that it was in before? i.e., do machines still communicate on the same subnets, and have the same ip addresses?14:37
Eryn_1983_FLnot sure what he did on that layer either, i can still ssh from maas14:39
Eryn_1983_FLi can ping out on them14:39
Eryn_1983_FLat this point i just want to build another 4 host cluster and rescuse this data off and put it there..14:39
petevgEryn_1983_FL: that sounds like a good idea. There's enough uncertainty here in the history to make it hard to troubleshoot over IRC. If you have the option to rebuild, I'd go with that option. :-)14:44
achilleasa_manadart: if around can you take a look at https://github.com/juju/juju/pull/11535?15:00
achilleasa_manadart: you were right, the cause of the bug is indeed https://bugs.launchpad.net/juju/+bug/1855263 but we should probably leave that be and resolve it once your refactoring work lands15:01
mupBug #1855263: Duplicate link layer device entries when running on AWS <juju:Triaged by manadart> <https://launchpad.net/bugs/1855263>15:01
manadartachilleasa_: Yep; looking now.15:02
=== achilleasa_ is now known as achilleasa
Eryn_1983_FLok question guyes15:45
Eryn_1983_FLwhere are the root partitions stored for instances?15:46
Eryn_1983_FL??15:52
Eryn_1983_FLfound it /var/lib/nova/instances16:14
Eryn_1983_FLpetevg:  do you know how to open these files?16:27
petevgEryn_1983_FL: I wouldn't recommend introspecting vm filesystems unless you are very comfortable with what you're doing. If I were troubleshooting this myself, I'd probably be looking for root cause of the issue in log messages.16:30
Eryn_1983_FLyeah its the vswitch16:32
Eryn_1983_FLbut nobody know how to help me16:32
=== salmankhan1 is now known as salmankhan
petevgEryn_1983_FL: what are you trying to accomplish by inspecting the vms? Are you trying to recover data? Or look at logs?16:38
petevgYou can use openstack tools to look at the console logs. For example: "openstack console log show <some instance name>"16:39
Eryn_1983_FLi need the conifgs and data from them16:40
Eryn_1983_FLso i rebuild the entire thing16:40
Eryn_1983_FLlooks like its qcow16:42
Eryn_1983_FLi think i can handle that16:42
petevgEryn_1983_FL: yes. They are qcow images. Just as a note: you probably don't need to be looking in the images for information like how things were networked together. That information should exist in your juju bundle.yaml.16:44
petevgIf you're looking to recover data unique to applications that you had deployed on top of OpenStack, then it might make sense to look in those images, assuming that you don't have backups elsewhere.16:45
petevgEryn_1983_FL: also, since you're deploying on MAAS and Juju, do you have a support contract with Canonical? If so, I would reach out through your support channels. Those would be a better place to ask for step by step instructions on disaster recovery.16:48
Eryn_1983_FLhaha17:01
Eryn_1983_FLnope no support17:01
Eryn_1983_FLboss was like lets do this and installs it..17:01
Eryn_1983_FLnah this was not backuped else where,17:02
flxfoopetevg: hml thanks guys ! :)17:40
petevgYou're welcome!17:40
babbageclunkhpidcock: wanna do an easy +0/-0 review? https://github.com/juju/juju/pull/1153623:30
babbageclunkor anyone else - wallyworld?23:42
hpidcocksure23:46
hpidcockbabbageclunk: doneski23:47
babbageclunkcheers23:47

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