Skip to content

Support remote app deploy #1355

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

Merged
merged 29 commits into from
Jan 18, 2023
Merged

Support remote app deploy #1355

merged 29 commits into from
Jan 18, 2023

Conversation

jshum2479
Copy link
Member

This PR adds support for remote updating a domain and deploying applications. I also refactored some of the sonar complexities warnings in application_deployer.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 12, 2023
self.__logger.throwing(class_name=self.__class_name, method_name=_method_name, error=pwe)
raise pwe
return name
self.__logger.exiting(class_name=self.__class_name, method_name=_method_name)
Copy link
Member

Choose a reason for hiding this comment

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

Should this logging call be before the return?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@ddsharpe
Copy link
Member

Please double check your copyrights. core/src/main/python/wlsdeploy/tool/deploy/applications_deployer.py needs to be updated to 2023, not sure about others

Copy link
Member

@robertpatrick robertpatrick left a comment

Choose a reason for hiding this comment

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

Please remove WDT 3.0 doc changes from the PR and put into the branch for PR #1340

Copy link
Member

@robertpatrick robertpatrick left a comment

Choose a reason for hiding this comment

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

Comments inline

* @return true if the path should not be used for remote update
* @throws IllegalArgumentException if the path is null or empty
*/
public boolean isRemoteUpdateDomainForbiddenPath(String path) throws IllegalArgumentException {
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure that this is the best place for this logic. In my opinion, the archive file shouldn't know anything about remote mode. Can't we put this into archive_helper.py?

CommandLineArgUtil.MODEL_FILE_SWITCH
]

__optional_arguments = [
# Used by shell script to locate WLST
CommandLineArgUtil.DOMAIN_HOME_SWITCH,
Copy link
Member

Choose a reason for hiding this comment

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

Is there ever a case where the model for a remote deploy operation might have a domain home token? If so, what happens if the user did not provide the domain home path on the remote machine?

@@ -44,12 +46,12 @@

__required_arguments = [
CommandLineArgUtil.ORACLE_HOME_SWITCH,
CommandLineArgUtil.DOMAIN_HOME_SWITCH,
Copy link
Member

Choose a reason for hiding this comment

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

Same questions as for Deploy. For discoverDomain -remote, we still require the user to provide -domain_home to support tokenization. I would think we might need this for at least updateDomain -remote if not all remote operations.

@@ -71,7 +71,7 @@ if "%SHOW_USAGE%" == "false" (
ECHO.
ECHO Usage: %SCRIPT_NAME% [-help] [-use_encryption]
ECHO [-oracle_home ^<oracle_home^>]
ECHO -domain_home ^<domain_home^>
ECHO [-domain_home ^<domain_home^>]
Copy link
Member

Choose a reason for hiding this comment

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

Make this consistent if you change based on comments above

@@ -32,7 +32,7 @@ usage() {
echo ""
echo "Usage: $1 [-help] [-use_encryption]"
echo " [-oracle_home <oracle_home>]"
echo " -domain_home <domain_home>"
echo " [-domain_home <domain_home>]"
Copy link
Member

Choose a reason for hiding this comment

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

Make consistent if we change based on comments above

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@robertpatrick robertpatrick merged commit 2ef6933 into main Jan 18, 2023
@robertpatrick robertpatrick deleted the support-remote-app-deploy branch January 18, 2023 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants