'Cleartool mkview' pour la création de vues ClearCase Snapshot
-
05-07-2019 - |
Question
Bon après-midi,
On dirait que je suis un peu coincé dans CC-land ces jours-ci, mais j'ai une dernière question (espérons-le) concernant le traitement approprié du CC:
Lors de l'utilisation de l'assistant de création de vue CC, je peux très bien créer une vue Snapshot correcte sur ma machine. Toutefois, si vous essayez de faire la même chose avec la commande mkview, elle échoue ...
L'utilisation de l'assistant de création de vue aboutit à la vue (de travail) suivante:
cleartool> lsview battjo6r_view2
battjo6r_view2 \\Eh40yd4c\Views\battjo6r_view2.vws
cleartool> lsview -long battjo6r_view2
Tag: battjo6r_view2
Global path: \\Eh40yd4c\Views\battjo6r_view2.vws
Server host: Eh40yd4c
Region: CT_WORK
Active: NO
View tag uuid:f34cf43f.b4d048df.845d.ed:21:a2:9c:45:ff
View on host: Eh40yd4c
View server access path: D:\Views\battjo6r_view2.vws
View uuid: f34cf43f.b4d048df.845d.ed:21:a2:9c:45:ff
View attributes: snapshot
View owner: WW005\battjo6r
Cependant, lorsque vous essayez de créer la vue manuellement via
mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath D:\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2
... j'obtiens l'erreur suivante:
cleartool> mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath D:\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2
Created view.
Host-local path: Eh40yd4c:D:\Views\battjo6r_view2.vws
Global path: \\Eh40yd4c\Views\battjo6r_view2.vws
cleartool: Error: Unable to find view by uuid:6f99f7ae.6a5d40e4.ba32.37:8e:e5:a4:ed:18, last known at "<viewhost>:<stg_path>".
cleartool: Error: Unable to establish connection to snapshot view "6f99f7ae.6a5d40e4.ba32.37:8e:e5:a4:ed:18": ClearCase object not found
cleartool: Warning: Unable to open snapshot view "D:\SnapShotViews\battjo6r_view2".
cleartool: Error: Unable to create snapshot view "battjo6r_view2".
Removing the view ...
Avez-vous une idée du pourquoi? Est-ce que je manque quelque chose?
La solution
Cela est généralement dû au fait que le disque albd ne fonctionne pas.
En fait, il est en cours d'exécution, mais ClearCase tente de contacter le mauvais hôte.
Ici: chemin d'accès local à l'hôte: Eh40yd4c: D: \ Views \ battjo6r_view2.vws
est très suspect.
Essayez:
mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath \\Eh40yd4c\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2
C'est-à-dire: hpath = gpath.
ou, si la première commande échoue, également (c'est plus simple et peut fonctionner)
mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2
Espérons que ClearCase puisse déterminer lui-même l’hôte, le hpath et le gpath.
Autres conseils
cleartool mkview -snapshot -tag <tag_name> -vws \\<computer_name>\<views_folder>\<view_name> <path_of_localstorage>
Pour plus de détails, suivez ce lien. .