Friday, March 29, 2024

Weblogic Deploy Tool - WDT - discover domain with 4 managed servers

 HOWTO


See also 

GitHub



Create Weblogic domain via config.sh 




Discover domain via WDT


$ ./discoverDomain.sh -oracle_home /app/weblogic -domain_home /app/weblogic/user_projects/domains/base_domain/ -archive_file /git/weblogic/wdt/DiscoveredABDomain.zip -model_file /git/weblogic/wdt/DiscoveredABDomain.yaml -admin_user weblogic -admin_url t3://dave:7001
JDK version is 11.0.22+9-LTS-219
JAVA_HOME = /usr/java/jdk-11
WLST_EXT_CLASSPATH = /app/weblogic-deploy/lib/weblogic-deploy-core.jar
CLASSPATH = /app/weblogic-deploy/lib/weblogic-deploy-core.jar
WLST_PROPERTIES = -Dcom.oracle.cie.script.throwException=true -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployLoggingConfig 
/app/weblogic/oracle_common/common/bin/wlst.sh /app/weblogic-deploy/lib/python/discover.py -oracle_home /app/weblogic -domain_home /app/weblogic/user_projects/domains/base_domain/ -archive_file /git/weblogic/wdt/DiscoveredABDomain.zip -model_file /git/weblogic/wdt/DiscoveredABDomain.yaml -admin_user weblogic -admin_url t3://dave:7001

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

####<Mar 29, 2024 10:20:37 AM> <INFO> <WebLogicDeployToolingVersion> <logVersionInfo> <WLSDPLY-01750> <The WebLogic Deploy Tooling discoverDomain version is 3.5.4:.43d3afb:Mar 14, 2024 11:55 UTC>
####<Mar 29, 2024 10:20:37 AM> <INFO> <WLSDeployLoggingConfig> <logLoggingDirectory> <WLSDPLY-01755> <The discoverDomain program will write its log to directory /app/weblogic-deploy/logs>
####<Mar 29, 2024 10:20:37 AM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Mar 29, 2024 10:20:37 AM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
Please enter the WebLogic administrator password: 
####<Mar 29, 2024 10:20:44 AM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Mar 29, 2024 10:20:44 AM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Mar 29, 2024 10:20:44 AM> <INFO> <ModelContext> <__copy_from_args> <WLSDPLY-01050> <WebLogic version for aliases is 14.1.1.0.0>
####<Mar 29, 2024 10:20:44 AM> <INFO> <discover> <main> <WLSDPLY-06024> <No variable file provided. Model passwords will contain the token '-- FIX ME --'>

####<Mar 29, 2024 10:20:45 AM> <INFO> <discover> <_get_domain_name> <WLSDPLY-06022> <Discover domain base_domain>
####<Mar 29, 2024 10:20:46 AM> <INFO> <TopologyDiscoverer> <discover> <WLSDPLY-06600> <Discovering domain model topology>
####<Mar 29, 2024 10:20:47 AM> <INFO> <WlstHelper> <is_set> <WLSDPLY-00129> <Error calling isSet() for attribute ResourceManagement at location /: java.lang.AssertionError: java.lang.reflect.InvocationTargetException>
####<Mar 29, 2024 10:20:47 AM> <INFO> <Discoverer> <discover_domain_mbean> <WLSDPLY-06644> <Adding Domain AdminConsole>
####<Mar 29, 2024 10:20:47 AM> <INFO> <Discoverer> <discover_domain_mbean> <WLSDPLY-06644> <Adding Domain CdiContainer>
####<Mar 29, 2024 10:20:47 AM> <INFO> <Discoverer> <discover_domain_mbean> <WLSDPLY-06644> <Adding Domain JMX>
####<Mar 29, 2024 10:20:48 AM> <INFO> <Discoverer> <discover_domain_mbean> <WLSDPLY-06644> <Adding Domain JPA>
####<Mar 29, 2024 10:20:48 AM> <INFO> <Discoverer> <discover_domain_mbean> <WLSDPLY-06644> <Adding Domain JTA>
####<Mar 29, 2024 10:20:48 AM> <INFO> <Discoverer> <discover_domain_mbean> <WLSDPLY-06644> <Adding Domain Log>
####<Mar 29, 2024 10:20:49 AM> <INFO> <Discoverer> <discover_domain_mbean> <WLSDPLY-06644> <Adding Domain RestfulManagementServices>
####<Mar 29, 2024 10:20:49 AM> <INFO> <TopologyDiscoverer> <get_clusters> <WLSDPLY-06601> <Discovering 2 clusters>
####<Mar 29, 2024 10:20:49 AM> <INFO> <TopologyDiscoverer> <get_clusters> <WLSDPLY-06602> <Adding Cluster ClusterA>
####<Mar 29, 2024 10:20:52 AM> <INFO> <TopologyDiscoverer> <get_clusters> <WLSDPLY-06602> <Adding Cluster ClusterB>
####<Mar 29, 2024 10:20:54 AM> <INFO> <TopologyDiscoverer> <get_servers> <WLSDPLY-06603> <Discovering 5 servers>
####<Mar 29, 2024 10:20:54 AM> <INFO> <TopologyDiscoverer> <get_servers> <WLSDPLY-06604> <Adding Server AdminServer>
####<Mar 29, 2024 10:21:07 AM> <INFO> <TopologyDiscoverer> <get_servers> <WLSDPLY-06604> <Adding Server ManagedServerA1>
####<Mar 29, 2024 10:21:19 AM> <INFO> <TopologyDiscoverer> <get_servers> <WLSDPLY-06604> <Adding Server ManagedServerA2>
####<Mar 29, 2024 10:21:31 AM> <INFO> <TopologyDiscoverer> <get_servers> <WLSDPLY-06604> <Adding Server ManagedServerB1>
####<Mar 29, 2024 10:21:43 AM> <INFO> <TopologyDiscoverer> <get_servers> <WLSDPLY-06604> <Adding Server ManagedServerB2>
####<Mar 29, 2024 10:21:54 AM> <INFO> <TopologyDiscoverer> <get_migratable_targets> <WLSDPLY-06607> <Discovering 4 Migratable Targets>
####<Mar 29, 2024 10:21:54 AM> <INFO> <TopologyDiscoverer> <get_migratable_targets> <WLSDPLY-06608> <Adding Migratable Target ManagedServerA1 (migratable)>
####<Mar 29, 2024 10:21:54 AM> <INFO> <TopologyDiscoverer> <get_migratable_targets> <WLSDPLY-06608> <Adding Migratable Target ManagedServerA2 (migratable)>
####<Mar 29, 2024 10:21:55 AM> <INFO> <TopologyDiscoverer> <get_migratable_targets> <WLSDPLY-06608> <Adding Migratable Target ManagedServerB1 (migratable)>
####<Mar 29, 2024 10:21:55 AM> <INFO> <TopologyDiscoverer> <get_migratable_targets> <WLSDPLY-06608> <Adding Migratable Target ManagedServerB2 (migratable)>
####<Mar 29, 2024 10:21:55 AM> <INFO> <TopologyDiscoverer> <get_server_templates> <WLSDPLY-06605> <Discovering 0 server templates>
####<Mar 29, 2024 10:21:55 AM> <INFO> <TopologyDiscoverer> <get_unix_machines> <WLSDPLY-06609> <Discovering 2 Unix machines>
####<Mar 29, 2024 10:21:55 AM> <INFO> <TopologyDiscoverer> <get_machines> <WLSDPLY-06611> <Discovering 2 machines>
####<Mar 29, 2024 10:21:55 AM> <INFO> <TopologyDiscoverer> <get_machines> <WLSDPLY-06612> <Adding Machine machineA>
####<Mar 29, 2024 10:21:55 AM> <INFO> <TopologyDiscoverer> <get_machines> <WLSDPLY-06612> <Adding Machine machineB>
####<Mar 29, 2024 10:21:56 AM> <INFO> <TopologyDiscoverer> <discover_security_configuration> <WLSDPLY-06622> <Adding Security Configuration>
####<Mar 29, 2024 10:21:58 AM> <INFO> <TopologyDiscoverer> <get_embedded_ldap_configuration> <WLSDPLY-06639> <Skipping Embedded LDAP Server Configuration>
####<Mar 29, 2024 10:21:58 AM> <INFO> <TopologyDiscoverer> <_get_log_filters> <WLSDPLY-06628> <Discovering 0 Log Filters>
####<Mar 29, 2024 10:21:58 AM> <INFO> <TopologyDiscoverer> <_get_reliable_delivery_policies> <WLSDPLY-06630> <Discovering 0 Reliable Delivery Policies>
####<Mar 29, 2024 10:21:58 AM> <INFO> <TopologyDiscoverer> <_get_virtual_hosts> <WLSDPLY-06647> <Discovering 0 Virtual Hosts>
####<Mar 29, 2024 10:21:58 AM> <INFO> <TopologyDiscoverer> <_get_xml_entity_caches> <WLSDPLY-06632> <Discovering 0 XML Entity Caches>
####<Mar 29, 2024 10:21:58 AM> <INFO> <TopologyDiscoverer> <_get_xml_registries> <WLSDPLY-06634> <Discovering 0 XML Registries>
####<Mar 29, 2024 10:21:58 AM> <INFO> <TopologyDiscoverer> <_get_ws_securities> <WLSDPLY-06649> <Discovering 0 Web Service Securities>
####<Mar 29, 2024 10:21:58 AM> <INFO> <ResourcesDiscoverer> <discover> <WLSDPLY-06300> <Discovering domain model resources>
####<Mar 29, 2024 10:21:58 AM> <INFO> <GlobalResourcesDiscoverer> <get_self_tuning> <WLSDPLY-06441> <Adding Self Tuning>
####<Mar 29, 2024 10:21:58 AM> <INFO> <GlobalResourcesDiscoverer> <get_startup_classes> <WLSDPLY-06442> <Discovering 0 Startup Classes>
####<Mar 29, 2024 10:21:58 AM> <INFO> <GlobalResourcesDiscoverer> <get_shutdown_classes> <WLSDPLY-06445> <Discovering 0 Shutdown Classes>
####<Mar 29, 2024 10:21:58 AM> <INFO> <GlobalResourcesDiscoverer> <_get_webapp_container> <WLSDPLY-06615> <Cross Domain Security is enabled, do not remove SecurityConfiguration CredentialEncrypted>
####<Mar 29, 2024 10:21:58 AM> <INFO> <GlobalResourcesDiscoverer> <get_singleton_service> <WLSDPLY-06445> <Discovering 0 Shutdown Classes>
####<Mar 29, 2024 10:21:58 AM> <INFO> <GlobalResourcesDiscoverer> <get_jolt_connection_pool> <WLSDPLY-06449> <Discovering 0 Jolt Connection Pools>
####<Mar 29, 2024 10:21:58 AM> <INFO> <GlobalResourcesDiscoverer> <get_wtc_servers> <WLSDPLY-06451> <Discovering 0 WTC Servers>
####<Mar 29, 2024 10:21:58 AM> <INFO> <CommonResourcesDiscoverer> <get_datasources> <WLSDPLY-06340> <Discovering 0 JDBC System Resources>
####<Mar 29, 2024 10:21:58 AM> <INFO> <CommonResourcesDiscoverer> <get_foreign_jndi_providers> <WLSDPLY-06342> <Discovering 0 Foreign JNDI Providers>
####<Mar 29, 2024 10:21:58 AM> <INFO> <CommonResourcesDiscoverer> <get_mail_sessions> <WLSDPLY-06344> <Discovering 0 Mail Sessions>
####<Mar 29, 2024 10:21:58 AM> <INFO> <CommonResourcesDiscoverer> <get_file_stores> <WLSDPLY-06346> <Discovering 0 File Stores>
####<Mar 29, 2024 10:21:58 AM> <INFO> <CommonResourcesDiscoverer> <get_jdbc_stores> <WLSDPLY-06350> <Discovering 0 JDBC Stores>
####<Mar 29, 2024 10:21:58 AM> <INFO> <CommonResourcesDiscoverer> <get_path_services> <WLSDPLY-06355> <Discovering 0 Path Services>
####<Mar 29, 2024 10:21:58 AM> <INFO> <JmsResourcesDiscoverer> <get_jms_servers> <WLSDPLY-06470> <Discovering 0 JMS Servers>
####<Mar 29, 2024 10:21:58 AM> <INFO> <JmsResourcesDiscoverer> <get_saf_agents> <WLSDPLY-06472> <Discovering 0 SAF Agents>
####<Mar 29, 2024 10:21:58 AM> <INFO> <JmsResourcesDiscoverer> <get_jms_system_resources> <WLSDPLY-06478> <Discovering 0 JMS System Resources>
####<Mar 29, 2024 10:21:58 AM> <INFO> <JmsResourcesDiscoverer> <get_jms_bridge_destinations> <WLSDPLY-06474> <Discovering 0 JMS Bridge Destinations>
####<Mar 29, 2024 10:21:58 AM> <INFO> <JmsResourcesDiscoverer> <get_jms_bridges> <WLSDPLY-06476> <Discovering 0 JMS Messaging Bridges>
####<Mar 29, 2024 10:21:59 AM> <INFO> <CommonResourcesDiscoverer> <get_wldf_system_resources> <WLSDPLY-06357> <Discovering 0 WLDF System Resources>
####<Mar 29, 2024 10:21:59 AM> <INFO> <CommonResourcesDiscoverer> <_get_named_resources> <WLSDPLY-06364> <Discovering 0 SystemComponent elements>
####<Mar 29, 2024 10:21:59 AM> <INFO> <CoherenceResourcesDiscoverer> <_get_coherence_clusters> <WLSDPLY-06311> <Discovering 0 Coherence Cluster System Resources>
####<Mar 29, 2024 10:21:59 AM> <INFO> <DeploymentsDiscoverer> <discover> <WLSDPLY-06380> <Discovering domain model deployments>
####<Mar 29, 2024 10:21:59 AM> <INFO> <MultiTenantDiscoverer> <discover> <WLSDPLY-06700> <Discover Multi-tenant>
####<Mar 29, 2024 10:21:59 AM> <INFO> <MultiTenantTopologyDiscoverer> <discover> <WLSDPLY-06709> <Discover Multi-tenant Topology>
####<Mar 29, 2024 10:21:59 AM> <INFO> <MultiTenantResourcesDiscoverer> <discover> <WLSDPLY-06707> <Discover Multi-tenant Resources>
####<Mar 29, 2024 10:21:59 AM> <INFO> <filter_helper> <apply_filters> <WLSDPLY-20017> <No filter configuration file /app/weblogic-deploy/lib/model_filters.json>
####<Mar 29, 2024 10:21:59 AM> <INFO> <filter_helper> <apply_filters> <WLSDPLY-20016> <No filters of type discover found in filter configuration file /app/weblogic-deploy/lib/model_filters.json>
####<Mar 29, 2024 10:21:59 AM> <INFO> <variable_injector> <inject_variables_keyword_file> <WLSDPLY-19519> <No variables were inserted into the model during variable replacement>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05002> <Performing validation in TOOL mode for WebLogic Server version 14.1.1.0.0 and WLST ONLINE mode>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05003> <Performing model validation on the /git/weblogic/wdt/DiscoveredABDomain.yaml model file>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05005> <Performing archive validation on the /git/weblogic/wdt/DiscoveredABDomain.zip archive file>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the domainInfo section of the model file>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the topology section of the model file>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the resources section of the model file>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05009> <Model file /git/weblogic/wdt/DiscoveredABDomain.yaml does not contain a resources section, validation of resources was skipped.>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the appDeployments section of the model file>
####<Mar 29, 2024 10:21:59 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05009> <Model file /git/weblogic/wdt/DiscoveredABDomain.yaml does not contain a appDeployments section, validation of appDeployments was skipped.>

