Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wls_machine defined type is broken #352

Closed
racorretjer opened this issue Jun 27, 2016 · 5 comments
Closed

wls_machine defined type is broken #352

racorretjer opened this issue Jun 27, 2016 · 5 comments

Comments

@racorretjer
Copy link
Contributor

racorretjer commented Jun 27, 2016

Hi!

When I use the wls_machine defined type, I'm getting the following errors:

Error: Could not prefetch wls_machine provider 'simple': undefined local variable or method 'weblogicConnectUrL' for Puppet::Type::Wls_machine:Class
Error: Could not set 'present' on ensure: undefined local variable or method 'weblogicConnectUrL' for #<Puppet::Type::Wls_machine:0x7f74626ba4f8>
Wrapped exception:
undefined local variable or method 'weblogicConnectUrL' for #<Puppet::Type::Wls_machine:0x7f74626ba4f8>

did the way that that type is used changed? do I have to set the weblogicConnectUrL variable elsewhere somehow?
Thanks

@biemond
Copy link
Owner

biemond commented Jun 27, 2016

Hi,

oh strange , did you first set wls_settings plus the default entry .
This will make sure it will start the wls_daemon domain before wls_machine is invoked.

@racorretjer
Copy link
Contributor Author

I do have wls_machine require wls_setting['default'] and I can see it executing before wls_machine ever runs, but I don't see any mention of wls_daemon
not sure if that's what you mean?

is the wls_setting (with the name default on it) the default setting or is it something else?

@biemond
Copy link
Owner

biemond commented Jun 27, 2016

yeah , if you use 'aaa:node1' then you need a wls_setting with the name aaa with 'node1' it will use the default wls_setting.

you can run puppet in debug mode

wls_setting_instances:
  'default':
    user:                         *wls_os_user
    weblogic_home_dir:            *wls_weblogic_home_dir
    connect_url:                  "t3://%{hiera('domain_adminserver_address')}:7001"
    weblogic_user:                *wls_weblogic_user
    weblogic_password:            *domain_wls_password

machines_instances:
  'LocalMachine':
    ensure:         'present'
    listenaddress:  *domain_adminserver_address
    listenport:     '5556'
    machinetype:    'UnixMachine'
    nmtype:         'SSL'
  'Node1':
    ensure:         'present'
    listenaddress:  *domain_node1_address
    listenport:     '5556'
    machinetype:    'UnixMachine'
    nmtype:         'SSL'

@racorretjer
Copy link
Contributor Author

racorretjer commented Jun 27, 2016

For the moment, I'm not using hiera, but that's the equivalent (somewhat) on what I have on my manifest - I set up a wls_setting resource called 'default' and it has all of my... well defaults.
afterwards, I create a set of machines that all require that wls_setting to be in place beforehand.

Also, the domain and nodemanager are all present and functioning before wls_setting is invoked

Thing is, I had gotten it to work previously.

@biemond
Copy link
Owner

biemond commented Jun 27, 2016

it is working for me with the latest/greatest version of orawls

maybe this effects you #343

==> admin: Info: index wls_machine
==> admin: Info: Executing: wlstScript with action index
==> admin: Info: domain found default
==> admin: Info: Executing wls-script /tmp/wlstScript20160628-10841-1n83pxs.py with timeout = 120
==> admin: Info: Connecting to wls on url t3s://10.10.10.10:7002
==> admin: Info: domain found plain
==> admin: Info: Executing wls-script /tmp/wlstScript20160628-10841-1n83pxs.py with timeout = 120
==> admin: Info: Connecting to wls on url t3://10.10.10.10:7101
==> admin: Info: create default/Node1
==> admin: Info: Executing: wlstScript with action
==> admin: Info: Got the right domain default script, now execute WLST
==> admin: Info: Executing wls-script /tmp/wlstScript20160628-10841-nuvcfc.py with timeout = 120
==> admin: Info: Connecting to wls on url t3s://10.10.10.10:7002
==> admin: Info: Skip WLST for domain plain
==> admin: Notice: /Stage[main]/Basic_config/Wls_machine[Node1]/ensure: created
==> admin: Info: create default/Node2
==> admin: Info: Executing: wlstScript with action
==> admin: Info: Got the right domain default script, now execute WLST
==> admin: Info: Executing wls-script /tmp/wlstScript20160628-10841-vozwg5.py with timeout = 120
==> admin: Info: Connecting to wls on url t3s://10.10.10.10:7002
==> admin: Info: Skip WLST for domain plain
==> admin: Notice: /Stage[main]/Basic_config/Wls_machine[Node2]/ensure: created
==> admin: Info: create plain/Node1
==> admin: Info: Executing: wlstScript with action
==> admin: Info: Skip WLST for domain default
==> admin: Info: Got the right domain plain script, now execute WLST
==> admin: Info: Executing wls-script /tmp/wlstScript20160628-10841-20e8ra.py with timeout = 120
==> admin: Info: Connecting to wls on url t3://10.10.10.10:7101
==> admin: Notice: /Stage[main]/Basic_config/Wls_machine[plain/Node1]/ensure: created
==> admin: Info: create plain/Node2
==> admin: Info: Executing: wlstScript with action
==> admin: Info: Skip WLST for domain default
==> admin: Info: Got the right domain plain script, now execute WLST
==> admin: Info: Executing wls-script /tmp/wlstScript20160628-10841-qa8my.py with timeout = 120
==> admin: Info: Connecting to wls on url t3://10.10.10.10:7101
==> admin: Notice: /Stage[main]/Basic_config/Wls_machine[plain/Node2]/ensure: created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants