adamant-kite-43734
06/05/2024, 10:35 AMmany-nightfall-1806
06/05/2024, 11:22 AMSettings >> backup-target >> Test connection
You can also access the Longhorn UI and check the status of this volume.better-optician-77140
06/05/2024, 11:33 AMmany-nightfall-1806
06/05/2024, 11:43 AMmany-nightfall-1806
06/05/2024, 11:47 AMkubectl get storageclasses
look like?better-optician-77140
06/05/2024, 11:50 AMmany-nightfall-1806
06/05/2024, 11:55 AMbetter-optician-77140
06/05/2024, 12:03 PMmany-nightfall-1806
06/05/2024, 12:13 PMmany-nightfall-1806
06/05/2024, 12:25 PMbetter-optician-77140
06/05/2024, 12:32 PMmany-nightfall-1806
06/05/2024, 1:04 PMPendind
status to the PVC.
╰$ kubectl get pvc -A
NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
cattle-monitoring-system alertmanager-rancher-monitoring-alertmanager-db-alertmanager-rancher-monitoring-alertmanager-0 Bound pvc-67c718e0-3b14-4bcc-b631-5d2e06863327 5Gi RWO harvester-longhorn 27m
cattle-monitoring-system prometheus-rancher-monitoring-prometheus-db-prometheus-rancher-monitoring-prometheus-0 Bound pvc-8fcc91bd-6dac-4454-82cc-c5222f265183 50Gi RWO harvester-longhorn 27m
cattle-monitoring-system rancher-monitoring-grafana Bound pvc-d6d0ad3b-d248-41ae-848a-a7ebb9d7c529 2Gi RWO harvester-longhorn 27m
default restore-ubuntu-32d9f19e-349c-4aa7-bccc-66390e5e33af-disk-0 Pending longhorn-image-26bm7 27m
default restore-ubuntuurl-a69d8ab3-9719-4bc4-bce6-c7395e5e8eea-disk-0 Pending longhorn-image-wrv9w 27m
many-nightfall-1806
06/05/2024, 1:07 PMstatus:
complete: false
conditions:
- lastTransitionTime: "2024-06-05T10:32:07Z"
message: 'admission webhook "<http://mutator.harvesterhci.io|mutator.harvesterhci.io>" denied the request: <http://network-attachment-definitions.k8s.cni.cncf.io|network-attachment-definitions.k8s.cni.cncf.io>
"vm-network" not found'
reason: Error
status: "False"
type: InProgress
- lastTransitionTime: "2024-06-05T10:32:07Z"
message: 'admission webhook "<http://mutator.harvesterhci.io|mutator.harvesterhci.io>" denied the request: <http://network-attachment-definitions.k8s.cni.cncf.io|network-attachment-definitions.k8s.cni.cncf.io>
"vm-network" not found'
reason: Error
status: "False"
type: Ready
restores:
- persistentVolumeClaimSpec:
metadata:
creationTimestamp: "null"
name: restore-ubuntuurl-a69d8ab3-9719-4bc4-bce6-c7395e5e8eea-disk-0
namespace: default
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 30Gi
storageClassName: longhorn-image-wrv9w
volumeMode: Block
volumeName: pvc-01cb7f8b-65d0-4447-a60a-7500324a60e9
volumeBackupName: ubuntuurl-volume-ubuntuurl-disk-0-7qo2o
volumeName: disk-0
many-nightfall-1806
06/05/2024, 1:12 PM"vm-network" not found'
I found only the mgmt network in the cluster.better-optician-77140
06/05/2024, 1:13 PMbetter-optician-77140
06/05/2024, 1:17 PMbetter-optician-77140
06/05/2024, 1:17 PMmany-nightfall-1806
06/05/2024, 1:18 PMbetter-optician-77140
06/05/2024, 1:19 PMbetter-optician-77140
06/05/2024, 1:22 PMmany-nightfall-1806
06/05/2024, 1:34 PMbetter-optician-77140
06/05/2024, 2:28 PMbetter-optician-77140
06/05/2024, 2:32 PMmany-nightfall-1806
06/05/2024, 4:24 PMmany-nightfall-1806
06/05/2024, 4:24 PM╰$ k get virtualmachine -A -o wide
NAMESPACE NAME AGE STATUS READY
default ubuntu 16m ErrorUnschedulable False
default ubuntuurl 16m ErrorUnschedulable False
many-nightfall-1806
06/05/2024, 4:24 PMmany-nightfall-1806
06/05/2024, 4:31 PMmany-nightfall-1806
06/05/2024, 6:43 PMmany-nightfall-1806
06/05/2024, 6:45 PMPending
default restore-ubuntu-32d9f19e-349c-4aa7-bccc-66390e5e33af-disk-0 Pending longhorn-image-26bm7 155m
default restore-ubuntuurl-a69d8ab3-9719-4bc4-bce6-c7395e5e8eea-disk-0 Pending longhorn-image-wrv9w 155m
This is because there is no PV
╰$ kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-67c718e0-3b14-4bcc-b631-5d2e06863327 5Gi RWO Delete Bound cattle-monitoring-system/alertmanager-rancher-monitoring-alertmanager-db-alertmanager-rancher-monitoring-alertmanager-0 harvester-longhorn 159m
pvc-8fcc91bd-6dac-4454-82cc-c5222f265183 50Gi RWO Delete Bound cattle-monitoring-system/prometheus-rancher-monitoring-prometheus-db-prometheus-rancher-monitoring-prometheus-0 harvester-longhorn 159m
pvc-d6d0ad3b-d248-41ae-848a-a7ebb9d7c529 2Gi RWO Retain Bound cattle-monitoring-system/rancher-monitoring-grafana harvester-longhorn 159m
many-nightfall-1806
06/05/2024, 6:47 PMmany-nightfall-1806
06/05/2024, 6:48 PMmagnificent-pencil-261
06/06/2024, 2:19 AMlonghorn-image-wrv9w
is missing, this SC is created for the matched imagemagnificent-pencil-261
06/06/2024, 2:20 AMbetter-optician-77140
06/06/2024, 12:37 PMbetter-optician-77140
06/06/2024, 12:37 PMbetter-optician-77140
06/06/2024, 12:39 PMmany-nightfall-1806
06/06/2024, 4:07 PMstorage class
named as longhorn-image-wrv9w
and longhorn-image-26bm7
. When the backup was created both storage classes were used to the VM and must be present to restore the backup.
Can you try to created the storage classes manually?
allowVolumeExpansion: true
apiVersion: <http://storage.k8s.io/v1|storage.k8s.io/v1>
kind: StorageClass
metadata:
name: longhorn-image-wrv9w
parameters:
migratable: "true"
numberOfReplicas: "1"
staleReplicaTimeout: "30"
provisioner: <http://driver.longhorn.io|driver.longhorn.io>
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
apiVersion: <http://storage.k8s.io/v1|storage.k8s.io/v1>
kind: StorageClass
metadata:
name: longhorn-image-26bm7
parameters:
migratable: "true"
numberOfReplicas: "1"
staleReplicaTimeout: "30"
provisioner: <http://driver.longhorn.io|driver.longhorn.io>
reclaimPolicy: Delete
volumeBindingMode: Immediate
Wait for some minutes and the VMs should start.many-nightfall-1806
06/06/2024, 4:08 PMbetter-optician-77140
06/07/2024, 4:04 AMbetter-optician-77140
06/07/2024, 4:07 AMbetter-optician-77140
06/07/2024, 4:10 AMbetter-optician-77140
06/07/2024, 4:26 AMmagnificent-pencil-261
06/07/2024, 6:22 AMbetter-optician-77140
06/07/2024, 1:03 PMbetter-optician-77140
06/07/2024, 6:43 PMbetter-optician-77140
06/09/2024, 8:35 AMmagnificent-pencil-261
06/11/2024, 2:11 AMimage-ws4fp
and sc longhorn-image-ws4fp
in your cluster?better-optician-77140
06/17/2024, 7:27 AMapiVersion: longhorn.io/v1beta2
kind: BackingImage
metadata:
name: parrot-restore
namespace: longhorn-system
spec:
sourceType: restore
sourceParameters:
# change to your backup URL
# backup-url: <nfs://longhorn-test-nfs-svc.default>:/opt/backupstore?backingImage=parrot
backup-url: <s3://backupbucket@us-east-1/?backingImage=parrot>
concurrent-limit: "2"
checksum: 304f3ed30ca6878e9056ee6f1b02b328239f0d0c2c1272840998212f9734b196371560b3b939037e4f4c2884ce457c2cbc9f0621f4f5d1ca983983c8cdf8cd9a