0
点赞
收藏
分享

微信扫一扫

oVirt 4.5.5 安装问题总结-Failed to download metadata for repo

问题描述

报错日志如下:

...
[ ERROR ] fatal: [localhost -> 192.168.222.93]: FAILED! => {changed: false, msg: Failed to download metadata for repo 'centos-ceph-pacific': Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=storage-ceph-pacific [Connection timed out after 30000 milliseconds], rc: 1, results: []}
...

原因

离线安装导致不能访问源。

解决

方法1

采用离线安装模式执行安装

# hosted-engine --deploy --4 --ansible-extra-vars=he_offline_deployment=true

参数说明:

  1. --4表示只使用IPv4模式;
  2. --ansible-extra-vars=he_offline_deployment=true表示离线模式,不进行更新。

方法2

在虚拟机部署前中断部署流程,重新配置可以访问的源地址,如代理/私有镜像地址。具体部署命令为

# hosted-engine --deploy --4 --ansible-extra-vars=he_pause_before_engine_setup=true

说明:具体部署时会暂停,同时通过展示的滚动日志了解到engine虚拟机的地址,结合之前部署时给engine虚拟的root账户配置的密码,通过ssh的方式连接进入虚拟机,修改源后保存退出。删除宿主机(即执行hosted-engine部署命令的主机)中滚动日志指定的暂停锁定文件,继续engine的部署流程。

附hosted-engine ansible-extra-vars参数参考

地址:https://github.com/oVirt/ovirt-ansible-collection/tree/master/roles/hosted_engine_setup#make-changes-in-the-engine-vm-during-the-deployment 原文引用:

Role variables

General Variables

Name Default value Description
he_bridge_if eth0 The network interface ovirt management bridge will be configured on
he_fqdn null The engine FQDN as it configured on the DNS
he_mem_size_MB max The amount of memory used on the engine VM
he_reserved_memory_MB 512 The amount of memory reserved for the host
he_vcpus max The amount of CPUs used on the engine VM
he_disk_size_GB 61 Disk size of the engine VM
he_vm_mac_addr null MAC address of the engine vm network interface.
he_domain_type null Storage domain type. available options: nfs, iscsi, glusterfs, fc
he_storage_domain_addr null Storage domain IP/DNS address
he_ansible_host_name localhost hostname in use on the first HE host (not necessarily the Ansible controller one)
he_restore_from_file null a backup file created with engine-backup to be restored on the fly
he_pki_renew_on_restore false Renew engine PKI on restore if needed
he_enable_keycloak true Configure keycloak on the engine if possible
he_cluster Default name of the cluster with hosted-engine hosts
he_cluster_cpu_type null cluster CPU type to be used in hosted-engine cluster (the same as HE host or lower)
he_cluster_comp_version null Compatibility version of the hosted-engine cluster. Default value is the latest compatibility version
he_data_center Default name of the datacenter with hosted-engine hosts
he_data_center_comp_version null Compatibility version of the hosted-engine data center. Default value is the latest compatibility version
he_host_name $(hostname -f) Human readable name used by the engine for the first host
he_host_address $(hostname -f) FQDN or IP address used by the engine for the first host
he_bridge_if null interface used for the management bridge
he_force_ip4 false Force resolving engine FQDN to ipv4 only using DNS server
he_force_ip6 false Force resolving engine FQDN to ipv6 only using DNS server
he_apply_openscap_profile false Apply an OpenSCAP security profile on HE VM
he_openscap_profile_name stig OpenSCAP profile name, available options: stig, pci-dss. Requires he_apply_openscap_profile to be True
he_enable_fips false Enable FIPS on HE VM
he_network_test dns the way of the network connectivity check performed by ovirt-hosted-engine-ha and ovirt-hosted-engine-setup, available options: dns, ping, tcp or none.
he_tcp_t_address null hostname to connect if he_network_test is tcp
he_tcp_t_port null port to connect if he_network_test is tcp
he_pause_host false Pause the execution to let the user interactively fix host configuration
he_pause_after_failed_add_host true Pause the execution if Add Host failed with status non_operational, to let the user interactively fix host configuration
he_pause_after_failed_restore true Pause the execution if engine-backup --mode=restore failed, to let the user handle this manually
he_pause_before_engine_setup false Pause the execution and allow the user to make configuration changes to the bootstrap engine VM before running engine-setup
he_offline_deployment false If True, updates for all packages will be disabled
he_additional_package_list [] List of additional packages to be installed on engine VM apart from ovirt-engine package
he_debug_mode false If True, HE deployment will execute additional tasks for debug
he_db_password UNDEF Engine database password
he_dwh_db_password UNDEF DWH database password

NFS / Gluster Variables

Name Default value Description
he_mount_options '' NFS mount options
he_storage_domain_path null shared folder path on NFS server
he_nfs_version auto NFS version. available options: auto, v4, v3, v4_0, v4_1, v4_2
he_storage_if null the network interface name that is connected to the storage network, assumed to be pre-configured

ISCSI Variables

Name Default value Description
he_iscsi_username null iscsi username
he_iscsi_password null iscsi password
he_iscsi_target null iscsi target
he_lun_id null Lun ID
he_iscsi_portal_port null iscsi portal port
he_iscsi_portal_addr null iscsi portal address (just for interactive iSCSI discovery, use he_storage_domain_addr for the deployment)
he_iscsi_tpgt null iscsi tpgt
he_discard false Discard the whole disk space when removed. more info here

Static IP configuration Variables

DHCP configuration is used on the engine VM by default. However, if you would like to use static ip instead, define the following variables:

Name Default value Description
he_vm_ip_addr null engine VM ip address
he_vm_ip_prefix null engine VM ip prefix
he_dns_addr null engine VM DNS server
he_gateway null engine VM default gateway
he_vm_etc_hosts false Add engine VM ip and fqdn to /etc/hosts on the host
举报

相关推荐

0 条评论