Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1669417

Summary: Empty label when describing node
Product: OpenShift Container Platform Reporter: Jaspreet Kaur <jkaur>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED NOTABUG QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 4.1.0CC: aos-bugs, erich, jkaur, jokerman, mmccomas
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-26 15:33:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1664187    

Description Jaspreet Kaur 2019-01-25 08:09:23 UTC
Description of problem: When running below command we need the label is empty :

oc describe node ip-10-0-175-124.us-east-2.compute.internal

Name:               ip-10-0-175-124.us-east-2.compute.internal
Roles:              worker
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/instance-type=m4.large
                    beta.kubernetes.io/os=linux
                    failure-domain.beta.kubernetes.io/region=us-east-2
                    failure-domain.beta.kubernetes.io/zone=us-east-2c
                    kubernetes.io/hostname=ip-10-0-175-124
                    node-role.kubernetes.io/worker=



oc describe node ip-10-0-13-2.us-east-2.compute.internal
Name:               ip-10-0-13-2.us-east-2.compute.internal
Roles:              master
Labels:             beta.kubernetes.io/arch=amd64
                    beta.kubernetes.io/instance-type=m4.large
                    beta.kubernetes.io/os=linux
                    failure-domain.beta.kubernetes.io/region=us-east-2
                    failure-domain.beta.kubernetes.io/zone=us-east-2a
                    kubernetes.io/hostname=ip-10-0-13-2
                    node-role.kubernetes.io/master=


Notice: 

node-role.kubernetes.io/master=
node-role.kubernetes.io/worker=

It should signify some value like true or false.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results: Empty result or the label has no value


Expected results: The label should have a value associated with key similar to Openshift 3.10 and 3.11


Additional info:

Comment 1 Juan Vallejo 2019-01-25 19:02:40 UTC
Is the empty label causing label-selection issues / other issues? I ask because I've seen the `nodeSelector` in some deployments, for example, also have an empty string as a value, yet it still works as expected.

Is the label value also empty in the output for: `oc get node ip-10-0-13-2.us-east-2.compute.internal -o yaml` ?
Do you know what is supposed to set this label originally?

Comment 3 Eric Rich 2019-02-18 19:16:31 UTC
I think this is working as designed. 

I think you want to look at https://github.com/openshift/training/blob/master/docs/05-infrastructure-nodes.md and see how this might change the assumptions you have on how to properly label nodes/machines.

Comment 4 Maciej Szulik 2019-02-26 15:33:05 UTC
Closing per previous comment.

Comment 6 Red Hat Bugzilla 2023-09-14 04:45:37 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days