Skip to content

[BUG] Keystone module needs to use the openstacksdk library #58032

Description

@waynew

Description

The current Keystone module, and Keystone-ng use two out of date/defunct libraries. The new openstack library is openstacksdk.

We discussed this at a meeting and decided that the best way to go about doing things would be to just have the Keystone model be an adapter across the outdated and the modern libraries. It should be relatively simple to delegate the existing behavior to the underlying libraries where it makes sense, depending on which is installed. We should still warn on using the defunct library, and note that support for that lib will be removed in future versions of Salt.

This will also provide an opportunity to write tests for the keystone module/state.

#55611 is one of the prior issues regarding this deprecation/removal.

I guess in a checklist form:

  • - Does openstacksdk support the same actions as the current keystone module implementation?
  • - Write tests & code for the new implementation
  • - Write tests for the keystone state to ensure that regardless of current module or openstacksdk module that the state can behave correctly. Practically speaking this will probably require a couple of integration tests if we already have the capability to run openstack tests.

This is a very high-level approach to the task, and the plan will probably not survive contact with the implementation. Absolutely feel free to update this as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behaviorseverity-high2nd top severity, seen by most users, causes major problems

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions