Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I chaged core_plugin section in neutron.conf file. But I got another error:

No handlers could be found for logger "neutron.common.legacy" Traceback (most recent call last): File "/usr/bin/neutron-db-manage", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 169, in main CONF.command.func(config, CONF.command.name) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 88, in do_stamp sql=CONF.command.sql) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 60, in do_alembic_command getattr(alembic_command, cmd)(config, args, *kwargs) File "/usr/lib/python2.6/site-packages/alembic/command.py", line 214, in stamp script.run_env() File "/usr/lib/python2.6/site-packages/alembic/script.py", line 191, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.6/site-packages/alembic/util.py", line 186, in load_python_file module = imp.load_source(module_id, path, open(path, 'rb')) File "/usr/lib/python2.6/site-packages/neutron/db/migration/alembic_migrations/env.py", line 42, in <module> importutils.import_class(class_path) File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 33, in import_class traceback.format_exception(*sys.exc_info()))) ImportError: Class router cannot be found (['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 28, in import_class\n __import__(mod_str)\n', 'ValueError: Empty module name\n'])

What can I do to solve this problem?

Thanks

I chaged core_plugin section in neutron.conf file. But I got another error:

No handlers could be found for logger "neutron.common.legacy" Traceback (most recent call last): File "/usr/bin/neutron-db-manage", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 169, in main CONF.command.func(config, CONF.command.name) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 88, in do_stamp sql=CONF.command.sql) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 60, in do_alembic_command getattr(alembic_command, cmd)(config, args, *kwargs) File "/usr/lib/python2.6/site-packages/alembic/command.py", line 214, in stamp script.run_env() File "/usr/lib/python2.6/site-packages/alembic/script.py", line 191, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.6/site-packages/alembic/util.py", line 186, in load_python_file module = imp.load_source(module_id, path, open(path, 'rb')) File "/usr/lib/python2.6/site-packages/neutron/db/migration/alembic_migrations/env.py", line 42, in <module> importutils.import_class(class_path) File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 33, in import_class traceback.format_exception(*sys.exc_info()))) ImportError: Class router cannot be found (['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 28, in import_class\n __import__(mod_str)\n', 'ValueError: Empty module name\n'])

What can I do to solve this problem?

Thanks


ml2_conf.ini <<<<<< [ml2] type_drivers = flat,gre tenant_network_types = gre mechanism_drivers = openvswitch [ml2_type_flat] [ml2_type_vlan] [ml2_type_gre] tunnel_id_ranges = 1:1000 [ml2_type_vxlan] [securitygroup] enable_security_group = True enable_ipset = True firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

neutron.conf <<<<< [DEFAULT] rpc_backend = rabbit rabbit_host = controller rabbit_password = PASSWORD auth_strategy = keystone core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin 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 = 718310229672467dbabc510458990207 nova_admin_password = PASSWORD verbose = True [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 = PASSWORD [database] connection = mysql://neutron:PASSWORD@controller/neutron [service_providers]

I attached my config files, I dont' have neutron-dist.conf file. And I seted "rabbit" for rpc_backend section, I follow this in guide [1]

Thanks [1] http://docs.openstack.org/juno/install-guide/install/yum/content/neutron-controller-node.html

I chaged core_plugin section in neutron.conf file. But I got another error:

No handlers could be found for logger "neutron.common.legacy" Traceback (most recent call last): File "/usr/bin/neutron-db-manage", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 169, in main CONF.command.func(config, CONF.command.name) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 88, in do_stamp sql=CONF.command.sql) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 60, in do_alembic_command getattr(alembic_command, cmd)(config, args, *kwargs) File "/usr/lib/python2.6/site-packages/alembic/command.py", line 214, in stamp script.run_env() File "/usr/lib/python2.6/site-packages/alembic/script.py", line 191, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.6/site-packages/alembic/util.py", line 186, in load_python_file module = imp.load_source(module_id, path, open(path, 'rb')) File "/usr/lib/python2.6/site-packages/neutron/db/migration/alembic_migrations/env.py", line 42, in <module> importutils.import_class(class_path) File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 33, in import_class traceback.format_exception(*sys.exc_info()))) ImportError: Class router cannot be found (['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 28, in import_class\n __import__(mod_str)\n', 'ValueError: Empty module name\n'])

What can I do to solve this problem?

Thanks


ml2_conf.ini <<<<<< [ml2] type_drivers = flat,gre flat,gre

tenant_network_types = gre gre

mechanism_drivers = openvswitch [ml2_type_flat] [ml2_type_vlan] [ml2_type_gre] openvswitch

[ml2_type_flat]

[ml2_type_vlan]

[ml2_type_gre]

tunnel_id_ranges = 1:1000 [ml2_type_vxlan] [securitygroup] 1:1000

[ml2_type_vxlan]

[securitygroup]

enable_security_group = True True

enable_ipset = True True

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

neutron.conf <<<<< [DEFAULT] [DEFAULT]

rpc_backend = rabbit rabbit

rabbit_host = controller controller

rabbit_password = PASSWORD PASSWORD

auth_strategy = keystone keystone

core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin neutron.plugins.ml2.plugin.Ml2Plugin

service_plugins = router router

allow_overlapping_ips = True True

notify_nova_on_port_status_changes = True True

notify_nova_on_port_data_changes = True True

nova_url = http://controller:8774/v2 http://controller:8774/v2

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

nova_region_name = regionOne regionOne

nova_admin_username = nova nova

nova_admin_tenant_id = 718310229672467dbabc510458990207 718310229672467dbabc510458990207

nova_admin_password = PASSWORD PASSWORD

verbose = True [quotas] [agent] [keystone_authtoken] True

[quotas]

[agent]

[keystone_authtoken]

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

identity_uri = http://controller:35357 http://controller:35357

admin_tenant_name = service service

admin_user = neutron neutron

admin_password = PASSWORD [database] PASSWORD

[database]

connection = mysql://neutron:PASSWORD@controller/neutron mysql://neutron:PASSWORD@controller/neutron

[service_providers]

I attached my config files, I dont' have neutron-dist.conf file. And I seted "rabbit" for rpc_backend section, I follow this in guide [1]

Thanks [1] http://docs.openstack.org/juno/install-guide/install/yum/content/neutron-controller-node.html

I chaged core_plugin section in neutron.conf file. But I got another error:

No handlers could be found for logger "neutron.common.legacy" Traceback (most recent call last): File "/usr/bin/neutron-db-manage", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 169, in main CONF.command.func(config, CONF.command.name) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 88, in do_stamp sql=CONF.command.sql) File "/usr/lib/python2.6/site-packages/neutron/db/migration/cli.py", line 60, in do_alembic_command getattr(alembic_command, cmd)(config, args, *kwargs) File "/usr/lib/python2.6/site-packages/alembic/command.py", line 214, in stamp script.run_env() File "/usr/lib/python2.6/site-packages/alembic/script.py", line 191, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.6/site-packages/alembic/util.py", line 186, in load_python_file module = imp.load_source(module_id, path, open(path, 'rb')) File "/usr/lib/python2.6/site-packages/neutron/db/migration/alembic_migrations/env.py", line 42, in <module> importutils.import_class(class_path) File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 33, in import_class traceback.format_exception(*sys.exc_info()))) ImportError: Class router cannot be found (['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/neutron/openstack/common/importutils.py", line 28, in import_class\n __import__(mod_str)\n', 'ValueError: Empty module name\n'])

What can I do to solve this problem?

Thanks


ml2_conf.ini <<<<<< [ml2] <<<<<<

[ml2]

type_drivers = flat,gre

tenant_network_types = gre

mechanism_drivers = openvswitch

[ml2_type_flat]

[ml2_type_vlan]

[ml2_type_gre]

tunnel_id_ranges = 1:1000

[ml2_type_vxlan]

[securitygroup]

enable_security_group = True

enable_ipset = True

firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

neutron.conf <<<<< <<<<<

[DEFAULT]

rpc_backend = rabbit

rabbit_host = controller

rabbit_password = PASSWORD

auth_strategy = keystone

core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin

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 = 718310229672467dbabc510458990207

nova_admin_password = PASSWORD

verbose = True

[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 = PASSWORD

[database]

connection = mysql://neutron:PASSWORD@controller/neutron

[service_providers]

I attached my config files, I dont' have neutron-dist.conf file. And I seted "rabbit" for rpc_backend section, I follow this in guide [1]

Thanks [1] http://docs.openstack.org/juno/install-guide/install/yum/content/neutron-controller-node.html