Discussion:
[ovirt-users] [oVirt 4.4.6] Offline deployment of hosted engine
s***@fujitsu.com
2021-06-04 06:07:38 UTC
Permalink
Hello,

I am trying to test oVirt node 4.4.6 inside my company$B!G(Bs network which needs proxy setting for internet access.
Is there any possibility to deploy host engine without any internet access? i.e. Is offline deployment of hosted engine possible?

I have added the following line at the end of the file /usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml
environment:
https_proxy: "http://<proxy_host>:<proxy_port>"
http_proxy: "http://<proxy_host>:<proxy_port>"

But it gives error in the process of $B!H(Bhosted-engine --deploy$B!I(B. I am not sure if this a typical issue in my company$B!G(Bs network but, it would be great if there is any offline installation method (without accessing internet repository).

I have also tried to use $B!H(Bhosted-engine --deploy --ansible-extra-vars=he_offline_deployment=true$B!I(B but, it is not helping me at all.

With regards
**********************************************
Ishan Nath Sharma
Technical Computing Solutions Unit
Fujitsu Limited
E-mail: ***@jp.fujitsu.com<mailto:***@jp.fujitsu.com>
http://www.fujitsu.com
**********************************************
s***@fujitsu.com
2021-06-04 08:05:50 UTC
Permalink
Hello Strahil,

Thank you for your suggestion. Yes, I downloaded ovirt-engine-appliance rpm and installed manually, but it seems that it still tries to access to internet repository as below. Is it possible to do the whole deployment offline?

[ ERROR ] fatal: [localhost -> ovirt-engine.macc.local]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl
error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to jp.fujitsu.com port 123456789: No
route to host]", "rc": 1, "results": []}

With regards
Ishan

From: Strahil Nikolov <***@yahoo.com>
Sent: Friday, June 4, 2021 16:35
To: Sharma, Ishan.Nath/  <***@fujitsu.com>; '***@ovirt.org' <***@ovirt.org>
Cc: Sharma, Ishan.Nath/  <***@fujitsu.com>; Tsukahara, Tomohiro/塚原 知宏 <***@fujitsu.com>; Fukumoto, Shinya/犏本 真也 <***@fujitsu.com>; Wagner, John (FSE) <***@fujitsu.com>
Subject: Re: [ovirt-users] [oVirt 4.4.6] Offline deployment of hosted engine

I think you can download and install the ovirt-engine-appliance rpm (the big one) from https://resources.ovirt.org/pub/ovirt-4.4/rpm/el8/x86_64/

in advance.


Best Regards,
Strahil Nikolov

On Fri, Jun 4, 2021 at 9:40, ***@fujitsu.com<mailto:***@fujitsu.com>
<***@fujitsu.com<mailto:***@fujitsu.com>> wrote:

Hello,



I am trying to test oVirt node 4.4.6 inside my company’s network which needs proxy setting for internet access.

Is there any possibility to deploy host engine without any internet access? i.e. Is offline deployment of hosted engine possible?



I have added the following line at the end of the file /usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml

environment:

https_proxy: "http://<proxy_host>:<proxy_port><http://%3cproxy_host%3e:%3cproxy_port%3e>"

http_proxy: "http://<proxy_host>:<proxy_port><http://%3cproxy_host%3e:%3cproxy_port%3e>"



But it gives error in the process of “hosted-engine --deploy”. I am not sure if this a typical issue in my company’s network but, it would be great if there is any offline installation method (without accessing internet repository).



I have also tried to use “hosted-engine --deploy --ansible-extra-vars=he_offline_deployment=true” but, it is not helping me at all.



With regards

**********************************************

Ishan Nath Sharma

Technical Computing Solutions Unit

Fujitsu Limited

E-mail: ***@jp.fujitsu.com<mailto:***@jp.fujitsu.com>

http://www.fujitsu.com

**********************************************


_______________________________________________
Users mailing list -- ***@ovirt.org<mailto:***@ovirt.org>
To unsubscribe send an email to users-***@ovirt.org<mailto:users-***@ovirt.org>
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/***@ovirt.org/message/Z2Q3JFI5ARXV77SDS6VYXK4QKGHXMH43/
Yedidyah Bar David
2021-06-06 06:08:08 UTC
Permalink
Post by s***@fujitsu.com
Hello Strahil,
Thank you for your suggestion. Yes, I downloaded ovirt-engine-appliance rpm and installed manually, but it seems that it still tries to access to internet repository as below. Is it possible to do the whole deployment offline?
[ ERROR ] fatal: [localhost -> ovirt-engine.macc.local]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl
error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to jp.fujitsu.com port 123456789: No
route to host]", "rc": 1, "results": []}
Please try with:

- appliance installed

- '--ansible-extra-vars=he_offline_deployment=true'

- latest released code (with your custom patch removed)

If it still fails, please open a bug and attach all relevant logs. Thanks!

Best regards,
--
Didi
_______________________________________________
Users mailing list -- ***@ovirt.org
To unsubscribe send an email to users-***@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/***@ovirt.org/message/RQRXMG7LU5J2
Yedidyah Bar David
2021-06-06 10:17:23 UTC
Permalink
Hi Didi,
can't we just make ansible check via ansible package facts the status of the appliance and if it's available set to offline mode.
I can take a look in the Ansible code for that purpose.
The "non-offline-mode" is also for updating packages, not only for
appliance installation.

This is especially important because we not always release a new
appliance on new releases, so "non-offline-mode" makes sure you update
to the latest engine prior to engine-setup - and this is especially
important on restore-from-file.
Otherwise , the cockpit installer can have a tick for offline mode.
Indeed.

Best regards,
Best Regards,
Strahil Nikolov
On Sun, Jun 6, 2021 at 9:14, Yedidyah Bar David
Post by s***@fujitsu.com
Hello Strahil,
Thank you for your suggestion. Yes, I downloaded ovirt-engine-appliance rpm and installed manually, but it seems that it still tries to access to internet repository as below. Is it possible to do the whole deployment offline?
[ ERROR ] fatal: [localhost -> ovirt-engine.macc.local]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl
error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to jp.fujitsu.com port 123456789: No
route to host]", "rc": 1, "results": []}
- appliance installed
- '--ansible-extra-vars=he_offline_deployment=true'
- latest released code (with your custom patch removed)
If it still fails, please open a bug and attach all relevant logs. Thanks!
Best regards,
--
Didi
_______________________________________________
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
--
Didi
_______________________________________________
Users mailing list -- ***@ovirt.org
To unsubscribe send an email to users-***@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/user

Loading...