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

Cross-LPAR copy fails when copying a LARGE format dataset #2420

Merged
merged 19 commits into from
Feb 8, 2025

Conversation

jace-roell
Copy link
Contributor

@jace-roell jace-roell commented Jan 28, 2025

What It Does

  • Resolved an issue where LARGE format datasets could not be copied cross LPAR due to dsorg/dsntype validation in the Create.dataSetValidateOptions() SDK method
  • Added --dsntype flag to create sequential data set CLI command

How to Test
zowe files create ps <sourceDataSet> --dsntype LARGE

Run the cross LPAR copy command on this newly created data set
zowe files copy dsclp <sourceDataSet> <targetDataSet> --target-zosmf-p <profile>

Where
<profile> is the name of the profile for a remote LPAR (can be the same LPAR as the one being tested against)
<sourceDataSet> is a data set which has a dsorg of PS-L
<targetDataSet> is the target location of the copied data set

Review Checklist
I certify that I have:

Additional Comments - Possible future story

  • Extended format sequential data sets (PS-E) face the same issue for copying data sets cross LPAR, there is additional complexities due to PS-E being created via a dsntype of EXTREQ OR EXTPREF so it may be difficult to determine how the copied data set should be created based on only "PS-E" being returned.
  • LPARs have varying support for extended format data set which may be an issue when copying cross LPAR.
  • An addtional story may be required in the future if necessary to resolve this bug.

Results from Creating data sets and copying data sets cross LPAR with varying dsntypes and their resultant extx attribute value:

Created: EXTREQ
Copy: EXTREQ
Source DS extx: 1
Target DS extx: 1

Created: EXTPREF
Copy: EXTPREF
Source DS extx: 1
Target DS extx: 1

Created: EXTPREF
Copy: EXTREQ
Source DS extx: 1
Target DS extx: 3

Created: EXTREQ
Copy: EXTPREF
Source DS extx: 1
Target DS extx: 3

Signed-off-by: jace-roell <jace.roell@hotmail.com>
@jace-roell jace-roell self-assigned this Jan 28, 2025
@jace-roell jace-roell linked an issue Jan 28, 2025 that may be closed by this pull request
@jace-roell jace-roell changed the title init Cross-LPAR copy fails when copying a LARGE format dataset Jan 28, 2025
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.37%. Comparing base (9340db9) to head (0b453fb).
Report is 21 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2420   +/-   ##
=======================================
  Coverage   91.36%   91.37%           
=======================================
  Files         639      639           
  Lines       18283    18280    -3     
  Branches     3923     3920    -3     
=======================================
- Hits        16704    16703    -1     
+ Misses       1577     1575    -2     
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

jace-roell and others added 9 commits January 28, 2025 12:18
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: Jace Roell <111985297+jace-roell@users.noreply.github.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
@jace-roell jace-roell marked this pull request as ready for review January 29, 2025 17:04
Copy link

📅 Suggested merge-by date: 2/12/2025

@jace-roell jace-roell requested a review from traeok January 29, 2025 17:04
@@ -2,6 +2,10 @@

All notable changes to the Zowe z/OS files SDK package will be documented in this file.

## Recent Changes

- BugFix: The `Create.dataSetValidateOptions()` function now handles creating data sets with a `dsorg` of `PS-L` by changing the `dsntype` to `LARGE` [#2141](https://github.com/zowe/zowe-cli/issues/2141)
Copy link
Contributor

@anaxceron anaxceron Jan 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • We should explain what dsorg and dsntype are
  • Sentence needs to end w/ a period

Copy link
Contributor

@anaxceron anaxceron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made comments re: changelogs

Signed-off-by: jace-roell <jace.roell@hotmail.com>
jace-roell and others added 2 commits January 30, 2025 14:35
Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: Jace Roell <111985297+jace-roell@users.noreply.github.com>
@jace-roell jace-roell requested a review from awharn January 30, 2025 20:24
Copy link
Member

@gejohnston gejohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the concerns in my question have already been considered, then I will approve.

Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 😋

Left a small comment about an example 🙏
and also, Gene's comment is very valid. My apologies on the confusion 😢

Signed-off-by: jace-roell <jace.roell@hotmail.com>
Signed-off-by: jace-roell <jace.roell@hotmail.com>
@jace-roell jace-roell requested a review from gejohnston February 3, 2025 20:08
Signed-off-by: jace-roell <jace.roell@hotmail.com>
traeok
traeok previously requested changes Feb 3, 2025
Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this fix Jace! Functionality makes sense to me, but I have a couple requests

Signed-off-by: jace-roell <jace.roell@hotmail.com>
Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Jace for the fix!

Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @jace-roell!

Incidentally I find it weird the argument is named --dsntype rather than --dstype, but not requesting changes since it's been that way on other commands for a long time 🙂

@zFernand0 zFernand0 merged commit 59b1fc5 into master Feb 8, 2025
26 checks passed
@zFernand0 zFernand0 deleted the copy-dsclp-large branch February 8, 2025 05:00
@zFernand0 zFernand0 added release-minor Indicates a minor feature has been added release-current Indicates that there is no new functionality being delivered and removed release-minor Indicates a minor feature has been added release-current Indicates that there is no new functionality being delivered labels Feb 8, 2025
@zFernand0
Copy link
Member

Apologies for going back and forth on the release labels. I noticed a comment about a possible breaking change in behavior in another PR

we don't need to be concerned about a breaking change in this case - although the PR adding the --safe-replace option was merged last week it hasn't been published yet.

Got a bit confused, but I believe that even if we publish this as a minor, we can publish a patch soon if needed

Copy link

github-actions bot commented Feb 8, 2025

Release succeeded for the master branch. 🎉

The following packages have been published:

  • npm: @zowe/imperative@8.13.0
  • npm: @zowe/cli-test-utils@8.13.0
  • npm: @zowe/core-for-zowe-sdk@8.13.0
  • npm: @zowe/zos-uss-for-zowe-sdk@8.13.0
  • npm: @zowe/provisioning-for-zowe-sdk@8.13.0
  • npm: @zowe/zos-console-for-zowe-sdk@8.13.0
  • npm: @zowe/zos-files-for-zowe-sdk@8.13.0
  • npm: @zowe/zos-logs-for-zowe-sdk@8.13.0
  • npm: @zowe/zosmf-for-zowe-sdk@8.13.0
  • npm: @zowe/zos-workflows-for-zowe-sdk@8.13.0
  • npm: @zowe/zos-jobs-for-zowe-sdk@8.13.0
  • npm: @zowe/zos-tso-for-zowe-sdk@8.13.0
  • npm: @zowe/cli@8.13.0

Powered by Octorelease 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-minor Indicates a minor feature has been added released
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

Cross-LPAR copy fails when copying a LARGE format dataset
7 participants