[Openstack-operators] (no subject)

mobile parmenides xparmenides at yahoo.com
Wed Jul 6 17:14:25 UTC 2016


Hi,


I am trying to deploy openstack following the guide "OpenStack Installation Guide for Ubuntu" in Ubuntu 14.04 LTS. I have two nodes: one is for controller, the other for compute. But, I have got stucked at neutron. After finishing configration, the results of 'neutron agent-list' command displayed the birdge of controller can not start. 


+--------------------------------------+--------------------+------------+-------------------
| id                                   | agent_type                 | host             | availability_zone  | alive      | 
+--------------------------------------+--------------------+------------+-------------------
|    | DHCP agent         | controller | nova                            | :-)          | 
|    | Metadata agent     | controller |                                      | :-)          | 
|    | L3 agent           | controller | nova                            | :-)          | 
|    | Linux bridge agent | compute       |                                      | :-)          | 
+--------------------------------------+--------------------+------------+-------------------

I have checked the '/etc/neutron/plugins/ml2/linuxbridge_agent.ini' file which is in accordance with the guid.


[linux_bridge]
physical_interface_mappings = provider:eth0

[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

[vxlan]
enable_vxlan = True
local_ip = 192.168.6.2
l2_population = True

Then, I checked the log file '/var/log/neutron/neutron-linuxbridge-agent.log', and there is an error message repeated many times as follows:

2016-07-07 00:28:01.872 11116 ERROR neutron Traceback (most recent call last):
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/bin/neutron-linuxbridge-agent", line 10, in <module>
2016-07-07 00:28:01.872 11116 ERROR neutron     sys.exit(main())
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/cmd/eventlet/plugins/linuxbridge_neutron_agent.py", line 21, in main
2016-07-07 00:28:01.872 11116 ERROR neutron     agent_main.main()
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 898, in main
2016-07-07 00:28:01.872 11116 ERROR neutron     manager = LinuxBridgeManager(bridge_mappings, interface_mappings)
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 76, in __init__
2016-07-07 00:28:01.872 11116 ERROR neutron     self.check_vxlan_support()
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 628, in check_vxlan_support
2016-07-07 00:28:01.872 11116 ERROR neutron     if self.vxlan_ucast_supported():
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 591, in vxlan_ucast_supported
2016-07-07 00:28:01.872 11116 ERROR neutron     test_iface = self.ensure_vxlan(seg_id)
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 286, in ensure_vxlan
2016-07-07 00:28:01.872 11116 ERROR neutron     return None
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-07-07 00:28:01.872 11116 ERROR neutron     self.force_reraise()
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-07-07 00:28:01.872 11116 ERROR neutron     six.reraise(self.type_, self.value, self.tb)
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 276, in ensure_vxlan
2016-07-07 00:28:01.872 11116 ERROR neutron     **args)
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 243, in add_vxlan
2016-07-07 00:28:01.872 11116 ERROR neutron     self._as_root([], 'link', cmd)
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 94, in _as_root
2016-07-07 00:28:01.872 11116 ERROR neutron     log_fail_as_error=self.log_fail_as_error)
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ip_lib.py", line 103, in _execute
2016-07-07 00:28:01.872 11116 ERROR neutron     log_fail_as_error=log_fail_as_error)
2016-07-07 00:28:01.872 11116 ERROR neutron   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 140, in execute
2016-07-07 00:28:01.872 11116 ERROR neutron     raise RuntimeError(msg)
2016-07-07 00:28:01.872 11116 ERROR neutron RuntimeError: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified
2016-07-07 00:28:01.872 11116 ERROR neutron 
2016-07-07 00:28:01.872 11116 ERROR neutron 
2016-07-07 00:28:03.307 11141 INFO neutron.common.config [-] Logging enabled!
2016-07-07 00:28:03.308 11141 INFO neutron.common.config [-] /usr/bin/neutron-linuxbridge-agent version 8.1.2
2016-07-07 00:28:03.308 11141 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface mappings: {'provider': 'eth0'}
2016-07-07 00:28:03.308 11141 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Bridge mappings: {}
2016-07-07 00:28:03.396 11141 ERROR neutron.agent.linux.utils [-] Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified

2016-07-07 00:28:03.408 11141 CRITICAL neutron [-] RuntimeError: Exit code: 1; Stdin: ; Stdout: ; Stderr: sudo: no tty present and no askpass program specified

I have no any experience with python programming at all, but I have executed every command with 'sudo' indeed.  I wonder what's the reason of the problem, how to deal with it. Thanks in advance.



More information about the OpenStack-operators mailing list