Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1621140

Summary: add info logs to proxy (similar to daemon)
Product: [oVirt] ovirt-imageio Reporter: Daniel Erez <derez>
Component: ProxyAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Yosi Ben Shimon <ybenshim>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.4.3CC: bugs, nsoffer, tnisan, ylavi
Target Milestone: ovirt-4.2.7Flags: rule-engine: ovirt-4.2?
rule-engine: planning_ack?
rule-engine: devel_ack+
rule-engine: testing_ack+
Target Release: 1.4.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v1.4.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-02 14:33:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Erez 2018-08-23 13:50:54 UTC

Comment 1 Daniel Erez 2018-08-23 14:32:14 UTC
We need to add the following info logs (similar to daemon format):
* version
* GET /info
* PUT|GET|.. /images

Comment 2 Yosi Ben Shimon 2018-10-11 07:44:05 UTC
Tested on:
ovirt-engine-4.2.7.2-0.1.el7ev.noarch
ovirt-imageio-proxy-1.4.5-0.el7ev.noarch

Logs such as Server shut down, Starting server, Adding new ticket, OPTIONS, Starting HTTP connection, write, PUT... appears in the imageio-proxy log according to the changes above.

From the imageio-proxy log (upload image):
(MainThread) INFO 2018-10-11 09:03:27,625 image_proxy:35:root:(main) Server shut down, exiting
(MainThread) INFO 2018-10-11 09:05:18,515 server:45:server:(start) Starting (pid=3641, version=1.4.5)
(MainThread) INFO 2018-10-11 09:05:18,558 image_proxy:26:root:(main) Server started, successfully notified systemd
(Thread-2  ) INFO 2018-10-11 09:25:10,958 auth:197:auth2:(add_signed_ticket) Adding new ticket: <Ticket id=u'93c02f38-9dea-458e-b4cb-e6694d7bfb03', transfer_id=None, url=u'https://storage-ge17-vdsm1.scl.lab.tlv.redhat.com:54322' timeout=35997.041666030884 at 0x7f96309f8090>
(Thread-3  ) INFO 2018-10-11 09:25:12,021 images:39:root:(options) [10.36.116.161] OPTIONS
(Thread-3  ) INFO 2018-10-11 09:25:12,093 connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn) Starting new HTTPS connection (1): storage-ge17-vdsm1.scl.lab.tlv.redhat.com
(Thread-4  ) INFO 2018-10-11 09:25:12,818 images:159:root:(put) [10.36.116.161] WRITE size=104857600 offset=0 flush=True ticket=93c02f38-9dea-458e-b4cb-e6694d7bfb03
(Thread-4  ) INFO 2018-10-11 09:25:12,820 connectionpool:735:requests.packages.urllib3.connectionpool:(_new_conn) Starting new HTTPS connection (1): storage-ge17-vdsm1.scl.lab.tlv.redhat.com

Comment 3 Sandro Bonazzola 2018-11-02 14:33:32 UTC
This bugzilla is included in oVirt 4.2.7 release, published on November 2nd 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.7 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.