搜索

34.8. 运行 CSI 测试

download PDF

在测试客户端中,将 kubeconfig.yamlmanifest.yaml 文件放在当前工作目录中,并运行以下命令:

$ podman run -v `pwd`:/data:z --rm -it registry.redhat.io/openshift4/ose-tests sh -c "KUBECONFIG=/data/kubeconfig.yaml TEST_CSI_DRIVER_FILES=/data/manifest.yaml /usr/bin/openshift-tests run openshift/csi --junit-dir /data/results”

如果您在最新的 OpenShift 版本上执行测试,请确保将正确的标签添加到容器镜像名称:registry.redhat.io/openshift4/ose-tests:<tag>。如需可用标签列表,请参阅 OpenShift End-to-End Tests 存储库 页面。

验证步骤

  1. 命令的输出包括有关 CSI 功能的测试以及 OpenShift 中的容器原生虚拟化(CNV)的测试概述。以下是输出示例:

    Storage Capabilities (guaranteed only on full CSI test suite with 0 fails)
    ============================================================
    Driver short name: ceph-test
    Driver name: test.rbd.csi.ceph.com
    Storage class: ceph-rbd-sc.yaml
    Supported OpenShift / CSI features:
    Persistent volumes: true
    Raw block mode: true
    FSGroup: true
    Executable files on a volume: true
    Volume snapshots: true
    Volume cloning: true
    Use volume from multiple pods on a node:true
    ReadWriteMany access mode: true
    Volume expansion for controller: true
    Volume expansion for node: true
    Volume limits: true
    Volume can run on single node: true
    Topology: true
    Supported CNV features:
    Raw block VM disks: true
    Live migration: true
    VM snapshots: true
    Storage-assisted cloning: true

    详细结果将放置在 结果 子目录中。

  2. 如果要查看为 CSI 认证运行的测试列表,请运行以下命令:

    podman run -v `pwd`:/data:z --rm -it registry.redhat.io/openshift4/ose-tests sh -c "KUBECONFIG=/data/kubeconfig.yaml TEST_CSI_DRIVER_FILES=/data/manifest.yaml /usr/bin/openshift-tests run --dry-run openshift/csi
注意

为每个支持的存储协议执行单独的测试。

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.