Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17896

View gets deleted although view tag was not changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • clearcase-plugin
    • None
    • Windows 7, CC 7.1.2.8, Latest Jenkins and Latest Clearcase Plugin

      I faced a strange error yesterday evening when a project should produce its nightly setup. The CC plugin says:

      Removing view because the view tag of the job SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x doesn't match the current view tag SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x

      I just copy both view tags here again for clarity:
      SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x

      They look absolutely the same to me?!?

      I also have seen this error after rebooting the master due to Windows updates. This only happens with views on my master, rebooting a slave with snapshots does not affect jobs running there.

      If could help with some command line investigations – no problem.
      Running one of the command like the log suggests causes an error when issued by hand:

      C:\Users\sa_mu_1sp1cm-build>cleartool lsview -cview -s SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      cleartool: Error: Extra arguments: "SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x"
      Usage: lsview [-short | -long] [-host hostname [-quick]]
      [-properties [-full | -text_mode] | -age]
      [-region 'network-region-pattern']
      [-cview | 'view-tag-pattern' ...

      -storage view-storage-pname ...
      -uuid view-uuid]

      Full Log of the job:

      19:44:18 [EnvInject] - Loading node environment variables.
      19:44:18 Building on master in workspace C:\Snapshots
      19:44:18 [RS-PQA-3.2x] $ cleartool lsview -cview -s
      19:44:18 SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      19:44:18 [Snapshots] $ cleartool lsview SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      19:44:18 SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x \\CONTEST-MASTER\ccstg_c\views\SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x.vws
      19:44:18 [INFO] computeChangeLogBeforeCheckout = false
      19:44:18 [INFO] computeChangeLogAfterCheckout = true
      19:44:18 [Snapshots] $ cleartool lsview SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      19:44:18 SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x \\CONTEST-MASTER\ccstg_c\views\SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x.vws
      19:44:18 [RS-PQA-3.2x] $ cleartool lsview -cview -s
      19:44:18 SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      19:44:28 Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information
      19:44:28 Removing view because the view tag of the job SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x doesn't match the current view tag SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      19:44:28 Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information
      19:44:28 [Snapshots] $ cleartool rmview -force RS-PQA-3.2x
      19:44:28 Removing references from VOB "\ts89xy_cm" ...
      19:44:28 Removed references to view "C:\Snapshots\RS-PQA-3.2x" from VOB "\ts89xy_cm".
      19:44:28 Removing references from VOB "\contest_sw" ...
      19:44:29 Removed references to view "C:\Snapshots\RS-PQA-3.2x" from VOB "\contest_sw".
      19:44:29 Removing references from VOB "\contest_bin" ...
      19:44:29 Removed references to view "C:\Snapshots\RS-PQA-3.2x" from VOB "\contest_bin".
      19:44:29 Removing references from VOB "\contest_sw_cmwperf" ...
      19:44:29 Removed references to view "C:\Snapshots\RS-PQA-3.2x" from VOB "\contest_sw_cmwperf".
      19:44:49 Removing the job view tag because we detected that it already exists.
      19:44:49 [Snapshots] $ cleartool rmview -force -tag SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      19:44:49 cleartool: Error: View tag not found: "SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x".
      19:44:49 cleartool: Error: Unable to remove view "SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x".
      19:44:49 FATAL: Base ClearCase failed. exit code=1
      19:44:49 [Snapshots] $ cleartool rmtag -view SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x
      19:44:49 cleartool: Error: Unable to remove "SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x": ClearCase object not found.
      19:44:49 FATAL: Base ClearCase failed. exit code=1
      19:44:49 java.io.IOException: cleartool did not return the expected exit code. Command line="rmtag -view SA_MU_1SP1CM-BUILD_CONTEST-MASTER_RS-PQA-3.2x", actual exit code=1
      19:44:49 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:121)
      19:44:49 at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:812)
      19:44:49 at hudson.plugins.clearcase.ClearToolExec.rmtag(ClearToolExec.java:786)
      19:44:49 at hudson.plugins.clearcase.action.SnapshotCheckoutAction.rmviewtag(SnapshotCheckoutAction.java:173)
      19:44:49 at hudson.plugins.clearcase.action.SnapshotCheckoutAction.cleanAndCreateViewIfNeeded(SnapshotCheckoutAction.java:135)
      19:44:49 at hudson.plugins.clearcase.action.BaseSnapshotCheckoutAction.checkout(BaseSnapshotCheckoutAction.java:53)
      19:44:49 at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:667)
      19:44:49 at hudson.model.AbstractProject.checkout(AbstractProject.java:1369)
      19:44:49 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
      19:44:49 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      19:44:49 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
      19:44:49 at hudson.model.Run.execute(Run.java:1575)
      19:44:49 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      19:44:49 at hudson.model.ResourceController.execute(ResourceController.java:88)
      19:44:49 at hudson.model.Executor.run(Executor.java:241)
      19:44:49 [WARNINGS] Skipping publisher since build result is FAILURE

            Unassigned Unassigned
            bruce Dirk Kuypers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: