/srv/irclogs.ubuntu.com/2017/06/14/#maas.txt

=== mup_ is now known as mup
kelvinHow does maas compare to openstack?10:01
cnfare there any docs on upgrading from 2.1 to 2.2?10:42
cnfalso with juju, with maas 2.2, how can you filter on subnets now that spaces are vlan based, instead of subnet based?11:00
jamcnf: probably better to ask here how they're hoping to model those cases11:12
cnfhmm11:13
jamcnf: I understand some of the rationale for it11:14
cnfit breaks things, though, with no option that i can see11:14
jamI believe the underpinning is "any machine on the same vlan can pretend to be on any subnet"11:14
jamas nobody from the outside could tell that they shouldn't be there11:15
jamand thus the same 'space'11:15
cnfi find that to be very judgemental of other peoples networks11:15
jambut I think there are (as you have) concrete realities around "yes, this port could be using 10.100, or 192.168, but I *want it to use 192* for these operations"11:15
cnfespecially "routed should be good enough"11:15
cnfit isn't11:15
cnfi have "this VLAN has NO routes, at all" vlans11:16
cnfwhere you can add subnets11:16
cnfbut one subnet in it is not the other11:16
cnfas there is no routing between them11:16
jamcnf: so I thought vlan was supposed to be a "set of trunked switches", which if they are as you described, then they are separate vlans11:17
cnfjam: that's a fabric11:17
cnffrom https://docs.ubuntu.com/maas/2.2/en/intro-concepts11:18
cnfso now, from what I can see, i have no way in juju to define what _subnet_ i want11:22
cnfat all11:22
cshencnf: we upgraded our existing maas installation from 2.1 to 2.2, so far no big issue. Only find one bug https://bugs.launchpad.net/maas/+bug/169522911:24
jamcnf: so if you can't model them as logically distinct VLANs (even if they had the same vlan-id they aren't logically the same space if they are swappable)11:24
jamif they *aren't* swappable11:25
cnfjam: so you are saying create a different fabric for each?11:25
cnfbut then i can't have 1 machine be in both at the same time11:26
cnfbecause an interface can only be on 1 fabric11:26
cnfand maas will not let you define the same vlanID twice on the same fabric11:27
cnfwork calls, i'll be back in a bet11:32
cnfthanks for the help so far11:32
jammpontillo: ^^11:35
jamI'd be happy to discuss through how we might model some of these issues11:36
cnfok, i'm back12:02
cnfcshen: good to know, but i'm guessing you didn't use spaces a lot?12:02
cshencnf: what do you mean spaces?12:10
cshenI use maas basically as a hardware provisioning tool for our prive openstack cloud.12:10
cshenprivate openstack cloud12:10
cnfcshen: do you not use segmented networks for your openstack install?12:11
cshenyou mean vlan?12:12
cshenwe really do vlan in networking.12:12
cshenfor instance, internal api, public api, storage, and so on.12:13
cnfcshen: you don't use juju?12:15
cnfor any automated way to get the machines from maas?12:16
cshenno, we don't use juju.12:16
cshenwe write new machines into ansible inventory files.12:17
cnfso if you want to tell maas "i want a machine, it needs to be in this subnet / vlan" you'd use spaces12:17
cnfspaces where tied to subnets in 2.112:17
cnfand vlans in 2.212:17
cshencnf: thanks for the ip.12:17
cshentip12:17
cnfthe transition is causing me problems12:17
cnfi have VLAN's that contain multiple non-routed subnets12:18
cnfand now i can no longer select which subnet needs to be used12:18
cshennon-routed subnets, meaning no gateway?12:19
cnfyep12:19
cnfjam: btw, a related, but different problem i have is IP assignment to LXD containers in juju12:21
cshencnf: what do you mean "no longer select"? How do you "select"?12:23
jamcshen: he used to be able to define 2 spaces that used the same vlan but had different subnets in them12:24
cnfcshen: in juju, with constraints12:24
cnfcshen: so i can say constraints: "spaces=admin-space,storage-space"12:24
cnffor example12:24
cshencnf: oh, juju. I quit ;-)12:25
cnfwell, they are maas spaces, but yes, from juju12:25
cnfjam: so i have subnets that really are _not_ under my control12:28
cnfi need to ask for IP's to use in them, and request ACL's to be changed per ip12:28
cnfi have no way to assign a specific IP to a specific container in juju, afaik12:28
cnf(also, a lot of my constraints stem from "this part is not under my control)12:29
jamafter Juju has registered a device, can you assign it a concrete address?12:34
jamit certainly is a case of "dynamic machine allocation" which doesn't play nicely with "static IP address allocation"12:34
cnfjam: i don't know how to get juju to do that?12:36
cnfespecially with containers12:36
cnfand yeah, i agree12:36
cnfbut that's my reality12:36
jamcnf: when you juju deploy --to lxd:X we will eventually have created a device in MAAS12:36
jamI don't know if you can go to MAAS UI and play around with the IP associated with that container12:37
cnfno, once it's assigned, i can't12:37
cnfi  can assign a static IP to a machine12:37
jamcnf: do you have a pool that you could use, or is it "exactly this application has to use exactly that IP" ?12:37
cnfbefore it gets provisioned12:37
cnfjam: well, requesting "please open up all these ports for all ip's in this subnets" gets me a kind "why do you need all of those?"12:38
cnfa reply of "my tool doesn't let me get selective on which ip i assign" of course gets replied to with "not our problem" :P12:39
cnfi exaggerate, of course12:39
mupBug #1697931 opened: [2.2,snap] Proxy isn't running after installing the snap <snap> <MAAS:Triaged> <MAAS 2.2:Triaged> <https://launchpad.net/bugs/1697931>13:15
mupBug #1651165 changed: Unable to change disk name using maas gui <amd64> <apport-bug> <xenial> <MAAS:Triaged> <MAAS 2.2:New> <https://launchpad.net/bugs/1651165>13:51
mupBug #1697949 opened: MAAS renames VGname back to vg0 <MAAS:New> <https://launchpad.net/bugs/1697949>14:30
=== frankban|afk is now known as frankban
roaksoax/3/win 1614:38
pmatulis /4\win56/tab4\paragraph514:55
pmatulisoops, sorry14:55
roaksoaxcnf: /win 415:14
roaksoaxerr15:14
mpontillojam: interface constraints in MAAS are powerful enough to match on more than just spaces; is there a way to pass a constraint through so cnf can do this without changing the definition of a space?15:21
mpontillojam: when the L3 -> L2 spaces issue was discussed, I remember thinking that we should have L2 spaces *and* L3 spaces so we could meet both of these use cases, but the team decided against that for simplicity sake IIRC15:23
mpontilloI guess that's coming back to bite us15:23
mpontilloon the other hand, the network setup here seems unusually difficult to model. cnf, if you can think of the simplest possible way to model your network in MAAS that would make things better for you, I'd like to hear it15:25
vlad_Hey guys can maas provide dns/dhcp on an untagged lan or does it have to be vlans?15:26
BjornTvlad_: untagged is fine15:34
vlad_BjornT: Thanks man15:35
vlad_Hey guys I just ran into an issue I have the controller connected to all the interfaces, but on one of them I have two non-tagged lans in as aliases. I can't seem to provide dhcp to all three of the subnets from the web-ui will I need to do something via the CLI to get this to work?16:37
cnfmpontillo: sorry had meetings18:11
cnfmpontillo: i'm tied with constraints from a network i consume, but don't maintain18:11
cnfadmitedly, i'm already jumping through hoops in maas to accomodate that18:12
vlad_cnf: Yeah I'm in the same boat as you. I've got a network that's not ideal for this maas managed set of nodes I want to deploy openstack to18:15
cnfyeah, doing openstack as well18:16
cnfjam: so is there any way in juju to place constraints on subnets, instead of spaces?18:31
cnfi see "networks" under legacy constraints...18:31
vlad_cnf: Yeah most charms should have network definitions where you can specify lists of subnets18:32
cnfvlad_: how?18:34
mpontillocnf: not sure how this is plumbed through to juju, but MAAS has an 'interfaces' constraint which is likely powerful enough to do what you need. it's like the legacy 'networks' constraint but lets you select individual interfaces instead of just on the whole box19:21
mpontillojam: ^?19:21
cnfso my boxes only have 1 "interface" though19:22
cnfa bond of 2 10G links19:22
cnfeverything else is vlans19:22
mpontillocnf: ah, then you can probably use either the 'subnets' constraint. the 'interfaces' constraint would work if you had multiple interfaces and you needed to know which one matched which constraint19:23
xygnalhi guys.   I've noticed twice now that the MAAS API has been returning errors when using the API to provision a server,  even though all of the syntax for the command is correct.  Each time we've seen this, cycling maas-regiond is the only thing that fixed it.   How can I collect the proper debug information to file this as a bug?19:24
cnfsubnet constraint would work, but i don't think juju uses it?19:24
mpontillocnf: that is, in MAAS 2.x (I think -- maybe 1.9) the 'networks' constraint was replaced with the 'subnets' constraint.19:24
cnfright19:24
mpontillocnf: right, that's why I was asking jam -- I don't know how/if it's exposed in juju. vlad_ seems to think it is ;-)19:24
cnfwell, i use subnets as constraints now, i just stick spaces to them :P19:24
cnfright19:24
mpontilloxygnal: I would take a look at /var/log/maas/regiond.log and check if there are any Python tracebacks19:25
mpontilloxygnal: if you find one, file a bug and include it, please! (which version of MAAS?)19:25
mpontilloxygnal: if you could pastebin it and send it to me here for a preview, I'll be able to confirm if it's enough to identify the issue19:26
mpontilloxygnal: if it is, just hit https://bugs.launchpad.net/maas/+filebug and get it logged!19:26
xygnalmpontillo yes, there are.  machine object is not iterable is the error, and there are indeed tracebacks.19:28
cnfoh, i see all my maas bugs where closed19:28
xygnalunfortunately we've seen this happen both when their synatx was right, and when their syntax was wrong, so I am going to have to sort out which tracebacks were when the syntax was right19:28
xygnalmpontillo 2.2 release FYI19:29
xygnalmpontillo 169798619:48
mupBug #1697986 opened: API returns object is not iterable to valid API request for server deployment <MAAS:New> <https://launchpad.net/bugs/1697986>19:49
mpontilloxygnal: thanks! if you could try the "Accept:" header workaround, and/or provide example API calls that cause this problem (or share some code) that would be very helpful19:50
mpontilloxygnal: if it's the same as the "Accept" header issue, I'm not sure why restarting regiond would work around the problem19:50
xygnalmpontillo do both of those workaround need to be in place at the same time?  the way it was phrased was either or.19:51
mpontilloxygnal: it wouldn't hurt to make sure that accept header is always in place; if you do that you can remove the extra query string parameter for sure19:52
xygnalmpontillo I tried the same request 4 times and got that error each time. THen I restarted maas-regiond, and my first repeat of the command worked.19:52
mpontilloxygnal: but I'm going to mark that bug incomplete, since we'll need the API call (or CLI equivalent) before we can reproduce this19:52
mpontilloxygnal: that's weird. if it's the "response is in a random format because it was unspecified" bug, I wouldn't expect it to be so consistent19:53
xygnalhonestly it appears to get 'worse' over time19:54
xygnaluntil it reaches that point19:54
xygnalthe other day I was seeing it 'sometimes' but not every time19:54
xygnalthen today, ever time, until restart19:54
mpontilloxygnal: hm. that's bizarre. maybe there is a backlog of API calls causing datatbase transactions to thrash, or something?19:55
xygnalnot sure.  I was thinking something along those lines.19:55
mpontilloxygnal: do you think you could provide a sample MAAS CLI command that reproduces the error, or does it succeed with the MAAS CLI?19:55
xygnalI have pgsql monitored in telegraf, any particular trashing you would expect to see?19:55
xygnalwe already restarted the service so it wont come back for a while19:56
mpontilloxygnal: not really, I'm just throwing out theories =)19:56
mpontilloxygnal: but if you see anything that piques your interest, it might be worth mentioning19:56
mpontilloxygnal: but whatever insight you can give on that API calls you're making will be very helpful19:56
xygnalI see 15 deadlocks in pgsql's statistics but those never go away even after restart19:56
xygnalbeyond that.. nothing stands out19:57
mpontilloxygnal: we use postgres for locking so it makes me wonder if the deadlocks are intentional19:57
mpontillo(though "deadlock", by definition, would indicate otherwise.)19:57
xygnalyes, going back a month it was consistantly 14 deadlocks.  recently its up to 16.19:57
xygnaldoes not flux19:58
xygnalwe are not mass building dozens of boxes at once, the load is almost always low19:59
mpontilloxygnal: ok. are you able to add the "Accept" header? if so, I'm looking forward to hearing if that fixes that or not. (if not, I'd like to know which API call causes this and what parameters you're passing)20:06
xygnalWe will have to try it when we see this again.  Right now it is not a top priority, but i have notes for my team to try next time we see it.20:07

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