I guess you can experiment a little bit.
Have you tried to 'inject' a task before the failing one to add the options you
need via 'blockinfile' or 'lineinfile'.
I think the simplest way is to add a 'pause' task , that will give you enough time
to:
- Find the IP of the local engine vm
- ssh to that engine
- add the necessary lines for dnf
Best Regards,
Strahil Nikolov
На 18 август 2020 г. 10:28:46 GMT+03:00, "Raphael Höser"
<raphael(a)hoeser.info> написа:
>Hi all,
>
>I'm currently installing OVirt 4.4 on CentOS 8 in an hosted engine
>setup and it fails during ovirt-hosted-engine-setup.
>
>Because of our corporate proxy, some changes to the dnf.conf is needed
>(namely proxy_auth_method=basic) and the config is working fine when
>running dnf commands the normal way.
>Proxy configuration is provided via http_proxy, https_proxy and
>ftp_proxy env vars.
>
>The setup fails during a DNF call with status code 407 (proxy auth
>required).
>Is there another way to provide that config or any other way to resolve
>this? My googling didn't help me yet.
>
>On the same machine I had a running OVirt 4.3 on CentOS 7 running as a
>test and now wanted to upgrade (after a complete wipe).
>
>Thanks for your help,
>Raphael
>
>content of /etc/dnf/dnf.conf:
>[main]
>gpgcheck=1
>installonly_limit=3
>clean_requirements_on_remove=True
>best=True
>skip_if_unavailable=False
>proxy_auth_method=basic
>timeout=120
>minrate=90
>
>Log of ovirt-hosted-engine-setup:
>[ INFO ] Stage: Initializing
>[ INFO ] Stage: Environment setup
> During customization use CTRL-D to abort.
>Continuing will configure this host for serving as hypervisor and will
>create a local VM with a running engine.
>The locally running engine will be used to configure a new storage
>domain and create a VM there.
>At the end the disk of the local VM will be moved to the shared
>storage.
> Are you sure you want to continue? (Yes, No)[Yes]:
> Configuration files:
>Log file:
>/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20200818091958-tozsht.log
> Version: otopi-1.9.2 (otopi-1.9.2-1.el8)
>[ INFO ] DNF Downloading 1 files, 0.00KB
>[ INFO ] DNF Downloaded CentOS-8 - AppStream
>[ INFO ] DNF Errors during downloading metadata for repository
>'AppStream':
>- Status code: 407 for
>http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=$infra
>(IP: 10.201.210.68)
>- Status code: 407 for
>http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=$infra
>(IP: 10.201.210.67)
>[ ERROR ] DNF Failed to download metadata for repo 'AppStream': Cannot
>prepare internal mirrorlist: Status code: 407 for
>http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=$infra
>(IP: 10.201.210.67)
>[ ERROR ] Failed to execute stage 'Environment setup': Failed to
>download metadata for repo 'AppStream': Cannot prepare internal
>mirrorlist: Status code: 407 for
>http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=$infra
>(IP: 10.201.210.67)
>[ INFO ] Stage: Clean up
>[Some more cleanup]
>_______________________________________________
>Users mailing list -- users(a)ovirt.org
>To unsubscribe send an email to users-leave(a)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/users@ovirt.org/message/F2ZZVWCZ5WTSTTRSHGASCYWHXMQ42LJV/