workspaces and snapshots found in gui, but not by lscm
I have tried looking at the properties of the snapshots to identify a difference, but there is not much to them. From reading some docs, I see that a snapshot can be associated with either a stream or a workspace. I can not determine which that is when looking at the properties of the snapshot in the gui. I have confirmed I am using the same credentials in both the gui and lscm, and I am a JazzAdmin, Admin for the project area, and a role with every privilege available. I suspect there is something fundamental about either lscm or snapshots that I am not understanding. Like with the lscm list users command, it only shows users without a user id. I won't rant about how useless that is, but perhaps list snapshots is similar, only showing orphaned snapshots?
2 answers
Comments
Thank you everyone for your responses. Perhaps I simply don't understand what a prefix is. We have been under the impression is was simply what the snapshot name started with. When I run this command I get 10+ snapshots from the stream.
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm ts-qa-mainflexmain
(3899) "ss-mfm-dev-14.2.0.0.36" Feb 24, 2014 10:46 AM
(3900) "ss-mfm-dev-14.2.0.0.35" Feb 24, 2014 9:20 AM
(3901) "ss-mfm-dev-14.2.0.0.33" Feb 21, 2014 5:05 PM
(3902) "ss-mfm-dev-14.2.0.0.34" Feb 21, 2014 4:59 PM
(3903) "ss-mfm-dev-14.2.0.0.33" Feb 21, 2014 4:43 PM
(3904) "ss-mfm-dev-14.2.0.0.32" Feb 21, 2014 4:22 PM
(3905) "ss-mfm-dev-14.2.0.0.31" Feb 21, 2014 4:14 PM
However when I run the command I believe should find all snapshots starting with a portion of what I just confirmed exists, I get no snapshots found:
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm -n ss-mfm
No snapshots found.
Vince,
I am using v4.0.2 client libraries against a v4.0.4 server. Still not getting results:
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm -n "ss-mfm"
No snapshots found.
vthyng@mercury:~> scm list snapshots -r cm-rtc-ccm -n "ss-mfm"
No snapshots found.
In an attempt to get anything to return with the -n flag, I got this:
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm -n "a"
(3921) "atlasreports_production_build_20121108-0327" Nov 8, 2012 3:27 AM
(3922) "atlasreports_production_build_20121012-0518" Oct 12, 2012 5:18 AM
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm -n "s"
No snapshots found.
I installed the v4.0.4 scmtools as a test and that fixed it! But this is still confusing because I can't say that the prefix feature doesn't work from a v4.0.2 client against v4.0.4 server since I was able to get some results with -n "a".
Also just tried v4.0.3 scmtools and it is not able to use the prefix flag against our v4.0.4 server.
Comments
Vince Thyng
Feb 20 '14, 3:45 p.m.The fact that I can lscm compare and use the snapshot that I know is there leads me to believe that lscm list is only there to help identify deleted/orphaned objects. So perhaps someone can just confirm that for me.
Sonia Dimitrov
JAZZ DEVELOPER Feb 20 '14, 4:56 p.m.Hello Vince,
are you running the command with the "-m" option? Running without will give you 10 results be default.
Sonia
Vince Thyng
Feb 20 '14, 5:16 p.m.I am running -m with a large number to return all snapshots on the server, and then I filter with grep to find what I am interested in, because the -n feature doesn't seem to actually filter, and I can't seem to get the snapshots I am interested in to be returned.