-
Notifications
You must be signed in to change notification settings - Fork 8
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
Libraries' code is not accessible in recipe #47
Comments
Hi @Rahuloptum. Could you let us know the Chef version you are using and the version of the cookbook also? |
Thanks Chris, please find the requested details. |
OK thanks. Could you also add the stacktrace? |
Actually @Rahuloptum, it is likely that the Supermarket release is still not Chef 14-compliant. We are actively developing the cookbook 'websphere', git: '[email protected]:Sainsburys/chef-websphere.git', branch: 'scoped_cluser_members' |
@chrisminton I am executing this cookbook in local mode. If I run the default recipe of websphere cookbook then also getting same error. Don't know why same cookbook recipe can't read the libraries resources. |
It will be due to this: https://docs.chef.io/deprecations_namespace_collisions.html. So the 1.0.2 version of this cookbook does not correctly handle these issues using Chef 14. |
Thanks @chrisminton it has fixed that error,but getting another error regarding wsadmin_exec(). Code: # creates an empty cluster
action :create do
unless cluster_exists?(#{new_resource.cluster_name})
cmd = "AdminClusterManagement.createClusterWithoutMember('#{new_resource.cluster_name}')"
wsadmin_exec(("wasadmin createClusterWithoutMember #{new_resource.cluster_name}",cmd)
save_config
end
end Error:
Cookbook Trace:/home/wsuser/.chef/local-mode-cache/cache/cookbooks/websphere/libraries/websphere_app_server.rb:2:in |
Hmm, @Rahuloptum do you still have 1.0.2 specified in your metadata.rb? If so, change the pinning to |
@chrisminton Yes I changed it, but didn't help. if I pass message alone in " " then also getting the same error. In websphere_cluster.rb wsadmin_exec("wasadmin createClusterWithoutMember" , cmd ) |
hmm, try changing it to: wsadmin_exec("createClusterWithoutMember: #{new_resource.cluster_name} ", cmd) |
It still appears that you are on an older version of the cookbook there. The latest on that branch has libraries/websphere_cluster.rb:35: wsadmin_exec("createClusterWithoutMember #{new_resource.cluster_name}", cmd) note the absence of the |
I downloaded the latest now and running it. Still getting the same error. Berksfile: source 'https://supermarket.chef.io' cookbook 'chef-websphere', git: 'https://github.com/Sainsburys/chef-websphere.git', branch: 'scoped_cluster_members' |
@Rahuloptum it would be this
|
@chrisminton I believe I am using the correct cookbook under branch "scoped_cluser_members" . Running handlers:
|
Hi @Rahuloptum - it doesn't appear to be, as the branch has
rather than
as you have in your error Can you post a gist of your metadata, recipe etc.? Perhaps we can understand what is happening with more context. |
Thank you so much @chrisminton :) It's working. I am able to create cluster now. |
Hi,
I am from Optum global solutions and working as an IT professionals. I am middleware infrastructure engineer and currently working on websphere installation/configuration automation. I am trying to use websphere cookbook which is present in chef supermarket and git hub. Unfortunately I am getting below error while creating the websphere cluster, Could you please suggest here ?
Chef: https://supermarket.chef.io/cookbooks/websphere
Git hub: https://github.com/Sainsburys/chef-websphere
Code snippet :
Note: Websphere is already installed.
Error:
The text was updated successfully, but these errors were encountered: