Details

    • Type: Story
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Beijing Release
    • Labels:
      None

      Description

      The ELK work externalized the logback file and the chef boot process of SDC-BE needs to create this file so it fails and SDC-BE never truly comes up properly.

      the culprit is the following:

      mountPath: /var/lib/jetty/config/catalog-be/logback.xml

      It seems SDC-FE has the same issue, however it used a work around that externalizes the file in /tmp and then overwrites the logback.xml file post container startup.  BE needs to do the same.

      Recipe: sdc-catalog-be::BE_8_logback
      
        * cookbook_file[/var/lib/jetty/config/catalog-be/logback.xml] action create[2017-10-10T19:32:24+00:00] INFO: cookbook_file[/var/lib/jetty/config/catalog-be/logback.xml] backed up to /root/chef-solo/backup/var/lib/jetty/config/catalog-be/logback.xml.chef-20171010193224.064812
      
       
      
         
      
          ================================================================================
      
          Error executing action `create` on resource 'cookbook_file[/var/lib/jetty/config/catalog-be/logback.xml]'
      
          ================================================================================
      
         
      
          Errno::EBUSY
      
          ------------
      
          Device or resource busy @ rb_file_s_rename - (/var/lib/jetty/config/catalog-be/.chef-logback20171010-11-1dn1pms.xml, /var/lib/jetty/config/catalog-be/logback.xml)
      
         
      
          Resource Declaration:
      
          ---------------------
      
          # In /root/chef-solo/cache/cookbooks/sdc-catalog-be/recipes/BE_8_logback.rb
      
         
      
            1: cookbook_file "/var/lib/jetty/config/catalog-be/logback.xml" do
      
            2:   source "logback.xml"
      
            3:   mode 0755
      
            4:   owner "jetty"
      
            5:   group "jetty"
      
            6: end
      
            7: 
      
         
      
          Compiled Resource:
      
          ------------------
      
          # Declared in /root/chef-solo/cache/cookbooks/sdc-catalog-be/recipes/BE_8_logback.rb:1:in `from_file'
      
         
      
          cookbook_file("/var/lib/jetty/config/catalog-be/logback.xml") do
      
            provider Chef::Provider::CookbookFile
      
            action [:create]
      
            default_guard_interpreter :default
      
            source "logback.xml"
      
            declared_type :cookbook_file
      
            cookbook_name "sdc-catalog-be"
      
            recipe_name "BE_8_logback"
      
            path "/var/lib/jetty/config/catalog-be/logback.xml"
      
            owner "jetty"
      
            group "jetty"
      
            mode 493
      
            verifications []

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                mkhinda Mandeep Khinda
                Reporter:
                mkhinda Mandeep Khinda
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d