biemond / biemond-orawls

Puppet 3/4 module for WebLogic provisioning module ( Linux & Solaris )
Apache License 2.0
63 stars 104 forks source link

Multiple OHS System Components on Standalone 12.2.1.2 #449

Open bFekete opened 7 years ago

bFekete commented 7 years ago

There is no support currently for multiple OHS instance on a standalone install.

Currently, the standalone OHS template already comes with an out-of-the-box machine ('localmachine') and a single instance of OHS ('ohs1') with default configuration values. (Ref: https://github.com/biemond/biemond-orawls/blob/master/templates/ohs/domain.py.erb#L18)

When trying to use orawls::utils::webtier to create another instance I receive this error:

File "/opt/oracle/installers/test_createWebtier.py", line 12, in ?
NameError: connect

While troubleshooting, I found that the wlst tool doesn't have connect or createOHSInstance as a command.

help('addHelpCommand')   Adds new command help for a command to an existing command group.
    help('addHelpCommandGroup')Adds a new command help group to those shown by the WLST help() command.
    help('addTemplate')      (Deprecated) Extend the current domain.
    help('cd')               Navigate the hierarchy of beans.
    help('closeDomain')      Close the current domain.
    help('closeTemplate')    Close the current domain template.
    help('create')           Create a configuration bean.
    help('delete')           Delete a configuration bean.
    help('dumpStack')        Display stack trace from the last exception.
    help('dumpVariables')    Display all the variables used by WLST.
    help('exit')             Exit WLST from the user session.
    help('get')              Return the value of the specified attribute.
    help('loadProperties')   Load property values from a file.
    help('ls')               List all the child beans and/or attributes.
    help('nm')               Determine whether WLST is connected to Node Manager.
    help('nmConnect')        Connect WLST to Node Manager.
    help('nmDiagnostics')    Get diagnostics for a system component.
    help('nmDisconnect')     Disconnect WLST from a Node Manager session.
    help('nmExecScript')     NodeManager executes the named script
    help('nmInvocation')     Invoke InvocationPlugin for a system component.
    help('nmKill')           Kill the specified server instance.
    help('nmLog')            Return the Node Manager log.
    help('nmRestart')        Restart the NodeManager instance.
    help('nmServerStatus')   Return the status of the server.
    help('nmSoftRestart')    Restart the specified system component server instance.
    help('nmStart')          Start a server using Node Manager.
    help('nmVersion')        Return the Node Manager server version.
    help('prompt')           Toggle prompt information.
    help('pwd')              Display the current working directory.
    help('readDomain')       Open an existing domain for updating.
    help('readTemplate')     (Deprecated) Open an existing domain template.
    help('recording')        Variable indicating whether WLST is recording.
    help('redirect')         Redirect WLST output to the specified filename.
    help('set')              Set the specified attribute value.
    help('setOption')        Set options related to a domain creation or update.
    help('startRecording')   Record all user interactions with WLST.
    help('stopNodeManager')  Stop Node Manager.
    help('stopRecording')    Stop recording WLST commands.
    help('stopRedirect')     Stop redirection of WLST output.
    help('updateDomain')     Update and save the current domain.
    help('writeDomain')      Write the domain configuration information.
    help('writeIniFile')     Convert WLST definitions to Python file.

Did something change in 12.2.1.2 to cause this issue or am I completely off track?

Tested with module version 1.0.60.

biemond commented 7 years ago

hi,

webtier is for Collocated combined with a weblogic domain,c see https://github.com/biemond/biemond-orawls-vagrant-12.2.1-infra-puppet4

for standalone you should create multiple ohs domains see https://github.com/biemond/biemond-orawls-vagrant-ohs-puppet4. never tried this, did you get some conflict

1 nodemanager ( or 1 per domain ) and start it up & connect to this and startup the multiple ohs instances

thanks and switch to v2 of orawls. Puppet 3 is getting old, EOL and is harder to maintain.

bFekete commented 7 years ago

I misused terminology. Instead of instances, I meant components. I'll eventually have a PR submitted just trying to work out some bugs.