https://github.com/ManageIQ/manageiq/pull/17033
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/037c4273a1fcbc70d19468d7e2a0b764622e5f1f commit 037c4273a1fcbc70d19468d7e2a0b764622e5f1f Author: Lucy Fu <lufu> AuthorDate: Wed Feb 21 08:20:17 2018 -0500 Commit: Lucy Fu <lufu> CommitDate: Fri Feb 23 15:36:52 2018 -0500 Changes to catch the retirement requester in automate. https://bugzilla.redhat.com/show_bug.cgi?id=1547527 app/models/mixins/retirement_mixin.rb | 13 ++++++++++--- spec/models/vm/retirement_management_spec.rb | 15 ++++++++++++++- 2 files changed, 24 insertions(+), 4 deletions(-)
Verified on 5.10.0.4 After a POST to /api/vms/<vmId> with {'action': 'retire'}, automation.log shows 'userid' along with 'user_id' in the root object and 'retirement_initiator' is 'user' [----] I, [2018-07-18T15:57:07.115636 #59775:109ef88] INFO -- : <AEMethod [/ManageIQ/Infrastructure/VM/Retirement/StateMachines/Methods/start_retirement]> Starting [----] I, [2018-07-18T15:57:07.605550 #59775:10aba1c] INFO -- : <AEMethod start_retirement> Listing Root Object Attributes: [----] I, [2018-07-18T15:57:07.610691 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_next_state: [----] I, [2018-07-18T15:57:07.611660 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_provider_category: infrastructure [----] I, [2018-07-18T15:57:07.612561 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_result: ok [----] I, [2018-07-18T15:57:07.613510 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_retry_server_affinity: false [----] I, [2018-07-18T15:57:07.614381 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_state: StartRetirement [----] I, [2018-07-18T15:57:07.615339 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_state_max_retries: 100 [----] I, [2018-07-18T15:57:07.616183 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_state_retries: 0 [----] I, [2018-07-18T15:57:07.617021 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_state_started: 2018-07-18 19:57:05 UTC [----] I, [2018-07-18T15:57:07.618075 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_state_step: main [----] I, [2018-07-18T15:57:07.618899 #59775:138a6fc] INFO -- : <AEMethod start_retirement> ae_status_state: on_entry [----] I, [2018-07-18T15:57:07.620308 #59775:138a6fc] INFO -- : <AEMethod start_retirement> event_stream: #<MiqAeMethodService::MiqAeServiceMiqEvent:0x000000000eaef200> [----] I, [2018-07-18T15:57:07.621055 #59775:138a6fc] INFO -- : <AEMethod start_retirement> event_stream_id: 401 [----] I, [2018-07-18T15:57:07.621828 #59775:138a6fc] INFO -- : <AEMethod start_retirement> event_type: request_vm_retire [----] I, [2018-07-18T15:57:07.624042 #59775:138a6fc] INFO -- : <AEMethod start_retirement> host: hypv2016-01.ms01.cfme2.lab.eng.rdu2.redhat.com [----] I, [2018-07-18T15:57:07.624767 #59775:138a6fc] INFO -- : <AEMethod start_retirement> host_id: 2 [----] I, [2018-07-18T15:57:07.625910 #59775:138a6fc] INFO -- : <AEMethod start_retirement> miq_event: #<MiqAeMethodService::MiqAeServiceMiqEvent:0x0000000012a6d300> [----] I, [2018-07-18T15:57:07.626655 #59775:138a6fc] INFO -- : <AEMethod start_retirement> miq_event_id: 401 [----] I, [2018-07-18T15:57:07.627741 #59775:138a6fc] INFO -- : <AEMethod start_retirement> miq_group: #<MiqAeMethodService::MiqAeServiceMiqGroup:0x000000000d932698> [----] I, [2018-07-18T15:57:07.628890 #59775:138a6fc] INFO -- : <AEMethod start_retirement> miq_server: #<MiqAeMethodService::MiqAeServiceMiqServer:0x0000000012a77c88> [----] I, [2018-07-18T15:57:07.629699 #59775:138a6fc] INFO -- : <AEMethod start_retirement> miq_server_id: 1 [----] I, [2018-07-18T15:57:07.630458 #59775:138a6fc] INFO -- : <AEMethod start_retirement> object_name: Event [----] I, [2018-07-18T15:57:07.631221 #59775:138a6fc] INFO -- : <AEMethod start_retirement> retirement_initiator: user [----] I, [2018-07-18T15:57:07.632461 #59775:138a6fc] INFO -- : <AEMethod start_retirement> tenant: #<MiqAeMethodService::MiqAeServiceTenant:0x000000000d932c38> [----] I, [2018-07-18T15:57:07.633272 #59775:138a6fc] INFO -- : <AEMethod start_retirement> type: ManageIQ::Providers::Microsoft::InfraManager::Vm [----] I, [2018-07-18T15:57:07.634502 #59775:138a6fc] INFO -- : <AEMethod start_retirement> user: #<MiqAeMethodService::MiqAeServiceUser:0x000000000d933200> [----] I, [2018-07-18T15:57:07.635300 #59775:138a6fc] INFO -- : <AEMethod start_retirement> user_id: 1 [----] I, [2018-07-18T15:57:07.636087 #59775:138a6fc] INFO -- : <AEMethod start_retirement> userid: admin [----] I, [2018-07-18T15:57:07.638142 #59775:138a6fc] INFO -- : <AEMethod start_retirement> vm: bsquizz-rhel74 [----] I, [2018-07-18T15:57:07.638934 #59775:138a6fc] INFO -- : <AEMethod start_retirement> vm_id: 106 [----] I, [2018-07-18T15:57:07.639762 #59775:138a6fc] INFO -- : <AEMethod start_retirement> vmdb_object_type: vm [----] I, [2018-07-18T15:57:07.640444 #59775:10aba1c] INFO -- : <AEMethod start_retirement> ===========================================