← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1600530] [NEW] Part 2 of engine DB facade breaks metadata agent

 

Public bug reported:

On devstack, tip of tree master:

Commit [1] breaks metadata agent on compute nodes with the following
error:

2016-07-09 16:49:52.427 ^[[01;31mCRITICAL neutron [^[[01;36mreq-ded33b76-bd78-4ce6-916e-53d8eedfc1d3 ^[[00;36mNone None^[[01;31m] ^[[01;35m^[[01;31mArgumentError: Could not parse rfc1738 URL from string ''^M
^[[00m^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00mTraceback (most recent call last):^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/bin/neutron-metadata-agent", line 10, in <module>^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    sys.exit(main())^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/cmd/eventlet/agents/metadata.py", line 17, in main^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    metadata_agent.main()^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/agent/metadata_agent.py", line 41, in main^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    proxy.run()^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/agent/metadata/agent.py", line 298, in run^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    mode=self._get_socket_mode())^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 372, in start^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    self._launch(application, workers=workers)^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/wsgi.py", line 206, in _launch^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    api.dispose()^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/db/api.py", line 110, in dispose^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    get_engine().pool.dispose()^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/db/api.py", line 106, in get_engine^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    return context_manager.get_legacy_facade().get_engine()^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 636, in get_legacy_facade^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    return self._factory.get_legacy_facade()^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 256, in get_legacy_facade^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    self._start()^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 338, in _start^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    engine_args, maker_args)^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 362, in _setup_for_connection^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    sql_connection=sql_connection, **engine_kwargs)^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py", line 112, in create_engine^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    url = sqlalchemy.engine.url.make_url(sql_connection)^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 186, in make_url^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    return _parse_rfc1738_args(name_or_url)^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 235, in _parse_rfc1738_args^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    "Could not parse rfc1738 URL from string '%s'" % name)^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00mArgumentError: Could not parse rfc1738 URL from string ''^M
^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m^M

Reverting commit [1] allows metadata agent to start

[1] https://review.openstack.org/312393

** Affects: neutron
     Importance: High
         Status: New


** Tags: l3-ipam-dhcp

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1600530

Title:
  Part 2 of engine DB facade breaks metadata agent

Status in neutron:
  New

Bug description:
  On devstack, tip of tree master:

  Commit [1] breaks metadata agent on compute nodes with the following
  error:

  2016-07-09 16:49:52.427 ^[[01;31mCRITICAL neutron [^[[01;36mreq-ded33b76-bd78-4ce6-916e-53d8eedfc1d3 ^[[00;36mNone None^[[01;31m] ^[[01;35m^[[01;31mArgumentError: Could not parse rfc1738 URL from string ''^M
  ^[[00m^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00mTraceback (most recent call last):^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/bin/neutron-metadata-agent", line 10, in <module>^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    sys.exit(main())^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/cmd/eventlet/agents/metadata.py", line 17, in main^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    metadata_agent.main()^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/agent/metadata_agent.py", line 41, in main^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    proxy.run()^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/agent/metadata/agent.py", line 298, in run^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    mode=self._get_socket_mode())^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 372, in start^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    self._launch(application, workers=workers)^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/wsgi.py", line 206, in _launch^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    api.dispose()^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/db/api.py", line 110, in dispose^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    get_engine().pool.dispose()^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/db/api.py", line 106, in get_engine^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    return context_manager.get_legacy_facade().get_engine()^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 636, in get_legacy_facade^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    return self._factory.get_legacy_facade()^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 256, in get_legacy_facade^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    self._start()^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 338, in _start^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    engine_args, maker_args)^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 362, in _setup_for_connection^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    sql_connection=sql_connection, **engine_kwargs)^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py", line 112, in create_engine^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    url = sqlalchemy.engine.url.make_url(sql_connection)^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 186, in make_url^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    return _parse_rfc1738_args(name_or_url)^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/url.py", line 235, in _parse_rfc1738_args^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m    "Could not parse rfc1738 URL from string '%s'" % name)^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00mArgumentError: Could not parse rfc1738 URL from string ''^M
  ^[[01;31m2016-07-09 16:49:52.427 TRACE neutron ^[[01;35m^[[00m^M

  Reverting commit [1] allows metadata agent to start

  [1] https://review.openstack.org/312393

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1600530/+subscriptions


Follow ups