-
Notifications
You must be signed in to change notification settings - Fork 0
Enhanced archive creation script and covered the edges cases. #95
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
base: development
Are you sure you want to change the base?
Conversation
|
Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA). To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application. When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated. If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public. |
| ] | ||
|
|
||
| __logger.info('WLSDPLY-05027', 'Running remote cleanup: %s' % (" ".join(cmd_array)), | ||
| __logger.info('WLSDPLY-05027', 'Running remote cleanup: %s, filepattern %s' % (" ".join(cmd_array), file_pattern), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit pick: should we use file pattern: instead of filepattern: in the log message?
| __logger.warning('WLSDPLY-05027', msg, class_name=_class_name, method_name=_method_name) | ||
|
|
||
|
|
||
| def process_archives(nodes, model, model_context, machine_nodes, base_location, init_argument_map, on_prem_values, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other methods have comments, should this method have one?
| # Run archive(s) | ||
| for archive_type in archive_types: | ||
| result = archiver.archive(archive_type) | ||
| if not infra_constants.SUCCESS == result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can the user see what what the error in archiver.archive? does archiver.archive log what was wrong? or should we log something from result?
| ) | ||
|
|
||
| # Case 3: skip_transfer = true | ||
| # a. Admin have enough space to store all the archives, then all the archives are stored in the admin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Admin has enough...
| if space_admin_rc == 0: | ||
| __logger.info( | ||
| 'WLSDPLY-05027', | ||
| 'Admin have enough space to store all the archives. Managed hosts must have space for largest archive to transfer to admin.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Admin has enough
Case 1: Admin has space to store the largest archive
The log file also includes debugging statements which is not included in the MR.
Case 1 : migration_script.log
Case 2 :
log1:
migration_script.log
log2:
migration_script.log
Case 3.b : skip_transfer = true and Admin doesn’t have enough space to store all the archives but its own archives, then all nodes stores their respective archives including the admin.
Logs:
migration_script.log 3.b
Case 3.c : skip_transfer = true and Admin doesn’t have enough space to store its own archive, then all nodes stores their respective archives and TODO messages is printed for the nodes which doesn't have enough space.
logs:
migration_script.log
I tried to re-create the case 3.a, where "Admin have sufficient storage to store al the archives of each node" , but couldn't , as admin have very less storage.