← Back to team overview

launchpad-reviewers team mailing list archive

Re: [Bug 1043121] [NEW] deployed node cannot be looked up with dnsmasq on MAAS

 

I wonder if this is because the lease file is not updated when an
existing lease already exists for a (mac, ip), even if the hostname
sent in the DHCP negotiation has changed?

-- 
You received this bug notification because you are a member of MAAS
Maintainers, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1043121

Title:
  deployed node cannot be looked up with dnsmasq on MAAS

Status in “maas” package in Ubuntu:
  New
Status in “maas” source package in Precise:
  New

Bug description:
  `juju bootstrap` succeed, but `juju status` cannot lookup bootstrap
  server.

  $ juju status
  2012-08-29 14:16:56,186 INFO Connecting to environment...
  2012-08-29 14:16:57,644 ERROR Invalid host for SSH forwarding: ssh: Could not resolve hostname node-525400720897: Name or service not known

  How to reproduce:
   1. setup MAAS with maas-dhcp
   2. set "Default domain for new nodes" on MAAS settings as blank or your domain.
   3. prepare a node as "Ready" state
   4. `juju bootstrap`
   5. start the node

  Expected result:
   `dig @127.0.0.1 node-525400720897` on MAAS server returns node-525400720897's IP address.

  Actual result:
    `dig @127.0.0.1 node-525400720897` on MAAS server returns nothing.
   but
   `dig @127.0.0.1 ubuntu` on MAAS server returns node-525400720897's IP address.

  
  WORKAROUND:
   clear DHCP lease table of hostname "ubuntu" forcibly *after* "Ready" state but *before* "Allocate" state.
    $ sudo sed -i -e '/\ ubuntu\ /d' /var/lib/misc/dnsmasq.leases
    $ sudo service dnsmasq restart

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: maas-dhcp 0.1+bzr482+dfsg-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic x86_64
  ApportVersion: 2.0.1-0ubuntu12
  Architecture: amd64
  Date: Wed Aug 29 15:21:12 2012
  InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm
   LANG=ja_JP.UTF-8
   SHELL=/bin/bash
  SourcePackage: maas
  UpgradeStatus: No upgrade log present (probably fresh install)

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