Issue Log for discoverDomain version 3.5.4 running WebLogic version 14.1.1.0.0 online mode:

Total:   SEVERE :    0  WARNING :    0

discoverDomain.sh completed successfully (exit code = 0)


Created model 

$ cat /git/weblogic/wdt/DiscoveredABDomain.yaml
# This model was created using the WebLogic Deploy Tooling 3.5.4 discoverDomain tool
# running in ONLINE mode against a domain using WebLogic Server 14.1.1.0.0.
# 
domainInfo:
    AdminUserName: --FIX ME--
    AdminPassword: --FIX ME--
topology:
    Name: base_domain
    Cluster:
        ClusterA: {}
        ClusterB: {}
    Server:
        AdminServer:
            Machine: machineA
        ManagedServerA1:
            ListenPort: 7003
            Machine: machineA
            Cluster: ClusterA
            JTAMigratableTarget:
                UserPreferredServer: ManagedServerA1
                Cluster: ClusterA
        ManagedServerA2:
            ListenPort: 7004
            Machine: machineA
            Cluster: ClusterA
            JTAMigratableTarget:
                UserPreferredServer: ManagedServerA2
                Cluster: ClusterA
        ManagedServerB1:
            ListenPort: 7005
            Machine: machineB
            Cluster: ClusterB
            JTAMigratableTarget:
                UserPreferredServer: ManagedServerB1
                Cluster: ClusterB
        ManagedServerB2:
            ListenPort: 7006
            Machine: machineB
            Cluster: ClusterB
            JTAMigratableTarget:
                UserPreferredServer: ManagedServerB2
                Cluster: ClusterB
    MigratableTarget:
        ManagedServerA1 (migratable):
            Notes: This is a system generated default migratable target for a server.
                Do not delete manually.
            UserPreferredServer: ManagedServerA1
            Cluster: ClusterA
        ManagedServerA2 (migratable):
            Notes: This is a system generated default migratable target for a server.
                Do not delete manually.
            UserPreferredServer: ManagedServerA2
            Cluster: ClusterA
        ManagedServerB1 (migratable):
            Notes: This is a system generated default migratable target for a server.
                Do not delete manually.
            UserPreferredServer: ManagedServerB1
            Cluster: ClusterB
        ManagedServerB2 (migratable):
            Notes: This is a system generated default migratable target for a server.
                Do not delete manually.
            UserPreferredServer: ManagedServerB2
            Cluster: ClusterB
    Machine:
        machineA: {}
        machineB: {}
    SecurityConfiguration:
        NodeManagerPasswordEncrypted: --FIX ME--


Extract domain 

$ ./extractDomainResource.sh -oracle_home /app/weblogic -domain_home /app/weblogic/user_projects/domains/base_domain/ -model_file  /git/weblogic/wdt/DiscoveredABDomain.yaml  -output_dir  /git/weblogic/wdt/resource/k8s -target wko
JDK version is 11.0.22+9-LTS-219
JAVA_HOME = /usr/java/jdk-11
CLASSPATH = /app/weblogic-deploy/lib/weblogic-deploy-core.jar:/app/weblogic/wlserver/server/lib/weblogic.jar
JAVA_PROPERTIES = -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployLoggingConfig -Dpython.cachedir.skip=true -Dpython.console= 
/usr/java/jdk-11/bin/java -cp /app/weblogic-deploy/lib/weblogic-deploy-core.jar:/app/weblogic/wlserver/server/lib/weblogic.jar           -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployLoggingConfig -Dpython.cachedir.skip=true -Dpython.console=            -Dpython.path=/app/weblogic/wlserver/common/wlst/modules/jython-modules.jar/Lib           org.python.util.jython           /app/weblogic-deploy/lib/python/extract_resource.py -oracle_home /app/weblogic -domain_home /app/weblogic/user_projects/domains/base_domain/ -model_file /git/weblogic/wdt/DiscoveredABDomain.yaml -output_dir /git/weblogic/wdt/resource/k8s -target wko
####<Mar 29, 2024 10:35:25 AM> <INFO> <WebLogicDeployToolingVersion> <logVersionInfo> <WLSDPLY-01750> <The WebLogic Deploy Tooling extractDomainResource version is 3.5.4:.43d3afb:Mar 14, 2024 11:55 UTC>
####<Mar 29, 2024 10:35:25 AM> <INFO> <WLSDeployLoggingConfig> <logLoggingDirectory> <WLSDPLY-01755> <The extractDomainResource program will write its log to directory /app/weblogic-deploy/logs>
####<Mar 29, 2024 10:35:25 AM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Mar 29, 2024 10:35:25 AM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Mar 29, 2024 10:35:25 AM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Mar 29, 2024 10:35:25 AM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Mar 29, 2024 10:35:25 AM> <INFO> <ModelContext> <__copy_from_args> <WLSDPLY-01050> <WebLogic version for aliases is 14.1.1.0.0>
####<Mar 29, 2024 10:35:26 AM> <INFO> <filter_helper> <apply_filters> <WLSDPLY-20016> <No filters of type extract found in filter configuration file /app/weblogic-deploy/lib/targets/wko/target.json>
####<Mar 29, 2024 10:35:26 AM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05002> <Performing validation in TOOL mode for WebLogic Server version 14.1.1.0.0 and WLST OFFLINE mode>
####<Mar 29, 2024 10:35:26 AM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05003> <Performing model validation on the /git/weblogic/wdt/DiscoveredABDomain.yaml model file>
####<Mar 29, 2024 10:35:26 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the domainInfo section of the model file>
####<Mar 29, 2024 10:35:26 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the topology section of the model file>
####<Mar 29, 2024 10:35:27 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the resources section of the model file>
####<Mar 29, 2024 10:35:27 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05009> <Model file /git/weblogic/wdt/DiscoveredABDomain.yaml does not contain a resources section, validation of resources was skipped.>
####<Mar 29, 2024 10:35:27 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the appDeployments section of the model file>
####<Mar 29, 2024 10:35:27 AM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05009> <Model file /git/weblogic/wdt/DiscoveredABDomain.yaml does not contain a appDeployments section, validation of appDeployments was skipped.>
####<Mar 29, 2024 10:35:27 AM> <INFO> <vz_config_helper> <_create_file> <WLSDPLY-01662> <Creating target configuration file /git/weblogic/wdt/resource/k8s/wko-domain.yaml>
####<Mar 29, 2024 10:35:27 AM> <INFO> <crd_file_updater> <update_from_model> <WLSDPLY-01675> <Updating target output file "/git/weblogic/wdt/resource/k8s/wko-domain.yaml" from the kubernetes section of the model>

Issue Log for extractDomainResource version 3.5.4 running WebLogic version 14.1.1.0.0 offline mode:

Total:   SEVERE :    0  WARNING :    0

extractDomainResource.sh completed successfully (exit code = 0)


Generated domain resource
$ cat /git/weblogic/wdt/resource/k8s/wko-domain.yaml
apiVersion: weblogic.oracle/v8
kind: Domain
metadata:
    name: base-domain
    namespace: base-domain
    labels:
        weblogic.domainUID: base-domain
spec:
    domainHome: /app/weblogic/user_projects/domains/base_domain/
    domainHomeSourceType: FromModel
    image: '{{{imageName}}}'
    # Add any credential secrets that are required to pull the image
    imagePullSecrets: []
    webLogicCredentialsSecret:
        name: base-domain-weblogic-credentials
    serverPod:
        env:
          - name: JAVA_OPTIONS
            value: -Dweblogic.StdoutDebugEnabled=false
          - name: USER_MEM_ARGS
            value: '-Djava.security.egd=file:/dev/./urandom -Xms64m -Xmx256m '
    clusters:
      - clusterName: ClusterA
        # replicas: 99  # Set a specific replica count for this cluster
        serverPod:
            affinity:
                podAntiAffinity:
                    preferredDuringSchedulingIgnoredDuringExecution:
                      - weight: 100
                        podAffinityTerm:
                            labelSelector:
                                matchExpressions:
                                  - key: weblogic.clusterName
                                    operator: In
                                    values:
                                      - $(CLUSTER_NAME)
                            topologyKey: kubernetes.io/hostname
      - clusterName: ClusterB
        # replicas: 99  # Set a specific replica count for this cluster
        serverPod:
            affinity:
                podAntiAffinity:
                    preferredDuringSchedulingIgnoredDuringExecution:
                      - weight: 100
                        podAffinityTerm:
                            labelSelector:
                                matchExpressions:
                                  - key: weblogic.clusterName
                                    operator: In
                                    values:
                                      - $(CLUSTER_NAME)
                            topologyKey: kubernetes.io/hostname
    configuration:
        istio:
            enabled: false
        introspectorJobActiveDeadlineSeconds: 900
        model:
            domainType: WLS
            modelHome: '{{{modelHome}}}'
            runtimeEncryptionSecret: base-domain-runtime-encryption-secret

Saturday, March 16, 2024

Weblogic k8s - WIT - create domain model image with WDT

 HOWTO

Oracle HOWTO

 

GitHub 

Steps to do 

  • Install WIT 
  • Download  Weblogic and JDK installers 
  • Create Docker image with installers
  • Prepare WDT model 
  • Create auxiliary image via WIT
  • Create domain  via kubectl

Download Weblogic and JDK Docker images


dave@dave:/git/weblogic/wit$ ls -lt
total 788764
-rw-r--r--. 1 dave dave 169934047 Apr  3 20:30 jdk-11.0.20_linux-x64_bin.tar.gz
-rw-r--r--. 1 dave dave 637756056 Apr  3 20:29 fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip

Download WIT
 curl -m 120 -fL https://github.com/oracle/weblogic-image-tool/releases/latest/download/imagetool.zip -o ./imagetool.zip

All downloaded files
<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"><code>$ ls -1l
total 793232
-rw-r--r--. 1 dave dave 637756056 Apr  3 20:29 fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip
-rw-r--r--. 1 dave dave   2126347 Apr  3 20:32 imagetool.zip
-rw-r--r--. 1 dave dave 169934047 Apr  3 20:30 jdk-11.0.20_linux-x64_bin.tar.gz
-rw-r--r--. 1 dave dave   2443633 Apr  3 21:02 weblogic-deploy.zip

</code></pre>
Add path to imagetool into PATH
PATH=/app/weblogic/wit/imagetool/bin:$PATH

export PATH

Add installers into cache
$ imagetool.sh cache addInstaller --type jdk --version 11u020 --path jdk-11.0.20_linux-x64_bin.tar.gz
[INFO   ] Successfully added to cache. jdk_11u020=/git/weblogic/wit/jdk-11.0.20_linux-x64_bin.tar.gz

$ imagetool.sh cache addInstaller --type wls --version 14.1.1.0.0  --path fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip 
[INFO   ] Successfully added to cache. wls_14.1.1.0.0=/git/weblogic/wit/fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip


Build image
dave@dave:/git/weblogic/wit$ imagetool.sh create --tag wls:14.1.1.0.0 --jdkVersion 11u020 --version 14.1.1.0.0
[INFO   ] WebLogic Image Tool version 1.12.2
[INFO   ] Image Tool build ID: 9cfd0bb5-bd06-4d2b-a6f7-8e72189e4399
[INFO   ] Temporary directory used for image build context: /home/dave/wlsimgbuilder_temp14932286092203898011
[INFO   ] Copying /git/weblogic/wit/jdk-11.0.20_linux-x64_bin.tar.gz to build context folder.
[INFO   ] Using middleware installers (wls) version 14.1.1.0.0
[INFO   ] Copying /git/weblogic/wit/fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip to build context folder.
[INFO   ] Starting build: docker build --no-cache --force-rm --tag wls:14.1.1.0.0 /home/dave/wlsimgbuilder_temp14932286092203898011
Sending build context to Docker daemon  807.7MB

Step 1/27 : FROM ghcr.io/oracle/oraclelinux:8-slim as os_update
8-slim: Pulling from oracle/oraclelinux
692a254aa188: Pulling fs layer
692a254aa188: Download complete
692a254aa188: Pull complete
Digest: sha256:36d44bb00961a439af36c1bac759ced5d10c418b9b46076be866f5ba6fc923f6
Status: Downloaded newer image for ghcr.io/oracle/oraclelinux:8-slim
 ---> b1ef7cdd2820
Step 2/27 : LABEL com.oracle.weblogic.imagetool.buildid="9cfd0bb5-bd06-4d2b-a6f7-8e72189e4399"
 ---> Running in e30b9601c067
Removing intermediate container e30b9601c067
 ---> 005b760e097c
Step 3/27 : USER root
 ---> Running in e89138fc74ce
Removing intermediate container e89138fc74ce
 ---> e33a1419adbe
Step 4/27 : RUN microdnf update     && microdnf install gzip tar unzip libaio libnsl jq findutils diffutils shadow-utils     && microdnf clean all
 ---> Running in 1dab17b55647
Downloading metadata...
Downloading metadata...
Package                                                      Repository           Size
Installing:                                                                           
 glibc-gconv-extra-2.28-236.0.1.el8_9.12.x86_64              ol8_baseos_latest  1.6 MB
Upgrading:                                                                            
 glibc-2.28-236.0.1.el8_9.12.x86_64                          ol8_baseos_latest  2.3 MB
  replacing glibc-2.28-236.0.1.el8.7.x86_64                                           
 glibc-common-2.28-236.0.1.el8_9.12.x86_64                   ol8_baseos_latest  1.1 MB
  replacing glibc-common-2.28-236.0.1.el8.7.x86_64                                    
 glibc-minimal-langpack-2.28-236.0.1.el8_9.12.x86_64         ol8_baseos_latest 71.1 kB
  replacing glibc-minimal-langpack-2.28-236.0.1.el8.7.x86_64                          
 systemd-libs-239-78.0.4.el8.x86_64                          ol8_baseos_latest  1.2 MB
   replacing systemd-libs-239-78.0.3.el8.x86_64                                       
Transaction Summary:
 Installing:        1 packages
 Reinstalling:      0 packages
 Upgrading:         4 packages
 Obsoleting:        0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Downloading packages...
Running transaction test...
Updating: glibc-common;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Updating: glibc-minimal-langpack;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Updating: glibc;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Installing: glibc-gconv-extra;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Updating: systemd-libs;239-78.0.4.el8;x86_64;ol8_baseos_latest
Cleanup: systemd-libs;239-78.0.3.el8;x86_64;installed
Cleanup: glibc;2.28-236.0.1.el8.7;x86_64;installed
Cleanup: glibc-minimal-langpack;2.28-236.0.1.el8.7;x86_64;installed
Cleanup: glibc-common;2.28-236.0.1.el8.7;x86_64;installed
Complete.
Package                              Repository            Size
Installing:                                                    
 diffutils-3.6-6.el8.x86_64          ol8_baseos_latest 369.3 kB
 findutils-1:4.6.0-21.el8.x86_64     ol8_baseos_latest 539.8 kB
 gzip-1.9-13.el8_5.x86_64            ol8_baseos_latest 170.7 kB
 jq-1.6-7.0.3.el8.x86_64             ol8_appstream     206.5 kB
 libaio-0.3.112-1.el8.x86_64         ol8_baseos_latest  33.4 kB
 libnsl-2.28-236.0.1.el8_9.12.x86_64 ol8_baseos_latest 112.3 kB
 oniguruma-6.8.2-2.1.el8_9.x86_64    ol8_appstream     191.5 kB
 unzip-6.0-46.0.1.el8.x86_64         ol8_baseos_latest 201.0 kB
Transaction Summary:
 Installing:        8 packages
 Reinstalling:      0 packages
 Upgrading:         0 packages
 Obsoleting:        0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Downloading packages...
Running transaction test...
Installing: oniguruma;6.8.2-2.1.el8_9;x86_64;ol8_appstream
Installing: jq;1.6-7.0.3.el8;x86_64;ol8_appstream
Installing: unzip;6.0-46.0.1.el8;x86_64;ol8_baseos_latest
Installing: libnsl;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Installing: libaio;0.3.112-1.el8;x86_64;ol8_baseos_latest
Installing: gzip;1.9-13.el8_5;x86_64;ol8_baseos_latest
Installing: findutils;1:4.6.0-21.el8;x86_64;ol8_baseos_latest
Installing: diffutils;3.6-6.el8;x86_64;ol8_baseos_latest
Complete.
Complete.
Removing intermediate container 1dab17b55647
 ---> 920dd42ffc33
Step 5/27 : RUN if [ -z "$(getent group oracle)" ]; then groupadd oracle || exit 1 ; fi  && if [ -z "$(getent group oracle)" ]; then groupadd oracle || exit 1 ; fi  && if [ -z "$(getent passwd oracle)" ]; then useradd -g oracle oracle || exit 1; fi  && mkdir -p /u01  && chown oracle:oracle /u01  && chmod 775 /u01
 ---> Running in 00921092ad33
Removing intermediate container 00921092ad33
 ---> ac64255288f4
Step 6/27 : FROM os_update as jdk_build
 ---> ac64255288f4
Step 7/27 : LABEL com.oracle.weblogic.imagetool.buildid="9cfd0bb5-bd06-4d2b-a6f7-8e72189e4399"
 ---> Running in 6881679cbe63
Removing intermediate container 6881679cbe63
 ---> 6a2113f4ab37
Step 8/27 : ENV JAVA_HOME=/u01/jdk
 ---> Running in 983a97e761ee
Removing intermediate container 983a97e761ee
 ---> 2fe8ba9c53fd
Step 9/27 : COPY --chown=oracle:oracle ["jdk-11.0.20_linux-x64_bin.tar.gz", "/tmp/imagetool/"]
 ---> 9bd3a33a7490
Step 10/27 : USER oracle
 ---> Running in f0d399001938
Removing intermediate container f0d399001938
 ---> 427af35b8902
Step 11/27 : RUN tar xzf "/tmp/imagetool/jdk-11.0.20_linux-x64_bin.tar.gz" -C /u01 && $(test -d /u01/jdk* && mv /u01/jdk* /u01/jdk || mv /u01/graal* /u01/jdk) && rm -rf /tmp/imagetool && rm -f /u01/jdk/javafx-src.zip /u01/jdk/src.zip
 ---> Running in ec25e8b7ade0
Removing intermediate container ec25e8b7ade0
 ---> 5587b1cce14c
Step 12/27 : FROM os_update as wls_build
 ---> ac64255288f4
Step 13/27 : LABEL com.oracle.weblogic.imagetool.buildid="9cfd0bb5-bd06-4d2b-a6f7-8e72189e4399"
 ---> Running in faf1e036737c
Removing intermediate container faf1e036737c
 ---> 3cc009aa1512
Step 14/27 : ENV JAVA_HOME=/u01/jdk ORACLE_HOME=/u01/oracle OPATCH_NO_FUSER=true
 ---> Running in aa65d9085ddb
Removing intermediate container aa65d9085ddb
 ---> 3a28e724d56e
Step 15/27 : RUN mkdir -p /u01/oracle && mkdir -p /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle
 ---> Running in 8258da648b5b
Removing intermediate container 8258da648b5b
 ---> 661f9e2fa7d4
Step 16/27 : COPY --from=jdk_build --chown=oracle:oracle /u01/jdk /u01/jdk/
 ---> a6797f5cde62
Step 17/27 : COPY --chown=oracle:oracle fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip wls.rsp /tmp/imagetool/
 ---> 4f2c87f270f1
Step 18/27 : COPY --chown=oracle:oracle oraInst.loc /u01/oracle/
 ---> ffd17ce51f02
Step 19/27 : USER oracle
 ---> Running in ba9e3dbe3ff3
Removing intermediate container ba9e3dbe3ff3
 ---> 0730641497aa
Step 20/27 : RUN echo "INSTALLING MIDDLEWARE"     && echo "INSTALLING wls"     && unzip -q /tmp/imagetool/fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip "*.[jb][ai][rn]" -d /tmp/imagetool && /u01/jdk/bin/java -Xmx1024m -jar /tmp/imagetool/fmw_14.1.1.0.0_wls_lite_generic.jar -silent ORACLE_HOME=/u01/oracle     -responseFile /tmp/imagetool/wls.rsp -invPtrLoc /u01/oracle/oraInst.loc -ignoreSysPrereqs -force -novalidation   && test $? -eq 0 && chmod -R g+r /u01/oracle || (grep -vh "NOTIFICATION" /tmp/OraInstall*/install*.log && exit 1)
 ---> Running in e4466a9d0b0a
INSTALLING MIDDLEWARE
INSTALLING wls
Launcher log file is /tmp/OraInstall2024-04-03_06-46-13PM/launcher2024-04-03_06-46-13PM.log.
Extracting the installer . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2399.716 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 8191 MB    Passed
Checking temp space: must be greater than 300 MB.   Actual 76052 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2024-04-03_06-46-13PM
Log: /tmp/OraInstall2024-04-03_06-46-13PM/install2024-04-03_06-46-13PM.log
Setting ORACLE_HOME...
Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Validations are disabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 14.1.1 WebLogic Server and Coherence 14.1.1.0.0 completed successfully.
Logs successfully copied to /u01/oracle/oraInventory/logs.
Removing intermediate container e4466a9d0b0a
 ---> df300afc2fdb
Step 21/27 : FROM os_update as final_build
 ---> ac64255288f4
Step 22/27 : ENV ORACLE_HOME=/u01/oracle     LD_LIBRARY_PATH=/u01/oracle/oracle_common/adr:$LD_LIBRARY_PATH     JAVA_HOME=/u01/jdk     PATH=${PATH}:/u01/jdk/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle
 ---> Running in 9b5cf310a026
Removing intermediate container 9b5cf310a026
 ---> 47585734f7b6
Step 23/27 : LABEL com.oracle.weblogic.imagetool.buildid="9cfd0bb5-bd06-4d2b-a6f7-8e72189e4399"
 ---> Running in b2e9ce86d3df
Removing intermediate container b2e9ce86d3df
 ---> 65384eb84c30
Step 24/27 : COPY --from=jdk_build --chown=oracle:oracle /u01/jdk /u01/jdk/
 ---> 918964a34393
Step 25/27 : COPY --from=wls_build --chown=oracle:oracle /u01/oracle /u01/oracle/
 ---> de7b4872c9ce
Step 26/27 : USER oracle
 ---> Running in e9d9f9530a40
Removing intermediate container e9d9f9530a40
 ---> 8a747fa87429
Step 27/27 : WORKDIR /u01/oracle
 ---> Running in 731cee3f8443
Removing intermediate container 731cee3f8443
 ---> adf15fbcf8b9
Successfully built adf15fbcf8b9
Successfully tagged wls:14.1.1.0.0
[INFO   ] Build successful. Build time=145s. Image tag=wls:14.1.1.0.0
dave@dave:/git/weblogic/wit$ docker images
REPOSITORY                                                TAG                   IMAGE ID       CREATED         SIZE
wls                                                       14.1.1.0.0            adf15fbcf8b9   8 seconds ago   1.26GB

Inspect image
$ imagetool.sh inspect --image wls:14.1.1.0.0
[INFO   ] Inspecting wls:14.1.1.0.0, this may take a few minutes if the image is not available locally.
{
  "os" : {
    "id" : "ol",
    "name" : "Oracle Linux Server",
    "version" : "8.9",
    "releasePackage" : "oraclelinux-release-8.9-1.0.8.el8.x86_64"
  },
  "javaHome" : "/u01/jdk",
  "javaVersion" : "11.0.20",
  "oracleHome" : "/u01/oracle",
  "oracleHomeGroup" : "oracle",
  "oracleHomeUser" : "oracle",
  "oracleInstalledProducts" : "WLS,COH,TOPLINK",
  "packageManager" : "MICRODNF",
  "wlsVersion" : "14.1.1.0.0"
}

Create an image with a WLS domain using WDT 

- deprecated - use auxiliary images https://oracle.github.io/weblogic-kubernetes-operator/managing-domains/model-in-image/auxiliary-images/ 


Add WDT into cache
$ imagetool.sh cache addInstaller --type wdt --version 0.22 --path weblogic-deploy.zip 
[INFO   ] Successfully added to cache. wdt_0.22=/git/weblogic/wit/weblogic-deploy.zip


Create domain image 



  • WDT archive created via WDT discover
$ unzip -l /git/weblogic/wdt/DiscoveredABDataSourceEARDomain.zip
Archive:  /git/weblogic/wdt/DiscoveredABDataSourceEARDomain.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
    22119  04-01-2024 22:51   wlsdeploy/applications/basicWebapp.war
---------                     -------
    22119                     1 file

Run imagetool
$ imagetool.sh create --fromImage ghcr.io/oracle/oraclelinux:8-slim --tag wls:14.1.1.1.1  --version 14.1.1.0.0   --wdtDomainHome /u01/domains/simple_domain --jdkVersion 11u020  --wdtVersion 0.22  --wdtModel /git/weblogic/wdt/DiscoveredABDataSourceEARDomain.yaml  --wdtArchive /git/weblogic/wdt/DiscoveredABDataSourceEARDomain.zip
[INFO   ] WebLogic Image Tool version 1.12.2
[INFO   ] Image Tool build ID: 71107d65-7898-4f31-a595-7e86581f655f
[INFO   ] User specified fromImage ghcr.io/oracle/oraclelinux:8-slim
[INFO   ] Temporary directory used for image build context: /home/dave/wlsimgbuilder_temp2063144469653345589
[INFO   ] Inspecting ghcr.io/oracle/oraclelinux:8-slim, this may take a few minutes if the image is not available locally.
[INFO   ] Copying /git/weblogic/wit/jdk-11.0.20_linux-x64_bin.tar.gz to build context folder.
[INFO   ] Using middleware installers (wls) version 14.1.1.0.0
[INFO   ] Copying /git/weblogic/wit/fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip to build context folder.
[INFO   ] Copying /git/weblogic/wdt/DiscoveredABDataSourceEARDomain.yaml to build context folder.
[INFO   ] Copying /git/weblogic/wdt/DiscoveredABDataSourceEARDomain.zip to build context folder.
[INFO   ] Copying /git/weblogic/wit/weblogic-deploy.zip to build context folder.
[INFO   ] Starting build: docker build --no-cache --force-rm --tag wls:14.1.1.1.1 /home/dave/wlsimgbuilder_temp2063144469653345589
Sending build context to Docker daemon  810.2MB

Step 1/40 : FROM ghcr.io/oracle/oraclelinux:8-slim as os_update
 ---> b1ef7cdd2820
Step 2/40 : LABEL com.oracle.weblogic.imagetool.buildid="71107d65-7898-4f31-a595-7e86581f655f"
 ---> Running in 64913c2394ad
Removing intermediate container 64913c2394ad
 ---> e48c0c520d08
Step 3/40 : USER root
 ---> Running in 7b1f23d53b00
Removing intermediate container 7b1f23d53b00
 ---> d41ffb175ad4
Step 4/40 : RUN microdnf update     && microdnf install gzip tar unzip libaio libnsl jq findutils diffutils shadow-utils     && microdnf clean all
 ---> Running in e9997be5c471
Downloading metadata...
Downloading metadata...
Package                                                      Repository           Size
Installing:                                                                           
 glibc-gconv-extra-2.28-236.0.1.el8_9.12.x86_64              ol8_baseos_latest  1.6 MB
Upgrading:                                                                            
 glibc-2.28-236.0.1.el8_9.12.x86_64                          ol8_baseos_latest  2.3 MB
  replacing glibc-2.28-236.0.1.el8.7.x86_64                                           
 glibc-common-2.28-236.0.1.el8_9.12.x86_64                   ol8_baseos_latest  1.1 MB
  replacing glibc-common-2.28-236.0.1.el8.7.x86_64                                    
 glibc-minimal-langpack-2.28-236.0.1.el8_9.12.x86_64         ol8_baseos_latest 71.1 kB
  replacing glibc-minimal-langpack-2.28-236.0.1.el8.7.x86_64                          
 systemd-libs-239-78.0.4.el8.x86_64                          ol8_baseos_latest  1.2 MB
   replacing systemd-libs-239-78.0.3.el8.x86_64                                       
Transaction Summary:
 Installing:        1 packages
 Reinstalling:      0 packages
 Upgrading:         4 packages
 Obsoleting:        0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Downloading packages...
Running transaction test...
Updating: glibc-common;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Updating: glibc-minimal-langpack;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Updating: glibc;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Installing: glibc-gconv-extra;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Updating: systemd-libs;239-78.0.4.el8;x86_64;ol8_baseos_latest
Cleanup: systemd-libs;239-78.0.3.el8;x86_64;installed
Cleanup: glibc;2.28-236.0.1.el8.7;x86_64;installed
Cleanup: glibc-minimal-langpack;2.28-236.0.1.el8.7;x86_64;installed
Cleanup: glibc-common;2.28-236.0.1.el8.7;x86_64;installed
Complete.
Package                              Repository            Size
Installing:                                                    
 diffutils-3.6-6.el8.x86_64          ol8_baseos_latest 369.3 kB
 findutils-1:4.6.0-21.el8.x86_64     ol8_baseos_latest 539.8 kB
 gzip-1.9-13.el8_5.x86_64            ol8_baseos_latest 170.7 kB
 jq-1.6-7.0.3.el8.x86_64             ol8_appstream     206.5 kB
 libaio-0.3.112-1.el8.x86_64         ol8_baseos_latest  33.4 kB
 libnsl-2.28-236.0.1.el8_9.12.x86_64 ol8_baseos_latest 112.3 kB
 oniguruma-6.8.2-2.1.el8_9.x86_64    ol8_appstream     191.5 kB
 unzip-6.0-46.0.1.el8.x86_64         ol8_baseos_latest 201.0 kB
Transaction Summary:
 Installing:        8 packages
 Reinstalling:      0 packages
 Upgrading:         0 packages
 Obsoleting:        0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Downloading packages...
Running transaction test...
Installing: oniguruma;6.8.2-2.1.el8_9;x86_64;ol8_appstream
Installing: jq;1.6-7.0.3.el8;x86_64;ol8_appstream
Installing: unzip;6.0-46.0.1.el8;x86_64;ol8_baseos_latest
Installing: libnsl;2.28-236.0.1.el8_9.12;x86_64;ol8_baseos_latest
Installing: libaio;0.3.112-1.el8;x86_64;ol8_baseos_latest
Installing: gzip;1.9-13.el8_5;x86_64;ol8_baseos_latest
Installing: findutils;1:4.6.0-21.el8;x86_64;ol8_baseos_latest
Installing: diffutils;3.6-6.el8;x86_64;ol8_baseos_latest
Complete.
Complete.
Removing intermediate container e9997be5c471
 ---> 3e2aa0097ed3
Step 5/40 : RUN if [ -z "$(getent group oracle)" ]; then groupadd oracle || exit 1 ; fi  && if [ -z "$(getent group oracle)" ]; then groupadd oracle || exit 1 ; fi  && if [ -z "$(getent passwd oracle)" ]; then useradd -g oracle oracle || exit 1; fi  && mkdir -p /u01  && chown oracle:oracle /u01  && chmod 775 /u01
 ---> Running in 76b2939d72b0
Removing intermediate container 76b2939d72b0
 ---> 4db70353fbf5
Step 6/40 : FROM os_update as jdk_build
 ---> 4db70353fbf5
Step 7/40 : LABEL com.oracle.weblogic.imagetool.buildid="71107d65-7898-4f31-a595-7e86581f655f"
 ---> Running in 6fb4cecfc6be
Removing intermediate container 6fb4cecfc6be
 ---> 5d9ceb4928c0
Step 8/40 : ENV JAVA_HOME=/u01/jdk
 ---> Running in b6056e93a572
Removing intermediate container b6056e93a572
 ---> b0308e763043
Step 9/40 : COPY --chown=oracle:oracle ["jdk-11.0.20_linux-x64_bin.tar.gz", "/tmp/imagetool/"]
 ---> f07b5d9a5782
Step 10/40 : USER oracle
 ---> Running in b75a9206a29a
Removing intermediate container b75a9206a29a
 ---> a7f45025c54d
Step 11/40 : RUN tar xzf "/tmp/imagetool/jdk-11.0.20_linux-x64_bin.tar.gz" -C /u01 && $(test -d /u01/jdk* && mv /u01/jdk* /u01/jdk || mv /u01/graal* /u01/jdk) && rm -rf /tmp/imagetool && rm -f /u01/jdk/javafx-src.zip /u01/jdk/src.zip
 ---> Running in 7fe1203420be
Removing intermediate container 7fe1203420be
 ---> c3ed51229c1a
Step 12/40 : FROM os_update as wls_build
 ---> 4db70353fbf5
Step 13/40 : LABEL com.oracle.weblogic.imagetool.buildid="71107d65-7898-4f31-a595-7e86581f655f"
 ---> Running in 8bb593091330
Removing intermediate container 8bb593091330
 ---> 9b8cfbb51190
Step 14/40 : ENV JAVA_HOME=/u01/jdk ORACLE_HOME=/u01/oracle OPATCH_NO_FUSER=true
 ---> Running in bacc2eaf949a
Removing intermediate container bacc2eaf949a
 ---> b8a3dc900906
Step 15/40 : RUN mkdir -p /u01/oracle && mkdir -p /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle/oraInventory && chown oracle:oracle /u01/oracle
 ---> Running in 98741d40596d
Removing intermediate container 98741d40596d
 ---> db58e3011e92
Step 16/40 : COPY --from=jdk_build --chown=oracle:oracle /u01/jdk /u01/jdk/
 ---> 3a1ab28183d3
Step 17/40 : COPY --chown=oracle:oracle fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip wls.rsp /tmp/imagetool/
 ---> 9b4415afdc2f
Step 18/40 : COPY --chown=oracle:oracle oraInst.loc /u01/oracle/
 ---> e94f75e4b27b
Step 19/40 : USER oracle
 ---> Running in 1b42950d779f
Removing intermediate container 1b42950d779f
 ---> 7c42385daa83
