Uploaded image for project: 'CernVM'
  1. CernVM
  2. CVM-1964

Transaction left open when template transaction fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: CernVM-FS 2.8
    • Fix Version/s: CernVM-FS 2.8.1
    • Component/s: CVMFS
    • Labels:
      None
    • Platforms:
      ANY
    • Development:

      Description

      When opening a template transaction trying to create a template into a directory that already exists, cvmfs report an error, but the transaction is left open.

       

      smosciat@student-ThinkPad:~/cvmfs2$ cvmfs_server transaction foo.ch                                                                                                                                         
      smosciat@student-ThinkPad:~/cvmfs2$ mkdir -p /cvmfs/foo.ch/test2/simo                                                                                                                                       
      smosciat@student-ThinkPad:~/cvmfs2$ cvmfs_server publish foo.ch                                                                                                                                             
      Using auto tag 'generic-2021-01-05T11:22:08Z'                                                                                                                                                               
      Processing changes...                                                                                                                                                                                       
      Waiting for upload of files before committing...                                                                                                                                                            
      Committing file catalogs...                                                                                                                                                                                 
      Wait for all uploads to finish                                                                                                                                                                              
      Exporting repository manifest                                                                                                                                                                               
      Statistics stored at: /var/spool/cvmfs/foo.ch/stats.db                                                                                                                                                      
      Tagging foo.ch                                                                                                                                                                                              
      Flushing file system buffers                                                                                                                                                                                
      Signing new manifest                                                                                                                                                                                        
      Remounting newly created repository revision                                                                                                                                                                
      smosciat@student-ThinkPad:~/cvmfs2$ cvmfs_server transaction -T /test/under/overlay=/test2/simo foo.ch                                                                                                      
      CernVM-FS: cloning template test/under/overlay --> test2/simo ... PANIC: /home/smosciat/cvmfs2/cvmfs/catalog_mgr_rw.cc : 369                                                                                
      destination 'test2/simo' exists, aborting                                                                                                                                                                   
      Aborted (core dumped)                                                                                                                                                                                       
      smosciat@student-ThinkPad:~/cvmfs2$ cvmfs_server transaction -T /test/under/overlay=/test2/simo/bar foo.ch                                                                                                  
      foo.ch is in a transaction but /cvmfs/foo.ch is not mounted read/write                                                                                                                                      
      Repository foo.ch is in a transaction and cannot be repaired.                                                                                                                                               
      --> Run `cvmfs_server abort $name` to revert and repair.                                                                                                                                                    
      (unexpected termination) cannot establish writable mountpoint                                                                                                                                               
                                                                                                                                                                                                                  
      Stacktrace:                                                                                                                                                                                                 
      /usr/bin/cvmfs_publish(+0x3df35) [0x5576797f6f35]                                                                                                                                                           
      /usr/bin/cvmfs_publish(+0x352f3) [0x5576797ee2f3]                                                                                                                                                           
      /usr/bin/cvmfs_publish(+0x3ae79) [0x5576797f3e79]                                                                                                                                                           
      /usr/bin/cvmfs_publish(+0x12d30) [0x5576797cbd30]                                                                                                                                                           
      /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f8bd10b7bf7]                                                                                                                                    
      /usr/bin/cvmfs_publish(_start+0x2a) [0x5576797cbeda]
       
      smosciat@student-ThinkPad:~/cvmfs2$ cvmfs_server abort -f foo.ch
      foo.ch is in a transaction but /cvmfs/foo.ch is not mounted read/write
      Note: Trying to remount /cvmfs/foo.ch read/write... success
      smosciat@student-ThinkPad:~/cvmfs2$ cvmfs_server transaction -T /test/under/overlay=/test2/simo/bar foo.ch
      CernVM-FS: cloning template test/under/overlay --> test2/simo/bar ... Waiting for upload of files before committing...
      Committing file catalogs...
      New revision: 31
      [done]
      

        Attachments

          Activity

            People

            Assignee:
            avalenzu Andrea Valenzuela Ramirez
            Reporter:
            smosciat Simone Mosciatti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: