No event for snapshot deletion #22108
Replies: 2 comments 1 reply
-
I'm not even sure what's going on here as that's a DRb error - @agrare Thoughts here? |
Beta Was this translation helpful? Give feedback.
-
@svinopterix I think your best bet is to use the
Where did you find that message? I don't think that is a DRb failure it looks more like the DRb based queue preloading between workers and MiqServer |
Beta Was this translation helpful? Give feedback.
-
Hello,
We need to send email notifications for creation and deletion of VM shapshots on VMware.
When creating snapshot we catch the respective event and trigger state machine on it, which sends a notification.
MiqAeEvent.build_evm_event >> event=<:request_vm_create_snapshot> inputs=<{:vm=>#<ManageIQ::Providers::Vmware::InfraManager::Vm ......
But when deleting a snapshot we get as follows. Is it possble to turn this message into event and trigger state machine on it?
#<DRb::DRbUnknown:0x000055f19ba9c508 @name="MiqQueue", @buf="\x04\bo:\rMiqQueue\x16:\x10@new_recordF:\x10@attributeso:\x1EActiveModel::AttributeSet\x06;\a{!I\"\aid\x06:\x06ETo:)ActiveModel::Attribute::FromDatabase\n:\n@name@\b:\x1C@value_before_type_casti\x03Z\xA4\xA1:\n@typeo:\x1FActiveModel::Type::Integer\t:\x0F@precision0:\v@scale0:\v@limiti\r:\v@rangeo:\nRange\b:\texclT:\nbeginl-\t\x00\x00\x00\x00\x00\x00\x00\x80:\bendl+\t\x00\x00\x00\x00\x00\x00\x00\x80:\x18@original_attribute0:\v@valuei\x03Z\xA4\xA1I\"\x0Etarget_id\x06;\tTo;\n\n;\v@\x0E;\f0;\r@\n;\x170;\x180I\"\rpriority\x06;\tTo;\n\n;\v@\x10;\fii;\ro;\x0E\t;\x0F0;\x100;\x11i\t;\x12o;\x13\b;\x14T;\x15l-\a\x00\x00\x00\x80;\x16l+\a\x00\x00\x00\x80;\x170;\x18iiI\"\x10method_name\x06;\tTo;\n\n;\v@\x16;\fI\"\x11invoke_tasks\x06;\tT;\ro:\x1EActiveModel::Type::String\b;\x0F0;\x100;\x110;\x170;\x18I\"\x11invoke_tasks\x06;\tTI\"\nstate\x06;\tTo;\n\n;\v@\e;\fI\"\nready\x06;\tT;\r@\x19;\x170;\x18I\"\nready\x06;\tTI\"\x0Fcreated_on\x06;\tTo;\n\t;\v@\x1F;\fIu:\tTime\r\xA7\xA1\x1E\xC02+?B\t:\rnano_numi%:\rnano_deni\x06:\rsubmicro\"\a\x03 :\tzoneI\"\bUTC\x06;\tF;\rU:JActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter[\t:\v__v2__[\x00[\x00o:@ActiveRecord::ConnectionAdapters::PostgreSQL::OID::DateTime\b;\x0F0;\x100;\x110;\x170I\"\x0Fupdated_on\x06;\tTo;\n\t;\v@);\f@#;\rU;\x1F[\t; [\x00[\x00@(;\x170I\"\x11lock_version\x06;\tTo;\n\t;\v@/;\fi\x00;\rU:'ActiveRecord::Locking::LockingType[\t; [\x00[\x00@\x12;\x170I\"\ftask_id\x06;\tTo;\n\n;\v@5;\f0;\r@\x19;\x170;\x180I\"\x0Fdeliver_on\x06;\tTo;\n\n;\v@7;\f0;\rU;\x1F[\t; [\x00[\x00@(;\x170;\x180I\"\x0Fqueue_name\x06;\tTo;\n\n;\v@=;\fI\"\fgeneric\x06;\tT;\r@\x19;\x170;\x18I\"\fgeneric\x06;\tTI\"\x0Fclass_name\x06;\tTo;\n\n;\v@A;\fI\"\aVm\x06;\tF;\r@\x19;\x170;\x18I\"\aVm\x06;\tFI\"\x10instance_id\x06;\tTo;\n\n;\v@E;\f0;\r@\n;\x170;\x180I\"\targs\x06;\tTo;\n\n;\v@G;\fI\"Z---\n- :snap_selected: 426\n :ids:\n - 480\n :task: remove_snapshot\n :userid: system\n\x06;\tT;\rU:#ActiveRecord::Type::Serialized[\t; [\a:\r@subtype:\v@coder[\ao:\x1DActiveRecord::Type::Text .......
Beta Was this translation helpful? Give feedback.
All reactions