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

I can't seem to get anything out of this handler #3

Open
corbesero opened this issue Apr 28, 2016 · 7 comments
Open

I can't seem to get anything out of this handler #3

corbesero opened this issue Apr 28, 2016 · 7 comments

Comments

@corbesero
Copy link

corbesero commented Apr 28, 2016

I am sure this is user error on my part, but I am trying to follow the README. I see the handler get installed. I even see an entry in the chef-client log that the handler is being called. But I see no SNS messages begin sent. I have added a subject and body template.

I don't know what else to try. Are there some other steps I need to perform to make it fully functional.

@zuazo zuazo added the question label Apr 28, 2016
@zuazo
Copy link
Owner

zuazo commented Apr 28, 2016

Please, provide the code snippet you are using and the Chef log output.

Keep in mind that if you want the handler to send reports when there are no errors, you will need to add :report to the node['chef_handler_sns']['supports'] attribute of this cookbook.

@corbesero
Copy link
Author

corbesero commented Apr 28, 2016

I was just about to include all that stuff, but then I found an error in one of the logs.

[2016-04-28T18:52:40+00:00] ERROR: Running exception handlers
[2016-04-28T18:52:40+00:00] ERROR: Report handler Chef::Handler::Sns raised #<Chef::Exceptions::ValidationFailed: Required argument **access_key** is missing!>

That doesn't come out in the normal output.

Anyway. I don't have an access key. I am using iam roles. Shouldn't it be falling back to the iam role ?

btw, I am using chef-client version 12.8.1 and chef_handler_sns 3.0.0

@zuazo
Copy link
Owner

zuazo commented Apr 28, 2016

You are right, it should try to use IAM roles by default. Can you paste your ohai command output?

@corbesero
Copy link
Author

corbesero commented Apr 28, 2016

i removed the /etc/passwd and group stuff. its still pretty big .

ohai.txt

I see there is no IAM info in it.
IAM info was removed by default from the ec2 hint/plugin a while back. I just touched the iam.json hints file, and now it is getting further. I think that is the problem

I actually don't like exposing that much information.

@corbesero
Copy link
Author

fixed. the iam.json hint must be enabled.

@lavanyaruth
Copy link

lavanyaruth commented Sep 11, 2018

Error executing action enable on resource 'chef_handler[Chef::Handler::Sns]'
NoMethodError
-------------
undefined method `new' for ChefHandler:Module

Iam new to chef, can anyone please explain me what makes this error to occur?

@zuazo
Copy link
Owner

zuazo commented Sep 12, 2018

@lavanyaruth this is an old closed issue. Please, don't add a comment here. Open a new issue if you need it.

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

No branches or pull requests

3 participants