Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfs for openshift doesn't install. #593

Closed
bayeslearner opened this issue Aug 8, 2023 · 4 comments
Closed

nfs for openshift doesn't install. #593

bayeslearner opened this issue Aug 8, 2023 · 4 comments

Comments

@bayeslearner
Copy link
Contributor

sudo kcli create app openshift nfs
KUBECONFIG not set...Using .kube/config instead
Adding app nfs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
nfs-kernel-server is already the newest version (1:2.6.1-1ubuntu1.2).
The following packages were automatically installed and are no longer required:
  libflashrom1 libftdi1-2 libllvm13
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
Synchronizing state of nfs-kernel-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nfs-kernel-server
namespace/nfs created
Cloning into 'nfs-subdir'...
remote: Enumerating objects: 7784, done.
remote: Counting objects: 100% (1630/1630), done.
remote: Compressing objects: 100% (282/282), done.
remote: Total 7784 (delta 1428), reused 1379 (delta 1345), pack-reused 6154
Receiving objects: 100% (7784/7784), 8.45 MiB | 9.93 MiB/s, done.
Resolving deltas: 100% (4451/4451), done.
Already on project "nfs" on server "https://api.hub.karmalabs.corp:6443".
serviceaccount/nfs-client-provisioner created
role.rbac.authorization.k8s.io/leader-locking-nfs-client-provisioner created
rolebinding.rbac.authorization.k8s.io/leader-locking-nfs-client-provisioner created
Error from server (AlreadyExists): error when creating "nfs-subdir/deploy/rbac.yaml": clusterroles.rbac.authorization.k8s.io "nfs-client-provisioner-runner" already exists
Error from server (AlreadyExists): error when creating "nfs-subdir/deploy/rbac.yaml": clusterrolebindings.rbac.authorization.k8s.io "run-nfs-client-provisioner" already exists
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:hostmount-anyuid added: "nfs-client-provisioner"
deployment.apps/nfs-client-provisioner created
error: error parsing nfs-subdir/deploy/class.yaml: error converting YAML to JSON: yaml: line 4: did not find expected key
@bayeslearner
Copy link
Contributor Author

had to use sudo but still doesn't quite work yet. Where is this nfs-subdir/deploy/class.yaml?

@bayeslearner
Copy link
Contributor Author

bayeslearner commented Aug 9, 2023

kcli remove app openshift -P cluster=mykube nfs
needs sudo, but some resources are not deleted cleanly so reinstall will give out :

Already on project "nfs" on server "https://api.hub.karmalabs.corp:6443".
serviceaccount/nfs-client-provisioner created
role.rbac.authorization.k8s.io/leader-locking-nfs-client-provisioner created
rolebinding.rbac.authorization.k8s.io/leader-locking-nfs-client-provisioner created
Error from server (AlreadyExists): error when creating "nfs-subdir/deploy/rbac.yaml": clusterroles.rbac.authorization.k8s.io "nfs-client-provisioner-runner" already exists
Error from server (AlreadyExists): error when creating "nfs-subdir/deploy/rbac.yaml": clusterrolebindings.rbac.authorization.k8s.io "run-nfs-client-provisioner" already exists
clusterrole.rbac.authorization.k8s.io/system:openshift:scc:hostmount-anyuid added: "nfs-client-provisioner"
/tmp/tmpze86wnkc
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: nfs
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
provisioner: k8s-sigs.io/nfs-subdir-external-provisioner
parameters:
  pathPattern: "${.PVC.namespace}/${.PVC.name}"
  onDelete: delete
deployment.apps/nfs-client-provisioner created
Error from server (AlreadyExists): error when creating "nfs-subdir/deploy/class.yaml": storageclasses.storage.k8s.io "nfs" already exists
root@bayes-ser:/usr/lib/python3/dist-packages/kvirt/cluster/openshift/apps/nfs#

@karmab
Copy link
Owner

karmab commented Aug 18, 2023

let me check this and get back at you

@karmab
Copy link
Owner

karmab commented May 22, 2024

finally addressed in 18ba66f
sorry for the long time, this workflow was always intended to be run as root, since part of if tries to deploy an nfs server locally when missing

@karmab karmab closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants