-
Notifications
You must be signed in to change notification settings - Fork 218
OWLS 85530: OPERATOR INTROSPECTOR THROWS VALIDATION ERRORS FOR STATIC CLUSTER #2014
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
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
09b82d8
getDynamicServersOrNone doesn't throw exception with 14.1.1.0
lennyphan 2fbcd68
check for ServerTemplate for Dynamic Servers
lennyphan 2776b27
Check if DynamicServers mbean exist
lennyphan d4e541a
Add test to introspect configured cluster created by online WLST
lennyphan ca403ad
Document configured cluster introspection test
lennyphan 0af280f
documentation updates to README and referencing JIRA OWLS-85530
lennyphan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright (c) 2018, 2020, Oracle Corporation and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
# | ||
# purpose: | ||
# | ||
# invoke on-line WLST to create a configured static cluster and two managed | ||
# servers that reference it. | ||
# | ||
# NOTE: The static cluster must be configured using on-line WLST instead of | ||
# off-line WLST in order to reproduce OWLS 85530. On-line WLST produces the | ||
# following cluster configuration: | ||
# | ||
# <cluster> | ||
# <name>c1</name> | ||
# <cluster-messaging-mode>unicast</cluster-messaging-mode> | ||
# <dynamic-servers> | ||
# <maximum-dynamic-server-count>0</maximum-dynamic-server-count> | ||
# </dynamic-servers> | ||
# </cluster> | ||
# | ||
# assumes the admin user/pass was encoded to a userConfig/userKey by the | ||
# introspector these files have been mounted to /weblogic-operator/introspector | ||
# | ||
# usage: | ||
# wlst.sh createStaticCluster.py <url> <cluster_name> | ||
# | ||
# sample usage: | ||
# wlst.sh createStaticCluster.py t3://domain1-admin-server:7001 c1 | ||
# | ||
|
||
import sys | ||
|
||
url = sys.argv[1] | ||
cluster_name = sys.argv[2] | ||
|
||
connect(userConfigFile='/weblogic-operator/introspector/userConfigNodeManager.secure',userKeyFile='/tmp/userKeyNodeManager.secure.bin',url=url) | ||
|
||
edit() | ||
startEdit() | ||
|
||
cl=cmo.createCluster(cluster_name) | ||
|
||
# Create managed servers | ||
for index in range(0, 2): | ||
cd('/') | ||
|
||
msIndex = index+1 | ||
name = '%s%s' % ('ms', msIndex) | ||
|
||
create(name, 'Server') | ||
cd('/Servers/%s/' % name ) | ||
print('managed server name is %s' % name); | ||
set('ListenPort', 8001) | ||
set('ListenAddress', '') | ||
set('Cluster', cl) | ||
|
||
save() | ||
activate() | ||
|
||
print 'ok' | ||
exit(exitcode=0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.