Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1450762 - Storageclass created with annotation "storageclass.kubernetes.io/is-default-class" set to true does not make storageclass as default.
Storageclass created with annotation "storageclass.kubernetes.io/is-default-c...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage (Show other bugs)
3.6.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Jan Safranek
Liang Xia
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-15 03:05 EDT by Liang Xia
Modified: 2017-08-16 15 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-10 01:24:06 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Liang Xia 2017-05-15 03:05:19 EDT
Description of problem:
Storageclass created with annotation "storageclass.kubernetes.io/is-default-class" set to true does not make storageclass as default.

Version-Release number of selected component (if applicable):
openshift v3.6.74
kubernetes v1.6.1+5115d708d7
etcd 3.1.0

How reproducible:
Always

Steps to Reproduce:
1.Create a storageclass with below content.
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: slow1
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/manual

2.Check above storageclass
oc describe storageclass

Actual results:
Name:        slow1
IsDefaultClass:    No
Annotations:    storageclass.kubernetes.io/is-default-class=true
Provisioner:    kubernetes.io/manual
Parameters:    <none>
Events:        <none>

Expected results:
The storageclass should be set as default storageclass.

Additional info:
Annotation "storageclass.beta.kubernetes.io/is-default-class" can set storageclass as default or non-default base on given value.

      Name:        sc1-5dnar
      IsDefaultClass:    No
      Annotations:    storageclass.beta.kubernetes.io/is-default-class=false
      Provisioner:    kubernetes.io/manual
      Parameters:    <none>
      Events:        <none>
      
      Name:        sc2-5dnar
      IsDefaultClass:    Yes
      Annotations:    storageclass.beta.kubernetes.io/is-default-class=true
      Provisioner:    kubernetes.io/manual
      Parameters:    <none>
      Events:        <none>
      
      Name:        sc3-5dnar
      IsDefaultClass:    No
      Annotations:    storageclass.kubernetes.io/is-default-class=false
      Provisioner:    kubernetes.io/manual
      Parameters:    <none>
      Events:        <none>
      
      Name:        sc4-5dnar
      IsDefaultClass:    No
      Annotations:    storageclass.kubernetes.io/is-default-class=true
      Provisioner:    kubernetes.io/manual
      Parameters:    <none>
      Events:        <none>
Comment 1 Jan Safranek 2017-05-31 12:23:42 EDT
https://github.com/kubernetes/kubernetes/pull/43945 is missing is OSE
Comment 2 Jan Safranek 2017-05-31 12:24:24 EDT
... *in* OSE. Backport will follow shortly.
Comment 3 Jan Safranek 2017-05-31 12:53:10 EDT
Pushed upstream: https://github.com/openshift/origin/pull/14427
Comment 6 Liang Xia 2017-06-15 02:27:51 EDT
Verified on openshift v3.6.106, the issue has fixed.

      Name:		sc1-60gxr
      IsDefaultClass:	No
      Annotations:	storageclass.beta.kubernetes.io/is-default-class=false
      Provisioner:	kubernetes.io/manual
      Parameters:	<none>
      Events:		<none>
      
      
      Name:		sc2-60gxr
      IsDefaultClass:	Yes
      Annotations:	storageclass.beta.kubernetes.io/is-default-class=true
      Provisioner:	kubernetes.io/manual
      Parameters:	<none>
      Events:		<none>
      
      
      Name:		sc3-60gxr
      IsDefaultClass:	No
      Annotations:	storageclass.kubernetes.io/is-default-class=false
      Provisioner:	kubernetes.io/manual
      Parameters:	<none>
      Events:		<none>
      
      
      Name:		sc4-60gxr
      IsDefaultClass:	Yes
      Annotations:	storageclass.kubernetes.io/is-default-class=true
      Provisioner:	kubernetes.io/manual
      Parameters:	<none>
      Events:		<none>
Comment 8 errata-xmlrpc 2017-08-10 01:24:06 EDT
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, 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/RHEA-2017:1716

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