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

Add my_zone to Service Orchestration. #15533

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

tinaafitz
Copy link
Member

Service Retirement attempts to queue the request_service_retire event to the proper zone which is available through the Service VMs. The zone is nil if there are no Service VMs. Getting the zone from the service_template.my_zone should resolve this issue.

https://bugzilla.redhat.com/show_bug.cgi?id=1458011

@tinaafitz
Copy link
Member Author

@miq-bot assign @gmcculloug
cc @mkanoor
@miq-bot add_label bug, services, retirement

@@ -83,6 +83,10 @@ def post_provision_configure
assign_vms_owner
end

def my_zone
service_template.try(:my_zone)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed the problem with using service_template is that it can be deleted or changed to reference a different provider from when the service was deployed. Better to reference the provider from the service_resources relationship to lookup the zone and use super if that is nil.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmcculloug Changed as discussed.

Zone is available through the Service VMs, but is incorrect when there
are no Service VMs.

https://bugzilla.redhat.com/show_bug.cgi?id=1458011
@gmcculloug gmcculloug merged commit d372c42 into ManageIQ:master Jul 11, 2017
@gmcculloug gmcculloug added this to the Sprint 65 Ending Jul 24, 2017 milestone Jul 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants