intel / tdx-tools

Cloud Stack and Solutions for Intel TDX (Trust Domain Extension)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

encounter error after executing ./run -s all under RHEL 8.7 with TDX1.0 2023WW22

qhbqyj opened this issue · comments

commented

========================================= ERRORS ==========================================
_________________________ ERROR at setup of test_tdvm_acpi_reboot _________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
----------------------------------- Captured log setup ------------------------------------
2023-07-08 12:39:57 ERROR Found the duplicate key in yaml file /home/tdx1.0/tdx-tools-2023ww22.rdc/tests/tests/../artifacts.yaml
Traceback (most recent call last):
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/utils/pycloudstack/pycloudstack/artifacts.py", line 291, in load
self._dict = yaml.load(fobj, Loader=yaml.FullLoader)
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/venv/lib/python3.6/site-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/venv/lib/python3.6/site-packages/yaml/constructor.py", line 51, in get_single_data
return self.construct_document(node)
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/venv/lib/python3.6/site-packages/yaml/constructor.py", line 55, in construct_document
data = self.construct_object(node)
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/venv/lib/python3.6/site-packages/yaml/constructor.py", line 100, in construct_object
data = constructor(self, node)
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/utils/pycloudstack/pycloudstack/artifacts.py", line 332, in _no_duplicates_constructor
f"found duplicate key ({key})", key_node.start_mark)
yaml.constructor.ConstructorError: while constructing a mapping
in "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/tests/../artifacts.yaml", line 11, column 1
found duplicate key (source)
in "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/tests/../artifacts.yaml", line 13, column 1
_________________________ ERROR at setup of test_efi_acpi_reboot __________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
________________________ ERROR at setup of test_legacy_acpi_reboot ________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
________________________ ERROR at setup of test_tdvm_acpi_shutdown ________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
________________________ ERROR at setup of test_efi_acpi_shutdown _________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_______________________ ERROR at setup of test_legacy_acpi_shutdown _______________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
___________________________ ERROR at setup of test_td_max_vcpu ____________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
___________________________ ERROR at setup of test_efi_max_vcpu ___________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_________________________ ERROR at setup of test_legacy_max_vcpu __________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
___________________ ERROR at setup of test_tdvms_coexist_create_destroy ___________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_______________ ERROR at setup of test_tdvm_lifecycle_virsh_suspend_resume ________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_______________ ERROR at setup of test_tdvm_lifecycle_virsh_start_shutdown ________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
____________________________ ERROR at setup of test_tdvm_wget _____________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_________________________ ERROR at setup of test_tdvm_ssh_forward _________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
______________________ ERROR at setup of test_tdvm_bridge_network_ip ______________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_______________________ ERROR at setup of test_tdvm_clocksource_tsc _______________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
________________________ ERROR at setup of test_tdvm_cpuid_tscfreq ________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
____________________ ERROR at setup of test_tdvm_compare2_host_tscfreq ____________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_______________________ ERROR at setup of test_tdvm_tdx_initialized _______________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_____________________ ERROR at setup of test_tdguest_with_legacy_base _____________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_________________________ ERROR at setup of test_tdvm_qga_reboot __________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
__________________________ ERROR at setup of test_efi_qga_reboot __________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
________________________ ERROR at setup of test_legacy_qga_reboot _________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
___________________ ERROR at setup of test_vm_shutdown_mode[td-default] ___________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
____________________ ERROR at setup of test_vm_shutdown_mode[td-acpi] _____________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
____________________ ERROR at setup of test_vm_shutdown_mode[td-agent] ____________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
__________________ ERROR at setup of test_vm_shutdown_mode[efi-default] ___________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
____________________ ERROR at setup of test_vm_shutdown_mode[efi-acpi] ____________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
___________________ ERROR at setup of test_vm_shutdown_mode[efi-agent] ____________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_________________ ERROR at setup of test_vm_shutdown_mode[legacy-default] _________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
__________________ ERROR at setup of test_vm_shutdown_mode[legacy-acpi] ___________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
__________________ ERROR at setup of test_vm_shutdown_mode[legacy-agent] __________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
________________________ ERROR at setup of test_tdvm_qga_shutdown _________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_________________________ ERROR at setup of test_efi_qga_shutdown _________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
_______________________ ERROR at setup of test_legacy_qga_shutdown ________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
____________________________ ERROR at setup of test_tdvm_nginx ____________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError
____________________________ ERROR at setup of test_tdvm_redis ____________________________

@pytest.fixture(scope="session")
def artifact_factory():
    """
    The artifact factory from artifacts.yaml
    """
    manifest_file = os.path.join(os.path.dirname(__file__), "../", "artifacts.yaml")
    fobj = artifacts.ArtifactManifest(manifest_file)
  assert fobj.load() is not None

E assert None is not None
E + where None = <bound method ArtifactManifest.load of {}>()
E + where <bound method ArtifactManifest.load of {}> = {}.load

tests/conftest.py:119: AssertionError

  • generated html file: file:///home/tdx1.0/tdx-tools-2023ww22.rdc/tests/output/all-localhost.localdomain-rhel-root-report-2023-07-08-12-39-53.html -
    ================================= short test summary info =================================
    ERROR tests/test_acpi_reboot.py::test_tdvm_acpi_reboot - assert None is not None
    ERROR tests/test_acpi_reboot.py::test_efi_acpi_reboot - assert None is not None
    ERROR tests/test_acpi_reboot.py::test_legacy_acpi_reboot - assert None is not None
    ERROR tests/test_acpi_shutdown.py::test_tdvm_acpi_shutdown - assert None is not None
    ERROR tests/test_acpi_shutdown.py::test_efi_acpi_shutdown - assert None is not None
    ERROR tests/test_acpi_shutdown.py::test_legacy_acpi_shutdown - assert None is not None
    ERROR tests/test_max_cpu.py::test_td_max_vcpu - assert None is not None
    ERROR tests/test_max_cpu.py::test_efi_max_vcpu - assert None is not None
    ERROR tests/test_max_cpu.py::test_legacy_max_vcpu - assert None is not None
    ERROR tests/test_multiple_tdvms.py::test_tdvms_coexist_create_destroy - assert None is n...
    ERROR tests/test_tdvm_lifecycle.py::test_tdvm_lifecycle_virsh_suspend_resume - assert No...
    ERROR tests/test_tdvm_lifecycle.py::test_tdvm_lifecycle_virsh_start_shutdown - assert No...
    ERROR tests/test_tdvm_network.py::test_tdvm_wget - assert None is not None
    ERROR tests/test_tdvm_network.py::test_tdvm_ssh_forward - assert None is not None
    ERROR tests/test_tdvm_network.py::test_tdvm_bridge_network_ip - assert None is not None
    ERROR tests/test_tdvm_tsc.py::test_tdvm_clocksource_tsc - assert None is not None
    ERROR tests/test_tdvm_tsc.py::test_tdvm_cpuid_tscfreq - assert None is not None
    ERROR tests/test_tdvm_tsc.py::test_tdvm_compare2_host_tscfreq - assert None is not None
    ERROR tests/test_tdx_guest_status.py::test_tdvm_tdx_initialized - assert None is not None
    ERROR tests/test_vm_coexist.py::test_tdguest_with_legacy_base - assert None is not None
    ERROR tests/test_vm_reboot_qga.py::test_tdvm_qga_reboot - assert None is not None
    ERROR tests/test_vm_reboot_qga.py::test_efi_qga_reboot - assert None is not None
    ERROR tests/test_vm_reboot_qga.py::test_legacy_qga_reboot - assert None is not None
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[td-default] - assert None is...
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[td-acpi] - assert None is no...
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[td-agent] - assert None is n...
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[efi-default] - assert None i...
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[efi-acpi] - assert None is n...
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[efi-agent] - assert None is ...
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[legacy-default] - assert Non...
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[legacy-acpi] - assert None i...
    ERROR tests/test_vm_shutdown_mode.py::test_vm_shutdown_mode[legacy-agent] - assert None ...
    ERROR tests/test_vm_shutdown_qga.py::test_tdvm_qga_shutdown - assert None is not None
    ERROR tests/test_vm_shutdown_qga.py::test_efi_qga_shutdown - assert None is not None
    ERROR tests/test_vm_shutdown_qga.py::test_legacy_qga_shutdown - assert None is not None
    ERROR tests/test_workload_nginx.py::test_tdvm_nginx - assert None is not None
    ERROR tests/test_workload_redis.py::test_tdvm_redis - assert None is not None
    ============================== 11 passed, 37 errors in 0.35s ==============================
commented

Did you create artifacts.yaml and put into test directory firstly? Please see chapter 5.3.3 in white paper https://www.intel.com/content/www/us/en/content-details/783067/whitepaper-linux-stacks-for-intel-trust-domain-extension-1-0.html

commented

Another issue is that the guest is most likely base on Ubuntu. So I summit a comimt 0029957 to change the default OS type to Ubuntu. Without it, you need specify the guest OS type via "./run.sh -g ubuntu“

Hello @qhbqyj ,
The errors you pasted here are some environment settings issues. To resolve them:
If you are using the tests downloaded from our tdx-tools on GitHub, then please read and following the steps here: https://github.com/intel/tdx-tools/tree/main/tests to get your environment set correctly. Then I think most of your errors (if not 100%) will disappear.
Else (i.e. you are not using the tests code downloaded from our tdx-tools on Github), then please share with more details so we can help you troubleshooting.

commented

the Guest OS is RHEL8.7 @kenplusplus ,I have tried to execute ./run.sh -g rhel -s all (the issue could be produced)
@intelzhongjie the deltail information is :
=================================== test session starts ====================================
platform linux -- Python 3.6.8, pytest-7.0.1, pluggy-1.0.0
cachedir: cache
benchmark: 3.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tdx1.0/tdx-tools-2023ww22.rdc/tests/tests, configfile: pytest.ini
plugins: metadata-1.11.0, timeout-1.4.2, tap-3.1, reportlog-0.1.2, repeat-0.9.1, html-3.1.1, dependency-0.5.1, benchmark-3.2.3
timeout: 10800.0s
timeout method: signal
timeout func_only: False
collected 48 items

tests/test_acpi_reboot.py::test_tdvm_acpi_reboot
-------------------------------------- live log setup --------------------------------------
2023-07-10 04:02:34 ERROR Found the duplicate key in yaml file /home/tdx1.0/tdx-tools-2023ww22.rdc/tests/tests/../artifacts.yaml
Traceback (most recent call last):
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/utils/pycloudstack/pycloudstack/artifacts.py", line 291, in load
self._dict = yaml.load(fobj, Loader=yaml.FullLoader)
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/venv/lib/python3.6/site-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/venv/lib/python3.6/site-packages/yaml/constructor.py", line 51, in get_single_data
return self.construct_document(node)
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/venv/lib/python3.6/site-packages/yaml/constructor.py", line 55, in construct_document
data = self.construct_object(node)
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/venv/lib/python3.6/site-packages/yaml/constructor.py", line 100, in construct_object
data = constructor(self, node)
File "/home/tdx1.0/tdx-tools-2023ww22.rdc/utils/pycloudstack/pycloudstack/artifacts.py", line 332, in _no_duplicates_constructor
f"found duplicate key ({key})", key_node.start_mark)
yaml.constructor.ConstructorError: while constructing a mapping
in "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/tests/../artifacts.yaml", line 11, column 1
found duplicate key (source)
in "/home/tdx1.0/tdx-tools-2023ww22.rdc/tests/tests/../artifacts.yaml", line 13, column 1
ERROR [ 2%]
tests/test_acpi_reboot.py::test_efi_acpi_reboot ERROR [ 4%]

artifacts.yaml
(venv) [root@localhost tests]# cat artifacts.yaml

artifact.yaml file in below format:

=== RHEL guest distro ===

Please uncomment below setting for RHEL guest distro

#latest-guest-image-rhel:
source: file:///home/tdx1.0/tdx-tools-2023ww22.rdc/td-guest-rhel-8.7.qcow2
#latest-guest-kernel-rhel:
source: file:///home/tdx1.0/tdx-tools-2023ww22.rdc/vmlinuz

(venv) [root@localhost tests]# ls
cache redis-bench.sh test_tdvm_tsc.py test_workload_nginx.py
conftest.py test_acpi_reboot.py test_tdx_guest_status.py test_workload_redis.py
init.py test_acpi_shutdown.py test_tdx_host_status.py vm_ssh_test_key
nginx-bench.sh test_max_cpu.py test_vm_coexist.py vm_ssh_test_key.pub
output test_multiple_tdvms.py test_vm_reboot_qga.py
pycache test_tdvm_lifecycle.py test_vm_shutdown_mode.py
pytest.ini test_tdvm_network.py test_vm_shutdown_qga.py

OK, @qhbqyj , so you are not using the testing code download from our this Github (i.e. you will not download our latest version and following our steps I mentioned above), correct? Would you please let us know where did you get it? Because different version might have some subtle difference.

Now the problem in your new paste is totally different from your previous paste. Thanks for highlighting your problem!
Please note the first error you have: "ERROR Found the duplicate key in yaml". This error is just straightforward. Please double check your yaml file to make sure there is no duplicate. If it still repro, then please share with us your complete version of that artifacts.yaml.

commented

@intelzhongjie I have checked the yaml file, after modify the yaml file ,the test could be run ,but get another fail information
[root@localhost tests]# cat artifacts.yaml

artifact.yaml file in below format:

=== RHEL guest distro ===

Please uncomment below setting for RHEL guest distro

latest-guest-image-rhel:
source: file:///home/tdx1.0/tdx-tools-2023ww22.rdc/td-guest-rhel-8.7.qcow2
latest-guest-kernel-rhel:
source: file:///home/tdx1.0/tdx-tools-2023ww22.rdc/vmlinuz

___________________________ test_vm_shutdown_mode[legacy-acpi] ____________________________

vm_factory = <pycloudstack.vmguest.VMGuestFactory object at 0x7f308c1f64e0>
vm_type = 'legacy', mode = 'acpi'

@pytest.mark.parametrize("vm_type, mode", testdata)
def test_vm_shutdown_mode(vm_factory, vm_type, mode):
    """
    Test shutdown guest via Virsh operator with different mode
    """
    LOG.info("Create guest")
  inst = vm_factory.new_vm(vm_type, auto_start=True)

tests/test_vm_shutdown_mode.py:46:


../utils/pycloudstack/pycloudstack/vmguest.py:400: in new_vm
diskfile_path=diskfile_path, cpu_ids=cpu_ids)
../utils/pycloudstack/pycloudstack/vmguest.py:91: in init
self.vmm = vmm_class(self)
../utils/pycloudstack/pycloudstack/vmm.py:143: in init
self._xml = self._prepare_domain_xml()


self = <pycloudstack.vmm.VMMLibvirt object at 0x7f308c557550>

def _prepare_domain_xml(self):
    xmlobj = VirtXml.clone(
        self._TEMPLATE[self.vminst.vmtype],
        self.vminst.name)
    xmlobj.memory = self.vminst.vmspec.memsize
    xmlobj.uuid = self.vminst.vmid
    xmlobj.imagefile = self.vminst.image.filepath
    xmlobj.iomode = self.vminst.io_mode
    xmlobj.cache = self.vminst.cache
    xmlobj.logfile = "/tmp/" + self.vminst.name + ".log"
    xmlobj.vcpu = self.vminst.vmspec.vcpus
    xmlobj.sockets = self.vminst.vmspec.sockets
    xmlobj.cores = self.vminst.vmspec.cores
    xmlobj.threads = self.vminst.vmspec.threads

    if self.vminst.cpu_ids:
        xmlobj.bind_cpuids(self.vminst.cpu_ids)
        xmlobj.set_mem_numa(self.vminst.mem_numa)

    if self.vminst.hugepages:
        xmlobj.set_hugepage_params(self.vminst.hugepage_size)

    if self.vminst.vsock:
        xmlobj.set_vsock(self.vminst.vsock_cid)

    if self.vminst.diskfile_path:
        xmlobj.set_disk(self.vminst.diskfile_path)

    self.set_cpu_params_xml(xmlobj)
  if self.vminst.mwait is not None:

