glance-manage db load_metadefs does not load all resource_type_associations
glance-manage db load_metadefs does not load all resource_type_associations

The glance-manage db load_metadefs should create
metadef_namespace_resource_types entries for all resource_type_associations
listed in a given .json file. Unfortunately, load_metadefs currently,
only creates a metadef_namespace_resource_types entry if the associated
resource_type is new.

There are 6 resource_types and as a result only 6
metadef_namespace_resource_types records are generated instead of the
expected 31 (as of this writing).

The fix will now generate all metadef_namespace_resource_types.

Change-Id: I645f05620c134eac816cd9baf739b4305b307667
Closes-Bug: 1434761

darren-wang/gl,wkoathp/glance,rajalokan/glance,scripnichenko/glance,scripnichenko/glance,saeki-masaki/glance,kfwang/Glance-OVA-OVF,akash1808/glance,kfwang/Glance-OVA-OVF,akash1808/glance,openstack/glance,vuntz/glance,stevelle/glance,klmitch/glance,darren-wang/gl,ozamiatin/glance,ozamiatin/glance,paramite/glance,takeshineshiro/glance,JioCloud/glance,takeshineshiro/glance,jumpstarter-io/glance,jumpstarter-io/glance,dims/glance,saeki-masaki/glance,klmitch/glance,openstack/glance,JioCloud/glance,stevelle/glance,wkoathp/glance,rajalokan/glance,paramite/glance,vuntz/glance,openstack/glance,dims/glance