Ask Your Question
2

neutron agent-list got nothing

asked 2014-12-22 07:51:02 -0500

stevew gravatar image

updated 2014-12-22 22:28:28 -0500

I'm following documentation for juno multinode (3 node) setup. In the chapter "6. Add a networking component" in section "Install and configure network node". Everything is all right. And I did carefully. When I want to List agents to verify successful launch of the neutron agents, I got nothing, empty!!!!i I've done everything before executing these two codes.

source admin-openrc.sh
neutron agent-list

Please tell me if you need me to provide any information to solve this. Thank you!

neutron.conf on network node

[DEFAULT]
# Print more verbose output (set logging level to INFO instead of default WARNING level).
verbose = True

# =========Start Global Config Option for Distributed L3 Router===============
# Setting the "router_distributed" flag to "True" will default to the creation
# of distributed tenant routers. The admin can override this flag by specifying
# the type of the router on the create request (admin-only attribute). Default
# value is "False" to support legacy mode (centralized) routers.
#
# router_distributed = False
#
# ===========End Global Config Option for Distributed L3 Router===============

# Print debugging output (set logging level to DEBUG instead of default WARNING level).
debug = True

# Where to store Neutron state files.  This directory must be writable by the
# user executing the agent.
# state_path = /var/lib/neutron

# Where to store lock files
lock_path = $state_path/lock

# log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
# log_date_format = %Y-%m-%d %H:%M:%S

# use_syslog                           -> syslog
# log_file and log_dir                 -> log_dir/log_file
# (not log_file) and log_dir           -> log_dir/{binary_name}.log
# use_stderr                           -> stderr
# (not user_stderr) and (not log_file) -> stdout
# publish_errors                       -> notification system

# use_syslog = False
# syslog_log_facility = LOG_USER

# use_stderr = True
# log_file =
# log_dir =

# publish_errors = False

# Address to bind the API server to
# bind_host = 0.0.0.0

# Port the bind the API server to
# bind_port = 9696

# Path to the extensions.  Note that this can be a colon-separated list of
# paths.  For example:
# api_extensions_path = extensions:/path/to/more/extensions:/even/more/extensions
# The __path__ of neutron.extensions is appended to this, so if your
# extensions are in there you don't need to specify them here
# api_extensions_path =

# (StrOpt) Neutron core plugin entrypoint to be loaded from the
# neutron.core_plugins namespace. See setup.cfg for the entrypoint names of the
# plugins included in the neutron source distribution. For compatibility with
# previous versions, the class name of a plugin can be specified instead of its
# entrypoint name.
#
core_plugin = ml2
# Example: core_plugin = ml2

# (ListOpt) List of service plugin entrypoints to be loaded from the
# neutron.service_plugins namespace. See setup.cfg for the entrypoint names of
# the plugins included in the neutron source distribution. For compatibility
# with previous versions, the class name of a plugin can be specified instead
# of its entrypoint name.
#
service_plugins = router
# Example: service_plugins = router,firewall,lbaas,vpnaas,metering

# Paste configuration file
# api_paste_config = api-paste.ini

# The strategy to be used for auth.
# Supported values are 'keystone'(default), 'noauth'.
auth_strategy = keystone

# Base MAC address. The first 3 octets will remain unchanged. If the
# 4h octet is not 00, it will also be used. The others will be
# randomly generated.
# 3 octet
# base_mac = fa:16:3e:00:00 ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-12-22 19:33:04 -0500

9lives gravatar image

updated 2014-12-22 19:33:22 -0500

force to use the answer field for the comment character limit

For troubleshooting issue like this logs and configuration file details are needed.

you can find logs in the /var/logs/neutron/ folder, the configuration files should be in /etc/neutron/ folder if you can not find them just search

find / -iname "*neutron*.log"
find / -iname "*neutron*.conf"

after you find them paste the logs and configuration files out by updating your original question or use the paste.openstack.org , the second way is recommended.

Hope that helps!

Vic

edit flag offensive delete link more

Comments

You mean on my controller node? or network node. In /var/logs/neutron/ folder of network node, I find dhcp-agent.log metadata-agent.log ovs-cleanup.log l3-agent.log openvswitch-agent.log. In /var/logs/neutron/ folder of controller node, I find server.log. which one is needed? Thank you !

stevew gravatar imagestevew ( 2014-12-22 20:58:59 -0500 )edit

could you paste the logs from the network nodes to paste.openstack.org first? besides paste the output of neutron --d agent-list before do the above step by updating your question pls.

9lives gravatar image9lives ( 2014-12-22 21:13:17 -0500 )edit

I've post that above! Thank you !

stevew gravatar imagestevew ( 2014-12-22 21:22:56 -0500 )edit

from the logs provided found two issues 1. the network node cannot connect to rabbitmq on controller node 2. the l3-agent seemed has no driver specified or incorrectly set. could you paste the configuration file for neutron-ovs-agent and l3-agent.ini in the network node?

9lives gravatar image9lives ( 2014-12-22 21:39:22 -0500 )edit
0

answered 2014-12-22 10:18:15 -0500

can you post the logs from neutron and set it to debugging?

edit flag offensive delete link more

Comments

I'm a beginner. Could you tell me how to do that? find the log? Thank you !

stevew gravatar imagestevew ( 2014-12-22 19:06:13 -0500 )edit

I've post neutron.conf on both network and controller node.

stevew gravatar imagestevew ( 2014-12-22 21:05:06 -0500 )edit

dhcp-agent.log: http://paste.openstack.org/show/154042/ metadata-agent.log: http://paste.openstack.org/show/154043/ l3-agent.log: http://paste.openstack.org/show/154044/ openvswitch-agent.log: http://paste.openstack.org/show/154045/

stevew gravatar imagestevew ( 2014-12-22 21:20:47 -0500 )edit
0

answered 2015-08-11 16:26:36 -0500

Ahmed Morgan gravatar image

I have this issue before, this happen for read permissions try to change owner in Network node for neutron config folder

chown -R neutron:neutron /etc/neutron/

do reboot your Network node and check the neutron agent-list in controller node again

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-12-22 07:51:02 -0500

Seen: 2,317 times

Last updated: Aug 11 '15