Bug 1330156

Summary: ovirt-engine-rename seems not to touch /etc/ovirt-engine/engine.conf.d/11-setup-sso.conf
Product: [oVirt] ovirt-engine Reporter: Jiri Belka <jbelka>
Component: Tools.RenameAssignee: Ravi Nori <rnori>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: bugs, mperina
Target Milestone: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-26 18:55:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Belka 2016-04-25 13:13:08 UTC
Description of problem:

after running ovirt-engine-rename old "hostname" is still present in /etc/ovirt-engine/engine.conf.d/11-setup-sso.conf

~~~
/etc/ovirt-engine/imageuploader.conf.d/10-engine-setup.conf: engine=10-34-60-185.example.com:443
/etc/ovirt-engine/isouploader.conf.d/10-engine-setup.conf: engine=10-34-60-185.example.com:443
/etc/ovirt-engine/engine.conf.d/10-setup-reports-access.conf: ENGINE_REPORTS_BASE_URL=https://10-34-60-185.example.com:443/ovirt-engine-reports
/etc/ovirt-engine/engine.conf.d/10-setup-protocols.conf: ENGINE_FQDN=10-34-60-185.example.com
/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf: ENGINE_SSO_AUTH_URL="https://10-34-60-185.example.com:443/ovirt-engine/sso"
/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf: SSO_ENGINE_URL="https://10-34-60-185.example.com:443/ovirt-engine/"
/etc/ovirt-engine/ovirt-vmconsole-proxy-helper.conf.d/10-setup.conf: ENGINE_BASE_URL=http://10-34-60-185.example.com:80/ovirt-engine/
/etc/ovirt-engine/logcollector.conf.d/10-engine-setup.conf: engine=10-34-60-185.example.com:443
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf: OVESETUP_CONFIG/fqdn=str:10-34-60-185.example.com
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf: OVESETUP_ENGINE_CONFIG/fqdn=str:10-34-60-185.example.com
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf: OVESETUP_ENGINE_CONFIG/fqdn=str:10-34-60-185.example.com

~~~

/usr/share/ovirt-engine/setup/bin/ovirt-engine-rename ...

~~~
/etc/ovirt-engine/imageuploader.conf.d/10-engine-setup.conf: engine=10-34-60-167.example.com:443
/etc/ovirt-engine/isouploader.conf.d/10-engine-setup.conf: engine=10-34-60-167.example.com:443
/etc/ovirt-engine/engine.conf.d/10-setup-reports-access.conf: ENGINE_REPORTS_BASE_URL=https://10-34-60-185.example.com:443/ovirt-engine-reports
                                          ^^^ old
/etc/ovirt-engine/engine.conf.d/10-setup-protocols.conf: ENGINE_FQDN=10-34-60-167.example.com
/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf: ENGINE_SSO_AUTH_URL="https://10-34-60-185.example.com:443/ovirt-engine/sso"
                                      ^^^ old
/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf: SSO_ENGINE_URL="https://10-34-60-185.example.com:443/ovirt-engine/"
                                 ^^^ old
/etc/ovirt-engine/ovirt-vmconsole-proxy-helper.conf.d/10-setup.conf: ENGINE_BASE_URL=http://10-34-60-167.example.com:80/ovirt-engine/
/etc/ovirt-engine/logcollector.conf.d/10-engine-setup.conf: engine=10-34-60-167.example.com:443
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf: OVESETUP_CONFIG/fqdn=str:10-34-60-167.example.com
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf: OVESETUP_ENGINE_CONFIG/fqdn=str:10-34-60-167.example.com
/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf: OVESETUP_ENGINE_CONFIG/fqdn=str:10-34-60-167.example.com
~~~

(ignore '10-setup-reports-access.conf', i don't have ovirt-engine-report-setup installed)


Version-Release number of selected component (if applicable):
ovirt-engine-setup-base-4.0.0-0.0.master.20160423161403.gite38df80.el7.centos.noarch

How reproducible:
100%

Steps to Reproduce:
1. check what hostnames are in /etc/ovirt-engine* files
2. ovirt-engine-setup-base-4.0.0-0.0.master.20160423161403.gite38df80.el7.centos.noarch
3. check what hostnames are in /etc/ovirt-engine* files

Actual results:
/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf still has old hostname

Expected results:
/etc/ovirt-engine/engine.conf.d/11-setup-sso.conf should probably have new hostname

Additional info:
i suppose /etc/ovirt-engine/engine.conf.d/11-setup-sso.conf should have new hostname

Comment 2 Martin Perina 2016-04-26 18:55:42 UTC
It seems to me like a duplicate of 1330168, ovirt-engine-rename should be fixed to be able to handle changes required by introduction of SSO.

*** This bug has been marked as a duplicate of bug 1330168 ***