Skip to content

Upstream "domain-manager" role to OpenStack #384

Closed

Description

@reqa

As a SCS developer, I want to upstream the "domain manger" role defined by #184 so that it is in line with OpenStack development (see https://specs.openstack.org/openstack/keystone-specs/specs/keystone/2023.1/default-service-role.html).

Definition of Ready:

  • User Story is small enough to be finished within one sprint
  • User Story is clear and understood by the whole team
  • Acceptance criteria are defined
  • Acceptance criteria are clear and understood by the whole team

Definition of Done:

  • All acceptance criteria are met
  • Changes have been reviewed
  • CI tests have run successfully
  • Documentation has been updated
  • Release Notes have been updated

Activity

  1. added
    IAM
    enhancement
    Community
    on Aug 16, 2023
  2. markus-hentsch commented on Sep 28, 2023

    @markus-hentsch

    (comment removed and migrated to a separate issue: #446)

  3. added
    SCS-VP10
    on Oct 26, 2023
  4. moved this from Backlog to Doing in Sovereign Cloud Stackon Oct 26, 2023
  5. moved this from Doing to Done in Sovereign Cloud Stackon Oct 26, 2023
  6. moved this from Done to Backlog in Sovereign Cloud Stackon Oct 26, 2023
  7. moved this from Backlog to Doing in Sovereign Cloud Stackon Oct 26, 2023
  8. 45 remaining items

  9. berendt commented on Jul 30, 2024

    @berendt

    Keystone just updated their code base with new code formatting which introduced a lot of merge conflicts, so I rebased all my changes in the upstream patchset and also used black to format my changes accordingly.

    I'm a bit surprised that they did it. I like to use Black myself and on all my projects. But with such an old code base like Keystone, where backports are important, you're really breaking a lot.

  10. markus-hentsch commented on Aug 9, 2024

    @markus-hentsch

    I attended today's reviewathon meeting with the Keystone devs. Here are the key points of open tasks to finish up the patchset:

    • I was asked to add the project manager persona to all rbac tests of keystone-tempest-plugin as kind of negative tests (they should not be allowed to do anything a domain manager can)
    • I need to add a release notes entry using the tool reno in the keystone repository
    • some lines being too long due to the variable naming of changed policy rule variables is not an issue anymore, because Keystone switched the tox configuration from flake8 to black (which is not as strict)
  11. markus-hentsch commented on Aug 14, 2024

    @markus-hentsch

    I attended today's reviewathon meeting with the Keystone devs. Here are the key points of open tasks to finish up the patchset:

    • I was asked to add the project manager persona to all rbac tests of keystone-tempest-plugin as kind of negative tests (they should not be allowed to do anything a domain manager can)
    • I need to add a release notes entry using the tool reno in the keystone repository
    • some lines being too long due to the variable naming of changed policy rule variables is not an issue anymore, because Keystone switched the tox configuration from flake8 to black (which is not as strict)

    I implemented and tested the requested changes and announced this in today's Keystone IRC meeting. Expecting to get another round of reviews soon.

  12. markus-hentsch commented on Aug 28, 2024

    @markus-hentsch

    I received another review on my upstream patchset suggesting a bunch of simplifications possible due to the role inheritance in Keystone. Because the role manager implies reader, a lot of reader permissions are already part of manager without the need to explicitly address the manager role in the policies.

    I incorporated the simplifications, retested it using both the SCS test script as well as the Tempest tests and pushed the changes. Shortly after I now got a positive vote on the Keystone patchset.

  13. markus-hentsch commented on Aug 29, 2024

    @markus-hentsch

    The Keystone patchset is now finally merged!

    Only the Tempest patchsets are left now.

  14. markus-hentsch commented on Aug 30, 2024

    @markus-hentsch

    Now that the Domain Manager patchset is merged, it will be part of the 2024.2 release ("Dalmatian"). The upcoming SCS release (R7) on the other hand will still be based on 2024.1 ("Caracal"), where the Domain Manager is not yet upstream. In addition to that, our current SCS Domain Manager standard1 is still in "Draft" state. As such, the Domain Manager would not yet be part of R7.

    Hence I suggest the following next steps:

    • Update the Domain Manager standard where necessary:
      • test with Caracal if disabling enforce_scope and enforce_new_defaults is still a requirement
      • check if all limitations still apply with Caracal, otherwise remove them
      • add implementation note that this will be an upstream feature in the future
    • Stabilize the Domain Manager standard for R7, so that it will be included as an actual standard
    • Create an issue in the SCS/standards repo to deprecate the Domain Manager standard once 2024.2 will be part of a future SCS release, leaving only the Roles standard to reference the manager role
    • Check the current documentation about the Domain Manager role for docs.scs.community (maybe update the admonition banner to mention the actual release version when the feature will be upstream)

    Footnotes

    1. https://github.com/SovereignCloudStack/standards/blob/main/Standards/scs-0302-v1-domain-manager-role.md ↩

  15. markus-hentsch commented on Aug 30, 2024

    @markus-hentsch

    The Keystone patchset is now finally merged!

    Only the Tempest patchsets are left now.

    I attended today's Reviewathon of the Keystone team and they gave the Tempest core patchset1 some review priority votes (since directly reviewing that is out of scope for the Keystone team). Additionally, I raised awareness of the keystone-tempest-plugin patchset2, which relies on that Tempest core patchset.

    Footnotes

    1. https://review.opendev.org/c/openstack/tempest/+/924133 ↩

    2. https://review.opendev.org/c/openstack/keystone-tempest-plugin/+/924222 ↩

  16. markus-hentsch commented on Sep 4, 2024

    @markus-hentsch

    I attended today's Keystone IRC meeting and asked about the releation between the Tempest patchsets and the release deadline. I was told:

    No, tests for a feature that has already merged don't need to be held up by the FF [Feature Freeze]

    I was advised to ping in #openstack-qa to ask people to merge the base Tempest patchset.


    I also asked about good places for documentation contributions. For SCS we have this: https://docs.scs.community/docs/iam/domain-manager-setup-and-usage/ and it would be good to move this upstream.

    The following places were suggested:

    1. https://docs.openstack.org/keystone/2024.1/user/
    2. https://docs.openstack.org/operations-guide/ops-projects-users.html

    It seems that "Administrative operation" from the SCS docs would best fit in 2 and "Domain Manager operation" would best fit in 1.

    UPDATE:

  17. markus-hentsch commented on Sep 9, 2024

    @markus-hentsch

    I was advised to ping in #openstack-qa to ask people to merge the base Tempest patchset.

    I did get a review now and was asked to implement unit tests for the changes. I did this for the dynamic credentials but had trouble adding tests for the preprovisioned credentials as the existing unit test implementation was non-obvious and lacked tests for the member and reader personas so I had little to build on. Eventually, a Tempest dev nudged me into the right direction thankfully1 and I added some tests.

    Footnotes

    1. https://review.opendev.org/c/openstack/tempest/+/924133/comments/2b165e48_50854718 ↩

  18. markus-hentsch commented on Sep 10, 2024

    @markus-hentsch

    The patchset for the Tempest core library has now been merged, leaving only the tempest-keystone-plugin patchset and the small documentation patchset for now. I've added this to this week's Keystone IRC meeting agenda.

  19. markus-hentsch commented on Oct 4, 2024

    @markus-hentsch

    FTR, patchsets for documentation and Tempest tests are still not merged. I raided today's Reviewathon meeting on Google Meet for a few minutes just to check if there is anything to do on my side (because I wasn't able to attend the IRC meetings recently) but it's just that it hasn't been reviewed by the some of the devs yet. There don't seem to be any unaddressed blockers, it just takes time until people get to it.

  20. markus-hentsch commented on Oct 16, 2024

    @markus-hentsch

    FTR, patchsets for documentation and Tempest tests are still not merged. I raided today's Reviewathon meeting on Google Meet for a few minutes just to check if there is anything to do on my side (because I wasn't able to attend the IRC meetings recently) but it's just that it hasn't been reviewed by the some of the devs yet. There don't seem to be any unaddressed blockers, it just takes time until people get to it.

    They are still open. I brought up the topic again in today's IRC meeting and one of the developers promised to convince the others to do their final reviews1.

    Footnotes

    1. https://meetings.opendev.org/meetings/keystone/2024/keystone.2024-10-16-15.05.log.html ↩

  21. markus-hentsch commented on Nov 19, 2024

    @markus-hentsch

    Upstream patchsets for dedicated tests and documentation are still open but the main contribution (implementation of the role) is concluded. So, technically the upstreaming of the role itself is done and I will close this issue to not prolong it any further unnecessarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

CommunityIAMIaaSSCS-VP10enhancementupstream

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions