Skip to content

Allocation units are not handled correctly when copying data sets between LPARs #2623

@adam-wolfe

Description

@adam-wolfe

Describe the bug

Zowe Explorer allocates either too much space or fails silently when attempting to copy a data set between LPARs if that data set was not allocated in tracks.

I moved this to the CLI repo since I'm seeing the issue of data sets allocated in cylinders being copied to 225-track data sets on the target system on both Zowe CLI and Zowe Explorer.

There seem to be other issues with non-track/cylinder allocation units for copying PDSs with Zowe Explorer, so there may need to be an additional fix for Zowe Explorer.

To Reproduce
Copying a data set allocated in cylinders:

  1. Allocate a 1 cylinder data set (which amounts to 15 tracks).
  2. Attempt to copy that data set from one LPAR to another.
  3. Check the allocation information for the new copy of the data set.
  4. Note that size is now 225 tracks (15^2).

Copying a PDS allocated in MB (attempting to copy a data set allocated in blocks fails similarly):

  1. Allocate a 1 MB data set (which seemed to amount to ~23 tracks).
  2. Attempt to copy that data set from one LPAR to another.
  3. Note that nothing seems to happen with Zowe Explorer.
    a. Both Zowe CLI and Zowe Explorer handle this allocation correctly when given a sequential data set.

Expected behavior

I would expect the new data set to have the same number of allocated tracks as the original data set (assuming we cannot get more granular allocation information than track count - which is provided to us by z/OSMF).

Presumably, it would be safe to always allocate the copy in tracks since that is the allocation unit described by the Size field in the 'show attributes' view. Is there any harm in ignoring the Space Unit field?

Screenshots

Desktop (please complete the following information):

  • OS:
  • Zowe Explorer Version: 3.3.0
  • (Optional) Zowe CLI Version:
  • (Optional) Do you have secure credentials enabled?
  • (Optional) Are you using a custom credential manager?

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-mediumNot functioning - next quarter if capacity permitsseverity-mediumBug where workaround exists or that doesn't prevent the usage of Zowe. Just makes it more complex.

    Type

    No type

    Projects

    Status

    Medium Priority

    Status

    Medium Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions