<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Hi Colleen,
<div><br /></div>
<div>Thank you so much. Seems I need to rewrite resource driver, but I didn’t find where the Keystone uses the `[resource] driver` option[0]. The Resource Manger just creates an instance of resource_sql.Resource[1].</div>
<div>I changed the `[resource] driver` option to `sql1` in the `/etc/keystone/keystone.conf` file and everything works fine :)</div>
<div><br /></div>
<div><br /></div>
<div><br /></div>
<div>[0] <a href="https://github.com/openstack/keystone/blob/master/keystone/conf/resource.py#L19">https://github.com/openstack/keystone/blob/master/keystone/conf/resource.py#L19</a><br /></div>
<div>[1] <a href="https://github.com/openstack/keystone/blob/master/keystone/resource/core.py#L63">https://github.com/openstack/keystone/blob/master/keystone/resource/core.py#L63</a></div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont">
<div style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">--</div>
Sergey Vilgelm
<div style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<div style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><a href="https://www.vilgelm.info" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">https://www.vilgelm.info</a></div>
</div>
<div style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;" /></div>
</div>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">On Apr 1, 2019, 6:00 PM -0500, Colleen Murphy <colleen@gazlene.net>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">Hi Sergey,<br />
<br />
On Mon, Apr 1, 2019, at 1:10 PM, Sergey Vilgelm wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">Hello community,<br />
<br />
Please help me to figure out how to write a plugin for keystone to<br />
modify the current functionality. I planned to create a middleware, but<br />
found that the paste was removed in Rocky and now Keystone uses the<br />
hard-coded list of middleware/apps.<br />
<br />
I need to call an additional script/api when creating a domain or a<br />
project. Is it possible to implement this without patching Keystone?<br />
<br />
--<br />
Sergey Vilgelm<br />
https://www.vilgelm.info<br />
<br /></blockquote>
<br />
We have instructions for developing a plugin here:<br />
<br />
https://docs.openstack.org/keystone/latest/contributor/developing-drivers.html<br />
<br />
The short description is to subclass one of the base drivers (e.g. keystone.resource.backends.base.ResourceDriverBase) and to create a setuptools entrypoint for it, which you can then use to configure the driver option in keystone.conf.<br />
<br />
The driver interface is subject to change from release to release so be sure to read the release notes and update your driver implementation.<br />
<br />
Colleen<br />
<br /></blockquote>
</div>
</body>
</html>