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

duplicated service retirement request #18558

Closed
easyljy opened this issue Mar 14, 2019 · 2 comments · Fixed by #19143
Closed

duplicated service retirement request #18558

easyljy opened this issue Mar 14, 2019 · 2 comments · Fixed by #19143

Comments

@easyljy
Copy link

easyljy commented Mar 14, 2019

ManageIQ version: hammer-2

We saw duplicated service retirement requests, only one of them gets success, and other failed due to the service already in retiring status.

Root cause: we have 3 zones in one region, the retirement_check is raised based on zones. So it gets 3 times to check retirement on same service.

# /var/www/miq/vmdb/app/models/miq_schedule_worker/jobs.rb

31  def retirement_check
32    queue_work_on_each_zone(:class_name => 'RetirementManager', :method_name => 'check')
33  end

See some logs and screenshot

[----] I, [2019-03-13T03:39:59.399752 #26862:798f60]  INFO -- : Q-task_id([r10000000000120_service_retire_request_10000000000120]) MIQ(ServiceRetireRequest#create_request_tasks) Creating request task instances for: <Service Retire for: OpenStack-10000000000118 - >...
[----] I, [2019-03-13T03:40:01.557824 #6614:f7af58]  INFO -- : Q-task_id([r10000000000121_service_retire_request_10000000000121]) MIQ(ServiceRetireRequest#create_request_tasks) Creating request task instances for: <Service Retire for: OpenStack-10000000000118 - >...
[----] I, [2019-03-13T03:40:01.767459 #6606:f7af58]  INFO -- : Q-task_id([r10000000000122_service_retire_request_10000000000122]) MIQ(ServiceRetireRequest#create_request_tasks) Creating request task instances for: <Service Retire for: OpenStack-10000000000118 - >...

image

@Fryguy
Copy link
Member

Fryguy commented Aug 3, 2019

@tinaafitz Please review.

@tinaafitz
Copy link
Member

@lfu Let's discuss this issue.

lfu added a commit to lfu/manageiq that referenced this issue Aug 12, 2019
Service is not based on zone. The retirement request should not be per zone.

ManageIQ#18558
lfu added a commit to lfu/manageiq that referenced this issue Aug 13, 2019
Service is not based on zone. The retirement request should not be per zone.

ManageIQ#18558
thearifismail pushed a commit to thearifismail/manageiq that referenced this issue Aug 21, 2019
Service is not based on zone. The retirement request should not be per zone.

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

Successfully merging a pull request may close this issue.

3 participants