Cloud Pak for Data

Cloud Pak for Data

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Delete Project

    Posted Tue May 19, 2020 04:03 AM
    Hello,

    I tried to delete Cloud Pak for Data project because each of the deletion of the service did not work well.
    However, the status remains Terminating.
    Though I tried to edit project to delete "finalizers: kubernetes", and save it, this change was not reflected.
    When I looked at the project config file, "finalizers: kubernetes" reborned.

    Finally, how should I delete the project?

    Kind regards,
    Chris

    ------------------------------
    Chris
    ------------------------------

    #CloudPakforDataGroup


  • 2.  RE: Delete Project

    Posted Tue May 19, 2020 06:03 AM

    Hi,

    Please check which PVC is stuck and try:

    kubectl patch pvc PVC_NAME -p '{"metadata":{"finalizers":null}}'

    Thanks

    ------------------------------
    TOMASZ HANUSIAK
    ------------------------------



  • 3.  RE: Delete Project

    Posted Tue May 19, 2020 08:13 PM
    Hi,

    I deleted pvc and pv corresponded to CP4D namespace.
    But the namespace is not deleted.

    How should I do?

    Regards,
    Chris

    ------------------------------
    Chris
    ------------------------------



  • 4.  RE: Delete Project

    Posted Wed May 20, 2020 04:10 AM

    Hi,

    Can you check what other elements of the namespace remain ?

    oc get all -n X

    Thanks



    ------------------------------
    TOMASZ HANUSIAK
    ------------------------------



  • 5.  RE: Delete Project

    Posted Wed May 20, 2020 08:33 PM
    Hello,

    Thank you for your reply.

    I got the output below, but the status of the namespace is still Terminating. 

    # oc get all -n "namespace"
    No resources found.

    Regards,
    Chris

    ------------------------------
    Chris
    ------------------------------



  • 6.  RE: Delete Project

    Posted Thu May 21, 2020 05:19 AM

    Hi,

    Interesting... Are you sure there is no more pvc in this namespace as well ?

    Can you check if there are any events firing ?
    kubectl get events

    Thanks



    ------------------------------
    TOMASZ HANUSIAK
    ------------------------------