Bug 1820175 - localvolume object can not be deleted when the operator is uninstalled
Summary: localvolume object can not be deleted when the operator is uninstalled
Keywords:
Status: CLOSED DUPLICATE of bug 1732374
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: aos-storage-staff@redhat.com
QA Contact: Qin Ping
URL:
Whiteboard:
Depends On:
Blocks: 1820178
TreeView+ depends on / blocked
 
Reported: 2020-04-02 12:20 UTC by Qin Ping
Modified: 2020-04-03 02:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1820178 (view as bug list)
Environment:
Last Closed: 2020-04-03 02:18:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qin Ping 2020-04-02 12:20:37 UTC
Description of problem:
When the local storage operator is uninstalled first, the cmd to delete localvolume object will be hung there.

Version-Release number of selected component (if applicable):
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.4.0-0.nightly-2020-03-31-215957   True        False         26h     Cluster version is 4.4.0-0.nightly-2020-03-31-215957

$ oc get csv -n local-storage-test
NAME                                        DISPLAY         VERSION              REPLACES   PHASE
local-storage-operator.4.4.0-202003300654   Local Storage   4.4.0-202003300654              Succeeded


How reproducible:
Always

Steps to Reproduce:
1. Install local storage operator from web console
2. Create localvolume obejct to deploy local storage provisioner
3. Uninstall local storage opertor from web console
4. Delete the localvolume object with cmd: oc delete localvolume

Actual results:
The delete cmd is hung there.

Expected results:
localvolume object can be deleted successfully.

Master Log:

Node Log (of failed PODs):

PV Dump:

PVC Dump:

StorageClass Dump (if StorageClass used by PV/PVC):

Additional info:
$ oc describe localvolume example -n local-storage-test
Name:         example
Namespace:    local-storage-test
Labels:       <none>
Annotations:  <none>
API Version:  local.storage.openshift.io/v1
Kind:         LocalVolume
Metadata:
  Creation Timestamp:             2020-04-02T11:57:17Z
  Deletion Grace Period Seconds:  0
  Deletion Timestamp:             2020-04-02T11:59:43Z
  Finalizers:
    storage.openshift.com/local-volume-protection
  Generation:        3
  Resource Version:  745411
  Self Link:         /apis/local.storage.openshift.io/v1/namespaces/local-storage-test/localvolumes/example
  UID:               b7483217-32eb-40e0-b543-5b675977cfe5
Spec:
  Log Level:         Normal
  Management State:  Managed
  Storage Class Devices:
    Device Paths:
      /dev/vde
      /dev/vdf
    Fs Type:             ext4
    Storage Class Name:  foobar
    Volume Mode:         Filesystem
Status:
  Conditions:
    Last Transition Time:  2020-04-02T11:57:17Z
    Message:               Ready
    Status:                True
    Type:                  Available
  Generations:
    Group:              apps
    Hash:               
    Last Generation:    1
    Name:               example-local-provisioner
    Namespace:          local-storage-test
    Resource:           DaemonSet
    Group:              apps
    Hash:               
    Last Generation:    1
    Name:               example-local-diskmaker
    Namespace:          local-storage-test
    Resource:           DaemonSet
  Management State:     Managed
  Observed Generation:  2
  Ready Replicas:       0
Events:                 <none>


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