[lago-devel] Help debugging HC test failures

Nadav Goldin ngoldin at redhat.com
Tue Nov 8 15:53:16 UTC 2016


Try looking at the httpd logs on the engine VM:
/var/lib/httpd/ssl_access_log while attempting to log and check it
actually gets the proper fqdn, it should be something like(here with
"engine" as the fqdn):

192.168.200.1 - - [08/Nov/2016:10:46:41 -0500] "GET
/ovirt-engine/sso/oauth/authorize?client_id=ovirt-engine-core&response_type=code&app_url=https%3A%2F%2Fengine%2Fovirt-engine%2Fwebadmin%2F%3Flocale%3Den_US&engine_url=https%3A%2F%2Fengine%3A443%2Fovirt-engine&redirect_uri=https%3A%2F%2Fengine%3A443%2Fovirt-engine%2Fwebadmin%2Fsso%2Foauth2-callback&scope=ovirt-app-admin+ovirt-app-portal+ovirt-ext%3Dauth%3Asequence-priority%3D%7E
HTTP/1.1" 3

and here with a wrong fqdn(127.0.0.1):
192.168.200.1 - - [08/Nov/2016:10:50:56 -0500] "GET
/ovirt-engine/sso/oauth/authorize?client_id=ovirt-engine-core&response_type=code&app_url=https%3A%2F%2F127.0.0.1%2Fovirt-engine%2Fwebadmin%2F%3Flocale%3Den_US&engine_url=https%3A%2F%2F127.0.0.1%3A443%2Fovirt-engine&redirect_uri=https%3A%2F%2F127.0.0.1%3A443%2Fovirt-engine%2Fwebadmin%2Fsso%2Foauth2-callback&scope=ovirt-app-admin+ovirt-app-portal+ovirt-ext%3Dauth%3Asequence-priority%3D%7E
HTTP/1.1" 302 -


On Tue, Nov 8, 2016 at 12:07 PM, Sahina Bose <sabose at redhat.com> wrote:
>
>
> On Tue, Nov 8, 2016 at 3:26 PM, Nadav Goldin <ngoldin at redhat.com> wrote:
>>
>> Hi Sahina,
>> the entries in /etc/hosts need to match the ones given in the answer
>> file[1], maybe you configured something else?, this is from the master
>> suite:
>> >OVESETUP_CONFIG/fqdn=str:engine
>> >OVESETUP_ENGINE_CONFIG/fqdn=str:engine
>>
>> [1]
>> https://gerrit.ovirt.org/gitweb?p=ovirt-system-tests.git;a=blob;f=common/answer-files/el7_master.conf;h=8b7bd0b5aca905e270df9ce679998f7ae7d111b5;hb=HEAD
>
>
>
> [root at rhsdev-grafton1 deployment-basic_suite_hc]# grep ENGINE_FQDN
> current/test_logs/002_bootstrap.add_dc_quota-20161108124733/lago_basic_suite_hc_engine/_var_log_ovirt-engine/engine.log
> 2016-11-08 07:12:05,737 INFO
> [org.ovirt.engine.core.uutils.config.ShellLikeConfd] (ServerService Thread
> Pool -- 45) [] Value of property 'ENGINE_FQDN' is 'hc-engine.lago.local'.
>
> And in
> https://gerrit.ovirt.org/#/c/57283/4/basic_suite_hc/generate-hc-answerfile.sh
> - 'hc-engine.lago.local' is passed to substitute fqdn value in answer file.
>
>
>>
>>
>>
>> On Tue, Nov 8, 2016 at 11:47 AM, Sahina Bose <sabose at redhat.com> wrote:
>> >
>> >
>> > On Tue, Nov 8, 2016 at 3:01 PM, Nicolas Ecarnot <nicolas at ecarnot.net>
>> > wrote:
>> >>
>> >> Le 08/11/2016 à 09:25, Sahina Bose a écrit :
>> >>
>> >>
>> >> 2. Cannot access the web url of engine:
>> >> I've setup tunnelling: ssh -L
>> >> hc-engine.lago.local:8443:hc-engine.lago.local:443
>> >> root at rhsdev-grafton1.lab.eng.blr.redhat.com
>> >> But continue getting the error:
>> >> The client is not authorized to request an authorization. It's required
>> >> to
>> >> access the system using FQDN.
>> >>
>> >>
>> >> Would this be relevant?
>> >>
>> >>
>> >>
>> >> http://lists.ovirt.org/pipermail/lago-devel/Week-of-Mon-20160926/000244.html
>> >>
>> >> (Especially the part about /etc/hosts)
>> >
>> >
>> > I did follow this thread -
>> > on my laptop, which is where I'm trying the browser
>> > /etc/hosts
>> >
>> > 127.0.0.1 hc-engine.lago.local
>> >
>> > on the host running the engine i.e
>> > rhsdev-grafton1.lab.eng.blr.redhat.com
>> > /etc/hosts
>> > 192.168.200.99 hc-engine.lago.local
>> >
>> > hostname on the engine VM = hc-engine.lago.local
>> >
>> > What am I missing?
>> >
>> >> --
>> >> Nicolas ECARNOT
>> >>
>> >>
>> >> _______________________________________________
>> >> lago-devel mailing list
>> >> lago-devel at ovirt.org
>> >> http://lists.ovirt.org/mailman/listinfo/lago-devel
>> >>
>> >
>> >
>> > _______________________________________________
>> > lago-devel mailing list
>> > lago-devel at ovirt.org
>> > http://lists.ovirt.org/mailman/listinfo/lago-devel
>> >
>
>



More information about the lago-devel mailing list