lscm workspace delete: the stream is also deleted
Hi,
When I issued a command 'lscm workspace delete 1000' in AIX and the 1000 was the number for my workspace, the stream was also deleted. My workspace, component and stream were all in the same name 'NW'. After this command, the stream was deleted. My original intention was to just delete the workspace.
Questions:
i. is this a normal behavior? The command will delete both the workspace and stream. When I checked the help, it may.
Usage: lscm workspace delete [options] <workspace>
workspace - The workspace or stream to delete. To specify the workspace or
stream, use its name, alias or UUID.
ii. is there any way to restore the deleted stream? I saw the thread about 'Recover deleted RTC Stream', but I still can't restore the stream;
iii. is there any log that it can show who deleted it? I know I did it ;) but wanted to know how to track it.
Thanks in advance.
Autorun
Accepted answer
James,
Deleting the workspace should not delete the stream unless the alias 1000 referred to the stream. Even if you had provided the name of the workspace/stream it would have returned an ambiguous workspace/stream message as it could not resolve to a single workspace/stream since your workspace and stream had the same name.
Can you do 'lscm list workspaces -n {name of workspace} -r {repo}' or 'lscm list streams -n {name of stream} -r {repo}' and verify if you still have the workspace and/or stream.
If you have the workspace you can recreate the stream from your workspace. You can also create a stream by adding the component that existed in the stream with the specific baseline if you had created a recent baseline in the stream.
One other answer
Hi Shashikant,
Thanks for the reply and apologized for my late response.
We found out,
i. Yes, 1000 referred to the stream. Hence, we accidentally deleted the stream by our mistake;
ii. I don't have the workspace anymore. However, the other developer had the workspace loaded and he could recover the stream for me.
We are good now.