[openstack-dev] [Grizzly] Quantum-L3-Agent quite slow on initialization

2013-09-20 Thread Chu Duc Minh
I use Quantum-ovs with IP network-namespace.
I only have 1 quantum-router with 30 networks.
Each network have exactly 1 subnet (like: 10.0.x.0/24)
Currently, i only use 10 floating IP for some VM instances.

But when i (re-)start quantum-la3-agent, i took  5 minutes to complete
initialization:
(complete initialization means finish build iptables rules, ip namespace,
add floating ip,...)
I recheck quantum-l3-agent log and I sure about this.

*Do you think 5 minutes is too much for a network configuration like that?*

Best Regards,
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] Nova service(s) prolem when using Mysql behind HAProxy

2013-07-12 Thread Chu Duc Minh
Hi, when using Mysql behind Haproxy, i have a problem on reboot when some
nova services start after Haproxy service, but before Mysql service.
These service failed: (i re-checked for sure in /var/log/boot.log)
 * Starting Nova cert
[fail]
 * Starting Nova conductor
[fail]
 * Starting Nova scheduler
[fail]
 * Starting Cinder scheduler server
[fail]

I must login to server and re-start these services manually.

When check log of Nova-cert, I saw:

*2013-07-12 15:20:05.020 2490 CRITICAL nova [-] (OperationalError) (2013,
Lost connection to MySQL server at 'reading initial communic
ation packet', system error: 0) None None*
2013-07-12 15:20:05.020 2490 TRACE nova Traceback (most recent call last):
2013-07-12 15:20:05.020 2490 TRACE nova   File /usr/bin/nova-cert, line
51, in module
2013-07-12 15:20:05.020 2490 TRACE nova service.wait()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/service.py, line 689, in wait
2013-07-12 15:20:05.020 2490 TRACE nova _launcher.wait()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/service.py, line 209, in wait
2013-07-12 15:20:05.020 2490 TRACE nova super(ServiceLauncher,
self).wait()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/service.py, line 179, in wait
2013-07-12 15:20:05.020 2490 TRACE nova service.wait()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/eventlet/greenthread.py, line 168, in
wait
2013-07-12 15:20:05.020 2490 TRACE nova return self._exit_event.wait()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/eventlet/event.py, line 116, in wait
2013-07-12 15:20:05.020 2490 TRACE nova return hubs.get_hub().switch()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py, line 187, in switch
2013-07-12 15:20:05.020 2490 TRACE nova return self.greenlet.switch()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/eventlet/greenthread.py, line 194, in
main
2013-07-12 15:20:05.020 2490 TRACE nova result = function(*args,
**kwargs)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/service.py, line 147, in run_server
2013-07-12 15:20:05.020 2490 TRACE nova server.start()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/service.py, line 434, in start
2013-07-12 15:20:05.020 2490 TRACE nova self.host, self.binary)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/conductor/api.py, line 261, in
service_get_by_a
rgs
2013-07-12 15:20:05.020 2490 TRACE nova binary=binary)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/utils.py, line 1348, in wrapper
2013-07-12 15:20:05.020 2490 TRACE nova return func(*args, **kwargs)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/common.py,
line 424, in in
ner
2013-07-12 15:20:05.020 2490 TRACE nova return
catch_client_exception(exceptions, func, *args, **kwargs)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/common.py,
line 407, in ca
tch_client_exception
2013-07-12 15:20:05.020 2490 TRACE nova return func(*args, **kwargs)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/conductor/manager.py, line 325, in
service_get_
all_by
2013-07-12 15:20:05.020 2490 TRACE nova result =
self.db.service_get_by_args(context, host, binary)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/db/api.py, line 155, in
service_get_by_args
2013-07-12 15:20:05.020 2490 TRACE nova return
IMPL.service_get_by_args(context, host, binary)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py, line 96, in
wrapper
2013-07-12 15:20:05.020 2490 TRACE nova return f(*args, **kwargs)
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py, line 409, in
service_get_by_args
2013-07-12 15:20:05.020 2490 TRACE nova result = model_query(context,
models.Service).\
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py, line 177, in
model_query
2013-07-12 15:20:05.020 2490 TRACE nova session = kwargs.get('session')
or get_session()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/openstack/common/db/sqlalchemy/session.py,
line 325, in get_session
2013-07-12 15:20:05.020 2490 TRACE nova engine = get_engine()
2013-07-12 15:20:05.020 2490 TRACE nova   File
/usr/lib/python2.7/dist-packages/nova/openstack/common/db/sqlalchemy/session.py,
line 446, in get_engine
2013-07-12 15:20:05.020 2490 TRACE nova _ENGINE =
create_engine(CONF.sql_connection)