Bug 1059692
| Summary: | [engine-log-collector] ERROR: Unable to connect to REST API. Reason: Bad Request / ERROR: _get_hypervisors_from_api: | ||
|---|---|---|---|
| Product: | [Retired] oVirt | Reporter: | Jiri Belka <jbelka> |
| Component: | ovirt-engine-logcollector | Assignee: | Eli Mesika <emesika> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Belka <jbelka> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 3.4 | CC: | acathrow, alonbl, emesika, gklein, iheim, jbelka, juan.hernandez, sbonazzo, talayan, yeylon |
| Target Milestone: | --- | ||
| Target Release: | 3.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | integration | ||
| Fixed In Version: | ovirt-3.4.0-beta3 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-03-31 12:27:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1041749 | ||
|
Description
Jiri Belka
2014-01-30 11:28:57 UTC
Probably related to bug #1055517 Hi Jiri, I've pushed a patch for bug #1055517 here: http://gerrit.ovirt.org/#/c/23935/ Can you reproduce the issue using that patch? This is caused by a integer overflow in the page calculations performed by the engine. The fix is in progress: http://gerrit.ovirt.org/23488 Eli, you may want to take it. Not working...
[root@jb-rh34 ovirt_log_collector]# engine-log-collector -H 10.34.62.205
INFO: Gathering oVirt Engine information...
INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost...
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip):
ERROR: Unable to connect to REST API. Reason: Unauthorized
ERROR: _get_hypervisors_from_api:
status: 401
reason: Unauthorized
detail: HTTP Status 401
ERROR: The following host are not listed as hypervisors: 10.34.62.205. Known hypervisors can be listed using the list command
[root@jb-rh34 ovirt_log_collector]# sed -n '124,131p' /usr/lib/python2.6/site-packages/ovirt_log_collector/helper/hypervisors.py
"""
Initialize the oVirt RESTful API
"""
url='https://{hostname}/ovirt-engine/api'.format(
hostname=hostname,
)
api = API(url=url,
username=username,
Jiri, http://gerrit.ovirt.org/23488 is not merged yet, so the issue is not solved yet. Move to modified? ok, works ok on 'beta3'. # engine-log-collector -H 10.34.63.222 INFO: Gathering oVirt Engine information... INFO: Gathering PostgreSQL the oVirt Engine database and log files from localhost... Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to skip): About to collect information from 1 hypervisors. Continue? (Y/n): Y INFO: Gathering information from selected hypervisors... INFO: collecting information from 10.34.63.222 INFO: finished collecting information from 10.34.63.222 Creating compressed archive... INFO: Log files have been collected and placed in /tmp/sosreport-LogCollector-20140225091417.tar.xz. The MD5 for this file is 955e44025c67f8937f6fbcd980670aad and its size is 20.8M this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released |