Skip to content

Defaults to filebrowser and default creds failed #56

@weshayutin

Description

@weshayutin

spec has:

fileAccess 
object
FileAccess defines which file access methods are enabled for this restore.
If not specified, defaults to HTTP file browser only.

{"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "ce302a14-bca6-42d4-b83c-41a01c4786a7", "currentReason": "RestoresCompleted"}
2025-12-12T16:03:04.843Z	INFO	Preparing credentials for file server (PVCs already validated)	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "ce302a14-bca6-42d4-b83c-41a01c4786a7"}
2025-12-12T16:03:04.843Z	INFO	Ensuring credentials are ready for file server	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "ce302a14-bca6-42d4-b83c-41a01c4786a7", "restoreNamespace": "cirros-test-cont-cirros-test-cont-1-251d55e5", "sshEnabled": false, "fileBrowserEnabled": false}
2025-12-12T16:03:04.843Z	ERROR	Credentials preparation failed	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "ce302a14-bca6-42d4-b83c-41a01c4786a7", "error": "invalid fileAccess configuration: at least one of SSH or FileBrowser must be specified"}
github.com/migtools/oadp-vm-file-restore/internal/controller.(*VirtualMachineFileRestoreReconciler).executeFileRestoreWorkflow
	/workspace/internal/controller/virtualmachinefilerestore_controller.go:1044
github.com/migtools/oadp-vm-file-restore/internal/controller.(*VirtualMachineFileRestoreReconciler).Reconcile
	/workspace/internal/controller/virtualmachinefilerestore_controller.go:190
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:119
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:340
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:300
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.1
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:202
2025-12-12T16:03:04.857Z	DEBUG	Successfully updated status	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "ce302a14-bca6-42d4-b83c-41a01c4786a7", "newPhase": "Failed", "observedGeneration": 1}
2025-12-12T16:03:04.857Z	ERROR	Reconciler error	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "ce302a14-bca6-42d4-b83c-41a01c4786a7", "error": "validation failed: Failed to prepare credentials: invalid fileAccess configuration: at least one of SSH or FileBrowser must be specified"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:353
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:300
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.1
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:202
2025-12-12T16:03:04.858Z	DEBUG	VirtualMachineFileRestore Reconcile start	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "918e3697-6853-4362-b6ee-a796a2c9affa"}
2025-12-12T16:03:04.858Z	INFO	Executing file restore workflow	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "918e3697-6853-4362-b6ee-a796a2c9affa", "progressingReason": "RestoresCompleted"}
2025-12-12T16:03:04.858Z	INFO	Executing file restore workflow	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "918e3697-6853-4362-b6ee-a796a2c9affa", "currentReason": "RestoresCompleted"}
2025-12-12T16:03:04.858Z	INFO	Preparing credentials for file server (PVCs already validated)	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "918e3697-6853-4362-b6ee-a796a2c9affa"}
2025-12-12T16:03:04.858Z	INFO	Ensuring credentials are ready for file server	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "918e3697-6853-4362-b6ee-a796a2c9affa", "restoreNamespace": "cirros-test-cont-cirros-test-cont-1-251d55e5", "sshEnabled": false, "fileBrowserEnabled": false}
2025-12-12T16:03:04.858Z	ERROR	Credentials preparation failed	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "918e3697-6853-4362-b6ee-a796a2c9affa", "error": "invalid fileAccess configuration: at least one of SSH or FileBrowser must be specified"}
github.com/migtools/oadp-vm-file-restore/internal/controller.(*VirtualMachineFileRestoreReconciler).executeFileRestoreWorkflow
	/workspace/internal/controller/virtualmachinefilerestore_controller.go:1044
github.com/migtools/oadp-vm-file-restore/internal/controller.(*VirtualMachineFileRestoreReconciler).Reconcile
	/workspace/internal/controller/virtualmachinefilerestore_controller.go:190
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Reconcile
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:119
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:340
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:300
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.1
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:202
2025-12-12T16:03:04.859Z	DEBUG	Accepted Update event from namespace	{"NamespacePredicate": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp"}
2025-12-12T16:03:04.867Z	DEBUG	Successfully updated status	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "918e3697-6853-4362-b6ee-a796a2c9affa", "newPhase": "Failed", "observedGeneration": 1}
2025-12-12T16:03:04.867Z	ERROR	Reconciler error	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", "VirtualMachineFileRestore": {"name":"vmfrtest-oadp1","namespace":"openshift-adp"}, "namespace": "openshift-adp", "name": "vmfrtest-oadp1", "reconcileID": "918e3697-6853-4362-b6ee-a796a2c9affa", "error": "validation failed: Failed to prepare credentials: invalid fileAccess configuration: at least one of SSH or FileBrowser must be specified"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:353
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:300
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.1
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.21.0/pkg/internal/controller/controller.go:202
2025-12-12T16:03:04.867Z	DEBUG	VirtualMachineFileRestore Reconcile start	{"controller": "virtualmachinefilerestore", "controllerGroup": "oadp.openshift.io", "controllerKind": "VirtualMachineFileRestore", 

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