Skip to content

oc-cluster destroy failed for reason "Permission denied". #77

@warmchang

Description

@warmchang

Run oc-cluster destroy failed for reason "Permission denied":

[root@appab-myproject ~]# oc-cluster list
# Using client for origin v1.5.1
Profiles:
- example
- workshop
- workshop2
[root@appab-myproject ~]# oc-cluster status
# Using client for origin v1.5.1
no cluster running
[root@appab-myproject ~]# oc-cluster destroy workshop2
# Using client for origin v1.5.1
Are you sure you want to destroy cluster with profile <workshop2> (y/n)? y
Removing profile workshop2
Removing /root/.oc/profiles/workshop2

/usr/bin/rm: cannot remove '/profiles/workshop2': Permission denied
Removing .kubeconfig profiles
error: cannot delete cluster workshop2, not in /root/.kube/config
error: cannot delete context workshop2, not in /root/.kube/config
Removing 0 images built with this cluster
[root@appab-myproject ~]#
[root@appab-myproject ~]# oc-cluster list
# Using client for origin v1.5.1
Profiles:
- example
- workshop
- workshop2

The docker version & OS version:

[root@appab-myproject ~]# docker version
Client:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-1.12.6-28.git1398f24.el7.centos.x86_64
 Go version:      go1.7.4
 Git commit:      1398f24/1.12.6
 Built:           Fri May 26 17:28:18 2017
 OS/Arch:         linux/amd64

Server:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-1.12.6-28.git1398f24.el7.centos.x86_64
 Go version:      go1.7.4
 Git commit:      1398f24/1.12.6
 Built:           Fri May 26 17:28:18 2017
 OS/Arch:         linux/amd64
[root@appab-myproject ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@appab-myproject ~]#

Any advice to resolve this? thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions