<div dir="ltr">Also, my file `/etc/sudoers.d/quantum_sudoers' contains:<div><br></div><div>---<br><div>Defaults:quantum !requiretty</div><div><br></div><div>quantum ALL = (root) NOPASSWD: /usr/bin/quantum-rootwrap</div>
</div><div>---</div><div><br></div><div>The error "sudo: no tty present and no askpass program specified" at `/var/log/quantum/dhcp-agent.log' persist... :-/</div><div><br></div><div>I don't think it is something missing with sudo...</div>
<div><br></div><div>Tks,</div><div>Thiago</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 March 2013 22:52, Martinx - $B%8%'!<%`%:(B <span dir="ltr"><<a href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@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 dir="ltr">My /etc/sudoers.d/nova_sudoers contains:<div><br></div><div>--</div><div><div>Defaults:nova !requiretty</div>
<div><br></div><div>nova ALL = (root) NOPASSWD: /usr/bin/nova-rootwrap </div></div><div>--</div><div>
<br></div><div>Do I need to change it?</div><div><br></div><div>Tks!</div><div>Thiago</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 March 2013 22:46, gong yong sheng <span dir="ltr"><<a href="mailto:gongysh@linux.vnet.ibm.com" target="_blank">gongysh@linux.vnet.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>It seems be about sudo.<br>
to create one sudo file under /etc/sudoers.d<br>
mine is: nova_sudoers:<br>
Defaults:gongysh !requiretty<br>
gongysh ALL = (ALL) NOPASSWD: ALL<div><div><br>
<br>
On 03/20/2013 09:37 AM, Martinx - $B%8%'!<%`%:(B wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div>
<div dir="ltr">
<div>Hi!</div>
<div><br>
</div>
I just rollback to the default namespace options, my Instance
now get its IP without problem.
<div><br>
</div>
<div>But, the message from my first e-mail on this thread, still
persist...</div>
<div><br>
</div>
<div>I tried to enable quantum metadata proxy stuff but, nothing
changes...</div>
<div><br>
</div>
<div>The following error keeps rolling at
my /var/log/quantum/dhcp-agent.log:</div>
<div><br>
</div>
<div>
---</div>
<div>...</div>
<div>Command: ['sudo', 'ip', 'netns', 'exec',
'qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/21a39c11-03fd-4e2e-b7a0-94eee95f5f91.pid',
'--network_id=21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'--state_path=/var/lib/quantum', '--metadata_port=80',
'--debug', '--verbose',
'--log-file=quantum-ns-metadata-proxy21a39c11-03fd-4e2e-b7a0-94eee95f5f91.log',
'--log-dir=/var/log/quantum']<br>
</div>
<div>
<div>Exit code: 1</div>
<div>Stdout: ''</div>
<div>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'</div>
<div>---</div>
</div>
<div><br>
</div>
<div> I tried everything I could... But this message persist...</div>
<div><br>
</div>
<div> The namespaces are enabled, look:</div>
<div><br>
</div>
<div>
<div>
ip netns exec qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91 ip
r</div>
<div><a href="http://10.33.14.0/24" target="_blank">10.33.14.0/24</a>
dev tapeb27823a-5e proto kernel scope link src
10.33.14.2 </div>
<div><br>
</div>
<div> What can I do?</div>
<div><br>
</div>
<div>Tks,</div>
<div>Thiago</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 19 March 2013 20:35, Martinx - $B%8%'!<%`%:(B
<span dir="ltr"><<a href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote">
<div dir="ltr">
<div>After disabling namespaces, with:</div>
<div><br>
</div>
<div>`allow_overlapping_ips = False' in quantum.conf<br>
</div>
<div><br>
</div>
<div>and with:</div>
<div><br>
</div>
<div>`use_namespaces = False'
in /etc/quantum/dhcp_agent.ini<br>
</div>
<div><br>
</div>
The previous error message dissapear but, My Instance
isn't getting its IP via DHCP now... Weird thing is that
it was working couple minutes ago, without disabling
namespaces explicitly...
<div>
<div><br>
</div>
<div>
<div> If I add the Instance IP by hand, I can reach
the Internet / gateway from it.</div>
</div>
<div><br>
</div>
<div> I'm finishing my Grizzly Quantum Single Flat PoC
environment, planning to publish a nice guide soon!</div>
<div><br>
</div>
<div> I appreciate any help!</div>
<div><br>
</div>
</div>
<div>Tks!</div>
<div>Thiago</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 19 March 2013 20:09,
Martinx - $B%8%'!<%`%:(B <span dir="ltr"><<a href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote">
<div dir="ltr">Guys,
<div><br>
</div>
<div> My /var/log/quantum/dhcp-agent.log file
shows:</div>
<div><br>
</div>
<div>
<div>2013-03-19 20:04:48 DEBUG
[quantum.agent.linux.utils] Running
command: ['sudo', 'ip', 'netns', 'exec',
'qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/21a39c11-03fd-4e2e-b7a0-94eee95f5f91.pid',
'--network_id=21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'--state_path=/var/lib/quantum',
'--metadata_port=80', '--debug',
'--verbose',
'--log-file=quantum-ns-metadata-proxy21a39c11-03fd-4e2e-b7a0-94eee95f5f91.log',
'--log-dir=/var/log/quantum']</div>
<div>2013-03-19 20:04:48 DEBUG
[quantum.agent.linux.utils] </div>
<div>Command: ['sudo', 'ip', 'netns',
'exec',
'qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/21a39c11-03fd-4e2e-b7a0-94eee95f5f91.pid',
'--network_id=21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'--state_path=/var/lib/quantum',
'--metadata_port=80', '--debug',
'--verbose',
'--log-file=quantum-ns-metadata-proxy21a39c11-03fd-4e2e-b7a0-94eee95f5f91.log',
'--log-dir=/var/log/quantum']</div>
<div>Exit code: 1</div>
<div>Stdout: ''</div>
<div>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'</div>
<div>2013-03-19 20:04:48 ERROR
[quantum.agent.dhcp_agent] Unable to sync
network state.</div>
<div>Traceback (most recent call last):</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 154, in sync_state</div>
<div>
self.refresh_dhcp_helper(network_id)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 208, in refresh_dhcp_helper</div>
<div> return
self.enable_dhcp_helper(network_id)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 187, in enable_dhcp_helper</div>
<div>
self.enable_isolated_metadata_proxy(network)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 321, in
enable_isolated_metadata_proxy</div>
<div> pm.enable(callback)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/linux/external_process.py",
line 55, in enable</div>
<div> ip_wrapper.netns.execute(cmd)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py",
line 407, in execute</div>
<div> check_exit_code=check_exit_code)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py",
line 61, in execute</div>
<div> raise RuntimeError(m)</div>
<div>RuntimeError: </div>
<div>
Command: ['sudo', 'ip', 'netns', 'exec',
'qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/21a39c11-03fd-4e2e-b7a0-94eee95f5f91.pid',
'--network_id=21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'--state_path=/var/lib/quantum',
'--metadata_port=80', '--debug',
'--verbose',
'--log-file=quantum-ns-metadata-proxy21a39c11-03fd-4e2e-b7a0-94eee95f5f91.log',
'--log-dir=/var/log/quantum']</div>
<div>Exit code: 1</div>
<div>Stdout: ''</div>
<div>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'</div>
<div><br>
</div>
<div> Tips?</div>
<div><br>
</div>
<div> It is a fresh installation to test
Grizzly...</div>
<div><br>
</div>
<div> I'm not using GRE or L3, only Quantum
Single FLAT... With Folsom and previous
Grizzly my Quantum was fine...</div>
<div><br>
</div>
<div> quantum-dhcp-agent
1:2013.1+git201303190501~precise-0ubuntu1 </div>
<div><br>
</div>
<div>Tks,</div>
<div>Thiago</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>