-
Story
-
Resolution: Done
-
Medium
-
None
-
None
-
None
-
OOM Sprint 5
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 []