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

View gets deleted although view tag was not changed

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: clearcase-plugin
    • Labels:
      None
    • Environment:
      Windows 7, CC 7.1.2.8, Latest Jenkins and Latest Clearcase Plugin
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          bruce Dirk Kuypers added a comment -

          And again after rebooting my master today due to Windows updates:

          17:42:37 Started by user Dirk Kuypers
          17:42:37 [EnvInject] - Loading node environment variables.
          17:42:37 Building on master in workspace C:\Snapshots
          17:42:37 [ContestContinuous] $ cleartool lsview -cview -s
          17:42:37 SA_MU_1SP1CM-BUILD_CONTEST-MASTER_ContestContinuous
          17:42:37 [Snapshots] $ cleartool lsview sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous
          17:42:37 cleartool: Error: No matching entries found for view tag "sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous".
          17:42:37 FATAL: Base ClearCase failed. exit code=1
          17:42:37 [INFO] computeChangeLogBeforeCheckout = false
          17:42:37 [INFO] computeChangeLogAfterCheckout = true
          17:42:37 [Snapshots] $ cleartool lsview sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous
          17:42:37 cleartool: Error: No matching entries found for view tag "sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous".
          17:42:38 FATAL: Base ClearCase failed. exit code=1
          17:42:38 [ContestContinuous] $ cleartool lsview -cview -s
          17:42:38 SA_MU_1SP1CM-BUILD_CONTEST-MASTER_ContestContinuous
          17:42:38 Removing view because it doesn't match with our view tag.
          17:42:38 [Snapshots] $ cleartool rmview -force ContestContinuous
          17:43:01 [Snapshots] $ cleartool mkview -snapshot -tag sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous -vws \\CONTEST-MASTER\ccstg_c\views\sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous.vws ContestContinuous
          17:43:03 Created view.

          Does it have something to do with upper/lowercasing the user name?

          Show
          bruce Dirk Kuypers added a comment - And again after rebooting my master today due to Windows updates: 17:42:37 Started by user Dirk Kuypers 17:42:37 [EnvInject] - Loading node environment variables. 17:42:37 Building on master in workspace C:\Snapshots 17:42:37 [ContestContinuous] $ cleartool lsview -cview -s 17:42:37 SA_MU_1SP1CM-BUILD_CONTEST-MASTER_ContestContinuous 17:42:37 [Snapshots] $ cleartool lsview sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous 17:42:37 cleartool: Error: No matching entries found for view tag "sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous". 17:42:37 FATAL: Base ClearCase failed. exit code=1 17:42:37 [INFO] computeChangeLogBeforeCheckout = false 17:42:37 [INFO] computeChangeLogAfterCheckout = true 17:42:37 [Snapshots] $ cleartool lsview sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous 17:42:37 cleartool: Error: No matching entries found for view tag "sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous". 17:42:38 FATAL: Base ClearCase failed. exit code=1 17:42:38 [ContestContinuous] $ cleartool lsview -cview -s 17:42:38 SA_MU_1SP1CM-BUILD_CONTEST-MASTER_ContestContinuous 17:42:38 Removing view because it doesn't match with our view tag. 17:42:38 [Snapshots] $ cleartool rmview -force ContestContinuous 17:43:01 [Snapshots] $ cleartool mkview -snapshot -tag sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous -vws \\CONTEST-MASTER\ccstg_c\views\sa_mu_1sp1cm-build_CONTEST-MASTER_ContestContinuous.vws ContestContinuous 17:43:03 Created view. Does it have something to do with upper/lowercasing the user name?
          Hide
          vlatombe Vincent Latombe added a comment -

          The problem comes from the output added by Jenkins core (because clearcase commands can leave a view_server process behind).

          Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information

          This is added to standard output of the slave, so it interferes with the command line output parsing of the clearcase plugin.

          Show
          vlatombe Vincent Latombe added a comment - The problem comes from the output added by Jenkins core (because clearcase commands can leave a view_server process behind). Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information This is added to standard output of the slave, so it interferes with the command line output parsing of the clearcase plugin.

            People

            • Assignee:
              vlatombe Vincent Latombe
              Reporter:
              bruce Dirk Kuypers
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: