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

flag -new-pvc-namespace not work #108

Open
smallersoup opened this issue Jun 17, 2022 · 0 comments
Open

flag -new-pvc-namespace not work #108

smallersoup opened this issue Jun 17, 2022 · 0 comments

Comments

@smallersoup
Copy link

korb version is 1.1.4

# korb  -v
korb version 1.1.4

I will migrate pvc in korb/cephfs-test to korb-dst/cephfs-test:

# korb  --new-pvc-namespace korb-dst cephfs-test --source-namespace korb
DEBU[0000] Created client from kubeconfig                component=migrator kubeconfig=/root/.kube/config
DEBU[0000] Got current namespace                         component=migrator namespace=istio-system
DEBU[0000] Got Source PVC                                component=migrator name=cephfs-test uid=738b79b1-017a-4469-9225-cc10b9a7ec9f
DEBU[0000] No new Name given, using old name             component=migrator
DEBU[0000] Found pod which mounts source PVC             component=migrator pod=cephfs-test-5b5cfd7646-2nxsv
DEBU[0000] Walking owners                                component=migrator meta=cephfs-test-5b5cfd7646-2nxsv
DEBU[0000] Walking owners                                component=migrator meta=cephfs-test-5b5cfd7646
DEBU[0000] Walking owners                                component=migrator meta=cephfs-test
DEBU[0000] Found deployment                              component=migrator
DEBU[0000] Compatible Strategies:                        component=migrator
DEBU[0000] Copy the PVC to the new Storage class and with new size and a new name, delete the old PVC, and copy it back to the old name.  component=migrator
DEBU[0000] Only one compatible strategy, running         component=migrator
DEBU[0000] Set timeout from PVC size                     component=strategy strategy=copy-twice-name timeout=1m0s
WARN[0000] This strategy assumes you've stopped all pods accessing this data.  component=strategy strategy=copy-twice-name
DEBU[0000] creating temporary PVC                        component=strategy stage=1 strategy=copy-twice-name
WARN[0002] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0004] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0006] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0008] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0010] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0012] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0014] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0016] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0018] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0020] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0022] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0024] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0026] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0028] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
WARN[0030] PVC not bound yet, retrying                   component=strategy pvc-name=cephfs-test-copy-1655433610 strategy=copy-twice-name
........

But not found pvc in korb-dst namespace

# k get pvc -n korb-dst
No resources found in korb-dst namespace.

Appear in korb source namespace

# k get pvc -n korb
NAME                          STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS      AGE
cephfs-test                   Bound     pvc-738b79b1-017a-4469-9225-cc10b9a7ec9f   1Gi        RWX            rook-cephfs       35m
cephfs-test-copy-1655433610   Pending                                                                        rook-ceph-block   2m25s
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

1 participant