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

vgPattern is not selecting correct volume group #52

Closed
w3aman opened this issue Apr 20, 2021 · 1 comment
Closed

vgPattern is not selecting correct volume group #52

w3aman opened this issue Apr 20, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@w3aman
Copy link
Contributor

w3aman commented Apr 20, 2021

What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.]

  • Created storage class with vgPattern as lo* for my volume group starting with lo initials.
  • volume should have been created from this volume group but it was created on a volgroup named lvmvg
spec:
  capacity: "48318382080"
  ownerNodeID: lvm-node2
  shared: "no"
  thinProvision: "no"
  vgPattern: lo*
  volGroup: lvmvg
status:
  state: Ready

here vgPattern doesn't match in volume group name still this volgroup was selected for creation lvm volume

lvmuser@rack2:~/aman$ k get lvmvol -n openebs pvc-fc577d03-dd57-4ab8-b4cd-2e96a9c327e7 -o yaml
apiVersion: local.openebs.io/v1alpha1
kind: LVMVolume
metadata:
creationTimestamp: "2021-04-20T09:57:07Z"
finalizers:
- lvm.openebs.io/finalizer
generation: 3
labels:
  kubernetes.io/nodename: lvm-node2
managedFields:
- apiVersion: local.openebs.io/v1alpha1
  fieldsType: FieldsV1
  fieldsV1:
    f:metadata:
      f:finalizers:
        .: {}
        v:"lvm.openebs.io/finalizer": {}
      f:labels:
        .: {}
        f:kubernetes.io/nodename: {}
    f:spec:
      .: {}
      f:capacity: {}
      f:ownerNodeID: {}
      f:shared: {}
      f:thinProvision: {}
      f:vgPattern: {}
      f:volGroup: {}
    f:status:
      .: {}
      f:state: {}
  manager: lvm-driver
  operation: Update
  time: "2021-04-20T09:57:07Z"
name: pvc-fc577d03-dd57-4ab8-b4cd-2e96a9c327e7
namespace: openebs
resourceVersion: "1204269"
uid: 6cfa2ef0-b608-4885-a0c7-325681e0f14d
spec:
capacity: "48318382080"
ownerNodeID: lvm-node2
shared: "no"
thinProvision: "no"
vgPattern: lo*
volGroup: lvmvg
status:
state: Ready
@w3aman
Copy link
Contributor Author

w3aman commented Apr 21, 2021

/closing
Yes, it was correct working.
Actually lo* regex will work as first l and then zero or more occurances of o
so it took l and zero o this time so pattern become only l and which is obviously a substring for lvmvg

@w3aman w3aman closed this as completed Apr 21, 2021
@pawanpraka1 pawanpraka1 added this to the v0.5 milestone Apr 21, 2021
@pawanpraka1 pawanpraka1 added the bug Something isn't working label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants