Load the metadata definitions into database

Load definition of the available metadata that can be used on
different types of resources (images, artifacts, volumes, etc).
A definition includes the properties type, its key, it’s
description, and it’s constraints.

Change-Id: Ia768a397dbe77b3026392dbb02b9bb9a52f6f576
Closes-Issue: PROD-10937
diff --git a/glance/server.sls b/glance/server.sls
index b9f7bc9..97ff0a3 100644
--- a/glance/server.sls
+++ b/glance/server.sls
@@ -92,6 +92,7 @@
   - name: glance-glare
   - require_in:
     - cmd: glance_install_database
+    - cmd: glance_load_metadatafs
   - watch:
     - file: /etc/glance/glance-glare.conf
 
@@ -126,6 +127,12 @@
   - require:
     - service: glance_services
 
+glance_load_metadatafs:
+  cmd.run:
+  - name: glance-manage db_load_metadefs
+  - require:
+    - cmd: glance_install_database
+
 {%- if server.get('image_cache', {}).get('enabled', False) %}
 glance_cron_glance-cache-pruner:
   cron.present: