[Touch-packages] [Bug 1794988] [NEW] module mkhomedir does not create home directory

2018-09-28 Thread Zoltan Arnold Nagy
Public bug reported:

for all systems where the outermost directory isn't /home (or an
existing directory) the current mkhomedir does not work due to a bug
fixed in this commit:

https://github.com/linux-pam/linux-
pam/commit/ee204e9914be30c0b4462aefa1f4d45aa1068c0a

applying just this patch to the current source package fixes the issue.

can we have this patch included to restore functionality?

** Affects: pam (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pam in Ubuntu.
https://bugs.launchpad.net/bugs/1794988

Title:
  module mkhomedir does not create home directory

Status in pam package in Ubuntu:
  New

Bug description:
  for all systems where the outermost directory isn't /home (or an
  existing directory) the current mkhomedir does not work due to a bug
  fixed in this commit:

  https://github.com/linux-pam/linux-
  pam/commit/ee204e9914be30c0b4462aefa1f4d45aa1068c0a

  applying just this patch to the current source package fixes the
  issue.

  can we have this patch included to restore functionality?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/1794988/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1521618] Re: wrong subnet in DHCP answer when multiple networks are present

2015-12-08 Thread Zoltan Arnold Nagy
Mike, the symptom was that the PXE boot just hang as can bee seen from
the packet capture. No idea why actually, but the first thing fishy was
the wrong DHCP reply :)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1521618

Title:
  wrong subnet in DHCP answer when multiple networks are present

Status in MAAS:
  Triaged
Status in isc-dhcp package in Ubuntu:
  Confirmed

Bug description:
  So I have 3 interfaces with 3, non-overlapping subnets defined in my
  maas cluster controller.

  The idea would be that there is a provisioning network (10.6.0.0/16)
  to do the actual provisioning and once the node gets deployed it is
  using a different network (because the provisioning network is only
  1x1Gbit while the production network is bonded (LACP) 10Gbit).

  However, when I boot up a fresh, new node to add to MAAS, it gets the
  following DHCP reply:

  ip=10.6.239.3:10.6.250.250:9.4.113.254:255.255.255.0

  So instead of picking up the /16 subnet correctly for the 10.6.239.3
  IP, it picks up the /24 from the network where it gets it's default
  gateway from.

  Is this a bug or my understanding of how MAAS should behave when there
  are multiple networks flawed?

  Here is my /var/lib/maas/dhcpd.conf:

  subnet 9.4.113.0 netmask 255.255.255.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth0";
 ignore-client-uids true;
 option subnet-mask 255.255.255.0;
 option broadcast-address 9.4.113.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option routers 9.4.113.254;
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 9.4.113.150 9.4.113.190;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }
  subnet 10.6.0.0 netmask 255.255.0.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth1";
 ignore-client-uids true;
 option subnet-mask 255.255.0.0;
 option broadcast-address 10.6.255.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 10.6.239.0 10.6.239.239;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }

  Here is "subnets read":

  [
  {
  "dns_servers": [],
  "name": "9.4.113.0/24",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/0/",
  "fabric": "fabric-0",
  "vid": 0,
  "id": 0
  },
  "gateway_ip": "9.4.113.254",
  "cidr": "9.4.113.0/24",
  "id": 1,
  "resource_uri": "/MAAS/api/1.0/subnets/1/"
  },
  {
  "dns_servers": [],
  "name": "10.7.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5001/",
  "fabric": "fabric-1",
  "vid": 0,
  "id": 5001
  },
  "gateway_ip": null,
  "cidr": "10.7.0.0/16",
  "id": 2,
  "resource_uri": "/MAAS/api/1.0/subnets/2/"
  },
  {
  "dns_servers": [],
  "name": "10.6.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5002/",
  "fabric": "fabric-2",
  "vid": 0,
  "id": 5002
  },
  "gateway_ip": null,
  "cidr": "10.6.0.0/16",
  "id": 3,
  "resource_uri": "/MAAS/api/1.0/subnets/3/"
  }
  ]

  Running 1.9.0~rc2+bzr4509-0ubuntu1~trusty1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1521618/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubs

[Touch-packages] [Bug 1521618] Re: wrong subnet in DHCP answer when multiple networks are present

2015-12-08 Thread Zoltan Arnold Nagy
In the meantime I had to change the environment to get on with the
project so I don't have this setup anymore, but I could try to reproduce
it on a VMware environment later this week if you guys couldn't.

This is on trusty running isc-dhcp-server 4.2.4-7ubuntu12.3, with maas-
dhcp 1.9.0~rc2+bzr4509-0ubuntu1~trusty1

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1521618

Title:
  wrong subnet in DHCP answer when multiple networks are present

Status in MAAS:
  Triaged
Status in isc-dhcp package in Ubuntu:
  Confirmed

Bug description:
  So I have 3 interfaces with 3, non-overlapping subnets defined in my
  maas cluster controller.

  The idea would be that there is a provisioning network (10.6.0.0/16)
  to do the actual provisioning and once the node gets deployed it is
  using a different network (because the provisioning network is only
  1x1Gbit while the production network is bonded (LACP) 10Gbit).

  However, when I boot up a fresh, new node to add to MAAS, it gets the
  following DHCP reply:

  ip=10.6.239.3:10.6.250.250:9.4.113.254:255.255.255.0

  So instead of picking up the /16 subnet correctly for the 10.6.239.3
  IP, it picks up the /24 from the network where it gets it's default
  gateway from.

  Is this a bug or my understanding of how MAAS should behave when there
  are multiple networks flawed?

  Here is my /var/lib/maas/dhcpd.conf:

  subnet 9.4.113.0 netmask 255.255.255.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth0";
 ignore-client-uids true;
 option subnet-mask 255.255.255.0;
 option broadcast-address 9.4.113.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option routers 9.4.113.254;
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 9.4.113.150 9.4.113.190;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }
  subnet 10.6.0.0 netmask 255.255.0.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth1";
 ignore-client-uids true;
 option subnet-mask 255.255.0.0;
 option broadcast-address 10.6.255.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 10.6.239.0 10.6.239.239;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }

  Here is "subnets read":

  [
  {
  "dns_servers": [],
  "name": "9.4.113.0/24",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/0/",
  "fabric": "fabric-0",
  "vid": 0,
  "id": 0
  },
  "gateway_ip": "9.4.113.254",
  "cidr": "9.4.113.0/24",
  "id": 1,
  "resource_uri": "/MAAS/api/1.0/subnets/1/"
  },
  {
  "dns_servers": [],
  "name": "10.7.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5001/",
  "fabric": "fabric-1",
  "vid": 0,
  "id": 5001
  },
  "gateway_ip": null,
  "cidr": "10.7.0.0/16",
  "id": 2,
  "resource_uri": "/MAAS/api/1.0/subnets/2/"
  },
  {
  "dns_servers": [],
  "name": "10.6.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5002/",
  "fabric": "fabric-2",
  "vid": 0,
  "id": 5002
  },
  "gateway_ip": null,
  "cidr": "10.6.0.0/16",
  "id": 3,
  "resource_uri": "/MAAS/api/1.0/subnets/3/"
  }
  ]

  Running 1.9.0~rc2+bzr4509-0ubuntu1~trusty1.

To manage notifications about this bug go to:
https://bugs.launchpa

[Touch-packages] [Bug 1521618] Re: wrong subnet in DHCP answer when multiple networks are present

2015-12-03 Thread Zoltan Arnold Nagy
Adding the packet capture. The DHCP reply clearly has the wrong subnet;
after that I see it starts transferring the file over tftp so not sure
why it gets stuck.

** Attachment added: "failed_maas_pxe.pcap"
   
https://bugs.launchpad.net/maas/+bug/1521618/+attachment/4529431/+files/failed_maas_pxe.pcap

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1521618

Title:
  wrong subnet in DHCP answer when multiple networks are present

Status in MAAS:
  Incomplete
Status in isc-dhcp package in Ubuntu:
  New

Bug description:
  So I have 3 interfaces with 3, non-overlapping subnets defined in my
  maas cluster controller.

  The idea would be that there is a provisioning network (10.6.0.0/16)
  to do the actual provisioning and once the node gets deployed it is
  using a different network (because the provisioning network is only
  1x1Gbit while the production network is bonded (LACP) 10Gbit).

  However, when I boot up a fresh, new node to add to MAAS, it gets the
  following DHCP reply:

  ip=10.6.239.3:10.6.250.250:9.4.113.254:255.255.255.0

  So instead of picking up the /16 subnet correctly for the 10.6.239.3
  IP, it picks up the /24 from the network where it gets it's default
  gateway from.

  Is this a bug or my understanding of how MAAS should behave when there
  are multiple networks flawed?

  Here is my /var/lib/maas/dhcpd.conf:

  subnet 9.4.113.0 netmask 255.255.255.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth0";
 ignore-client-uids true;
 option subnet-mask 255.255.255.0;
 option broadcast-address 9.4.113.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option routers 9.4.113.254;
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 9.4.113.150 9.4.113.190;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }
  subnet 10.6.0.0 netmask 255.255.0.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth1";
 ignore-client-uids true;
 option subnet-mask 255.255.0.0;
 option broadcast-address 10.6.255.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 10.6.239.0 10.6.239.239;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }

  Here is "subnets read":

  [
  {
  "dns_servers": [],
  "name": "9.4.113.0/24",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/0/",
  "fabric": "fabric-0",
  "vid": 0,
  "id": 0
  },
  "gateway_ip": "9.4.113.254",
  "cidr": "9.4.113.0/24",
  "id": 1,
  "resource_uri": "/MAAS/api/1.0/subnets/1/"
  },
  {
  "dns_servers": [],
  "name": "10.7.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5001/",
  "fabric": "fabric-1",
  "vid": 0,
  "id": 5001
  },
  "gateway_ip": null,
  "cidr": "10.7.0.0/16",
  "id": 2,
  "resource_uri": "/MAAS/api/1.0/subnets/2/"
  },
  {
  "dns_servers": [],
  "name": "10.6.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5002/",
  "fabric": "fabric-2",
  "vid": 0,
  "id": 5002
  },
  "gateway_ip": null,
  "cidr": "10.6.0.0/16",
  "id": 3,
  "resource_uri": "/MAAS/api/1.0/subnets/3/"
  }
  ]

  Running 1.9.0~rc2+bzr4509-0ubuntu1~trusty1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1

[Touch-packages] [Bug 1521618] Re: wrong subnet in DHCP answer when multiple networks are present

2015-12-03 Thread Zoltan Arnold Nagy
Mike, I think the syntax of that line is the following:

ip=

(from the kernel's documentation)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1521618

Title:
  wrong subnet in DHCP answer when multiple networks are present

Status in MAAS:
  Incomplete
Status in isc-dhcp package in Ubuntu:
  New

Bug description:
  So I have 3 interfaces with 3, non-overlapping subnets defined in my
  maas cluster controller.

  The idea would be that there is a provisioning network (10.6.0.0/16)
  to do the actual provisioning and once the node gets deployed it is
  using a different network (because the provisioning network is only
  1x1Gbit while the production network is bonded (LACP) 10Gbit).

  However, when I boot up a fresh, new node to add to MAAS, it gets the
  following DHCP reply:

  ip=10.6.239.3:10.6.250.250:9.4.113.254:255.255.255.0

  So instead of picking up the /16 subnet correctly for the 10.6.239.3
  IP, it picks up the /24 from the network where it gets it's default
  gateway from.

  Is this a bug or my understanding of how MAAS should behave when there
  are multiple networks flawed?

  Here is my /var/lib/maas/dhcpd.conf:

  subnet 9.4.113.0 netmask 255.255.255.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth0";
 ignore-client-uids true;
 option subnet-mask 255.255.255.0;
 option broadcast-address 9.4.113.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option routers 9.4.113.254;
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 9.4.113.150 9.4.113.190;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }
  subnet 10.6.0.0 netmask 255.255.0.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth1";
 ignore-client-uids true;
 option subnet-mask 255.255.0.0;
 option broadcast-address 10.6.255.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 10.6.239.0 10.6.239.239;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }

  Here is "subnets read":

  [
  {
  "dns_servers": [],
  "name": "9.4.113.0/24",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/0/",
  "fabric": "fabric-0",
  "vid": 0,
  "id": 0
  },
  "gateway_ip": "9.4.113.254",
  "cidr": "9.4.113.0/24",
  "id": 1,
  "resource_uri": "/MAAS/api/1.0/subnets/1/"
  },
  {
  "dns_servers": [],
  "name": "10.7.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5001/",
  "fabric": "fabric-1",
  "vid": 0,
  "id": 5001
  },
  "gateway_ip": null,
  "cidr": "10.7.0.0/16",
  "id": 2,
  "resource_uri": "/MAAS/api/1.0/subnets/2/"
  },
  {
  "dns_servers": [],
  "name": "10.6.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5002/",
  "fabric": "fabric-2",
  "vid": 0,
  "id": 5002
  },
  "gateway_ip": null,
  "cidr": "10.6.0.0/16",
  "id": 3,
  "resource_uri": "/MAAS/api/1.0/subnets/3/"
  }
  ]

  Running 1.9.0~rc2+bzr4509-0ubuntu1~trusty1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1521618/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https:

