Bug 2027262 - no configuration has been provided, try setting KUBERNETES_MASTER environment variable
Summary: no configuration has been provided, try setting KUBERNETES_MASTER environment...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Test Framework
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.8.z
Assignee: Derek Higgins
QA Contact:
URL:
Whiteboard:
Depends On: 2024656
Blocks: 2024212
TreeView+ depends on / blocked
 
Reported: 2021-11-29 09:10 UTC by OpenShift BugZilla Robot
Modified: 2022-01-05 16:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-05 16:11:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift origin pull 26645 0 None open [release-4.8] Bug 2027262: Create new-project without updating kubeconfig 2021-11-29 09:27:05 UTC
Red Hat Product Errata RHBA-2021:5209 0 None None None 2022-01-05 16:11:58 UTC

Description OpenShift BugZilla Robot 2021-11-29 09:10:19 UTC
+++ This bug was initially created as a clone of Bug #2024656 +++

+++ This bug was initially created as a clone of Bug #2023631 +++

While running the test
[sig-devex][Feature:Templates] templateinstance security tests  should pass security tests [Suite:openshift/conformance/parallel]

the following error can sometimes be observed

[AfterEach] [sig-devex][Feature:Templates] templateinstance security tests
  github.com/openshift/origin/test/extended/util/client.go:141
STEP: Destroying namespace "e2e-test-templates-vpqzv" for this suite.
fail [github.com/openshift/origin/test/extended/util/client.go:524]: Nov 15 22:41:04.835: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

failed: (7.3s) 2021-11-15T22:41:07 "[sig-devex][Feature:Templates] templateinstance security tests  should pass security tests [Suite:openshift/conformance/parallel]"

--- Additional comment from derekh on 2021-11-16 08:58:59 UTC ---

This can be reproduced by running the templateinstance test in parallel with the test 
"[sig-cli] oc adm storage-admin [Suite:openshift/conformance/parallel]"

The problem is that this test runs the command
oc new-project <snip/> policy-can-i

This command rewrites the kubeconfig file to change the current/default project,
while rewriting it the config files is zero length for a brief moment,

if another test reads this file while it is zero length then the other test will fail

This appears to be the case of any test that calls CLI.UserConfig() or CLI.AdminConfig()


Also the changing of context of the global kubeconfig could cause any test to fail
that expects it to remain at a specific context during the test.

--- Additional comment from derekh on 2021-11-16 10:34:50 UTC ---

(In reply to Derek Higgins from comment #1)
> Also the changing of context of the global kubeconfig could cause any test
> to fail
> that expects it to remain at a specific context during the test.

Looks like a failure in last nights nightly was caused by this 

from
https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/periodic-ci-openshift-release-master-nightly-4.10-e2e-metal-ipi-ovn-ipv6/1460355406688686080


: [sig-auth][Feature:RoleBindingRestrictions] RoleBindingRestrictions should be functional Rolebinding restrictions tests single project should succeed [Suite:openshift/conformance/parallel] expand_less	2s
fail [github.com/openshift/origin/test/extended/util/client.go:524]: Nov 15 23:22:21.382: invalid configuration: [context was not found for specified context: policy-can-i/api-ostest-test-metalkube-org:6443/storage-adm2, cluster has no server defined]

--- Additional comment from pmuller on 2021-11-23 13:51:23 UTC ---

Reassigning to Test Framework who own the OCP testsuite

Comment 4 Derek Higgins 2021-12-20 14:09:36 UTC
Setting to verified based on observed improvements in 4.8 ci results.

Comment 6 errata-xmlrpc 2022-01-05 16:11:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.8.25 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:5209


Note You need to log in before you can comment on or make changes to this bug.