Ask Your Question
1

Neutron server doesn't start with "ValueError: Empty module name"

asked 2015-01-28 20:41:13 -0600

Brian.Cho gravatar image

Hi. All.

I got an error as you've seen title and still having it. I just followed the step under "http://docs.openstack.org/juno/install-guide/install/yum/content/neutron-controller-node.html" to install and configure neutron server. Also, I've done until previous steps without problem. Which means problem has been solved in short time. But, I have no clue how to figure this out.

Of course, it happend when i was trying to start the neutron server. The server doesn't start. The other servers written in document on website were started without problem as bellows.

# systemctl restart openstack-nova-api.service openstack-nova-scheduler.service \ openstack-nova-conductor.service

Then , I tried to start next step as bellows.

systemct start neutron-server.service

You will be able to find the step on above link page I mentioned.

I really hope someone already know about this. and Thanks ~! :)

This is what my server environment.

  • Environment
  • x86_64
  • RHEL7
  • OpenStack Juno.
  • 64G Mem

  • Error message

Blockquote

015-01-29 10:33:44.116 18203 TRACE neutron.service

2015-01-29 10:33:44.120 18203 CRITICAL neutron [-] ValueError: Empty module name

2015-01-29 10:33:44.120 18203 TRACE neutron Traceback (most recent call last):

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/bin/neutron-server", line 10, in <module>

2015-01-29 10:33:44.120 18203 TRACE neutron sys.exit(main())

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/server/__init__.py", line 47, in main

2015-01-29 10:33:44.120 18203 TRACE neutron neutron_api = service.serve_wsgi(service.NeutronApiService)

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/service.py", line 105, in serve_wsgi

2015-01-29 10:33:44.120 18203 TRACE neutron LOG.exception(_('Unrecoverable error: please check log '

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/openstack/common/excutils.py", line 82, in __exit__

2015-01-29 10:33:44.120 18203 TRACE neutron six.reraise(self.type_, self.value, self.tb)

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/service.py", line 102, in serve_wsgi

2015-01-29 10:33:44.120 18203 TRACE neutron service.start()

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/service.py", line 73, in start

2015-01-29 10:33:44.120 18203 TRACE neutron self.wsgi_app = _run_wsgi(self.app_name)

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/service.py", line 168, in _run_wsgi

2015-01-29 10:33:44.120 18203 TRACE neutron app = config.load_paste_app(app_name)

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/common/config.py", line 183, in load_paste_app

2015-01-29 10:33:44.120 18203 TRACE neutron app = deploy.loadapp("config:%s" % config_path, name=app_name)

2015-01-29 10:33:44.120 18203 TRACE neutron File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp

2015-01-29 10:33:44.120 18203 TRACE neutron return loadobj(APP ... (more)

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2015-01-28 23:09:22 -0600

Can you paste neutron.conf ....

edit flag offensive delete link more
0

answered 2015-09-16 04:49:31 -0600

Tuxfux gravatar image

Hi All,

I have a similar error and tried to check all options but no luck. Could you please help me on with the following.

I used the following link for setup of neutron - http://docs.openstack.org/juno/install-guide/install/yum/content/neutron-controller-node.html (http://docs.openstack.org/juno/instal...)

Getting the following errors:

2015-09-16 14:53:03.848 655 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/manager.py", line 199, in _create_instance 2015-09-16 14:53:03.848 655 TRACE neutron cls._instance = cls() 2015-09-16 14:53:03.848 655 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/manager.py", line 114, in __init__ 2015-09-16 14:53:03.848 655 TRACE neutron plugin_provider) 2015-09-16 14:53:03.848 655 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/manager.py", line 135, in _get_plugin_instance 2015-09-16 14:53:03.848 655 TRACE neutron plugin_class = importutils.import_class(plugin_provider) 2015-09-16 14:53:03.848 655 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/openstack/common/importutils.py", line 27, in import_class 2015-09-16 14:53:03.848 655 TRACE neutron __import__(mod_str) 2015-09-16 14:53:03.848 655 TRACE neutron ValueError: Empty module name 2015-09-16 14:53:03.848 655 TRACE neutron

-- /etc/neutron/neutron.conf file [DEFAULT] verbose = True rpc_backend = rabbit rabbit_host = controller rabbit_password = guest auth_strategy = keystone core_plugin = m12 service_plugins = router allow_overlapping_ips = True notify_nova_on_port_status_changes = True notify_nova_on_port_data_changes = True nova_url = http://controller:8774/v2 nova_admin_auth_url = http://controller:35357/v2.0 nova_region_name = regionOne nova_admin_username = nova nova_admin_tenant_id = aebbee0834764d4e9c8ace747f1dc81a nova_admin_password = redhat [matchmaker_redis] [matchmaker_ring] [quotas] [agent] [keystone_authtoken] auth_uri = http://controller:5000/v2.0 identity_uri = http://controller:35357 admin_tenant_name = service admin_user = neutron admin_password = redhat [database] connection = mysql://neutron:redhat@controller/neutron [service_providers] service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

-- /etc/nova/nova.conf file

[database] connection = mysql://nova:redhat@controller/nova [DEFAULT] rpc_backend = rabbit rabbit_host = controller rabbit_password = redhat auth_strategy = keystone my_ip = 192.168.1.2 vncserver_listen = 192.168.1.2 vncserver_proxyclient_address = 192.168.1.2 verbose = True network_api_class = nova.network.neutronv2.api.API security_group_api = neutron linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver firewall_driver = nova.virt.firewall.NoopFirewallDriver [baremetal] [cells] [cinder] [conductor] [ephemeral_storage_encryption] [glance] host = controller [hyperv] [image_file_url] [ironic] [keymgr] [keystone_authtoken] auth_uri = http://controller:5000/v2.0 identity_uri = http://controller:35357 admin_tenant_name = service admin_user = nova admin_password = redhat [libvirt] [matchmaker_redis] [matchmaker_ring] [metrics] [neutron] url = http://controller:9696 auth_strategy = keystone admin_auth_url = http://controller:35357/v2.0 admin_tenant_name = service admin_username = neutron admin_password = redhat [osapi_v3] [rdp] [serial_console] [spice] [ssl] [trusted_computing] [upgrade_levels] [vmware] [xenserver] [zookeeper

Please let me know what is the issue with my configuration files or something else needs to be done.

edit flag offensive delete link more
0

answered 2015-01-29 01:53:21 -0600

Brian.Cho gravatar image

Yes, sure. Thanks.

===========

[DEFAULT]

auth_strategy=keystone

rpc_backend=neutron.openstack.common.rpc.impl_kombu

rabbit_host=60.60.60.1

rabbit_password=00kk00

notify_nova_on_port_status_changes=True

notify_nova_on_port_data_changes=True

nova_url=http://60.60.60.1:8774/v2

nova_admin_auth_url=http://60.60.60.1:35357/v2.0

nova_region_name=regionOne

nova_admin_username=nova

nova_admin_tenant_id=fbf5dc509f4643e492d0c180ea60ae19

nova_admin_password=xxxxxx

verbose=True

core_plugin=ml2

service_plugins=route

allow_overlapping_ips=True

network_api_class=nova.network.neutronv2.api.API

neutron_url=http://60.60.60.1:9696

neutron_auth_strategy=keystone

neutron_admin_tenant_name=service

neutron_admin_username=neutron

neutron_admin_password=xxxxxx

neutron_admin_auth_url=http://60.60.60.1:35357/v2.0

linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver

firewall_driver=nova.virt.firewall.NoopFirewallDriver

security_group_apt=neutron

service_neutron_metadata_proxy=true

neutron_metdata_proxy_shared_secret=metadatasecret

[ml2]

type_drivers=flat,gre

tenant_network_types=gre

mechanism_drivers=openvswitch

[ml2_type_gre]

tunnel_id_ranges=1:1000

[securitygroup]

enable_security_group=True

enable_ipset=True

firewall_driver=neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

[matchmaker_redis]

[matchmaker_ring]

[quotas]

[agent]

[keystone_authtoken]

auth_uri=http://60.60.60.1:5000/v2.0

identity_uri=http://60.60.60.1:35357

admin_tenant_name=service

admin_user=neutron

admin_password=xxxxxx

auth_host=60.60.60.1

auth_protocol=http

auth_port=35357

admin_tenant_name=service

admin_user=neutron

admin_password=xxxxxx

[database]

connection=mysql://neutron:00kk00@60.60.60.1/neutron

[service_providers]

service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default

edit flag offensive delete link more

Comments

service_plugins=route change route to router

Ranjit gravatar imageRanjit ( 2015-01-29 02:13:47 -0600 )edit

Very Thanks~~!!!! It worked~!!

Brian.Cho gravatar imageBrian.Cho ( 2015-01-29 03:03:37 -0600 )edit
0

answered 2015-03-12 07:44:17 -0600

Greg82 gravatar image

Hi I have the same problem, building testing environment, to learn how they work. Can you help me too.

This is what my server environment.

Environment
x86_64
CenOS 7
OpenStack Juno.

2015-03-12 08:15:04.542 2966 CRITICAL neutron [-] ValueError: Empty module name 2015-03-12 08:15:04.542 2966 TRACE neutron Traceback (most recent call last): 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/bin/neutron-server", line 10, in <module> 2015-03-12 08:15:04.542 2966 TRACE neutron sys.exit(main()) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/server/__init__.py", line 47, in main 2015-03-12 08:15:04.542 2966 TRACE neutron neutron_api = service.serve_wsgi(service.NeutronApiService) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/service.py", line 105, in serve_wsgi 2015-03-12 08:15:04.542 2966 TRACE neutron LOG.exception(_('Unrecoverable error: please check log ' 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/openstack/common/excutils.py", line 82, in __exit__ 2015-03-12 08:15:04.542 2966 TRACE neutron six.reraise(self.type_, self.value, self.tb) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/service.py", line 102, in serve_wsgi 2015-03-12 08:15:04.542 2966 TRACE neutron service.start() 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/service.py", line 73, in start 2015-03-12 08:15:04.542 2966 TRACE neutron self.wsgi_app = _run_wsgi(self.app_name) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/service.py", line 168, in _run_wsgi 2015-03-12 08:15:04.542 2966 TRACE neutron app = config.load_paste_app(app_name) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/neutron/common/config.py", line 183, in load_paste_app 2015-03-12 08:15:04.542 2966 TRACE neutron app = deploy.loadapp("config:%s" % config_path, name=app_name) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp 2015-03-12 08:15:04.542 2966 TRACE neutron return loadobj(APP, uri, name=name, kw) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj 2015-03-12 08:15:04.542 2966 TRACE neutron return context.create() 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create 2015-03-12 08:15:04.542 2966 TRACE neutron return self.object_type.invoke(self) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke 2015-03-12 08:15:04.542 2966 TRACE neutron *context.local_conf) 2015-03-12 08:15:04.542 2966 TRACE neutron File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 56, in fix_call 2015-03-12 08:15:04.542 2966 TRACE neutron val = callable(args ... (more)

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: 2015-01-28 20:30:00 -0600

Seen: 1,876 times

Last updated: Mar 12 '15