Step 20/40 : RUN echo "INSTALLING MIDDLEWARE"     && echo "INSTALLING wls"     && unzip -q /tmp/imagetool/fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip "*.[jb][ai][rn]" -d /tmp/imagetool && /u01/jdk/bin/java -Xmx1024m -jar /tmp/imagetool/fmw_14.1.1.0.0_wls_lite_generic.jar -silent ORACLE_HOME=/u01/oracle     -responseFile /tmp/imagetool/wls.rsp -invPtrLoc /u01/oracle/oraInst.loc -ignoreSysPrereqs -force -novalidation   && test $? -eq 0 && chmod -R g+r /u01/oracle || (grep -vh "NOTIFICATION" /tmp/OraInstall*/install*.log && exit 1)
 ---> Running in e307551d5bb2
INSTALLING MIDDLEWARE
INSTALLING wls
Launcher log file is /tmp/OraInstall2024-04-03_07-31-23PM/launcher2024-04-03_07-31-23PM.log.
Extracting the installer . . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2583.240 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 8191 MB    Passed
Checking temp space: must be greater than 300 MB.   Actual 74508 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2024-04-03_07-31-23PM
Log: /tmp/OraInstall2024-04-03_07-31-23PM/install2024-04-03_07-31-23PM.log
Setting ORACLE_HOME...
Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
Reading response file..
Skipping Software Updates
Validations are disabled for this session.
Verifying data
Copying Files
Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 14.1.1 WebLogic Server and Coherence 14.1.1.0.0 completed successfully.
Logs successfully copied to /u01/oracle/oraInventory/logs.
Removing intermediate container e307551d5bb2
 ---> 1d878efb5a30
Step 21/40 : FROM wls_build as wdt_build
 ---> 1d878efb5a30
Step 22/40 : LABEL com.oracle.weblogic.imagetool.buildid="71107d65-7898-4f31-a595-7e86581f655f"
 ---> Running in 59171485ab53
Removing intermediate container 59171485ab53
 ---> d57a4b317c6e
Step 23/40 : ENV WLSDEPLOY_PROPERTIES=" -Djava.security.egd=file:/dev/./urandom" DOMAIN_HOME=/u01/domains/simple_domain
 ---> Running in 391bdeba5aa4
Removing intermediate container 391bdeba5aa4
 ---> d21d2c4ecf86
Step 24/40 : COPY --chown=oracle:oracle weblogic-deploy.zip /tmp/imagetool/
 ---> 1b54c9d8ad7b
Step 25/40 : USER root
 ---> Running in b294bb02241d
Removing intermediate container b294bb02241d
 ---> 829720897376
Step 26/40 : RUN mkdir -p /u01/wdt && chown oracle:oracle /u01/wdt
 ---> Running in 85d9a1633746
Removing intermediate container 85d9a1633746
 ---> baafc419cd36
Step 27/40 : USER oracle
 ---> Running in f1fb65009687
Removing intermediate container f1fb65009687
 ---> 452d9efbe756
Step 28/40 : RUN cd /u01/wdt && mkdir -p /u01/wdt/models && mkdir -p $(dirname /u01/domains/simple_domain)
 ---> Running in fbbb9d42fb3d
Removing intermediate container fbbb9d42fb3d
 ---> 53454300205a
Step 29/40 : COPY --chown=oracle:oracle ["DiscoveredABDataSourceEARDomain.yaml", "/u01/wdt/models/"]
 ---> a14aa616a21e
Step 30/40 : COPY --chown=oracle:oracle ["DiscoveredABDataSourceEARDomain.zip", "/u01/wdt/models/"]
 ---> abff8757ba8b
Step 31/40 : RUN test -d /u01/wdt/weblogic-deploy && rm -rf /u01/wdt/weblogic-deploy || echo Initial WDT install   && unzip -q /tmp/imagetool/weblogic-deploy.zip -d /u01/wdt
 ---> Running in a9467d64f8ce
Initial WDT install
Removing intermediate container a9467d64f8ce
 ---> 3f8bd1b2c87a
Step 32/40 : RUN cd /u01/wdt/weblogic-deploy/bin     &&  ./createDomain.sh     -oracle_home /u01/oracle     -domain_home /u01/domains/simple_domain     -domain_type WLS      -model_file /u01/wdt/models/DiscoveredABDataSourceEARDomain.yaml -archive_file /u01/wdt/models/DiscoveredABDataSourceEARDomain.zip
 ---> Running in 324177a4bdf7
JDK version is 11.0.20+9-LTS-256
JAVA_HOME = /u01/jdk
WLST_EXT_CLASSPATH = /u01/wdt/weblogic-deploy/lib/weblogic-deploy-core.jar
CLASSPATH = /u01/wdt/weblogic-deploy/lib/weblogic-deploy-core.jar
WLST_PROPERTIES = -Dcom.oracle.cie.script.throwException=true -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployLoggingConfig  -Djava.security.egd=file:/dev/./urandom
/u01/oracle/oracle_common/common/bin/wlst.sh /u01/wdt/weblogic-deploy/lib/python/create.py -oracle_home /u01/oracle -domain_home /u01/domains/simple_domain -domain_type WLS -model_file /u01/wdt/models/DiscoveredABDataSourceEARDomain.yaml -archive_file /u01/wdt/models/DiscoveredABDataSourceEARDomain.zip

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

####<Apr 3, 2024 7:32:46 PM> <INFO> <WebLogicDeployToolingVersion> <logVersionInfo> <WLSDPLY-01750> <The WebLogic Deploy Tooling createDomain version is 3.5.4:.43d3afb:Mar 14, 2024 11:55 UTC>
####<Apr 3, 2024 7:32:46 PM> <INFO> <WLSDeployLoggingConfig> <logLoggingDirectory> <WLSDPLY-01755> <The createDomain program will write its log to directory /u01/wdt/weblogic-deploy/logs>
####<Apr 3, 2024 7:32:46 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /u01/wdt/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Apr 3, 2024 7:32:46 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /u01/wdt/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Apr 3, 2024 7:32:46 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /u01/wdt/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Apr 3, 2024 7:32:46 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /u01/wdt/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Apr 3, 2024 7:32:46 PM> <INFO> <ModelContext> <__copy_from_args> <WLSDPLY-01050> <WebLogic version for aliases is 14.1.1.0.0>
####<Apr 3, 2024 7:32:47 PM> <INFO> <filter_helper> <apply_filters> <WLSDPLY-20017> <No filter configuration file /u01/wdt/weblogic-deploy/lib/model_filters.json>
####<Apr 3, 2024 7:32:47 PM> <INFO> <filter_helper> <apply_filters> <WLSDPLY-20016> <No filters of type create found in filter configuration file /u01/wdt/weblogic-deploy/lib/model_filters.json>
####<Apr 3, 2024 7:32:47 PM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05002> <Performing validation in TOOL mode for WebLogic Server version 14.1.1.0.0 and WLST OFFLINE mode>
####<Apr 3, 2024 7:32:47 PM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05003> <Performing model validation on the /u01/wdt/models/DiscoveredABDataSourceEARDomain.yaml model file>
####<Apr 3, 2024 7:32:47 PM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05005> <Performing archive validation on the /u01/wdt/models/DiscoveredABDataSourceEARDomain.zip archive file>
####<Apr 3, 2024 7:32:47 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the domainInfo section of the model file>
####<Apr 3, 2024 7:32:47 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the topology section of the model file>
####<Apr 3, 2024 7:32:47 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the resources section of the model file>
####<Apr 3, 2024 7:32:48 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the appDeployments section of the model file>
####<Apr 3, 2024 7:32:48 PM> <INFO> <DomainCreator> <__create_domain> <WLSDPLY-12203> <Creating domain of type WLS>
####<Apr 3, 2024 7:32:48 PM> <INFO> <DomainCreator> <__create_base_domain_with_select_template> <WLSDPLY-12210> <Selecting base template named Basic WebLogic Server Domain>
####<Apr 3, 2024 7:32:49 PM> <INFO> <DomainCreator> <__extend_domain_with_select_template> <WLSDPLY-12212> <Loading selected templates>
####<Apr 3, 2024 7:32:51 PM> <INFO> <TopologyHelper> <create_placeholder_named_elements> <WLSDPLY-19403> <Creating placeholder for JDBCSystemResource JDBC-Data-Source-Oracle>
####<Apr 3, 2024 7:32:51 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating Machine with the name machineA>
####<Apr 3, 2024 7:32:51 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating Machine with the name machineB>
####<Apr 3, 2024 7:32:51 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating Cluster with the name ClusterA>
####<Apr 3, 2024 7:32:51 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating Cluster with the name ClusterB>
####<Apr 3, 2024 7:32:51 PM> <INFO> <TopologyHelper> <create_placeholder_named_elements> <WLSDPLY-19403> <Creating placeholder for Server ManagedServerA1>
####<Apr 3, 2024 7:32:51 PM> <INFO> <TopologyHelper> <create_placeholder_named_elements> <WLSDPLY-19403> <Creating placeholder for Server ManagedServerA2>
####<Apr 3, 2024 7:32:51 PM> <INFO> <TopologyHelper> <create_placeholder_named_elements> <WLSDPLY-19403> <Creating placeholder for Server ManagedServerB1>
####<Apr 3, 2024 7:32:52 PM> <INFO> <TopologyHelper> <create_placeholder_named_elements> <WLSDPLY-19403> <Creating placeholder for Server ManagedServerB2>
####<Apr 3, 2024 7:32:52 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name AdminServer>
####<Apr 3, 2024 7:32:52 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name ManagedServerA1>
####<Apr 3, 2024 7:32:52 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name ManagedServerA2>
####<Apr 3, 2024 7:32:52 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name ManagedServerB1>
####<Apr 3, 2024 7:32:52 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name ManagedServerB2>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating MigratableTarget with the name ManagedServerA1 (migratable)>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating MigratableTarget with the name ManagedServerA2 (migratable)>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating MigratableTarget with the name ManagedServerB1 (migratable)>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12100> <Creating MigratableTarget with the name ManagedServerB2 (migratable)>
####<Apr 3, 2024 7:32:53 PM> <INFO> <TopologyHelper> <clear_jdbc_placeholder_targeting> <WLSDPLY-19404> <Clearing targets for JDBCSystemResource placeholder JDBC-Data-Source-Oracle>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Machine with the name machineA>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Machine with the name machineB>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Cluster with the name ClusterA>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Cluster with the name ClusterB>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name AdminServer>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name ManagedServerA1>
####<Apr 3, 2024 7:32:53 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name ManagedServerA2>
####<Apr 3, 2024 7:32:54 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name ManagedServerB1>
####<Apr 3, 2024 7:32:54 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating Server with the name ManagedServerB2>
####<Apr 3, 2024 7:32:54 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating MigratableTarget with the name ManagedServerA1 (migratable)>
####<Apr 3, 2024 7:32:54 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating MigratableTarget with the name ManagedServerA2 (migratable)>
####<Apr 3, 2024 7:32:54 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating MigratableTarget with the name ManagedServerB1 (migratable)>
####<Apr 3, 2024 7:32:54 PM> <INFO> <Creator> <_create_named_mbeans> <WLSDPLY-12101> <Updating MigratableTarget with the name ManagedServerB2 (migratable)>
####<Apr 3, 2024 7:32:54 PM> <INFO> <DomainCreator> <__extend_domain_with_select_template> <WLSDPLY-12205> <Writing base domain base_domain to directory /u01/domains/simple_domain>
####<Apr 3, 2024 7:32:57 PM> <INFO> <DomainCreator> <__extend_domain_with_select_template> <WLSDPLY-12206> <Closing templates for domain base_domain>
####<Apr 3, 2024 7:32:57 PM> <INFO> <DefaultAuthenticatorHelper> <create_default_init_file> <WLSDPLY-01900> <Updating default authenticator initialization file /u01/domains/simple_domain/security/DefaultAuthenticatorInit.ldift>
####<Apr 3, 2024 7:32:57 PM> <INFO> <LibraryHelper> <install_domain_libraries> <WLSDPLY-12213> <The model did not specify any domain libraries to install>
####<Apr 3, 2024 7:32:57 PM> <INFO> <LibraryHelper> <extract_classpath_libraries> <WLSDPLY-12218> <The archive file /u01/wdt/models/DiscoveredABDataSourceEARDomain.zip contains no classpath libraries to install>
####<Apr 3, 2024 7:32:57 PM> <INFO> <LibraryHelper> <install_domain_scripts> <WLSDPLY-12241> <The model did not specify any domain scripts to install>
####<Apr 3, 2024 7:32:57 PM> <INFO> <Creator> <_create_mbean> <WLSDPLY-20013> <Updating SecurityConfiguration>
####<Apr 3, 2024 7:32:57 PM> <INFO> <DatasourceDeployer> <_add_named_elements> <WLSDPLY-09608> <Updating JDBCSystemResource JDBC-Data-Source-Oracle>
####<Apr 3, 2024 7:32:57 PM> <INFO> <DatasourceDeployer> <_add_model_elements> <WLSDPLY-09604> <Updating JdbcResource for JDBCSystemResource JDBC-Data-Source-Oracle>
####<Apr 3, 2024 7:32:57 PM> <INFO> <DatasourceDeployer> <_add_model_elements> <WLSDPLY-09601> <Adding JDBCConnectionPoolParams to JdbcResource>
####<Apr 3, 2024 7:32:57 PM> <INFO> <DatasourceDeployer> <_add_model_elements> <WLSDPLY-09601> <Adding JDBCDataSourceParams to JdbcResource>
####<Apr 3, 2024 7:32:58 PM> <INFO> <DatasourceDeployer> <_add_model_elements> <WLSDPLY-09601> <Adding JDBCDriverParams to JdbcResource>
####<Apr 3, 2024 7:32:58 PM> <INFO> <DatasourceDeployer> <_add_named_elements> <WLSDPLY-09606> <Adding Properties user to JDBCDriverParams>
####<Apr 3, 2024 7:32:58 PM> <INFO> <ApplicationDeployer> <__add_applications> <WLSDPLY-09301> <Adding Application basicWebapp to Domain simple_domain>

Issue Log for createDomain version 3.5.4 running WebLogic version 14.1.1.0.0 offline mode:

Total:   SEVERE :    0  WARNING :    0

createDomain.sh completed successfully (exit code = 0)
Removing intermediate container 324177a4bdf7
 ---> d8743ead9fd4
Step 33/40 : FROM os_update as final_build
 ---> 4db70353fbf5
Step 34/40 : ENV ORACLE_HOME=/u01/oracle     LD_LIBRARY_PATH=/u01/oracle/oracle_common/adr:$LD_LIBRARY_PATH     JAVA_HOME=/u01/jdk     DOMAIN_HOME=/u01/domains/simple_domain     WDT_HOME=/u01/wdt     PATH=${PATH}:/u01/jdk/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle:/u01/domains/simple_domain/bin
 ---> Running in 7fc9a81345d3
Removing intermediate container 7fc9a81345d3
 ---> 006dcc8d44c3
Step 35/40 : LABEL com.oracle.weblogic.imagetool.buildid="71107d65-7898-4f31-a595-7e86581f655f"
 ---> Running in 1b531655368b
Removing intermediate container 1b531655368b
 ---> af98be131cb2
Step 36/40 : COPY --from=jdk_build --chown=oracle:oracle /u01/jdk /u01/jdk/
 ---> fb648de5cd73
Step 37/40 : COPY --from=wls_build --chown=oracle:oracle /u01/oracle /u01/oracle/
 ---> 94dd2578579c
Step 38/40 : COPY --from=wdt_build --chown=oracle:oracle /u01/domains/simple_domain /u01/domains/simple_domain/
 ---> 78c2e0f481c8
Step 39/40 : USER oracle
 ---> Running in b9fcda9acd00
Removing intermediate container b9fcda9acd00
 ---> 306796a85c89
Step 40/40 : WORKDIR /u01/domains/simple_domain
 ---> Running in b25cd1ddcef0
Removing intermediate container b25cd1ddcef0
 ---> 07d91172a6ab
Successfully built 07d91172a6ab
Successfully tagged wls:14.1.1.1.1
[INFO   ] Build successful. Build time=199s. Image tag=wls:14.1.1.1.1

List files in created Docker image
List files in created Docker image 

$   docker run -it --rm wls:14.1.1.1.1 find /u01 -type d -maxdepth 2
/u01
/u01/jdk
/u01/jdk/bin
/u01/jdk/conf
/u01/jdk/include
/u01/jdk/jmods
/u01/jdk/legal
/u01/jdk/lib
/u01/jdk/man
/u01/oracle
/u01/oracle/OPatch
/u01/oracle/coherence
/u01/oracle/inventory
/u01/oracle/oraInventory
/u01/oracle/oracle_common
/u01/oracle/oui
/u01/oracle/wlserver
/u01/domains
/u01/domains/simple_domain


Image tool options

 Usage: imagetool create [OPTIONS]

Build WebLogic docker image

      --additionalBuildCommands=<additionalBuildCommandsPath>

                             path to a file with additional build commands.

      --additionalBuildFiles=<additionalBuildFiles>[,<additionalBuildFiles>...]

                             comma separated list of files that should be

                               copied to the build context folder.

  -b, --builder=<buildEngine>

                             Executable to process the Dockerfile. Use the full

                               path of the executable if not on your path.

                               Defaults to 'docker', or, when set, to the value

                               in environment variable WLSIMG_BUILDER.

      --build-arg=<String=String>

                             Additional argument passed directly to the build

                               engine.

      --buildNetwork=<networking mode>

                             Set the networking mode for the RUN instructions

                               during build.

      --chown=<owner:group>  owner and groupid to be used for files copied into

                               the image. Default: oracle:oracle

      --dryRun               Skip image build execution and print Dockerfile to

                               stdout.

      --fromImage=<image name>

                             Docker image to use as base image.  Default: ghcr.

                               io/oracle/oraclelinux:8-slim

      --httpProxyUrl=<HTTP proxy URL>

                             proxy for http protocol. Ex: http://myproxy:80 or

                               http://user:passwd@myproxy:8080

      --httpsProxyUrl=<HTTPS proxy URL>

                             proxy for https protocol. Ex: http://myproxy:80 or

                               http://user:passwd@myproxy:8080

      --installerResponseFile=<installerResponseFiles>[,

        <installerResponseFiles>...]

                             path to a response file. Override the default

                               responses for the Oracle installer

      --inventoryPointerFile=<inventoryPointerFile>

                             path to a user provided inventory pointer file as

                               input

      --inventoryPointerInstallLoc=<inventoryPointerInstallLoc>

                             path to where the inventory pointer file (oraInst.

                               loc) should be stored in the image

      --jdkVersion=<jdkVersion>

                             Version of server jdk to install. Default: 8u202

      --latestPSU            Whether to apply patches from latest PSU.

      --opatchBugNumber=<opatchBugNumber>

                             the patch number for OPatch (patching OPatch)

      --packageManager=<package manager>

                             Override the detected package manager for

                               installing OS packages.

      --password[=<support password>]

                             Enter password for Oracle Support userId on STDIN

      --passwordEnv=<environment variable>

                             environment variable containing the support

                               password

      --passwordFile=<password file>

                             path to file containing just the password

      --patches=patchId[,patchId...]

                             Comma separated patch Ids. Ex: 12345678,87654321

      --pull                 Always attempt to pull a newer version of base

                               images during the build.

      --recommendedPatches   Whether to apply recommended patches from latest

                               PSU.

      --skipcleanup          Do not delete the build context folder,

                               intermediate images, and failed build containers.

      --skipOpatchUpdate     Do not update OPatch version, even if a newer

                               version is available.

      --strictPatchOrdering  Use OPatch to apply patches one at a time.

*     --tag=<image tag>      Tag for the final build image. Ex:

                               container-registry.oracle.

                               com/middleware/weblogic:12.2.1.4

      --target=<kubernetesTarget>

                             Apply settings appropriate to the target

                               environment.  Default: Default.  Supported

                               values: Default, OpenShift.

      --type=<installerType> Installer type. Default: WLS. Supported values:

                               WLS, WLSSLIM, WLSDEV, FMW, OSB, SOA, SOA_OSB,

                               SOA_OSB_B2B, MFT, IDM, IDM_WLS, OAM, OIG, OUD,

                               OUD_WLS, OID, WCC, WCP, WCS, OHS, ODI

      --user=<support email> Oracle Support email id

      --version=<installerVersion>

                             Installer version. Default: 12.2.1.3.0

WDT Options

      --resourceTemplates=<resourceTemplates>[,<resourceTemplates>...]

                             Resolve variables in the resource template(s) with

                               information from the image tool build.

      --wdtArchive=<wdtArchivePath>

                             A WDT archive zip file, if needed (or

                               comma-separated list of files).

      --wdtDomainHome=<wdtDomainHome>

                             pass to the -domain_home for wdt

      --wdtDomainType=<wdtDomainType>

                             WDT Domain Type (-domain_type). Default: WLS.

                               Supported values: WLS, JRF, or RestrictedJRF

      --wdtEncryptionKey[=<passphrase>]

                             Enter the passphrase to decrypt the WDT model

      --wdtEncryptionKeyEnv=<environment variable name>

                             environment variable containing the passphrase to

                               decrypt the WDT model

      --wdtEncryptionKeyFile=<passphrase file>

                             path to file the passphrase to decrypt the WDT

                               model

      --wdtHome=<WDT home directory>

                             The target folder in the image for the WDT install

                               and models. Default: /u01/wdt.

      --wdtJavaOptions=<wdtJavaOptions>

                             Java command line options for WDT

      --wdtModel=<wdtModelPath>

                             A WDT model file (or a comma-separated list of

                               files).

      --wdtModelHome=<wdtModelHome>

                             The target location in the image to copy WDT

                               model, variable, and archive files.  Default:

                               WDT_HOME/models

      --wdtModelOnly         Install WDT and copy the models to the image, but

                               do not create the domain. Default: false.

      --wdtRunRCU            instruct WDT to run RCU when creating the Domain

      --wdtStrictValidation  Use strict validation for the WDT validation

                               method. Only applies when using model only.

                               Default: false.

      --wdtVariables=<wdtVariablesPath>

                             A WDT variables file, if needed (or

                               comma-separated list of files).

      --wdtVersion=<wdtVersion>

                             WDT version to use.  Default: latest.

  --                         All parameters and options provided after the --

                               will be passed to the container image build

                               command.


Weblogic Deploy Tool - WDT - discover domain

 HOWTO

GitHub

Install WDT 

 

