Skip to content

[TEST] Packaging Test Failures for OpenSearch Distributions #538

@adnapibar

Description

@adnapibar

Describe the bug

The packaging tests use Vagrant virtual machines to verify that installing and running OpenSearch distributions work in supported operating systems.

Currently packaging tests are failing for OpenSearch distributions.

To Reproduce

  • Make sure Vagrant is installed

  • Run ./gradlew packagingTest

  • Or run a specific individual packaging test

  • packaging tests for tarball distribution on Centos 7 ./gradlew :qa:os:centos-7:distroTest.linux-archive gives error

Task :qa:os:centos-7:distroTest.linux-archive FAILED
java.lang.AssertionError: 
Expected: "file/directory: "<File> with owner "opensearch" with group "opensearch" with 
posix permissions [<OWNER_READ>,<OWNER_WRITE>,<GROUP_READ>,<OTHERS_READ>]
     but: path </tmp/opensearch/README.asciidoc>Does not exist
	at __randomizedtesting.SeedInfo.seed([73D7A3A711594ACB:9F8DAF5F4DC9F591]:0)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
	at org.opensearch.packaging.util.Archives.lambda$verifyOssInstallation$5(Archives.java:204)
...

#541 fixes the above

#569 fixes rest of the packaging tests failures and all of the distro tests pass for all supported operating systems except centos-6 which can be reproduced with

  • packaging test fails for :qa:os:centos-6:distroTest.linux-archive-aarch64
org.gradle.api.tasks.TaskExecutionException: Execution failed for 
task ':qa:os:centos-6:distroTest.linux-archive-aarch64'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1
(ExecuteActionsTaskExecuter.java:208)
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid
(ExecuteActionsTaskExecuter.java:206)

....

Expected behavior
Tests should pass i.e. we should be able to verify the installation of the OpenSearch distributions on supported operating systems.

Metadata

Metadata

Assignees

Labels

>test-failureTest failure from CI, local build, etc.MetaMeta issue, not directly linked to a PRv1.0.0Version 1.0.0v1.0.0-alpha1Version 1.0.0 alpha 1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions