Bug 1476979 - Cannot set ImageProxyAddress with engine-config
Summary: Cannot set ImageProxyAddress with engine-config
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.1.4.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.1.5
: 4.1.5.1
Assignee: Daniel Erez
QA Contact: Natalie Gavrielov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-01 01:01 UTC by Richard Chan
Modified: 2017-08-23 08:04 UTC (History)
6 users (show)

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
Clone Of:
Environment:
Last Closed: 2017-08-23 08:04:57 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 80047 0 master MERGED tools: expose ImageProxyAddress to engine-config 2020-04-26 08:42:29 UTC
oVirt gerrit 80085 0 ovirt-engine-4.1 MERGED tools: expose ImageProxyAddress to engine-config 2020-04-26 08:42:29 UTC

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)


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