<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi all,<br>
             I've hit a brick wall trying to get the dnsmasq process to
    bind correctly and get itself ready to answer bootp/dhcp broadcasts.<br>
    <br>
    Any ideas appreciated, please note this is Ubuntu 12.04-1(LTS) not
    12.10.<br>
    <br>
    <br>
    <div class="moz-text-html" lang="x-western">
      <div dir="ltr">
        <div style=""><b>NICS</b></div>
        <div style="">
          <div>
            <div>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc
              noqueue state UNKNOWN </div>
            <div>    link/loopback 00:00:00:00:00:00 brd
              00:00:00:00:00:00</div>
            <div>    inet <a href="http://127.0.0.1/8">127.0.0.1/8</a>
              scope host lo</div>
            <div>    inet6 ::1/128 scope host </div>
            <div>       valid_lft forever preferred_lft forever</div>
            <div>2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu
              1500 qdisc mq state UNKNOWN qlen 1000</div>
            <div>    link/ether 00:0c:29:77:74:5f brd ff:ff:ff:ff:ff:ff</div>
            <div>    inet <a href="http://192.168.3.10/20">192.168.3.10/20</a>
              brd 192.168.15.255 scope global eth0</div>
            <div>    inet6 fe80::20c:29ff:fe77:745f/64 scope link </div>
            <div>       valid_lft forever preferred_lft forever</div>
            <div>3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu
              1500 qdisc mq state UNKNOWN qlen 1000</div>
            <div>    link/ether 00:0c:29:77:74:69 brd ff:ff:ff:ff:ff:ff</div>
            <div>    inet <a href="http://10.10.10.10/32">10.10.10.10/32</a>
              scope global eth1</div>
            <div>    inet6 fe80::20c:29ff:fe77:7469/64 scope link </div>
            <div>       valid_lft forever preferred_lft forever</div>
            <div>4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu
              1500 qdisc mq state UNKNOWN qlen 1000</div>
            <div>
                  link/ether 00:0c:29:77:74:73 brd ff:ff:ff:ff:ff:ff</div>
            <div>    inet6 fe80::20c:29ff:fe77:7473/64 scope link </div>
            <div>       valid_lft forever preferred_lft forever</div>
            <div>6: br-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu
              1500 qdisc noqueue state UNKNOWN </div>
            <div>    link/ether 62:66:0f:50:4b:4f brd ff:ff:ff:ff:ff:ff</div>
            <div>    inet6 fe80::6066:fff:fe50:4b4f/64 scope link </div>
            <div>       valid_lft forever preferred_lft forever</div>
            <div>7: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu
              1500 qdisc noqueue state UNKNOWN </div>
            <div>    link/ether 00:0c:29:77:74:73 brd ff:ff:ff:ff:ff:ff</div>
            <div>    inet6 fe80::20c:29ff:fe77:7473/64 scope link </div>
            <div>       valid_lft forever preferred_lft forever</div>
            <div>8: tapc0732abd-3b:
              <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
              noqueue state UNKNOWN </div>
            <div>    link/ether fe:29:1c:e6:18:41 brd ff:ff:ff:ff:ff:ff</div>
            <div>    inet <a href="http://172.16.11.3/24">172.16.11.3/24</a>
              brd 172.16.11.255 scope global tapc0732abd-3b</div>
            <div>    inet6 fe80::fc29:1cff:fee6:1841/64 scope link </div>
            <div>       valid_lft forever preferred_lft forever</div>
            <div>9: br-tun: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu
              1500 qdisc noqueue state UNKNOWN </div>
            <div>    link/ether b2:62:b5:4e:ea:4a brd ff:ff:ff:ff:ff:ff</div>
            <div>    inet6 fe80::b062:b5ff:fe4e:ea4a/64 scope link </div>
            <div>       valid_lft forever preferred_lft forever</div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><b><br>
            </b></div>
          <div style=""><b>dnsmasq version</b></div>
          <div style="">
            <div>root@quantum:/var/log/quantum# dnsmasq -version</div>
            <div>Dnsmasq version 2.59  Copyright (c) 2000-2011 Simon
              Kelley</div>
            <div>Compile time options IPv6 GNU-getopt DBus i18n DHCP
              TFTP conntrack IDN</div>
          </div>
        </div>
        <div style=""><br>
        </div>
        <div style=""><b>In dhcp-agent.log </b></div>
        <div>
          2013-01-18 21:56:49    DEBUG [quantum.agent.dhcp_agent]
          Reusing existing device: tapc0732abd-3b.</div>
        <div>2013-01-18 21:56:49    DEBUG [quantum.agent.linux.utils]
          Running command: ip addr show tapc0732abd-3b permanent scope
          global</div>
        <div>2013-01-18 21:56:49    DEBUG [quantum.agent.linux.utils]</div>
        <div>Command: ['ip', 'addr', 'show', 'tapc0732abd-3b',
          'permanent', 'scope', 'global']</div>
        <div>Exit code: 0</div>
        <div>Stdout: '16: tapc0732abd-3b:
          <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc
          noqueue state UNKNOWN \n    link/ether fa:16:3e:f8:76:94 brd
          ff:ff:ff:ff:ff:ff\n    inet <a href="http://172.16.11.3/24">172.16.11.3/24</a>
          brd 172.16.11.255 scope global tapc0732abd-3b\n'</div>
        <div>Stderr: ''</div>
        <div>2013-01-18 21:56:49    DEBUG [quantum.agent.linux.dhcp]
          Unable to access
          /var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/pid</div>
        <div>2013-01-18 21:56:49    DEBUG [quantum.agent.linux.utils]
          Running command: sudo /usr/bin/quantum-rootwrap
          /etc/quantum/rootwrap.conf
          QUANTUM_RELAY_SOCKET_PATH=/var/lib/quantum/dhcp/lease_relay
          QUANTUM_NETWORK_ID=682d81ca-5ab9-490f-9397-ab28d9f3c850
          dnsmasq --no-hosts --no-resolv --strict-order
          --bind-interfaces --interface=tapc0732abd-3b
          --except-interface=lo --domain=openstacklocal
          --pid-file=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/pid

          --dhcp-hostsfile=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/host

          --dhcp-optsfile=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/opts

          --dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update
          --leasefile-ro --dhcp-range=set:tag0,172.16.11.0,static,120s</div>
        <div>2013-01-18 21:56:49    DEBUG [quantum.agent.linux.utils]</div>
        <div><br>
        </div>
        <div>Command: ['sudo', '/usr/bin/quantum-rootwrap',
          '/etc/quantum/rootwrap.conf',
          'QUANTUM_RELAY_SOCKET_PATH=/var/lib/quantum/dhcp/lease_relay',
          'QUANTUM_NETWORK_ID=682d81ca-5ab9-490f-9397-ab28d9f3c850',
          'dnsmasq', '--no-hosts', '--no-resolv', '--strict-order',
          '--bind-interfaces', '--interface=tapc0732abd-3b',
          '--except-interface=lo', '--domain=openstacklocal',
          '--pid-file=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/pid',

          '--dhcp-hostsfile=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/host',

          '--dhcp-optsfile=/var/lib/quantum/dhcp/682d81ca-5ab9-490f-9397-ab28d9f3c850/opts',

          '--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update',
          '--leasefile-ro',
          '--dhcp-range=set:tag0,172.16.11.0,static,120s']</div>
        <div>Exit code: 2</div>
        <div>Stdout: ''</div>
        <div><br>
        </div>
        <div>Stderr: '\ndnsmasq: failed to create listening socket for <a
            href="http://172.16.11.3">172.16.11.3</a>: Address already
          in use\n'</div>
        <div>2013-01-18 21:56:49    ERROR [quantum.agent.dhcp_agent]
          Unable to enable dhcp.</div>
        <div><br>
        </div>
        <div>Traceback (most recent call last):</div>
        <div>  File
          "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
          line 91, in call_driver</div>
        <div>    getattr(driver, action)()</div>
        <div>  File
          "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py",
          line 112, in enable</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div style=""><b>OVS show</b></div>
        <div style="">
          <div>root@quantum:/var/log/quantum# ovs-vsctl show</div>
          <div>0adf8822-6fae-4d10-a855-e39241b5d432</div>
          <div>    Bridge br-int</div>
          <div>        Port br-int</div>
          <div>            Interface br-int</div>
          <div>                type: internal</div>
          <div>        Port "tapc0732abd-3b"</div>
          <div>            tag: 1</div>
          <div>            Interface "tapc0732abd-3b"</div>
          <div>
                            type: internal</div>
          <div>        Port patch-tun</div>
          <div>            Interface patch-tun</div>
          <div>                type: patch</div>
          <div>                options: {peer=patch-int}</div>
          <div>    Bridge br-tun</div>
          <div>        Port patch-int</div>
          <div>            Interface patch-int</div>
          <div>                type: patch</div>
          <div>                options: {peer=patch-tun}</div>
          <div>        Port br-tun</div>
          <div>            Interface br-tun</div>
          <div>                type: internal</div>
          <div>    Bridge br-ex</div>
          <div>        Port "eth2"</div>
          <div>            Interface "eth2"</div>
          <div>        Port br-ex</div>
          <div>            Interface br-ex</div>
          <div>                type: internal</div>
          <div>    ovs_version: "1.4.0+build0"</div>
          <div><br>
          </div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
    </div>
  </body>
</html>