keystoneclient and keystone has a duplicate common/cms.py

Bug #1142574 reported by Chmouel Boudjnah
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Jeffrey Zhang
python-keystoneclient
Fix Released
Low
Jeffrey Zhang

Bug Description

There is two cms.py in keystoneclient and keystone, should we :

1) keep the one in keystoneclient and make keystone using it.
2) move it to openstack-common
3) keep it as it is.

in any case we will need to sync them (probably the one from keystone is the accurate one) :

http://pastie.org/private/izldwojqcuhlhniq8cbtg

Revision history for this message
Dolph Mathews (dolph) wrote :

keystone.common.cms should be removed in favor of keystoneclient.common.cms as keystone depends on keystoneclient.

Changed in keystone:
status: New → Triaged
Changed in python-keystoneclient:
status: New → Triaged
Changed in keystone:
importance: Undecided → Low
Changed in python-keystoneclient:
importance: Undecided → Low
Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

I can look at this. @Dolph, so for this bug, looks like all we need to do is remove the keystone.common.cms, update keystone's import references to use keystoneclient.common.cms . Doesn't look like we need to do anything in keystone client for this? could we just keep the keystone bug and close the keystoneclient one? or am i missing something here?

Changed in keystone:
assignee: nobody → Pradeep Kilambi (pkilambi)
Revision history for this message
Dolph Mathews (dolph) wrote :

Unassigning due to inactivity.

Changed in keystone:
assignee: Pradeep Kilambi (pkilambi) → nobody
Changed in keystone:
assignee: nobody → Chmouel Boudjnah (chmouel)
Changed in python-keystoneclient:
assignee: nobody → Chmouel Boudjnah (chmouel)
Revision history for this message
Dolph Mathews (dolph) wrote :

(just noticed Pradeep's question that I totally failed to answer) I added keystoneclient to this bug in case the two codebases have diverged to any extent. If that's the case, any new the additions in keystone might need to be added to keystoneclient.

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

@Pradeep feel free to take this if you like since now that Dolph had replied, either way we probably would need to make sure the two versions are in sync.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/50555

Changed in keystone:
assignee: Chmouel Boudjnah (chmouel) → Jeffrey Zhang (zhang-lei-fly)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/51772

Changed in python-keystoneclient:
assignee: Chmouel Boudjnah (chmouel) → Jeffrey Zhang (jeffrey4l)
status: Triaged → In Progress
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

Is there any way that the keystone can use the python-keystoneclient I modified when running UT?

Revision history for this message
Dolph Mathews (dolph) wrote :

Jeffrey: keystone will use whatever instance of keystoneclient is available in the python path.

Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

@dolph,
Yes, I know that.
My problem is "All the UTs in the https://review.openstack.org/50555 failed, because I changed some method signature in the python-keystoneclient". So the keystone will be not successful until the python-keystoneclient I changed is merged in to master.

I want know, whether there is another way besides waiting for the merge.

Revision history for this message
Dolph Mathews (dolph) wrote :

Ah, because it's cross-project, we currently have to merge them in order... until:

  https://bugs.launchpad.net/openstack-ci/+bug/1021879

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/51772
Committed: http://github.com/openstack/python-keystoneclient/commit/0c8faa3efc81ea4d2d93f64c118a965091bdf5b4
Submitter: Jenkins
Branch: master

commit 0c8faa3efc81ea4d2d93f64c118a965091bdf5b4
Author: Lei Zhang <email address hidden>
Date: Tue Oct 15 11:21:56 2013 +0800

    Migrate the keystone.common.cms to keystoneclient

    - Add checking the openssl return code 2, related to following review

      https://review.openstack.org/#/c/22716/

    - Add support set subprocess to the cms, when we already know which
      subprocess to use.

    Closes-Bug: #1142574
    Change-Id: I3f86e6ca8bb7738f57051ce7f0f5662b20e7a22b

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Dolph Mathews (dolph)
Changed in python-keystoneclient:
milestone: none → 0.4.2
Dolph Mathews (dolph)
Changed in python-keystoneclient:
status: Fix Committed → Fix Released
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :
Changed in keystone:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.