Skip to content

Commit

Permalink
cloud_tenant_mapping not set for storage sub-providers
Browse files Browse the repository at this point in the history
Cinder and Swift Managers do not have cloud_tenant_mapping set.
The OpenStack CloudManager now sets each storage provider's
cloud_tenant_mapping whenever there is an update.

This is required because CloudTenancyMixin checks the storage
provider's cloud_tenant_mapping value, and not the cloud
provider's value.
  • Loading branch information
rwsu committed Mar 17, 2017
1 parent fc32e7e commit 936097c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/models/manageiq/providers/openstack/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ def ensure_swift_manager
true
end

after_save :save_on_other_managers

def save_on_other_managers
storage_managers.each do |manager|
manager.tenant_mapping_enabled = tenant_mapping_enabled
manager.save!
end
end

def supports_cloud_tenants?
true
end
Expand Down

0 comments on commit 936097c

Please sign in to comment.