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

exception received when creating vlun #73

Open
mirokosa opened this issue Jul 23, 2019 · 1 comment
Open

exception received when creating vlun #73

mirokosa opened this issue Jul 23, 2019 · 1 comment

Comments

@mirokosa
Copy link

When creating vLUN using autoLUN option an error is thrown:

hpe3parclient.exceptions.HTTPConflict: Conflict (HTTP 409) 99 - invalid operation: LUN number and persona capability conflict

This is caused in specific cases:

  1. host persona VMware 11 is used
  2. LUN IDs 0-255 are used.

Root cause is introduction of PE LUN for host persona VMware 11 (LUN ID). Since HPE didn't provide a fix yet for 3PAR OS, we would like to as for enhancement of 3PARclient code in following way for autoLUN option.

1step.
autoLun = True
lun=0
maxAutoLun=0

if receive error "Conflict (HTTP 409) 99 - invalid operation: LUN number and persona capability conflict" ignore error and continue 2step

2step.
autoLun = True
lun=257
maxAutoLun=0

thanks,
Miro

@wantdrink
Copy link

wantdrink commented Jul 25, 2019

def createVLUN(self, volumeName, lun=None, hostname=None, portPos=None,
               noVcn=None, overrideLowerPriority=None, auto=False):

If auto = True, the info['lun'] will be set as zero, and maxAutoLun will be set as zero, which means no max. The vlun will be created with the lun number between 0 and max.

Current code:

    if auto:
        info['autoLun'] = True
        info['maxAutoLun'] = 0
        info['lun'] = 0

Can we change it to:

    if auto:
        info['autoLun'] = True
        info['maxAutoLun'] = 0
        info['lun'] = 0 if not lun else lun

This way if user call the method as:

createVLUN(volumeName=vv_name, hostname=host, auto=True, lun=257)

The client will create vlun with the lun number start with 257 to max.

And if user call the method as:

createVLUN(volumeName=vv_name, hostname=host, auto=True)

The client will create vlun with the lun number start with 0 to max.

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

2 participants