service neutron-metadata-agent unrecognized service

asked 2015-02-15 01:52:58 -0500

rp1393 gravatar image

updated 2015-02-15 04:41:17 -0500

im installing openstack on debian 7 nodes with ubuntu 14.04 manual

everything seemed fine until verifying network node section where i have to insert the command :

root@network:~# service neutron-metadata-agent restart

output :

unrecognized service

other services restart fine.

therefore from controller node i get this result by inserting the command :

controller@controller:~$ neutron agent-list

+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+
| id                                   | agent_type         | host    | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+
| 4c57aec5-948b-4147-9da8-e6e5bfefe18f | L3 agent           | network | :-)   | True           | neutron-l3-agent          |
| 9d5e018e-f305-4f8d-b6d7-3cbebc47d019 | DHCP agent         | network | :-)   | True           | neutron-dhcp-agent        |
| d250c89d-49d2-46d9-8124-780adfc1482c | Open vSwitch agent | network | :-)   | True           | neutron-openvswitch-agent |
+--------------------------------------+--------------------+---------+-------+----------------+---------------------------+

where there is no Metadata agent inside available.

i also had to make the /etc/neutron/metadata_agent.ini file to edit it and put values inside that at firts, there wasnt such a file and i had to make one.

P.S: command for installing neutron packages:

root@network:~# apt-get install neutron-plugin-ml2 neutron-plugin-openvswitch-agent   neutron-l3-agent neutron-dhcp-agent

Repos:

root@network:~# cat /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 NETINST Binary-1 20150110-14:41]/ wheezy main

#deb cdrom:[Debian GNU/Linux 7.8.0 _Wheezy_ - Official amd64 NETINST Binary-1 20150110-14:41]/ wheezy main

deb http://ftp.tr.debian.org/debian/ wheezy main
deb-src http://ftp.tr.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.tr.debian.org/debian/ wheezy-updates main
deb-src http://ftp.tr.debian.org/debian/ wheezy-updates main
deb http://archive.gplhost.com/debian juno-backports main
deb http://archive.gplhost.com/debian juno main
root@network:~#

even tried :

root@network:~# sudo apt-get install neutron-metadata-agent

it started downloading and installing the package, service could restart now, but got the same results at controller node but there will be a log generated in /var/log/neutron/neutron-metadata-agent.log as following

2015-02-15 14:09:07.707 7620 INFO neutron.common.config [-] Logging enabled!
2015-02-15 14:09:07.707 7620 DEBUG neutron.agent.metadata.agent [-] ******************************************************************************** log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1979
2015-02-15 14:09:07.707 7620 DEBUG neutron.agent.metadata.agent [-] Configuration options gathered from: log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1980
2015-02-15 14:09:07.707 7620 DEBUG neutron.agent.metadata.agent [-] command line args: ['--config-file=/etc/neutron/metadata_agent.ini', '--config-file=/etc/neutron/neutron.conf', '--log-file=/var/log/neutron/neutron-metadata-agent.log'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1981
2015-02-15 14:09:07.707 7620 DEBUG neutron.agent.metadata.agent [-] config files: ['/etc/neutron/metadata_agent.ini', '/etc/neutron/neutron.conf'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1982
2015-02-15 14:09:07.707 7620 DEBUG neutron.agent.metadata.agent [-] ================================================================================ log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1983
2015-02-15 14:09:07.707 7620 DEBUG neutron.agent.metadata.agent [-] admin_password                 = **** log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1992
2015-02-15 14:09:07.707 7620 DEBUG neutron.agent.metadata.agent [-] admin_tenant_name              = service log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1992
2015-02-15 14:09:07 ...
(more)
edit retag flag offensive close merge delete

Comments

Is the database entry in neutron.conf correctly set? From the error log it seems to be a database connection problem.

Herr-Herner gravatar imageHerr-Herner ( 2015-02-17 03:43:30 -0500 )edit