[Touch-packages] [Bug 1521618] Re: wrong subnet in DHCP answer when multiple networks are present

2015-12-03 Thread Zoltan Arnold Nagy
Attaching the screenshot from the console of the server.

** Attachment added: "pxe_boot_screenshot.jpg"
   
https://bugs.launchpad.net/maas/+bug/1521618/+attachment/4529430/+files/pxe_boot_screenshot.jpg

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1521618

Title:
  wrong subnet in DHCP answer when multiple networks are present

Status in MAAS:
  Incomplete
Status in isc-dhcp package in Ubuntu:
  New

Bug description:
  So I have 3 interfaces with 3, non-overlapping subnets defined in my
  maas cluster controller.

  The idea would be that there is a provisioning network (10.6.0.0/16)
  to do the actual provisioning and once the node gets deployed it is
  using a different network (because the provisioning network is only
  1x1Gbit while the production network is bonded (LACP) 10Gbit).

  However, when I boot up a fresh, new node to add to MAAS, it gets the
  following DHCP reply:

  ip=10.6.239.3:10.6.250.250:9.4.113.254:255.255.255.0

  So instead of picking up the /16 subnet correctly for the 10.6.239.3
  IP, it picks up the /24 from the network where it gets it's default
  gateway from.

  Is this a bug or my understanding of how MAAS should behave when there
  are multiple networks flawed?

  Here is my /var/lib/maas/dhcpd.conf:

  subnet 9.4.113.0 netmask 255.255.255.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth0";
 ignore-client-uids true;
 option subnet-mask 255.255.255.0;
 option broadcast-address 9.4.113.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option routers 9.4.113.254;
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 9.4.113.150 9.4.113.190;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }
  subnet 10.6.0.0 netmask 255.255.0.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth1";
 ignore-client-uids true;
 option subnet-mask 255.255.0.0;
 option broadcast-address 10.6.255.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 10.6.239.0 10.6.239.239;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }

  Here is "subnets read":

  [
  {
  "dns_servers": [],
  "name": "9.4.113.0/24",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/0/",
  "fabric": "fabric-0",
  "vid": 0,
  "id": 0
  },
  "gateway_ip": "9.4.113.254",
  "cidr": "9.4.113.0/24",
  "id": 1,
  "resource_uri": "/MAAS/api/1.0/subnets/1/"
  },
  {
  "dns_servers": [],
  "name": "10.7.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5001/",
  "fabric": "fabric-1",
  "vid": 0,
  "id": 5001
  },
  "gateway_ip": null,
  "cidr": "10.7.0.0/16",
  "id": 2,
  "resource_uri": "/MAAS/api/1.0/subnets/2/"
  },
  {
  "dns_servers": [],
  "name": "10.6.0.0/16",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api/1.0/vlans/5002/",
  "fabric": "fabric-2",
  "vid": 0,
  "id": 5002
  },
  "gateway_ip": null,
  "cidr": "10.6.0.0/16",
  "id": 3,
  "resource_uri": "/MAAS/api/1.0/subnets/3/"
  }
  ]

  Running 1.9.0~rc2+bzr4509-0ubuntu1~trusty1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1521618/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-

