Description of problem: When using oo-diagnostics to check the broker, got an error: "FAIL: test_broker_cache_permissions broker application cache contains files belonging to root; please clear the cache " Then use # cd /var/www/openshift/broker # bundle exec rake tmp:clear to clear the cache on the broker host. But the error was still there. Version-Release number of selected component (if applicable): devenv_2625 How reproducible: Always Steps to Reproduce: 1.Log into broker # /root/.source_build/origin-server/util/oo-diagnostics -v Actual results: [root@ip-10-195-113-46 broker]# /root/.source_build/origin-server/util/oo-diagnostics -v INFO: loading list of installed packages INFO: OpenShift broker installed. INFO: OpenShift node installed. INFO: running: test_dns_resolution INFO: checking that DNS resolution works at all INFO: running: test_enterprise_rpms INFO: skipping test_enterprise_rpms INFO: running: test_selinux_policy_rpm INFO: rpm selinux-policy installed with at least version 3.7.19-155.el6_3.8 INFO: running: test_broker_cache_permissions FAIL: test_broker_cache_permissions broker application cache contains files belonging to root; please clear the cache INFO: running: test_nodes_public_hostname INFO: checking that each public_hostname resolves properly INFO: PUBLIC_HOSTNAME ec2-54-242-39-196.compute-1.amazonaws.com for ip-10-195-113-46 resolves to 10.195.113.46 INFO: checking that each public_hostname is unique INFO: running: test_nodes_public_ip INFO: checking that public_ip has been set for all nodes INFO: PUBLIC_IP 54.242.39.196 for ip-10-195-113-46 INFO: checking that public_ip is unique for all nodes INFO: running: test_nodes_cartridges_from_broker INFO: checking that all node hosts have cartridges installed INFO: cartridges for ip-10-195-113-46: mongodb-2.2|switchyard-0.6|abstract-httpd|nodejs-0.6|jbossews-2.0|cron-1.4|mysql-5.1|abstract-jboss|zend-5.6|ruby-1.9|postgresql-8.4|abstract|jbossas-7|haproxy-1.4|10gen-mms-agent-0.1|python-2.6|jenkins-1.4|ruby-1.8|phpmyadmin-3.4|metrics-0.1|jbosseap-6.0|rockmongo-1.1|diy-0.1|jbossews-1.0|jenkins-client-1.4|php-5.3|perl-5.10 INFO: checking that same cartridges are installed on all node hosts INFO: checking that broker's cache is not stale INFO: API reports carts: nodejs-0.6|jbossews-2.0|zend-5.6|ruby-1.9|jbossas-7|python-2.6|jenkins-1.4|ruby-1.8|jbosseap-6.0|diy-0.1|jbossews-1.0|php-5.3|perl-5.10|mongodb-2.2|switchyard-0.6|cron-1.4|mysql-5.1|postgresql-8.4|haproxy-1.4|10gen-mms-agent-0.1|phpmyadmin-3.4|metrics-0.1|rockmongo-1.1|jenkins-client-1.4 INFO: running: test_broker_accept_scripts INFO: running rhc-accept-devenv INFO: rhc-accept-devenv ran without error: --BEGIN OUTPUT-- PASS --END rhc-accept-devenv OUTPUT-- INFO: running: test_node_accept_scripts INFO: running oo-accept-node INFO: oo-accept-node ran without error: --BEGIN OUTPUT-- PASS --END oo-accept-node OUTPUT-- INFO: running rhc-accept-node INFO: rhc-accept-node ran without error: --BEGIN OUTPUT-- PASS --END rhc-accept-node OUTPUT-- INFO: running: test_broker_httpd_error_log INFO: running: test_broker_passenger_ps INFO: checking the broker application process tree INFO: running: test_for_nonrpm_rubygems INFO: checking for presence of gem-installed rubygems INFO: looking in /opt/rh/ruby193/root/usr/local/share/gems/specifications/*.gemspec /opt/rh/ruby193/root/usr/share/gems/specifications/*.gemspec WARN: test_for_nonrpm_rubygems The following lines indicate rubygems that were installed from outside sources rather than via yum/RPM. These are unsupported and likely to break OpenShift. If you see multiple versions of any gems with 'gem list' you have likely overridden OpenShift-installed gems. Uninstall as necessary with 'gem uninstall <gemname> -v <version>'. file /opt/rh/ruby193/root/usr/local/share/gems/specifications/capybara-1.1.4.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/childprocess-0.3.6.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/cmdparse-2.0.5.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/fakefs-0.4.2.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/ffi-1.2.0.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/hub-1.10.3.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/kramdown-0.14.1.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/libwebsocket-0.1.7.1.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/net-ssh-gateway-1.1.0.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/rally_rest_api-1.0.5.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/rspec-1.3.0.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/rubyzip-0.9.9.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/sauce-2.2.2.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/selenium-webdriver-2.27.2.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/websocket-1.0.6.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/xpath-0.1.4.gemspec is not owned by any package file /opt/rh/ruby193/root/usr/local/share/gems/specifications/zip-2.0.2.gemspec is not owned by any package INFO: running: test_for_multiple_gem_versions INFO: checking for presence of gem-installed rubygems INFO: running: test_node_mco_log INFO: running: test_pam_openshift 1 WARNINGS 1 ERRORS Expected results: Should work well without error Additional info: Noticed that the error info is triggered by # if `find /var/www/openshift/broker/tmp/cache/ -user root`.length > 0 defined in function test_broker_cache_permissions in file oo-diagnostics. So check the related files' property. [root@ip-10-118-62-244 broker]# find /var/www/openshift/broker/tmp/cache/ -user root /var/www/openshift/broker/tmp/cache/ [root@ip-10-118-62-244 broker]# ll /var/www/openshift/broker/tmp/ total 16 drwxrwx---. 6 root libra_user 4096 Dec 24 03:30 cache drwxrwx---. 2 root libra_user 4096 Dec 21 17:16 pids drwxrwx---. 2 root libra_user 4096 Dec 21 17:16 sessions drwxrwx---. 2 root libra_user 4096 Dec 21 17:16 sockets [root@ip-10-118-62-244 broker]# ll /var/www/openshift/broker/tmp/cache/ total 16 drwxr-xr-x. 3 libra_passenger libra_user 4096 Dec 24 03:30 5C1 drwxr-xr-x. 3 libra_passenger libra_user 4096 Dec 24 03:30 780 drwxr-xr-x. 3 libra_passenger libra_user 4096 Dec 24 03:30 A83 drwxr-xr-x. 3 libra_passenger libra_user 4096 Dec 24 03:30 CC4
So it's complaining that the directory itself is owned by root. But I can see that's not a problem. OK, deserves a fix.
I fixed this at some point but forgot to update the bug - can you verify? Of course there are probably other problems by now...
Created attachment 915682 [details] Comment (This comment was longer than 65,535 characters and has been moved to an attachment by Red Hat Bugzilla).
Considering the ERRORS and WARNINGS are reported correctly for the Origin devenv environment(maybe this tool is not very suitable for Origin), so verify this bug.