Git Product home page Git Product logo

Comments (8)

djberg96 avatar djberg96 commented on July 17, 2024 1

@john-dupuy That should work.

from manageiq-providers-amazon.

djberg96 avatar djberg96 commented on July 17, 2024

@john-dupuy Can you show me your settings for aws event handling? I just want to make sure there's nothing unusual there.

from manageiq-providers-amazon.

john-dupuy avatar john-dupuy commented on July 17, 2024

@djberg96 I haven't touched the defaults for the ems_amazon config in the advanced settings yaml:

  :ems_amazon:
    :event_handling:
      :event_groups:
        :addition:
          :critical:
          - AWS_EC2_Instance_CREATE
          - AWS_API_CALL_RunInstances
          - AWS_API_CALL_CreateTags
        :update:
          :critical:
          - AWS_EC2_Instance_UPDATE
        :deletion:
          :critical:
          - AWS_EC2_Instance_DELETE
          - AWS_API_CALL_TerminateInstances
        :power:
          :critical:
          - AWS_EC2_Instance_running
          - AWS_EC2_Instance_shutting-down
          - AWS_EC2_Instance_stopped
          - EC2_Instance_State_change_Notification_running
          - EC2_Instance_State_change_Notification_shutting_down
          - EC2_Instance_State_change_Notification_stopped
          - EC2_Instance_State_change_Notification_stopping
          - EC2_Instance_State_change_Notification_terminated
          - EC2_Instance_State_change_Notification_pending
          - AWS_API_CALL_StopInstances
          - AWS_API_CALL_StartInstances

from manageiq-providers-amazon.

djberg96 avatar djberg96 commented on July 17, 2024

Not sure it's significant, but I think it was first added here: https://bugzilla.redhat.com/show_bug.cgi?id=1207865

from manageiq-providers-amazon.

djberg96 avatar djberg96 commented on July 17, 2024

@john-dupuy Can you test against master? I want to see if #633 made any difference. I'll do some testing on my end, too.

from manageiq-providers-amazon.

john-dupuy avatar john-dupuy commented on July 17, 2024

@djberg96 I don't have a way to test against master but I can pull the latest downstream appliance and apply the change that #633 brought in and test with that. Would that be enough?

from manageiq-providers-amazon.

djberg96 avatar djberg96 commented on July 17, 2024

As per our discussions offline, I am not able to replicate this. I tried termination via the console, the app, and a standalone script. In all cases I received two events per termination - AWS_API_CALL_TerminateInstances (start of termination) followed a couple minutes later by AWS_EC2_Instance_DELETE (termination complete).

At this point we're not sure if it's a 5.11 vs master issue or if it's something to do with the way the test case is setup. Still investigating...

from manageiq-providers-amazon.

john-dupuy avatar john-dupuy commented on July 17, 2024

After some more investigation it looks like this was a case of our EC2 instance being misconfigured. I (loosely) followed the steps outlined https://www.manageiq.org/docs/guides/providers/amazon_aws_config and got this working again.

EC2 has changed quite a bit since those docs were written, but the basic idea of them is still correct. After Step 3, I had to create a Rule under the CloudWatch Events to send them to the SNS Topic.

Screenshot from 2020-07-31 16-39-21

from manageiq-providers-amazon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.