[Touch-packages] [Bug 1521618] Re: wrong subnet in DHCP answer when multiple networks are present

2015-12-01 Thread Zoltan Arnold Nagy
I will be able to do the tcpdumps a bit later; in the meantime, here are
the requested outputs:

root@maas:~# ip addr list; ip route list
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group 
default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
2: eth0:  mtu 1500 qdisc mq state UP group 
default qlen 1000
link/ether 00:50:56:bf:29:c4 brd ff:ff:ff:ff:ff:ff
inet 9.4.113.251/24 brd 9.4.113.255 scope global eth0
   valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:febf:29c4/64 scope link
   valid_lft forever preferred_lft forever
3: eth1:  mtu 1500 qdisc mq state UP group 
default qlen 1000
link/ether 00:50:56:bf:a4:48 brd ff:ff:ff:ff:ff:ff
inet 10.6.250.250/16 brd 10.6.255.255 scope global eth1
   valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:febf:a448/64 scope link
   valid_lft forever preferred_lft forever
4: eth2:  mtu 1500 qdisc mq state UP group 
default qlen 1000
link/ether 00:50:56:bf:f1:71 brd ff:ff:ff:ff:ff:ff
inet 10.7.250.250/16 brd 10.7.255.255 scope global eth2
   valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:febf:f171/64 scope link
   valid_lft forever preferred_lft forever
default via 9.4.113.254 dev eth0
9.4.113.0/24 dev eth0  proto kernel  scope link  src 9.4.113.251
10.6.0.0/16 dev eth1  proto kernel  scope link  src 10.6.250.250
10.7.0.0/16 dev eth2  proto kernel  scope link  src 10.7.250.250
root@maas:~#

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1521618

Title:
  wrong subnet in DHCP answer when multiple networks are present

Status in MAAS:
  Incomplete
Status in isc-dhcp package in Ubuntu:
  New

Bug description:
  So I have 3 interfaces with 3, non-overlapping subnets defined in my
  maas cluster controller.

  The idea would be that there is a provisioning network (10.6.0.0/16)
  to do the actual provisioning and once the node gets deployed it is
  using a different network (because the provisioning network is only
  1x1Gbit while the production network is bonded (LACP) 10Gbit).

  However, when I boot up a fresh, new node to add to MAAS, it gets the
  following DHCP reply:

  ip=10.6.239.3:10.6.250.250:9.4.113.254:255.255.255.0

  So instead of picking up the /16 subnet correctly for the 10.6.239.3
  IP, it picks up the /24 from the network where it gets it's default
  gateway from.

  Is this a bug or my understanding of how MAAS should behave when there
  are multiple networks flawed?

  Here is my /var/lib/maas/dhcpd.conf:

  subnet 9.4.113.0 netmask 255.255.255.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth0";
 ignore-client-uids true;
 option subnet-mask 255.255.255.0;
 option broadcast-address 9.4.113.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option routers 9.4.113.254;
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 9.4.113.150 9.4.113.190;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }
  subnet 10.6.0.0 netmask 255.255.0.0 {
 if option arch = 00:0E {
filename "pxelinux.0";
option path-prefix "ppc64el/";
 } elsif option arch = 00:07 {
filename "bootx64.efi";
 } elsif option arch = 00:0B {
filename "grubaa64.efi";
 } elsif option arch = 00:0C {
filename "bootppc64.bin";
 } else {
filename "pxelinux.0";
 }
 interface "eth1";
 ignore-client-uids true;
 option subnet-mask 255.255.0.0;
 option broadcast-address 10.6.255.255;
 option domain-name-servers 9.4.113.251;
 option domain-name "i.zc2.ibm.com";
 option ntp-servers ntp.ubuntu.com;
 range dynamic-bootp 10.6.239.0 10.6.239.239;
 class "PXE" {
match if substring (option vendor-class-identifier, 0, 3) = "PXE";
default-lease-time 30;
max-lease-time 30;
 }
  }

  Here is "subnets read":

  [
  {
  "dns_servers": [],
  "name": "9.4.113.0/24",
  "space": "space-0",
  "vlan": {
  "name": "untagged",
  "resource_uri": "/MAAS/api