<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Exploring image import on Rocky. My cloud is a Devstack. To
      permit image import, I modified it so that it runs Glance not as
      uwsgi processes behind Apache, but as standalone processes.<br>
    </p>
    <p>The glance-direct image import process (create, stage, import)
      works - except that the configured plugin is simply ignored. <br>
    </p>
    <p>/etc/glance/glance-image-import.conf:</p>
    <p><font size="-1"><tt>[image_import_opts]</tt></font><br>
      <font size="-1"><tt>image_import_plugins = [inject_image_metadata]</tt></font><br>
      <br>
      <font size="-1"><tt>[inject_metadata_properties]</tt></font><br>
      <font size="-1"><tt>inject = "import-type":"user-import"</tt></font><br>
      <font size="-1"><tt>ignore_user_roles = admin</tt></font><br>
    </p>
    <p>/etc/glance/policy.json contains:</p>
    <p><tt><font size="-1">    "get_task": "",<br>
              "get_tasks": "",<br>
              "add_task": "",<br>
              "modify_task": "",<br>
              "tasks_api_access": "role:admin",<br>
        </font></tt></p>
    <p>Yet imported images are lacking the configured metadata. I added
      a few LOG calls. <tt>get_import_plugins()</tt> in <tt>glance/async/flows/plugins/__init__.py</tt>
      tells me that <tt>image_import_plugins = []</tt>. It looks like
      the configuration in <tt>glance-image-import.conf</tt> is ignored
      or not read at all.<br>
    </p>
    <p>How can I find out what I am doing wrong?<br>
    </p>
  </body>
</html>