Skip to content

Provisioner's SupportsBlock() function asserts true when it shouldn’t #287

@niladrih

Description

@niladrih

Describe the bug: The SupportsBlock() function should return a 'false' as the support for block volumes was dropped with the removal of the 'device' mode provisioner.

func (p *Provisioner) SupportsBlock(_ context.Context) bool {
return true
}

This provisioner runs mkdir and other similar commands against filesystems. It definitely does not support block volumes.

Environment details:

  • OpenEBS version (use kubectl get po -n openebs --show-labels): 4.3.3
  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release): Ubuntu 22.04.4 LTS
  • kernel (e.g: uname -a): 5.15.0-140-generic
  • others:

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions