Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

functional tests: skip TestSocketProxyd #3049

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

iaguis
Copy link
Member

@iaguis iaguis commented Aug 10, 2016

This test is currently racy. The socket-activated proxyd service depends
on a rkt service being ready. However, the application that runs inside
rkt doesn't have a way to signal when it's ready because of
#1464. Instead, systemd assumes it's
ready when the container starts, which is wrong, because the application
inside might not be listening on the port yet. This makes the test fail.

It fails a lot particularly in Fedora Rawhide with the flavor host:

https://jenkins-rkt-public.prod.coreos.systems/job/rkt-master-periodic/os_type=fedora-rawhide,stage1_flavor=host/

We can re-enable it when we fix #1464.

cc @woodbor

@krnowak
Copy link
Collaborator

krnowak commented Aug 10, 2016

Is this racy also on kvm flavor? kvm flavor is not using nspawn.

@@ -34,6 +34,10 @@ import (
)

func TestSocketProxyd(t *testing.T) {
// Skip the test for now. See https://github.com/coreos/rkt/issues/1464 for
// details.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you link to this too?
#2432 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1464 does not explain the race

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, wrong link.

@lucab
Copy link
Member

lucab commented Aug 10, 2016

@krnowak Not sure, as due to nested-virtualization requirement kvm tests are only running on semaphore at the moment.

This test is currently racy. The socket-activated proxyd service depends
on a rkt service being ready. However, the application that runs inside
rkt doesn't have a way to signal when it's ready because of
rkt#1464. Instead, systemd assumes it's
ready when the container starts, which is wrong, because the application
inside might not be listening on the port yet. This makes the test fail.

It fails a lot particularly in Fedora Rawhide with the flavor host:

https://jenkins-rkt-public.prod.coreos.systems/job/rkt-master-periodic/os_type=fedora-rawhide,stage1_flavor=host/

We can re-enable it when we fix rkt#1464.
@iaguis iaguis force-pushed the iaguis/skip-socket-proxyd-test branch from 0eb6fd9 to 01e85a5 Compare August 10, 2016 13:08
@alban
Copy link
Member

alban commented Aug 10, 2016

@krnowak it is racy on kvm too because the kvm flavor does not support sdnotify and @alepuccetti's PR #2826 only implements the sdnotify mechanism in the nspawn flavor.

It is annoying because the test and documentation about systemd-socket-proxyd was added only for the benefit of the kvm flavor: on the nspawn flavor, users can just use normal socket activation, so they don't need systemd-socket-proxyd.

@iaguis
Copy link
Member Author

iaguis commented Aug 10, 2016

#2943 strikes again.

@alban
Copy link
Member

alban commented Aug 10, 2016

LGTM

@iaguis iaguis merged commit 1029815 into rkt:master Aug 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stage1: use sd_notify to notify when pod is ready
4 participants