Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

unit tests failing on RHEL #1517

@GabyCT

Description

@GabyCT

While running the unit tests on RHEL, we have failures

14:30:48 INFO: Running 'go test' as root user on package 'github.com/kata-containers/runtime/pkg/katautils' with flags '-v -race -timeout 30s -outputdir "/tmp/tmp.6OiZBRqSWt"'
14:30:51 INFO: creating test directory
14:30:51 INFO: test directory is /tmp/kata-248487113
14:30:51 INFO: creating OCI bundle in /tmp/kata-248487113/bundle for tests to use
14:30:52 === RUN   TestConfigLoadConfiguration
14:30:52 --- PASS: TestConfigLoadConfiguration (0.02s)
14:30:52 === RUN   TestConfigLoadConfigurationFailBrokenSymLink
14:30:52 --- PASS: TestConfigLoadConfigurationFailBrokenSymLink (0.00s)
14:30:52 === RUN   TestConfigLoadConfigurationFailSymLinkLoop
14:30:52 --- PASS: TestConfigLoadConfigurationFailSymLinkLoop (0.02s)
14:30:52 === RUN   TestConfigLoadConfigurationFailMissingHypervisor
14:30:52 --- PASS: TestConfigLoadConfigurationFailMissingHypervisor (0.00s)
14:30:52 === RUN   TestConfigLoadConfigurationFailMissingImage
14:30:52 --- PASS: TestConfigLoadConfigurationFailMissingImage (0.00s)
14:30:52 === RUN   TestConfigLoadConfigurationFailMissingKernel
14:30:52 --- PASS: TestConfigLoadConfigurationFailMissingKernel (0.00s)
14:30:52 === RUN   TestConfigLoadConfigurationFailMissingShim
14:30:52 --- PASS: TestConfigLoadConfigurationFailMissingShim (0.00s)
14:30:52 === RUN   TestConfigLoadConfigurationFailUnreadableConfig
14:30:52 --- SKIP: TestConfigLoadConfigurationFailUnreadableConfig (0.00s)
14:30:52     config_test.go:431: Test disabled as requires non-root user
14:30:52 === RUN   TestConfigLoadConfigurationFailTOMLConfigFileInvalidContents
14:30:52 --- SKIP: TestConfigLoadConfigurationFailTOMLConfigFileInvalidContents (0.00s)
14:30:52     config_test.go:454: Test disabled as requires non-root user
14:30:52 === RUN   TestConfigLoadConfigurationFailTOMLConfigFileDuplicatedData
14:30:52 --- SKIP: TestConfigLoadConfigurationFailTOMLConfigFileDuplicatedData (0.00s)
14:30:52     config_test.go:480: Test disabled as requires non-root user
14:30:52 === RUN   TestMinimalRuntimeConfig
14:30:52 --- PASS: TestMinimalRuntimeConfig (0.01s)
14:30:52 === RUN   TestMinimalRuntimeConfigWithVsock
14:30:52 --- PASS: TestMinimalRuntimeConfigWithVsock (0.01s)
14:30:52 === RUN   TestNewQemuHypervisorConfig
14:30:52 --- PASS: TestNewQemuHypervisorConfig (0.00s)
14:30:52 === RUN   TestNewQemuHypervisorConfigImageAndInitrd
14:30:52 --- PASS: TestNewQemuHypervisorConfigImageAndInitrd (0.00s)
14:30:52 === RUN   TestNewShimConfig
14:30:52 --- PASS: TestNewShimConfig (0.00s)
14:30:52 === RUN   TestHypervisorDefaults
14:30:52 --- PASS: TestHypervisorDefaults (0.00s)
14:30:52 === RUN   TestHypervisorDefaultsHypervisor
14:30:52 --- PASS: TestHypervisorDefaultsHypervisor (0.00s)
14:30:52 === RUN   TestHypervisorDefaultsKernel
14:30:52 --- PASS: TestHypervisorDefaultsKernel (0.00s)
14:30:52 === RUN   TestHypervisorDefaultsInitrd
14:30:52 --- PASS: TestHypervisorDefaultsInitrd (0.00s)
14:30:52 === RUN   TestHypervisorDefaultsImage
14:30:52 --- PASS: TestHypervisorDefaultsImage (0.00s)
14:30:52 === RUN   TestHypervisorDefaultsGuestHookPath
14:30:52 --- PASS: TestHypervisorDefaultsGuestHookPath (0.00s)
14:30:52 === RUN   TestProxyDefaults
14:30:52 --- PASS: TestProxyDefaults (0.00s)
14:30:52 === RUN   TestShimDefaults
14:30:52 --- PASS: TestShimDefaults (0.00s)
14:30:52 === RUN   TestGetDefaultConfigFilePaths
14:30:52 --- PASS: TestGetDefaultConfigFilePaths (0.00s)
14:30:52 === RUN   TestGetDefaultConfigFile
14:30:52 --- PASS: TestGetDefaultConfigFile (0.00s)
14:30:52 === RUN   TestDefaultBridges
14:30:52 --- PASS: TestDefaultBridges (0.00s)
14:30:52 === RUN   TestDefaultFirmware
14:30:52 --- PASS: TestDefaultFirmware (0.00s)
14:30:52 === RUN   TestDefaultMachineAccelerators
14:30:52 --- PASS: TestDefaultMachineAccelerators (0.00s)
14:30:52 === RUN   TestUpdateRuntimeConfiguration
14:30:52 --- PASS: TestUpdateRuntimeConfiguration (0.00s)
14:30:52 === RUN   TestUpdateRuntimeConfigurationVMConfig
14:30:52 --- PASS: TestUpdateRuntimeConfigurationVMConfig (0.00s)
14:30:52 === RUN   TestUpdateRuntimeConfigurationFactoryConfig
14:30:52 --- PASS: TestUpdateRuntimeConfigurationFactoryConfig (0.00s)
14:30:52 === RUN   TestUpdateRuntimeConfigurationInvalidKernelParams
14:30:52 --- PASS: TestUpdateRuntimeConfigurationInvalidKernelParams (0.00s)
14:30:52 === RUN   TestCheckHypervisorConfig
14:30:52 --- PASS: TestCheckHypervisorConfig (0.04s)
14:30:52 === RUN   TestCheckNetNsConfig
14:30:52 --- PASS: TestCheckNetNsConfig (0.00s)
14:30:52 === RUN   TestCheckFactoryConfig
14:30:52 --- PASS: TestCheckFactoryConfig (0.00s)
14:30:52 === RUN   TestCheckNetNsConfigShimTrace
14:30:52 --- PASS: TestCheckNetNsConfigShimTrace (0.00s)
14:30:52 === RUN   TestSetEphemeralStorageType
14:30:52 --- PASS: TestSetEphemeralStorageType (0.01s)
14:30:52 === RUN   TestSetKernelParams
14:30:52 --- PASS: TestSetKernelParams (0.00s)
14:30:52 === RUN   TestSetKernelParamsUserOptionTakesPriority
14:30:52 --- PASS: TestSetKernelParamsUserOptionTakesPriority (0.00s)
14:30:52 === RUN   TestCreateSandboxConfigFail
14:30:52 time="2019-04-10T19:30:52Z" level=info msg="shm-size detected: 67108864" source=virtcontainers subsystem=oci
14:30:52 --- PASS: TestCreateSandboxConfigFail (0.03s)
14:30:52 === RUN   TestCreateSandboxFail
14:30:52 time="2019-04-10T19:30:52Z" level=info msg="shm-size detected: 67108864" source=virtcontainers subsystem=oci
14:30:52 --- PASS: TestCreateSandboxFail (0.04s)
14:30:52 === RUN   TestCreateContainerContainerConfigFail
14:30:52 --- PASS: TestCreateContainerContainerConfigFail (0.02s)
14:30:52 === RUN   TestCreateContainerFail
14:30:52 --- PASS: TestCreateContainerFail (0.02s)
14:30:52 === RUN   TestCreateContainer
14:30:52 --- PASS: TestCreateContainer (0.03s)
14:30:52 === RUN   TestRunHook
14:30:53 --- PASS: TestRunHook (1.01s)
14:30:53 === RUN   TestPreStartHooks
14:30:53 --- PASS: TestPreStartHooks (0.01s)
14:30:53 === RUN   TestPostStartHooks
14:30:53 --- PASS: TestPostStartHooks (0.01s)
14:30:53 === RUN   TestPostStopHooks
14:30:53 --- PASS: TestPostStopHooks (0.01s)
14:30:53 === RUN   TestHandleSystemLog
14:30:53 --- PASS: TestHandleSystemLog (0.00s)
14:30:53 === RUN   TestNewSystemLogHook
14:30:53 --- PASS: TestNewSystemLogHook (0.00s)
14:30:53 === RUN   TestGetNetNsFromBindMount
14:30:53 --- PASS: TestGetNetNsFromBindMount (0.01s)
14:30:53 === RUN   TestHostNetworkingRequested
14:30:53 --- FAIL: TestHostNetworkingRequested (0.01s)
14:30:53     <autogenerated>:1: 
                          
	Error Trace:	network_test.go:98
14:30:53         
	Error:      	Should be true
14:30:53 === RUN   TestSetupNetworkNamespace
14:30:53 --- PASS: TestSetupNetworkNamespace (0.09s)
14:30:53 === RUN   TestFetchContainerIDMappingContainerIDEmptyFailure
14:30:53 --- PASS: TestFetchContainerIDMappingContainerIDEmptyFailure (0.00s)
14:30:53 === RUN   TestFetchContainerIDMappingEmptyMappingSuccess
14:30:53 --- PASS: TestFetchContainerIDMappingEmptyMappingSuccess (0.00s)
14:30:53 === RUN   TestFetchContainerIDMappingTooManyFilesFailure
14:30:53 --- PASS: TestFetchContainerIDMappingTooManyFilesFailure (0.00s)
14:30:53 === RUN   TestFetchContainerIDMappingSuccess
14:30:53 --- PASS: TestFetchContainerIDMappingSuccess (0.00s)
14:30:53 === RUN   TestAddContainerIDMappingContainerIDEmptyFailure
14:30:53 --- PASS: TestAddContainerIDMappingContainerIDEmptyFailure (0.00s)
14:30:53 === RUN   TestAddContainerIDMappingSandboxIDEmptyFailure
14:30:53 --- PASS: TestAddContainerIDMappingSandboxIDEmptyFailure (0.00s)
14:30:53 === RUN   TestAddContainerIDMappingSuccess
14:30:53 --- PASS: TestAddContainerIDMappingSuccess (0.00s)
14:30:53 === RUN   TestDelContainerIDMappingContainerIDEmptyFailure
14:30:53 --- PASS: TestDelContainerIDMappingContainerIDEmptyFailure (0.00s)
14:30:53 === RUN   TestDelContainerIDMappingSuccess
14:30:53 --- PASS: TestDelContainerIDMappingSuccess (0.00s)
14:30:53 === RUN   TestUtilsResolvePathEmptyPath
14:30:53 --- PASS: TestUtilsResolvePathEmptyPath (0.00s)
14:30:53 === RUN   TestUtilsResolvePathValidPath
14:30:53 --- PASS: TestUtilsResolvePathValidPath (0.00s)
14:30:53 === RUN   TestUtilsResolvePathENOENT
14:30:53 --- PASS: TestUtilsResolvePathENOENT (0.00s)
14:30:53 === RUN   TestFileSize
14:30:53 --- PASS: TestFileSize (0.00s)
14:30:53 === RUN   TestWriteFileErrWriteFail
14:30:53 --- PASS: TestWriteFileErrWriteFail (0.00s)
14:30:53 === RUN   TestWriteFileErrNoPath
14:30:53 --- PASS: TestWriteFileErrNoPath (0.00s)
14:30:53 === RUN   TestGetFileContents
14:30:53 --- PASS: TestGetFileContents (0.00s)
14:30:53 === RUN   TestIsEphemeralStorage
14:30:53 --- PASS: TestIsEphemeralStorage (0.01s)
14:30:53 FAIL
14:30:53 coverage: 75.3% of statements
14:30:53 FAIL	github.com/kata-containers/runtime/pkg/katautils	2.287s
14:30:53 make: *** [go-test] Error 1

It seems like the test that did not pass is TestHostNetworkingRequested

See http://jenkins.katacontainers.io/job/kata-containers-runtime-rhel-7-master/1/console

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions