[Bug 1570606] Re: [2.0] subnet.list: list index out of range error when using a /31 subnet

2016-08-18 Thread Andres Rodriguez
** Changed in: maas Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570606 Title: [2.0] subnet.list: list index out of range error when using a /31 subn

[Bug 1570606] Re: [2.0] subnet.list: list index out of range error when using a /31 subnet

2016-04-15 Thread MAAS Lander
** Changed in: maas Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570606 Title: [2.0] subnet.list: list index out of range error when using a /31 subne

[Bug 1570606] Re: [2.0] subnet.list: list index out of range error when using a /31 subnet

2016-04-14 Thread Mike Pontillo
By the way, you will most likely only need the changes in that file related to the prefixlen; I added an assert just in case this happens again, since it's difficult to troubleshoot the problem without knowing what the problematic CIDR was. -- You received this bug notification because you are a

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread Mike Pontillo
Well, MAAS will automatically create subnets for you if it sees them attached to a registered rack controller. That is probably how you got the /31. (but you can use "maas maas subnets read" to grab of all of them from the API.) If you want to test the proposed fix, take a look at the linked merge

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread tz
i pulled the subnet list from maas-proxy.conf, would be interested in a better way to grab the subnets tho! /var/lib/maas]$ maas maas subnet statistics x.x.x.x/31 include_suggestions=True include_ranges=True list index out of range can i manually edit that somewhere (as i dont have GUI access du

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread Mike Pontillo
** Changed in: maas (Ubuntu) Status: New => Confirmed ** Changed in: maas (Ubuntu) Assignee: (unassigned) => Mike Pontillo (mpontillo) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570606

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread Launchpad Bug Tracker
** Branch linked: lp:~mpontillo/maas/fix-1570606 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570606 Title: [2.0] subnet.list: list index out of range To manage notifications about this bug go to

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread Mike Pontillo
** Changed in: maas Status: Incomplete => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570606 Title: [2.0] subnet.list: list index out of range To manage notifications about th

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread Mike Pontillo
OK, I think how this could occur just hit me... don't tell me you have a /31. Rather, why in the world do you have a /31?!?! ;-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570606 Title: [2.0] s

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread Mike Pontillo
** Changed in: maas Status: Triaged => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570606 Title: [2.0] subnet.list: list index out of range To manage notifications about this b

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread Mike Pontillo
This one is more puzzling than I first thought. It seems you have a subnet that has no IP addresses in it, and I'm not sure how this can happen. (the divide by zero you mentioned was due to a /32 subnet, and we already have unit tests for /32 and /128 subnets.) Which subnets are defined on your MA

[Bug 1570606] Re: [2.0] subnet.list: list index out of range

2016-04-14 Thread Mike Pontillo
** Changed in: maas Status: New => Triaged ** Changed in: maas Assignee: (unassigned) => Mike Pontillo (mpontillo) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570606 Title: [2.0] sub