Who can lock/unlock/obsolete streams (or any other object) in a clearcase project? Do you have to be a privilaged user to perform these operations on streams that you didn't create?
2 Answers
The cleartool lock
man page does mention:
- unix: type/object owner, VOB owner, root
- Windows: type/object owner, VOB owner, member of the ClearCase administrators group (which is the "privilege user": see "About ClearCase privileged users on Windows")
ClearCase privileged user
is a designation referring to a user account that is a member of theclearcase
group, which is granted ClearCase administrator rights when working in Full ClearCase.
Members of theclearcase
group are granted special ClearCase rights.
Regarding Stream, a lock -obsolete Stream:xxx
might be your only way to "remove" a Stream (especially if baselines were already created on it): see "Removing a UCM stream that has a delivered baseline".
Here are some examples for locking multiple instances of a same type of object.
To be sure a lock has actually worked, use the -fmt "%n %[locked]p\n"
format when listing Streams:
cleartool lsstream -obsolete -fmt "%n %[locked]p\n" -invob vob
The OP Raihan adds in the comments:
According to the ClearCase documentation it it recommended to lock a stream before creating a baseline to prevent users from delivering during the process.
Isn't it overkill for a 'Project Manager' or 'Integrator' to have the root privilege who is managing a single UCM project (not necessarily created by him)?
Two things:
- one, that means locking a stream with the -nuser option, in order to allow the integrator to perform operations (like making a baseline) on that stream.
- two, if the integrator is not the owner an in... "integration" stream, then he/she asks the ClearCase administrator to give him/her the ownership of said Stream.
cleartool protect -chown integratorLogin stream:aStream@\aPVob
-
According to the clearcase documentation it is recommended to lock a stream before creating a baseline to prevent users from delivering during the process. Isn't it overkill for a 'Project Manager' or 'Integrator' to have the
root
privilage who is managing a single UCM project (not necessarily created by him)?– RaihanDec 11, 2011 at 13:44 -
Thank you. So that means there can't be more than one integrator managing the same UCM project.– RaihanDec 11, 2011 at 13:56
-
@Raihan: correct, especially when it comes to locking a Stream. For other operations, you have some extended policies like www-304.ibm.com/support/docview.wss?uid=swg21147119 (
POLICY_CHSTREAM_UNRESTRICTED
), but it isn't for locking operations.– VonCDec 11, 2011 at 13:59
Far as I remember, you have to be one of the following:
- Stream owner/creator
- VOB owner
- Member of ClearCase group
- root (in UNIX \ Linux)
You may get further details by cleartool man lock