Bug 1376087 - [RFE] Vdsm metrics module in case hawkular should allow authentication (specify credentials)
Summary: [RFE] Vdsm metrics module in case hawkular should allow authentication (speci...
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: 4.18.11
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
: ---
Assignee: Yaniv Bronhaim
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-14 15:59 UTC by Petr Kubica
Modified: 2017-06-07 19:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-07 19:21:55 UTC
oVirt Team: Infra
ykaul: ovirt-future?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

Description Petr Kubica 2016-09-14 15:59:22 UTC
Description of problem:
In case using only hawkular-metrics there isn't any authentication request.
But if user wants use complete installtion of hawkular, access to /hawkular/metrics is forbidden without credentials.

Version-Release number of selected component (if applicable):
vdsm-4.18.11-1.el7ev.x86_64

How reproducible:
always

Steps to Reproduce:
1. Use hawkular (I tried http://pilhuhn.blogspot.cz/2016/06/using-hawkular-services-via-docker.html)

Actual results:
hawkular::ERROR::2016-08-17 08:33:26,095::utils::374::root::(wrapper) Unhandled exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 371, in wrapper
    return f(*a, **kw)
  File "/usr/lib/python2.7/site-packages/vdsm/concurrent.py", line 177, in run
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/metrics/hawkular.py", line 81, in _run
    client.put(items)
  File "/usr/lib/python2.7/site-packages/hawkular/metrics.py", line 273, in put
    self._post(self._get_metrics_raw_url(self._get_url(l)), r[l])
  File "/usr/lib/python2.7/site-packages/hawkular/metrics.py", line 204, in _post
    self._http(url, 'POST', data)
  File "/usr/lib/python2.7/site-packages/hawkular/metrics.py", line 191, in _http
    self._handle_error(e)
  File "/usr/lib/python2.7/site-packages/hawkular/metrics.py", line 226, in _handle_error
    raise e
HawkularMetricsError: HTTP Error 401: <html><head><title>Error</title></head><body>Unauthorized</body></html>

Comment 1 Oved Ourfali 2016-09-15 05:29:08 UTC
We can also consider 4.1, but not sure it will be prioritized.

Comment 2 Yaniv Kaul 2017-06-07 19:21:55 UTC
We don't use it anymore, closing.


Note You need to log in before you can comment on or make changes to this bug.