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

Bug 1476979

Summary: Cannot set ImageProxyAddress with engine-config
Product: [oVirt] ovirt-engine Reporter: Richard Chan <rc556677>
Component: GeneralAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Natalie Gavrielov <ngavrilo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.4.2CC: amureini, bugs, derez, lveyde, michal.skrivanek, tnisan
Target Milestone: ovirt-4.1.5Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.5.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Added ImageProxyAddress key to engine-config.properties file in order to support setting its value using engine-config tool. E.g. engine-config --set ImageProxyAddress=<fqdn>:54323
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-23 08:04:57 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 Richard Chan 2017-08-01 01:01:30 UTC
Description of problem:
After running setup for imageio proxy it asks you to run

engine-config -s ImageProxyAddress=xxxxx:54323 on the engine

However the error message is

Error setting ImageProxyAddress's value. No such entry with version general.


Version-Release number of selected component (if applicable):
ovirt-engine-4.1.4.2-1.el7.centos.noarch

How reproducible:
Always

Steps to Reproduce:
1. Install ovirt-imageio-proxy on a node
2. Follow on-screen instructions (cert etc)
3. At the conclusion try to run engine-config command on engine

Actual results:
Error setting ImageProxyAddress's value. No such entry with version general.



Expected results:
Value is set in engine

Additional info:
Value seems to exist in table

# sudo -u postgres psql engine
psql (9.2.18)
Type "help" for help.

engine=# select * from vdc_options where option_id=977;
 option_id |    option_name    |     option_value     | version 
-----------+-------------------+----------------------+---------
       977 | ImageProxyAddress | localhost:54323 | general
(1 row)

engine=#

Comment 1 Richard Chan 2017-08-01 01:19:04 UTC
This is from a system upgrade 3.6->4.0->4.1.

Comment 2 Richard Chan 2017-08-01 14:18:33 UTC
Karma +1 :-) I have tested this commit on 4.1.4 and it works to set the ImageProxyAddress property. Thanks!

Comment 3 Allon Mureinik 2017-08-03 14:27:36 UTC
Daniel, can you please add some doctext to this BZ?

Comment 4 Natalie Gavrielov 2017-08-07 14:57:59 UTC
Verified, using build:
ovirt-engine-4.1.5.1-0.1.el7.noarch


#cat /etc/ovirt-engine/engine-config/engine-config.properties | grep ImageProxy
ImageProxyAddress.description=URI of ovirt-imageio-proxy service ({fqdn}:{port})
ImageProxyAddress.type=String

# engine-config --get=ImageProxyAddress
ImageProxyAddress: storage-ge-03.scl.lab.tlv.redhat.com:54323 version: general


engine=# select * from vdc_options where option_name='ImageProxyAddress';
 option_id |    option_name    |      option_value      | version 
-----------+-------------------+------------------------+---------
       436 | ImageProxyAddress | ovirt-engine.com:54321 | general


[root@storage-ge-03 bin]# engine-config --set ImageProxyAddress='ovirt-engine.com:54321'

engine=# select * from vdc_options where option_name='ImageProxyAddress';
 option_id |    option_name    |      option_value      | version 
-----------+-------------------+------------------------+---------
       436 | ImageProxyAddress | ovirt-engine.com:54323 | general
(1 row)