Bug 841681
Summary: | /etc/cron.minutely/stickshift-facts wipes out the facts file for long periods of time | ||
---|---|---|---|
Product: | OKD | Reporter: | Thomas Wiest <twiest> |
Component: | Containers | Assignee: | Mrunal Patel <mpatel> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.x | CC: | bmeng, jialiu |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | devenv_1920 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-07 20:42:33 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Thomas Wiest
2012-07-19 20:37:42 UTC
When will the change be merged into the build? Checked on devenv_1912, it still not merged. ========= [root@ip-10-28-203-164 bin]# cat /usr/libexec/mcollective/update_yaml.rb #!/bin/env ruby require 'facter' require 'yaml' puts YAML.dump(Facter.to_hash) [root@ip-10-28-203-164 bin]# cat /etc/cron.minutely/stickshift-facts #!/bin/bash /usr/libexec/mcollective/update_yaml.rb > /etc/mcollective/facts.yaml New pull request has been sent - https://github.com/openshift/crankcase/pull/286 Verified this bug on devenv_1920, and PASS. 1. Create a lot of gears, here I copied a lot of gear dirs (like ~1000) in /var/lib/stickshift dir, and increase mem and cup stress via stress tools to create a dummy env (stress --vm 1 --vm-bytes 1G --vm-keep -c 10). 2. Open a terminal to watch the size of /etc/mcollective/facts.yaml file. # while :; do ls -l /etc/mcollective/facts.yaml; done 3. Run stickshift-facts cron job runs manually # time /usr/libexec/mcollective/update_yaml.rb /etc/mcollective/facts.yaml 4. Upon the script is running, watch terminal opened in step 2, the size of /etc/mcollective/facts.yaml is never 0. 5. Upon the script is running, try to run this script again. # ps -ef|grep yaml root 17987 17982 5 01:20 ? 00:00:00 ruby /usr/libexec/mcollective/update_yaml.rb /etc/mcollective/facts.yaml root 18046 3528 0 01:20 pts/0 00:00:00 grep yaml # time /usr/libexec/mcollective/update_yaml.rb /etc/mcollective/facts.yaml Script /usr/libexec/mcollective/update_yaml.rb is already running real 0m0.969s user 0m0.042s sys 0m0.017s |