Skip to content

chcon: invalid context: /var/lib/openshift/openshift.local.volumes system_u:object_r:openshift_var_lib_t:s0 #14937

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

Closed
stevekuznetsov opened this issue Jun 28, 2017 · 0 comments
Assignees
Labels
area/tests kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1

Comments

@stevekuznetsov
Copy link
Contributor

@eparis your commit in 88e4c71 introduced a change to how we use chcon which leads to falures like:

+ make test-extended SUITE=core 'FOCUS=registry|imageapi|ImagePrune|ImageQuota'
test/extended/core.sh --ginkgo.focus="registry|imageapi|ImagePrune|ImageQuota"
[WARNING] No compiled `ginkgo` binary was found. Attempting to build one using:
[WARNING]   $ hack/build-go.sh vendor/github.com/onsi/ginkgo/ginkgo
++ Building go targets for linux/amd64: vendor/github.com/onsi/ginkgo/ginkgo
/data/src/github.com/openshift/origin/hack/build-go.sh took 71 seconds
[WARNING] No compiled `junitmerge` binary was found. Attempting to build one using:
[WARNING]   $ hack/build-go.sh tools/junitmerge
++ Building go targets for linux/amd64: tools/junitmerge
/data/src/github.com/openshift/origin/hack/build-go.sh took 3 seconds
[INFO] [CLEANUP] Cleaning up temporary directories
[INFO] Starting server
chcon: invalid context: /var/lib/openshift/openshift.local.volumes	system_u:object_r:openshift_var_lib_t:s0
[ERROR] PID 6461: test/extended/setup.sh:88: `${sudo} chcon "${label}" ${VOLUME_DIR}` exited with status 1.
[INFO] 		Stack Trace: 
[INFO] 		  1: test/extended/setup.sh:88: `${sudo} chcon "${label}" ${VOLUME_DIR}`
[INFO] 		  2: test/extended/core.sh:8: os::test::extended::setup
[INFO]   Exiting with code 1.
/data/src/github.com/openshift/origin/hack/lib/log/system.sh: line 31:  9141 Terminated              sar -A -o "${binary_logfile}" 1 86400 > /dev/null 2> "${stderr_logfile}"
[INFO] [CLEANUP] Beginning cleanup routines...
[INFO] [CLEANUP] Dumping cluster events to _output/scripts/core/artifacts/events.txt
error: A server URL must be specified
[INFO] [CLEANUP] Dumping etcd contents to _output/scripts/core/artifacts/etcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests kind/test-flake Categorizes issue or PR as related to test flakes. priority/P1
Projects
None yet
Development

No branches or pull requests

2 participants