Monasca driver custom poll_time causes error

Bug #1762586 reported by Eric K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
High
Eric K

Bug Description

ERROR congress.datasources.datasource_driver [-] Datasource driver raised exception: ConnectFailure: Unable to establish connection to http://104.239.175.144:8070/v2.0/metrics: HTTPConnectionPool(host='104.239.175.144', port=8070): Max retries exceeded with url: /v2.0/metrics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2455c71d90>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
ERROR congress.datasources.datasource_driver Traceback (most recent call last):
ERROR congress.datasources.datasource_driver File "/opt/stack/new/congress/congress/datasources/datasource_driver.py", line 1337, in poll
ERROR congress.datasources.datasource_driver self.update_from_datasource() # sets self.state
ERROR congress.datasources.datasource_driver File "/opt/stack/new/congress/congress/datasources/datasource_driver.py", line 1324, in update_from_datasource
ERROR congress.datasources.datasource_driver self.update_methods[registered_table]()
ERROR congress.datasources.datasource_driver File "/opt/stack/new/congress/congress/datasources/monasca_driver.py", line 111, in <lambda>
ERROR congress.datasources.datasource_driver self.monasca.metrics.list())
ERROR congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/monascaclient/v2_0/metrics.py", line 36, in list
ERROR congress.datasources.datasource_driver return self._list('', 'dimensions', **kwargs)
ERROR congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/monascaclient/common/monasca_manager.py", line 48, in _list
ERROR congress.datasources.datasource_driver path=url_str
ERROR congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/osc_lib/api/api.py", line 234, in list
ERROR congress.datasources.datasource_driver headers=headers,
ERROR congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/osc_lib/api/api.py", line 141, in _request
ERROR congress.datasources.datasource_driver return session.request(url, method, **kwargs)
ERROR congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 698, in request
ERROR congress.datasources.datasource_driver resp = send(**kwargs)
ERROR congress.datasources.datasource_driver File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 772, in _send_request
ERROR congress.datasources.datasource_driver raise exceptions.ConnectFailure(msg)
ERROR congress.datasources.datasource_driver ConnectFailure: Unable to establish connection to http://104.239.175.144:8070/v2.0/metrics: HTTPConnectionPool(host='104.239.175.144', port=8070): Max retries exceeded with url: /v2.0/metrics (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2455c71d90>: Failed to establish a new connection: [Errno 111] ECONNREFUSED',))
ERROR congress.datasources.datasource_driver
INFO congress.datasources.datasource_driver [-] monasca:: finished polling
 Traceback (most recent call last):
   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line 115, in wait
     listener.cb(fileno)
   File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
     result = function(*args, **kwargs)
   File "/opt/stack/new/congress/congress/datasources/datasource_driver.py", line 1396, in poll_loop
     with eventlet.Timeout(poll_time):
   File "/usr/local/lib/python2.7/dist-packages/eventlet/timeout.py", line 52, in __init__
     self.start()
   File "/usr/local/lib/python2.7/dist-packages/eventlet/timeout.py", line 64, in start
     self.seconds, greenlet.getcurrent().throw, self)
   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 435, in schedule_call_global
     self.add_timer(t)
   File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 390, in add_timer
     scheduled_time = self.clock() + timer.seconds
 TypeError: unsupported operand type(s) for +: 'float' and 'unicode'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (master)

Fix proposed to branch: master
Review: https://review.openstack.org/559874

Changed in congress:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/559874
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=eabd6883665cb65d1fc612aef6e7e1071c2c23f1
Submitter: Zuul
Branch: master

commit eabd6883665cb65d1fc612aef6e7e1071c2c23f1
Author: Eric K <email address hidden>
Date: Mon Apr 9 18:13:10 2018 -0700

    Monasca driver poll time type fixed

    When custom poll time is specified in CLI monasca
    datasource instantiation, a string type is used,
    causing eventlet errors.

    The needed conversion to int is added in this patch.

    Change-Id: I5f4873752f41f7d0a4b0903f1f9e4d41eb05e810
    Closes-Bug: 1762586

Changed in congress:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/congress 8.0.0.0b1

This issue was fixed in the openstack/congress 8.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/595887

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (stable/queens)

Reviewed: https://review.openstack.org/595887
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=190a569100b3b1a7599600927a4495125d8c8bf7
Submitter: Zuul
Branch: stable/queens

commit 190a569100b3b1a7599600927a4495125d8c8bf7
Author: Eric K <email address hidden>
Date: Mon Apr 9 18:13:10 2018 -0700

    Monasca driver poll time type fixed

    When custom poll time is specified in CLI monasca
    datasource instantiation, a string type is used,
    causing eventlet errors.

    The needed conversion to int is added in this patch.

    Change-Id: I5f4873752f41f7d0a4b0903f1f9e4d41eb05e810
    Closes-Bug: 1762586
    (cherry picked from commit eabd6883665cb65d1fc612aef6e7e1071c2c23f1)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/congress 7.0.1

This issue was fixed in the openstack/congress 7.0.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.