Ovirt VDSM -- feature / all in one

本文详细介绍了AllinOne插件的功能、安装流程、API使用和当前状态,包括如何通过配置文件进行安装以及插件的工作原理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


Contents

 [hide

All in One

Summary

"All in One" means configuring VDSM on the same host where oVirt-engine is installed, so that VMs can be hosted on the same machine.

Owner

Current status

Detailed Description

The plugin works by providing parameters, group and sequences and adding them into the Controller object (the main object of the setup flow), which will invoke appropriate logic during the setup operation.

The following steps are performed by the plugin:

  1. Detect CPU architecture of the machine. After the detection, the plugin compares it with the list of supported architectures, and will raise an exception if the CPU is not supported. (Note: the plugin uses vdsm caps.py module to detect the CPU type).
  2. Verify that the given folder where VMs should be stored (provided during setup) is legal, is empty and writeable. If the folder doesn't exist, it will be created. Also, SELinux will be configured to allow writing in this folder.
  3. Plugin will wait to allow JBoss to start correctly. This is done because other steps involve using REST API (with ovirtsdk), which requires JBoss to be up.
  4. Plugin will create local datacenter and local cluster at this point.
  5. Plugin will create a local host and add it to host list (Note: an update to backend was introduced to allow creating a host without rebooting it).
  6. TODO: (waiting for vdsm bug to be fixed): Plugin will create a local storage domain.

Installation flow

  • Install ovirt-engine-setup-plugin-allinone rpm.
  • Start the regular engine-setup procedure.
  • When asked "Configure VDSM on this host?", answer yes.
  • After all answers are provided, the setup will install oVirt-engine and configure VDSM, including local cluster, local datacenter and local host.

API

Installation using answer file

The following parameters are added by the plugin to the answer file:

CONFIG_ALLINONE=[yes/no]
STORAGE_PATH=<local storage path>
SUPERUSER_PASS=<root password>

It is recommended to generate the answer file automatically:

engine-setup --gen-answer-file=<answer file full path>

...and then update its parameters accordingly with the installation requirements. After that, proceed with installation using the answer file:

engine-setup --answer-file=<answer file full path>

代码路径:
[armstrong@armstrong setup]$ pwd
/home/armstrong/git/ovirt-engine/packaging/fedora/setup
[armstrong@armstrong setup]$ ll *
-rw-rw-r--. 1 armstrong armstrong  10422 6月  19 01:13 basedefs.py
-rwxrwxr-x. 1 armstrong armstrong  56938 6月  19 01:13 common_utils.py
-rwxrwxr-x. 1 armstrong armstrong     80 6月  19 01:13 engine-check-update
-rwxrwxr-x. 1 armstrong armstrong  19126 6月  19 01:13 engine-cleanup.py
-rw-rw-r--. 1 armstrong armstrong   1343 6月  19 01:13 engine_firewalld.py
-rwxrwxr-x. 1 armstrong armstrong 107642 6月  19 01:13 engine-setup.py
-rwxrwxr-x. 1 armstrong armstrong  55367 6月  19 01:13 engine-upgrade.py
-rw-rw-r--. 1 armstrong armstrong  25017 6月  19 01:13 engine_validators.py
-rwxrwxr-x. 1 armstrong armstrong  30614 6月  19 01:13 miniyum.py
-rw-rw-r--. 1 armstrong armstrong   7727 6月  19 01:13 nfsutils.py
-rw-rw-r--. 1 armstrong armstrong  24116 6月  19 01:13 output_messages.py
-rwxrwxr-x. 1 armstrong armstrong   7472 6月  19 01:13 ovirt_port80.py
-rwxrwxr-x. 1 armstrong armstrong    693 6月  19 01:13 post_upgrade.py
-rw-rw-r--. 1 armstrong armstrong   3882 6月  19 01:13 setup_controller.py
-rw-rw-r--. 1 armstrong armstrong   2677 6月  19 01:13 setup_params.py
-rw-rw-r--. 1 armstrong armstrong   5486 6月  19 01:13 setup_sequences.py


plugins:
总用量 28
-rw-rw-r--. 1 armstrong armstrong 19089 6月  19 01:13 all_in_one_100.py
-rw-rw-r--. 1 armstrong armstrong  6850 6月  19 01:13 example_plugin_000.py
[armstrong@armstrong setup]$ 


<think>好的,用户想要验证oVirt release44.rpm的HTTP响应头信息。首先,我需要确定如何获取这个RPM包的HTTP头。常用的方法是用curl命令,加上-I选项来只显示响应头。 用户可能不知道具体的下载URL,所以得先找到oVirt官方仓库的地址。根据引用[1]和引用[2],oVirt的RPM包通常通过官方仓库分发。比如,release42.rpm的配置可能类似,所以release44的URL可能类似https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm。需要确认这个URL是否正确,可能需要访问oVirt官网或文档。 接下来,用户需要执行curl -I命令来获取头信息。可能需要检查状态码是否为200,确保文件存在。另外,检查Content-Type是否为application/x-rpm,确认是RPM文件。还有Last-Modified和Content-Length等信息,了解文件的更新时间和大小。 用户可能还关心安全方面,比如是否有HTTPS,服务器证书是否有效。可以用curl -v来查看详细SSL信息,但用户的问题主要是响应头,所以保持简单。 另外,引用[2]提到修改YUM配置缓存包,但这里用户只需要检查HTTP头,不需要安装或缓存。所以重点放在如何正确获取头信息,而不是后续的安装步骤。 需要注意,如果用户的环境有代理或防火墙,可能需要配置curl的代理选项,但用户的问题中没有提到,暂时先提供基本命令,如果有问题再进一步排查。 总结步骤:找到正确URL,使用curl -I检查头信息,解释各个关键字段的意义。可能还需要提醒用户验证下载文件的完整性,比如通过校验和,但用户当前问题只关注HTTP头,所以这部分可能作为额外建议。</think>要验证oVirt release44.rpm的HTTP响应头信息,可以通过以下步骤实现: ### 操作步骤 1. **获取RPM包URL** 根据oVirt官方资源库路径结构,release44.rpm的典型下载地址为: ``` https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm ``` 2. **使用curl命令检查HTTP头** ```bash curl -I https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm ``` 该命令会返回类似以下信息: ``` HTTP/2 200 server: nginx date: Wed, 20 Jul 2024 08:00:00 GMT content-type: application/x-rpm content-length: 12345 last-modified: Tue, 19 Jul 2024 07:30:00 GMT etag: "abcdef123456" ``` 3. **关键字段解析** - **HTTP状态码**:`200`表示文件存在且可访问 - **Content-Type**:`application/x-rpm`确认文件类型为RPM包 - **Last-Modified**:显示最后更新时间,可用于版本验证 - **Content-Length**:文件字节数,应与官网公布的大小匹配 ### 高级验证(TLS/SSL证书) ```bash curl -Iv --ssl-reqd https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm ``` 该命令会额外显示SSL证书链信息,包括证书颁发机构(CA)和有效期[^2][^4]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值