E AttributeError: 'VMGuest' object has no attribute 'mwait'

../utils/pycloudstack/pycloudstack/vmm.py:177: AttributeError
------------------------------------ Captured log call ------------------------------------
2023-07-10 04:56:21 INFO Create guest
2023-07-10 04:56:21 INFO [CMD] qemu-img create -f qcow2 -F qcow2 -b /home/tdx1.0/tdx-tools-2023ww22.rdc/td-guest-rhel-8.7.qcow2 /home/tdx1.0/tdx-tools-2023ww22.rdc/legacy-root-2023-07-10-04-56-21-994533.qcow2
2023-07-10 04:56:21 DEBUG [CMD-OUT] Formatting '/home/tdx1.0/tdx-tools-2023ww22.rdc/legacy-root-2023-07-10-04-56-21-994533.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=8589934592 backing_file=/home/tdx1.0/tdx-tools-2023ww22.rdc/td-guest-rhel-8.7.qcow2 backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16
2023-07-10 04:56:22 DEBUG [CMD] Completed in 0 seconds! ret=0 (qemu-img)
2023-07-10 04:56:22 INFO VM SSH forward: 51679
2023-07-10 04:56:22 DEBUG Create libvirt connection
___________________________ test_vm_shutdown_mode[legacy-agent] ___________________________

vm_factory = <pycloudstack.vmguest.VMGuestFactory object at 0x7f308c1f64e0>
vm_type = 'legacy', mode = 'agent'

@pytest.mark.parametrize("vm_type, mode", testdata)
def test_vm_shutdown_mode(vm_factory, vm_type, mode):
    """
    Test shutdown guest via Virsh operator with different mode
    """
    LOG.info("Create guest")
  inst = vm_factory.new_vm(vm_type, auto_start=True)

tests/test_vm_shutdown_mode.py:46:


../utils/pycloudstack/pycloudstack/vmguest.py:400: in new_vm
diskfile_path=diskfile_path, cpu_ids=cpu_ids)
../utils/pycloudstack/pycloudstack/vmguest.py:91: in init
self.vmm = vmm_class(self)
../utils/pycloudstack/pycloudstack/vmm.py:143: in init
self._xml = self._prepare_domain_xml()


self = <pycloudstack.vmm.VMMLibvirt object at 0x7f308c492eb8>

def _prepare_domain_xml(self):
    xmlobj = VirtXml.clone(
        self._TEMPLATE[self.vminst.vmtype],
        self.vminst.name)
    xmlobj.memory = self.vminst.vmspec.memsize
    xmlobj.uuid = self.vminst.vmid
    xmlobj.imagefile = self.vminst.image.filepath
    xmlobj.iomode = self.vminst.io_mode
    xmlobj.cache = self.vminst.cache
    xmlobj.logfile = "/tmp/" + self.vminst.name + ".log"
    xmlobj.vcpu = self.vminst.vmspec.vcpus
    xmlobj.sockets = self.vminst.vmspec.sockets
    xmlobj.cores = self.vminst.vmspec.cores
    xmlobj.threads = self.vminst.vmspec.threads

    if self.vminst.cpu_ids:
        xmlobj.bind_cpuids(self.vminst.cpu_ids)
        xmlobj.set_mem_numa(self.vminst.mem_numa)

    if self.vminst.hugepages:
        xmlobj.set_hugepage_params(self.vminst.hugepage_size)

    if self.vminst.vsock:
        xmlobj.set_vsock(self.vminst.vsock_cid)

    if self.vminst.diskfile_path:
        xmlobj.set_disk(self.vminst.diskfile_path)

    self.set_cpu_params_xml(xmlobj)
  if self.vminst.mwait is not None:

E AttributeError: 'VMGuest' object has no attribute 'mwait'

../utils/pycloudstack/pycloudstack/vmm.py:177: AttributeError

@qhbqyj
For your case, please download our 2023ww22 here releasehttps://github.com/intel/tdx-tools/releases/tag/2023ww22 . Then you should be able run the test as your need with that.