Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Broken packaging tests on Centos6 #35440

Closed
tvernum opened this issue Nov 12, 2018 · 5 comments
Closed

[CI] Broken packaging tests on Centos6 #35440

tvernum opened this issue Nov 12, 2018 · 5 comments
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team >test-failure Triaged test failures from CI

Comments

@tvernum
Copy link
Contributor

tvernum commented Nov 12, 2018

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+packaging-tests/77/console

Reproduces reliably

./gradlew :qa:vagrant:vagrantCentos6#batsPackagingTest
04:25:49 # Caused by: java.nio.file.NoSuchFileException: /usr/lib/os-release
04:25:49 # 	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:?]
04:25:49 # 	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:?]
04:25:49 # 	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:?]
04:25:49 # 	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214) ~[?:?]

Seems to be triggered by #35352 (730ec1d)

@tvernum tvernum added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts >test-failure Triaged test failures from CI labels Nov 12, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@dliappis
Copy link
Contributor

Unfortunately /etc/os-release isn't available on CentOS/RHEL <7; the available file is /etc/redhat-release. I guess we could add another case in here for /etc/redhat-release) until RHEL-6 becomes truly EOL, which seems to be far in the future.

@jasontedor
Copy link
Member

/etc/redhat-release is not in the same format as /etc/os-release, so there is a little more to a hack than merely falling back to this file. It is probably worth doing for the OS that will never die, but I am not happy about it.

@romseygeek
Copy link
Contributor

Also causing failures in :test:framework on CentOS:

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.x+periodic/160/console

Caused by: java.nio.file.NoSuchFileException: /usr/lib/os-release
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.Files.newByteChannel(Files.java:361)
	at java.nio.file.Files.newByteChannel(Files.java:407)
	at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
	at org.apache.lucene.mockfile.FilterFileSystemProvider.newInputStream(FilterFileSystemProvider.java:192)
	at org.apache.lucene.mockfile.FilterFileSystemProvider.newInputStream(FilterFileSystemProvider.java:192)
	at org.apache.lucene.mockfile.FilterFileSystemProvider.newInputStream(FilterFileSystemProvider.java:192)
	at org.apache.lucene.mockfile.HandleTrackingFS.newInputStream(HandleTrackingFS.java:92)
	at org.apache.lucene.mockfile.FilterFileSystemProvider.newInputStream(FilterFileSystemProvider.java:192)
	at org.apache.lucene.mockfile.HandleTrackingFS.newInputStream(HandleTrackingFS.java:92)
	at java.nio.file.Files.newInputStream(Files.java:152)
	at java.nio.file.Files.newBufferedReader(Files.java:2784)
	at java.nio.file.Files.readAllLines(Files.java:3202)
	at java.nio.file.Files.readAllLines(Files.java:3242)
	at org.elasticsearch.monitor.os.OsProbe.readOsRelease(OsProbe.java:582)
	at org.elasticsearch.monitor.os.OsProbe.getPrettyName(OsProbe.java:543)
	at org.elasticsearch.monitor.os.OsProbe.osInfo(OsProbe.java:530)
	at org.elasticsearch.monitor.os.OsService.<init>(OsService.java:45)
	at org.elasticsearch.monitor.MonitorService.<init>(MonitorService.java:47)
	at org.elasticsearch.node.Node.<init>(Node.java:398)
	... 45 more

@jasontedor
Copy link
Member

I opened #35453.

@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

6 participants