<div dir="ltr">Hi Ricardo:<div><br></div><div>I have not deployed quantum, but looking at your error message:</div><div><br></div><div><b style="font-family:arial,sans-serif;font-size:12.727272033691406px">RuntimeError:</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px">Command: ['sudo', 'ip', 'netns', 'exec', 'qdhcp-308fa2d9-d600-462e-b09a-be007cb8a6e8', 'quantum-ns-metadata-proxy', '--pid_file=/var/lib/quantum/external/pids/308fa2d9-d600-462e-b09a-be007cb8a6e8.pid', '--network_id=308fa2d9-d600-462e-b09a-be007cb8a6e8', '--state_path=/var/lib/quantum', '--metadata_port=80', '--log-file=quantum-ns-metadata-proxy308fa2d9-d600-462e-b09a-be007cb8a6e8.log', '--log-dir=/var/log/quantum']</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px">Exit code: 1</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px">Stdout: ''</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px">Stderr: 'sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n'</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
</b><b style="font-family:arial,sans-serif;font-size:12.727272033691406px">Waiting for data... (interrupt to abort)</b><br style="font-family:arial,sans-serif;font-size:12.727272033691406px"></div><div><br></div><div style>
I would guess it has to do with the sudo configuration on your system. Typically, when quantum is installed it uses a special program called "quantum-rootwrap" for sudoing, e.g.:</div><div style><br></div><div style>
sudo quantum-rootwrap ip netns exec ...</div><div style><br></div><div style><br></div><div style>Typically, when you install OpenStack from packages, it will configure sudo (/etc/sudoers or /etc/sudoers.d) to allow quantum-rootwrap to do passwordless sudo for commands needed by OpenStack. </div>
<div style><br></div><div style>See the docstring here: <a href="https://github.com/openstack/quantum/blob/stable/grizzly/bin/quantum-rootwrap">https://github.com/openstack/quantum/blob/stable/grizzly/bin/quantum-rootwrap</a></div>
<div style><br></div><div style>How did you install quantum?</div><div style><br></div><div style>Lorin</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 9:55 AM, Ricardo Contreras <span dir="ltr"><<a href="mailto:rcontreras1989@gmail.com" target="_blank">rcontreras1989@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi everyone!<br>
    I'm having a problem with Quantum and my recent installation of
    Grizzly on Ubuntu 12.04.<br>
    <br>
    I have this Network topology:<br>
    <br>
    <img src="cid:part1.09000404.09060101@gmail.com" alt=""><br>
    <br>
    <br>
    The Virtual Machine "Testing" take correctly the IP Address on the
    Network that it was created. The problem here is that the Router
    doesn't take the IP Address of the Subnet (In this case is 10.0.1.1
    and 10.0.2.1). If I check the logs of Quantum, I found this errors
    on dhcp-agent.log:<br>
    <br>
    <br>
    <b>Command: ['sudo', 'ip', 'netns', 'exec',
      'qdhcp-308fa2d9-d600-462e-b09a-be007cb8a6e8',
      'quantum-ns-metadata-proxy',
      '--pid_file=/var/lib/quantum/external/pids/308fa2d9-d600-462e-b09a-be007cb8a6e8.pid',
      '--network_id=308fa2d9-d600-462e-b09a-be007cb8a6e8',
      '--state_path=/var/lib/quantum', '--metadata_port=80',
      '--log-file=quantum-ns-metadata-proxy308fa2d9-d600-462e-b09a-be007cb8a6e8.log',
      '--log-dir=/var/log/quantum']</b><b><br>
    </b><b>Exit code: 1</b><b><br>
    </b><b>Stdout: ''</b><b><br>
    </b><b>Stderr: 'sudo: no tty present and no askpass program
      specified\nSorry, try again.\nsudo: no tty present and no askpass
      program specified\nSorry, try again.\nsudo: no tty present and no
      askpass program specified\nSorry, try again.\nsudo: 3 incorrect
      password attempts\n'</b><b><br>
    </b><b>2013-06-17 09:51:59    ERROR [quantum.agent.dhcp_agent]
      Unable to sync network state.</b><b><br>
    </b><b>Traceback (most recent call last):</b><b><br>
    </b><b>  File
      "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
      line 155, in sync_state</b><b><br>
    </b><b>    self.refresh_dhcp_helper(network_id)</b><b><br>
    </b><b>  File
      "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
      line 209, in refresh_dhcp_helper</b><b><br>
    </b><b>    return self.enable_dhcp_helper(network_id)</b><b><br>
    </b><b>  File
      "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
      line 188, in enable_dhcp_helper</b><b><br>
    </b><b>    self.enable_isolated_metadata_proxy(network)</b><b><br>
    </b><b>  File
      "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
      line 329, in enable_isolated_metadata_proxy</b><b><br>
    </b><b>    pm.enable(callback)</b><b><br>
    </b><b>  File
      "/usr/lib/python2.7/dist-packages/quantum/agent/linux/external_process.py",
      line 55, in enable</b><b><br>
    </b><b>    ip_wrapper.netns.execute(cmd)</b><b><br>
    </b><b>  File
      "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py",
      line 407, in execute</b><b><br>
    </b><b>    check_exit_code=check_exit_code)</b><b><br>
    </b><b>  File
      "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py",
      line 61, in execute</b><b><br>
    </b><b>    raise RuntimeError(m)</b><b><br>
    </b><b>RuntimeError:</b><b><br>
    </b><b>Command: ['sudo', 'ip', 'netns', 'exec',
      'qdhcp-308fa2d9-d600-462e-b09a-be007cb8a6e8',
      'quantum-ns-metadata-proxy',
      '--pid_file=/var/lib/quantum/external/pids/308fa2d9-d600-462e-b09a-be007cb8a6e8.pid',
      '--network_id=308fa2d9-d600-462e-b09a-be007cb8a6e8',
      '--state_path=/var/lib/quantum', '--metadata_port=80',
      '--log-file=quantum-ns-metadata-proxy308fa2d9-d600-462e-b09a-be007cb8a6e8.log',
      '--log-dir=/var/log/quantum']</b><b><br>
    </b><b>Exit code: 1</b><b><br>
    </b><b>Stdout: ''</b><b><br>
    </b><b>Stderr: 'sudo: no tty present and no askpass program
      specified\nSorry, try again.\nsudo: no tty present and no askpass
      program specified\nSorry, try again.\nsudo: no tty present and no
      askpass program specified\nSorry, try again.\nsudo: 3 incorrect
      password attempts\n'</b><b><br>
    </b><b>Waiting for data... (interrupt to abort)</b><br>
    <br>
    <br>
    It repeats several time (when I start up Quantum or when I create a
    new virtual machine). If I try to do a ping to the "Gateway"
    address, it doesn't response.<br>
    On Quantum, the Gateways Interface are down:<br>
    <br>
    <img src="cid:part2.01050908.09040000@gmail.com" alt=""><br>
    <br>
    On Google, I see some similar errors, but not a real solution.<br>
    <br>
    Someone had this issue? How it was resolved?<br>
    <br>
    Thanks!<span class="HOEnZb"><font color="#888888"><br>
    Ricardo<br>
    <br>
  </font></span></div>

<br>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Lorin Hochstein<br><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="http://www.nimbisservices.com" target="_blank">www.nimbisservices.com</a></div>
</div>
</div>