dave@dave:/app$ tar xzvf weblogic-deploy.tar.gz 
weblogic-deploy/etc/logging.properties
weblogic-deploy/lib/python/compare_model.py
weblogic-deploy/lib/python/encrypt.py
weblogic-deploy/lib/python/update.py
weblogic-deploy/lib/python/deploy.py
weblogic-deploy/lib/python/create.py
weblogic-deploy/lib/python/extract_resource.py
weblogic-deploy/lib/python/discover.py
weblogic-deploy/lib/python/__init__.py
weblogic-deploy/lib/python/wlsdeploy/util/model_context.py
weblogic-deploy/lib/python/wlsdeploy/util/exit_code.py
weblogic-deploy/lib/python/wlsdeploy/util/weblogic_roles_helper.py
weblogic-deploy/lib/python/wlsdeploy/util/getcreds.py
weblogic-deploy/lib/python/wlsdeploy/util/model_config.py
weblogic-deploy/lib/python/wlsdeploy/util/unicode_helper.py
weblogic-deploy/lib/python/wlsdeploy/util/variables.py
weblogic-deploy/lib/python/wlsdeploy/util/cla_helper.py
weblogic-deploy/lib/python/wlsdeploy/util/validate_configuration.py
weblogic-deploy/lib/python/wlsdeploy/util/__init__.py
weblogic-deploy/lib/python/wlsdeploy/util/model.py
weblogic-deploy/lib/python/wlsdeploy/util/target_configuration_helper.py
weblogic-deploy/lib/python/wlsdeploy/util/string_utils.py
weblogic-deploy/lib/python/wlsdeploy/util/weblogic_helper.py
weblogic-deploy/lib/python/wlsdeploy/util/model_translator.py
weblogic-deploy/lib/python/wlsdeploy/util/target_configuration.py
weblogic-deploy/lib/python/wlsdeploy/util/cla_utils.py
weblogic-deploy/lib/python/wlsdeploy/util/model_helper.py
weblogic-deploy/lib/python/wlsdeploy/util/enum.py
weblogic-deploy/lib/python/wlsdeploy/util/tool_main.py
weblogic-deploy/lib/python/wlsdeploy/util/env_helper.py
weblogic-deploy/lib/python/wlsdeploy/util/path_utils.py
weblogic-deploy/lib/python/wlsdeploy/util/dictionary_utils.py
weblogic-deploy/lib/python/wlsdeploy/__init__.py
weblogic-deploy/lib/python/wlsdeploy/json/__init__.py
weblogic-deploy/lib/python/wlsdeploy/json/json_translator.py
weblogic-deploy/lib/python/wlsdeploy/yaml/__init__.py
weblogic-deploy/lib/python/wlsdeploy/yaml/yaml_translator.py
weblogic-deploy/lib/python/wlsdeploy/aliases/flattened_folder.py
weblogic-deploy/lib/python/wlsdeploy/aliases/wlst_modes.py
weblogic-deploy/lib/python/wlsdeploy/aliases/alias_entries.py
weblogic-deploy/lib/python/wlsdeploy/aliases/location_context.py
weblogic-deploy/lib/python/wlsdeploy/aliases/validation_codes.py
weblogic-deploy/lib/python/wlsdeploy/aliases/__init__.py
weblogic-deploy/lib/python/wlsdeploy/aliases/aliases.py
weblogic-deploy/lib/python/wlsdeploy/aliases/password_utils.py
weblogic-deploy/lib/python/wlsdeploy/aliases/alias_utils.py
weblogic-deploy/lib/python/wlsdeploy/aliases/alias_jvmargs.py
weblogic-deploy/lib/python/wlsdeploy/aliases/model_constants.py
weblogic-deploy/lib/python/wlsdeploy/aliases/alias_constants.py
weblogic-deploy/lib/python/wlsdeploy/exception/exception_types.py
weblogic-deploy/lib/python/wlsdeploy/exception/__init__.py
weblogic-deploy/lib/python/wlsdeploy/exception/exception_helper.py
weblogic-deploy/lib/python/wlsdeploy/logging/platform_logger.py
weblogic-deploy/lib/python/wlsdeploy/logging/__init__.py
weblogic-deploy/lib/python/wlsdeploy/logging/log_collector.py
weblogic-deploy/lib/python/wlsdeploy/tool/validate/validator.py
weblogic-deploy/lib/python/wlsdeploy/tool/validate/crd_sections_validator.py
weblogic-deploy/lib/python/wlsdeploy/tool/validate/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/validate/content_validator.py
weblogic-deploy/lib/python/wlsdeploy/tool/validate/validation_utils.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/multi_tenant_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/multi_tenant_resources_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/coherence_resources_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/global_resources_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/deployments_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/jms_resources_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/custom_folder_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/multi_tenant_topology_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/topology_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/domain_info_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/resources_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/discover/common_resources_discoverer.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/beaninfo_constants.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/results_file.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/filters/wko_filter.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/filters/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/filters/model_traverse.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/filters/wko_final_filter.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/targeting_types.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/attribute_setter.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/target_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/mbean_utils.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/targets/model_crd_folder.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/targets/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/targets/file_template_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/targets/crd_file_updater.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/targets/additional_output_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/targets/schema_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/targets/model_crd_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/saml2_security_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/topology_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/model_context_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/filter_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/archive_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/appmodule_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/default_authenticator_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/rcu_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/credential_map_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/credential_injector.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/string_output_stream.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/library_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/variable_injector.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/variable_injector_functions.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/k8s_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/wlst_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/util/topology_profiles.py
weblogic-deploy/lib/python/wlsdeploy/tool/prepare/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/prepare/model_preparer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/jms_resources_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/datasource_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/deployer_utils.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/resources_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/applications_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/multi_tenant_resources_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/common_resources_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/model_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/log_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/odl_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/wldf_resources_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/coherence_resources_deployer.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/topology_updater.py
weblogic-deploy/lib/python/wlsdeploy/tool/deploy/applications_version_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/compare/model_comparer.py
weblogic-deploy/lib/python/wlsdeploy/tool/compare/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/extract/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/extract/domain_resource_extractor.py
weblogic-deploy/lib/python/wlsdeploy/tool/modelhelp/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/modelhelp/model_help_utils.py
weblogic-deploy/lib/python/wlsdeploy/tool/modelhelp/model_crd_section_printer.py
weblogic-deploy/lib/python/wlsdeploy/tool/modelhelp/model_help_printer.py
weblogic-deploy/lib/python/wlsdeploy/tool/modelhelp/model_sample_printer.py
weblogic-deploy/lib/python/wlsdeploy/tool/encrypt/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/encrypt/encryption_utils.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/domain_typedef.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/rcudbinfo_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/wlsroles_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/__init__.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/security_provider_creator.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/domain_creator.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/custom_folder_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/ssl_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/creator.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/atp_helper.py
weblogic-deploy/lib/python/wlsdeploy/tool/create/opss_helper.py
weblogic-deploy/lib/python/validate.py
weblogic-deploy/lib/python/model_help.py
weblogic-deploy/lib/python/variable_inject.py
weblogic-deploy/lib/python/prepare_model.py
weblogic-deploy/lib/typedefs/JRF.json
weblogic-deploy/lib/typedefs/JRF-Compact.json
weblogic-deploy/lib/typedefs/WLS.json
weblogic-deploy/lib/typedefs/RestrictedJRF.json
weblogic-deploy/lib/targets/vz/target.json
weblogic-deploy/lib/targets/vz/vz_filter.py
weblogic-deploy/lib/targets/wko4-pv/target.json
weblogic-deploy/lib/targets/wko4/target.json
weblogic-deploy/lib/targets/wko-pv/target.json
weblogic-deploy/lib/targets/vz-dii/target.json
weblogic-deploy/lib/targets/k8s/target.json
weblogic-deploy/lib/targets/k8s/k8s_operator_filter.py
weblogic-deploy/lib/targets/wko4-dii/target.json
weblogic-deploy/lib/targets/vz-pv/target.json
weblogic-deploy/lib/targets/wko-dii/target.json
weblogic-deploy/lib/targets/templates/wko-domain.yaml
weblogic-deploy/lib/targets/templates/vz-application-v1.yaml
weblogic-deploy/lib/targets/templates/wko-domain-v4.yaml
weblogic-deploy/lib/targets/wko/target.json
weblogic-deploy/lib/targets/wko/wko_operator_filter.py
weblogic-deploy/bin/discoverDomain.cmd
weblogic-deploy/bin/deployApps.cmd
weblogic-deploy/bin/extractDomainResource.cmd
weblogic-deploy/bin/injectVariables.cmd
weblogic-deploy/bin/prepareModel.cmd
weblogic-deploy/bin/updateDomain.cmd
weblogic-deploy/bin/validateModel.cmd
weblogic-deploy/bin/createDomain.cmd
weblogic-deploy/bin/modelHelp.cmd
weblogic-deploy/bin/shared.cmd
weblogic-deploy/bin/encryptModel.cmd
weblogic-deploy/bin/archiveHelper.cmd
weblogic-deploy/bin/compareModel.cmd
weblogic-deploy/bin/shared.sh
weblogic-deploy/bin/extractDomainResource.sh
weblogic-deploy/bin/prepareModel.sh
weblogic-deploy/bin/deployApps.sh
weblogic-deploy/bin/modelHelp.sh
weblogic-deploy/bin/encryptModel.sh
weblogic-deploy/bin/createDomain.sh
weblogic-deploy/bin/compareModel.sh
weblogic-deploy/bin/discoverDomain.sh
weblogic-deploy/bin/archiveHelper.sh
weblogic-deploy/bin/injectVariables.sh
weblogic-deploy/bin/updateDomain.sh
weblogic-deploy/bin/validateModel.sh
weblogic-deploy/lib/
weblogic-deploy/lib/injectors/
weblogic-deploy/lib/variable_keywords.json
weblogic-deploy/lib/tool.properties
weblogic-deploy/lib/injectors/host.json
weblogic-deploy/lib/injectors/target.json
weblogic-deploy/lib/injectors/url.json
weblogic-deploy/lib/injectors/port.json
weblogic-deploy/lib/injectors/credentials.json
weblogic-deploy/lib/injectors/topology.json
weblogic-deploy/samples/
weblogic-deploy/samples/model_variable_injector.json
weblogic-deploy/samples/custom_injector.json
weblogic-deploy/LICENSE.txt
weblogic-deploy/VERSION.txt
weblogic-deploy/lib/weblogic-deploy-core.jar
weblogic-deploy/lib/antlr4-runtime-4.9.3.jar
weblogic-deploy/lib/snakeyaml-2.2.jar
weblogic-deploy/lib/picocli-4.7.5.jar

Discover domain
dave@dave:/app/weblogic-deploy/bin$ ./discoverDomain.sh -oracle_home /app/weblogic -domain_home /app/domains/myDomain/ -archive_file /git/weblogic/wdt/DiscoveredMyDomain.zip -model_file /git/weblogic/wdt/DiscoveredMyDomain.yaml
JDK version is 11.0.21+9-LTS-193
JAVA_HOME = /usr/java/jdk-11
WLST_EXT_CLASSPATH = /app/weblogic-deploy/lib/weblogic-deploy-core.jar
CLASSPATH = /app/weblogic-deploy/lib/weblogic-deploy-core.jar
WLST_PROPERTIES = -Dcom.oracle.cie.script.throwException=true -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployLoggingConfig 
/app/weblogic/oracle_common/common/bin/wlst.sh /app/weblogic-deploy/lib/python/discover.py -oracle_home /app/weblogic -domain_home /app/domains/myDomain/ -archive_file /git/weblogic/wdt/DiscoveredMyDomain.zip -model_file /git/weblogic/wdt/DiscoveredMyDomain.yaml

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

