Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't Populate the database su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \ --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron"

[root@controller ~]# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \ --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron

Traceback (most recent call last): File "/usr/bin/neutron-db-manage", line 10, in <module> sys.exit(main())

File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 171, in main CONF()

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1685, in __call__ else sys.argv[1:])

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 2231, in _parse_cli_opts return self._parse_config_files()

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 2247, in _parse_config_files self._oparser.parse_args(self._args, namespace)

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1545, in parse_args return super(_CachedArgumentParser, self).parse_args(args, namespace)

File "/usr/lib64/python2.7/argparse.py", line 1688, in parse_args args, argv = self.parse_known_args(args, namespace)

File "/usr/lib64/python2.7/argparse.py", line 1720, in parse_known_args namespace, args = self._parse_known_args(args, namespace)

File "/usr/lib64/python2.7/argparse.py", line 1926, in _parse_known_args start_index = consume_optional(start_index)

File "/usr/lib64/python2.7/argparse.py", line 1866, in consume_optional take_action(action, args, option_string)

File "/usr/lib64/python2.7/argparse.py", line 1794, in take_action action(self, namespace, argument_values, option_string)

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1104, in __call__ ConfigParser._parse_file(values, namespace)

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1307, in _parse_file raise ConfigFileParseError(pe.filename, str(pe)) oslo.config.cfg.ConfigFileParseError: Failed to parse /etc/neutron/neutron.conf: at /etc/neutron/neutron.conf:80, Unexpected continuation line: ' auth_strategy = keystone'

==========================================================================================

Here Is The Configured Lines In /etc/neutron/neutron.conf

[root@controller ~]# grep -v "^#" /etc/neutron/neutron.conf [DEFAULT]

auth_strategy = keystone

notify_nova_on_port_status_changes = true

notify_nova_on_port_data_changes = true

nova_url = http://controller:8774/v2

nova_region_name = regionOne

nova_admin_username = nova

nova_admin_tenant_id = 17d8100fe75b4f8fa2ea08b74a10f632

nova_admin_password = redhat

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

rabbit_host=controller

rabbit_password=redhat

rpc_backend=rabbit

[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

============================================================================================

Here Is the ml2_conf File

[root@controller ~]# grep -v "^#" /etc/neutron/plugins/ml2/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

=============================================================================================

[root@controller ~]# openstack-status

== Nova services == openstack-nova-api: active

openstack-nova-cert: active

openstack-nova-compute: inactive (disabled on boot)

openstack-nova-network: inactive (disabled on boot)

openstack-nova-scheduler: active

openstack-nova-conductor: active

== Glance services ==

openstack-glance-api: active

openstack-glance-registry: active

== Keystone service ==

openstack-keystone: active

== neutron services ==

neutron-server: failed

neutron-dhcp-agent: inactive (disabled on boot)

neutron-l3-agent: inactive (disabled on boot)

neutron-metadata-agent: inactive (disabled on boot)

neutron-lbaas-agent: inactive (disabled on boot)

== Support services ==

libvirtd: active

dbus: active

rabbitmq-server: active

== Keystone users ==

+----------------------------------+---------+---------+---------------------+ | id | name | enabled | email | +----------------------------------+---------+---------+---------------------+ | 7898f05912b8445c8f1c28064c81039d | admin | True | admin@rootworld.com |

| 13a008905ce74ad9a1b17caab4e7ac3f | demo | True | demo@rootworld.com |

| 63230563f8a742e287f208b027073cf0 | glance | True | |

| d67826c7398b4d029e415a0ab765eb5c | neutron | True | |

| 250e17f50b2a47cfa8bde685b201981a | nova | True | | +----------------------------------+---------+---------+---------------------+

== Glance images ==

+--------------------------------------+---------------------+-------------+------------------+----------+--------+ | ID | Name | Disk Format | Container Format | Size | Status | +--------------------------------------+---------------------+-------------+------------------+----------+--------+

| f6c7c28e-9bc5-4327-8f10-3003ca48e211 | cirros-0.3.3-x86_64 | qcow2 | bare | 13200896 | active | +--------------------------------------+---------------------+-------------+------------------+----------+--------+

== Nova managed services == +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+

| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+ | 1 | nova-scheduler | controller.rootworld.com | internal | enabled | up | 2015-03-17T10:38:22.000000 | - |

| 2 | nova-consoleauth | controller.rootworld.com | internal | enabled | up | 2015-03-17T10:38:18.000000 | - |

| 3 | nova-conductor | controller.rootworld.com | internal | enabled | up | 2015-03-17T10:38:18.000000 | - |

| 4 | nova-cert | controller.rootworld.com | internal | enabled | up | 2015-03-17T10:38:17.000000 | - |

| 5 | nova-compute | compute1.rootworld.com | nova | enabled | up | 2015-03-17T10:38:16.000000 | - | +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+

== Nova networks ==

ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-a4caf7cd-f89e-4a14-afa0-9cb9cbacc26b)

click to hide/show revision 2
No.2 Revision

Can't Populate the database su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \ --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron"

[root@controller ~]# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \ --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron

Traceback (most recent call last):

[...]
 File "/usr/bin/neutron-db-manage", line 10, in <module>
    sys.exit(main())

File "/usr/lib/python2.7/site-packages/neutron/db/migration/cli.py", line 171, in main CONF()

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1685, in __call__ else sys.argv[1:])

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 2231, in _parse_cli_opts return self._parse_config_files()

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 2247, in _parse_config_files self._oparser.parse_args(self._args, namespace)

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1545, in parse_args return super(_CachedArgumentParser, self).parse_args(args, namespace)

File "/usr/lib64/python2.7/argparse.py", line 1688, in parse_args args, argv = self.parse_known_args(args, namespace)

File "/usr/lib64/python2.7/argparse.py", line 1720, in parse_known_args namespace, args = self._parse_known_args(args, namespace)

File "/usr/lib64/python2.7/argparse.py", line 1926, in _parse_known_args start_index = consume_optional(start_index)

File "/usr/lib64/python2.7/argparse.py", line 1866, in consume_optional take_action(action, args, option_string)

File "/usr/lib64/python2.7/argparse.py", line 1794, in take_action action(self, namespace, argument_values, option_string)

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1104, in __call__ ConfigParser._parse_file(values, namespace)

namespace)

File "/usr/lib/python2.7/site-packages/oslo/config/cfg.py", line 1307, in _parse_file raise ConfigFileParseError(pe.filename, str(pe)) oslo.config.cfg.ConfigFileParseError: Failed to parse /etc/neutron/neutron.conf: at /etc/neutron/neutron.conf:80, Unexpected continuation line: ' auth_strategy = keystone'

keystone'

==========================================================================================


Here Is Are The Configured Lines In /etc/neutron/neutron.conf

[root@controller ~]# grep -v "^#" /etc/neutron/neutron.conf [DEFAULT]

[DEFAULT]
 auth_strategy = keystone

keystone 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_region_name = regionOne

regionOne nova_admin_username = nova

nova nova_admin_tenant_id = 17d8100fe75b4f8fa2ea08b74a10f632

17d8100fe75b4f8fa2ea08b74a10f632 nova_admin_password = redhat

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

rabbit_host=controller

rabbit_password=redhat

rpc_backend=rabbit

[matchmaker_redis]

[matchmaker_ring]

[quotas]

[agent]

[keystone_authtoken]

http://controller:35357/v2.0 rabbit_host=controller rabbit_password=redhat rpc_backend=rabbit [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]

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

============================================================================================

Here Is the ml2_conf File

[root@controller ~]# grep -v "^#" /etc/neutron/plugins/ml2/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

=============================================================================================

[root@controller ~]# openstack-status

== Nova services == openstack-nova-api: active

openstack-nova-cert: active

openstack-nova-compute: inactive (disabled on boot)

openstack-nova-network: inactive (disabled on boot)

openstack-nova-scheduler: active

openstack-nova-conductor: active

== Glance services ==

openstack-glance-api: active

openstack-glance-registry: active

== Keystone service ==

openstack-keystone: active

== neutron services ==

neutron-server: failed

neutron-dhcp-agent: inactive (disabled on boot)

neutron-l3-agent: inactive (disabled on boot)

neutron-metadata-agent: inactive (disabled on boot)

neutron-lbaas-agent: inactive (disabled on boot)

== Support services ==

libvirtd: active

dbus: active

rabbitmq-server: active

== Keystone users ==

+----------------------------------+---------+---------+---------------------+ | id | name | enabled | email | +----------------------------------+---------+---------+---------------------+ | 7898f05912b8445c8f1c28064c81039d | admin | True | admin@rootworld.com |

| 13a008905ce74ad9a1b17caab4e7ac3f | demo | True | demo@rootworld.com |

| 63230563f8a742e287f208b027073cf0 | glance | True | |

| d67826c7398b4d029e415a0ab765eb5c | neutron | True | |

| 250e17f50b2a47cfa8bde685b201981a | nova | True | | +----------------------------------+---------+---------+---------------------+

== Glance images ==

+--------------------------------------+---------------------+-------------+------------------+----------+--------+ | ID | Name | Disk Format | Container Format | Size | Status | +--------------------------------------+---------------------+-------------+------------------+----------+--------+

| f6c7c28e-9bc5-4327-8f10-3003ca48e211 | cirros-0.3.3-x86_64 | qcow2 | bare | 13200896 | active | +--------------------------------------+---------------------+-------------+------------------+----------+--------+

== Nova managed services == +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+

| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+ | 1 | nova-scheduler | controller.rootworld.com | internal | enabled | up | 2015-03-17T10:38:22.000000 | - |

| 2 | nova-consoleauth | controller.rootworld.com | internal | enabled | up | 2015-03-17T10:38:18.000000 | - |

| 3 | nova-conductor | controller.rootworld.com | internal | enabled | up | 2015-03-17T10:38:18.000000 | - |

| 4 | nova-cert | controller.rootworld.com | internal | enabled | up | 2015-03-17T10:38:17.000000 | - |

| 5 | nova-compute | compute1.rootworld.com | nova | enabled | up | 2015-03-17T10:38:16.000000 | - | +----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+

== Nova networks ==

ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-a4caf7cd-f89e-4a14-afa0-9cb9cbacc26b)

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