####<Mar 16, 2024 6:35:46 PM> <INFO> <WebLogicDeployToolingVersion> <logVersionInfo> <WLSDPLY-01750> <The WebLogic Deploy Tooling discoverDomain version is 3.5.4:.43d3afb:Mar 14, 2024 11:55 UTC>
####<Mar 16, 2024 6:35:46 PM> <INFO> <WLSDeployLoggingConfig> <logLoggingDirectory> <WLSDPLY-01755> <The discoverDomain program will write its log to directory /app/weblogic-deploy/logs>
####<Mar 16, 2024 6:35:46 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Mar 16, 2024 6:35:46 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Mar 16, 2024 6:35:46 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Mar 16, 2024 6:35:46 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Mar 16, 2024 6:35:46 PM> <INFO> <ModelContext> <__copy_from_args> <WLSDPLY-01050> <WebLogic version for aliases is 14.1.1.0.0>
####<Mar 16, 2024 6:35:46 PM> <INFO> <discover> <main> <WLSDPLY-06024> <No variable file provided. Model passwords will contain the token '-- FIX ME --'>
####<Mar 16, 2024 6:35:49 PM> <INFO> <discover> <_get_domain_name> <WLSDPLY-06022> <Discover domain myDomain>
####<Mar 16, 2024 6:35:49 PM> <INFO> <TopologyDiscoverer> <discover> <WLSDPLY-06600> <Discovering domain model topology>
####<Mar 16, 2024 6:35:49 PM> <INFO> <Discoverer> <discover_domain_mbean> <WLSDPLY-06644> <Adding Domain Log>
####<Mar 16, 2024 6:35:49 PM> <INFO> <TopologyDiscoverer> <_get_nm_properties> <WLSDPLY-06627> <Discovering NM Properties>
####<Mar 16, 2024 6:35:50 PM> <INFO> <TopologyDiscoverer> <get_clusters> <WLSDPLY-06601> <Discovering 1 clusters>
####<Mar 16, 2024 6:35:50 PM> <INFO> <TopologyDiscoverer> <get_clusters> <WLSDPLY-06602> <Adding Cluster cluster1>
####<Mar 16, 2024 6:35:50 PM> <INFO> <TopologyDiscoverer> <get_servers> <WLSDPLY-06603> <Discovering 1 servers>
####<Mar 16, 2024 6:35:50 PM> <INFO> <TopologyDiscoverer> <get_servers> <WLSDPLY-06604> <Adding Server myadmin>
####<Mar 16, 2024 6:35:50 PM> <INFO> <TopologyDiscoverer> <get_server_templates> <WLSDPLY-06605> <Discovering 1 server templates>
####<Mar 16, 2024 6:35:50 PM> <INFO> <TopologyDiscoverer> <get_server_templates> <WLSDPLY-06606> <Adding cluster1-template Server Template>
####<Mar 16, 2024 6:35:51 PM> <INFO> <TopologyDiscoverer> <discover_security_configuration> <WLSDPLY-06622> <Adding Security Configuration>
####<Mar 16, 2024 6:35:52 PM> <INFO> <TopologyDiscoverer> <get_embedded_ldap_configuration> <WLSDPLY-06639> <Skipping Embedded LDAP Server Configuration>
####<Mar 16, 2024 6:35:52 PM> <INFO> <ResourcesDiscoverer> <discover> <WLSDPLY-06300> <Discovering domain model resources>
####<Mar 16, 2024 6:35:52 PM> <INFO> <DeploymentsDiscoverer> <discover> <WLSDPLY-06380> <Discovering domain model deployments>
####<Mar 16, 2024 6:35:52 PM> <INFO> <DeploymentsDiscoverer> <get_applications> <WLSDPLY-06391> <Discovering 1 Applications>
####<Mar 16, 2024 6:35:52 PM> <INFO> <DeploymentsDiscoverer> <get_applications> <WLSDPLY-06392> <Adding Application basicWebappEjb>
####<Mar 16, 2024 6:35:52 PM> <INFO> <DeploymentsDiscoverer> <add_application_to_archive> <WLSDPLY-06394> <Add application basicWebappEjb binary /u01/oracle/user_projects/domains/basicWebappEjb.war to archive>
####<Mar 16, 2024 6:35:52 PM> <WARNING> <DeploymentsDiscoverer> <_disconnect_target> <WLSDPLY-06395> <Cannot add application binary for application basicWebappEjb to archive file. The application was removed from target cluster1 : WLSDeployArchive /git/weblogic/wdt/DiscoveredMyDomain.zip unable to add file /u01/oracle/user_projects/domains/basicWebappEjb.war to the archive because the file does not exist>
####<Mar 16, 2024 6:35:52 PM> <INFO> <MultiTenantDiscoverer> <discover> <WLSDPLY-06700> <Discover Multi-tenant>
####<Mar 16, 2024 6:35:52 PM> <INFO> <MultiTenantTopologyDiscoverer> <discover> <WLSDPLY-06709> <Discover Multi-tenant Topology>
####<Mar 16, 2024 6:35:52 PM> <INFO> <MultiTenantResourcesDiscoverer> <discover> <WLSDPLY-06707> <Discover Multi-tenant Resources>
####<Mar 16, 2024 6:35:52 PM> <INFO> <filter_helper> <apply_filters> <WLSDPLY-20017> <No filter configuration file /app/weblogic-deploy/lib/model_filters.json>
####<Mar 16, 2024 6:35:52 PM> <INFO> <filter_helper> <apply_filters> <WLSDPLY-20016> <No filters of type discover found in filter configuration file /app/weblogic-deploy/lib/model_filters.json>
####<Mar 16, 2024 6:35:52 PM> <INFO> <variable_injector> <inject_variables_keyword_file> <WLSDPLY-19519> <No variables were inserted into the model during variable replacement>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05002> <Performing validation in TOOL mode for WebLogic Server version 14.1.1.0.0 and WLST OFFLINE mode>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05003> <Performing model validation on the /git/weblogic/wdt/DiscoveredMyDomain.yaml model file>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05005> <Performing archive validation on the /git/weblogic/wdt/DiscoveredMyDomain.zip archive file>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the domainInfo section of the model file>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the topology section of the model file>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_single_path_in_archive> <WLSDPLY-05031> <Attribute FileName in model location topology:/Log references a relative file location myDomain.log.  This makes the model subject to failure unless the tool invoked from the correct location to resolve the relative path to the file. It is recommended to use a path token if the absolute path is expected to change between systems.>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the resources section of the model file>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05009> <Model file /git/weblogic/wdt/DiscoveredMyDomain.yaml does not contain a resources section, validation of resources was skipped.>
####<Mar 16, 2024 6:35:52 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the appDeployments section of the model file>

Issue Log for discoverDomain version 3.5.4 running WebLogic version 14.1.1.0.0 offline mode:

WARNING Messages:

        1. WLSDPLY-06395: Cannot add application binary for application basicWebappEjb to archive file. The application was removed from target cluster1 : WLSDeployArchive /git/weblogic/wdt/DiscoveredMyDomain.zip unable to add file /u01/oracle/user_projects/domains/basicWebappEjb.war to the archive because the file does not exist

Total:   SEVERE :    0  WARNING :    1

discoverDomain.sh completed but with some issues (exit code = 1)

Created model file
$ cat  /git/weblogic/wdt/DiscoveredMyDomain.yaml 
# This model was created using the WebLogic Deploy Tooling 3.5.4 discoverDomain tool
# running in OFFLINE mode against a domain using WebLogic Server 14.1.1.0.0.
# 
domainInfo:
    AdminUserName: --FIX ME--
    AdminPassword: --FIX ME--
topology:
    Name: myDomain
    AdminServerName: myadmin
    Log:
        FileName: myDomain.log
    NMProperties:
        DomainsFile: /u01/oracle/user_projects/domains/myDomain/nodemanager/nodemanager.domains
        LogFile: /u01/oracle/user_projects/domains/myDomain/nodemanager/nodemanager.log
        JavaHome: /usr/lib/jvm/jdk-11-oracle-x64
        NodeManagerHome: /u01/oracle/user_projects/domains/myDomain/nodemanager
    Cluster:
        cluster1:
            DynamicServers:
                DynamicClusterSize: 2
                MaxDynamicClusterSize: 2
                ServerNamePrefix: MS
                ServerTemplate: cluster1-template
                CalculatedListenPorts: false
                MaximumDynamicServerCount: 2
    Server:
        myadmin: {}
    ServerTemplate:
        cluster1-template:
            Cluster: cluster1
            ListenPort: 8001
            JTAMigratableTarget:
                Cluster: cluster1
                MigrationPolicy: manual
appDeployments:
    Application:
        basicWebappEjb:
            SourcePath: /u01/oracle/user_projects/domains/basicWebappEjb.war
            ModuleType: war
            SecurityDDModel: DDOnly

Archive file for wldeploy
$ jar tvf /git/weblogic/wdt/DiscoveredMyDomain.zip
28381726 Sat Mar 16 18:43:28 CET 2024 wlsdeploy/applications/basicWebappEjb.war

run extract model
ave@dave:/app/weblogic-deploy/bin$ ./extractDomainResource.sh -oracle_home /app/weblogic -domain_home /app/domains/myDomain/ -model_file  /git/weblogic/wdt/DiscoveredMyDomain.yaml  -output_dir  /git/weblogic/wdt/resource -target wko
JDK version is 11.0.21+9-LTS-193
JAVA_HOME = /usr/java/jdk-11
CLASSPATH = /app/weblogic-deploy/lib/weblogic-deploy-core.jar:/app/weblogic/wlserver/server/lib/weblogic.jar
JAVA_PROPERTIES = -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployLoggingConfig -Dpython.cachedir.skip=true -Dpython.console= 
/usr/java/jdk-11/bin/java -cp /app/weblogic-deploy/lib/weblogic-deploy-core.jar:/app/weblogic/wlserver/server/lib/weblogic.jar           -Djava.util.logging.config.class=oracle.weblogic.deploy.logging.WLSDeployLoggingConfig -Dpython.cachedir.skip=true -Dpython.console=            -Dpython.path=/app/weblogic/wlserver/common/wlst/modules/jython-modules.jar/Lib           org.python.util.jython           /app/weblogic-deploy/lib/python/extract_resource.py -oracle_home /app/weblogic -domain_home /app/domains/myDomain/ -model_file /git/weblogic/wdt/DiscoveredMyDomain.yaml -output_dir /git/weblogic/wdt/resource -target wko
####<Mar 16, 2024 6:54:07 PM> <INFO> <WebLogicDeployToolingVersion> <logVersionInfo> <WLSDPLY-01750> <The WebLogic Deploy Tooling extractDomainResource version is 3.5.4:.43d3afb:Mar 14, 2024 11:55 UTC>
####<Mar 16, 2024 6:54:07 PM> <INFO> <WLSDeployLoggingConfig> <logLoggingDirectory> <WLSDPLY-01755> <The extractDomainResource program will write its log to directory /app/weblogic-deploy/logs>
####<Mar 16, 2024 6:54:08 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Mar 16, 2024 6:54:08 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Mar 16, 2024 6:54:08 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12328> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateRcuSchemasScript section>
####<Mar 16, 2024 6:54:08 PM> <INFO> <DomainTypedef> <__init__> <WLSDPLY-12321> <Domain type WLS type definition file /app/weblogic-deploy/lib/typedefs/WLS.json version WLS_14 does not contain a postCreateDomainScript section>
####<Mar 16, 2024 6:54:08 PM> <INFO> <ModelContext> <__copy_from_args> <WLSDPLY-01050> <WebLogic version for aliases is 14.1.1.0.0>
####<Mar 16, 2024 6:54:08 PM> <INFO> <filter_helper> <apply_filters> <WLSDPLY-20016> <No filters of type extract found in filter configuration file /app/weblogic-deploy/lib/targets/wko/target.json>
####<Mar 16, 2024 6:54:08 PM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05002> <Performing validation in TOOL mode for WebLogic Server version 14.1.1.0.0 and WLST OFFLINE mode>
####<Mar 16, 2024 6:54:08 PM> <INFO> <Validator> <__validate_model_file> <WLSDPLY-05003> <Performing model validation on the /git/weblogic/wdt/DiscoveredMyDomain.yaml model file>
####<Mar 16, 2024 6:54:08 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the domainInfo section of the model file>
####<Mar 16, 2024 6:54:08 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the topology section of the model file>
####<Mar 16, 2024 6:54:08 PM> <INFO> <Validator> <__validate_single_path_in_archive> <WLSDPLY-05031> <Attribute FileName in model location topology:/Log references a relative file location myDomain.log.  This makes the model subject to failure unless the tool invoked from the correct location to resolve the relative path to the file. It is recommended to use a path token if the absolute path is expected to change between systems.>
####<Mar 16, 2024 6:54:09 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the resources section of the model file>
####<Mar 16, 2024 6:54:09 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05009> <Model file /git/weblogic/wdt/DiscoveredMyDomain.yaml does not contain a resources section, validation of resources was skipped.>
####<Mar 16, 2024 6:54:09 PM> <INFO> <Validator> <__validate_model_section> <WLSDPLY-05008> <Validating the appDeployments section of the model file>
####<Mar 16, 2024 6:54:09 PM> <INFO> <Validator> <__validate_single_path_in_archive> <WLSDPLY-05025> <Attribute SourcePath in model location appDeployments:/Application/basicWebappEjb references archive entry wlsdeploy/applications/basicWebappEjb.war but the archive file was not provided>
####<Mar 16, 2024 6:54:09 PM> <INFO> <vz_config_helper> <_create_file> <WLSDPLY-01662> <Creating target configuration file /git/weblogic/wdt/resource/wko-domain.yaml>
####<Mar 16, 2024 6:54:09 PM> <INFO> <crd_file_updater> <update_from_model> <WLSDPLY-01675> <Updating target output file "/git/weblogic/wdt/resource/wko-domain.yaml" from the kubernetes section of the model>

Issue Log for extractDomainResource version 3.5.4 running WebLogic version 14.1.1.0.0 offline mode:

Total:   SEVERE :    0  WARNING :    0

extractDomainResource.sh completed successfully (exit code = 0)

extract domain - created model
$ cat resource/wko-domain.yaml
apiVersion: weblogic.oracle/v8
kind: Domain
metadata:
    name: mydomain
    namespace: mydomain
    labels:
        weblogic.domainUID: mydomain
spec:
    domainHome: /app/domains/myDomain/
    domainHomeSourceType: FromModel
    image: '{{{imageName}}}'
    # Add any credential secrets that are required to pull the image
    imagePullSecrets: []
    webLogicCredentialsSecret:
        name: mydomain-weblogic-credentials
    serverPod:
        env:
          - name: JAVA_OPTIONS
            value: -Dweblogic.StdoutDebugEnabled=false
          - name: USER_MEM_ARGS
            value: '-Djava.security.egd=file:/dev/./urandom -Xms64m -Xmx256m '
    clusters:
      - clusterName: cluster1
        # replicas: 99  # Set a specific replica count for this cluster
        serverPod:
            affinity:
                podAntiAffinity:
                    preferredDuringSchedulingIgnoredDuringExecution:
                      - weight: 100
                        podAffinityTerm:
                            labelSelector:
                                matchExpressions:
                                  - key: weblogic.clusterName
                                    operator: In
                                    values:
                                      - $(CLUSTER_NAME)
                            topologyKey: kubernetes.io/hostname
    configuration:
        istio:
            enabled: false
        introspectorJobActiveDeadlineSeconds: 900
        model:
            domainType: WLS
            modelHome: '{{{modelHome}}}'
            runtimeEncryptionSecret: mydomain-runtime-encryption-secret