Bug 1005364
Summary: | Facter failure to read /etc/openshift/resource_limits.conf should not be fatal | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Andy Grimm <agrimm> |
Component: | Containers | Assignee: | Jhon Honce <jhonce> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.x | CC: | chunchen, jgoulding |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-19 16:50:03 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
Andy Grimm
2013-09-06 18:10:14 UTC
I was fixed the issue with the platform code attempting to access the '/etc/openshift/resource_limits.conf' while running `gear deploy` in the gear user's context. I was not able correct the example cartridge/template application's puppet script targeting the system's facter vs. the facter provided in the cartridge. I notified the reporter of this. The new expected error is: Could not run: Could not retrieve facts for ip-10-114-157-11.ec2.internal: undefined method `enum_lsdev' for Facter::Util::Processor:Module An error occurred executing 'gear deploy' (exit code: 1) Error message: Failed to execute action hook 'deploy' for 22a5510c5f531347c00001c application rb2 Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/296f59ebc9ae4ab763b6522961f51125bba23351 Bug 1005364 - Restore gear user usage of facter * Being unable to access /etc/openshift/resource_limits.conf should not be a failure condition It's fixed, verified on devenv_3758, please refer to the following results: # rhc app create rb2 ruby-1.9 "http://cartreflect-claytondev.rhcloud.com/reflect?github=a13m/openshift-puppet-cartridge" --from-code https://github.com/a13m/openshift-puppet-demo The cartridge 'http://cartreflect-claytondev.rhcloud.com/reflect?github=a13m/openshift-puppet-cartridge' will be downloaded and installed Application Options ------------------- Namespace: ccy Cartridges: ruby-1.9, http://cartreflect-claytondev.rhcloud.com/reflect?github=a13m/openshift-puppet-cartridge Source Code: https://github.com/a13m/openshift-puppet-demo Gear Size: default Scaling: no Creating application 'rb2' ... The initial build for the application failed: Shell command '/sbin/runuser -s /bin/sh 522d6abac7c23d318d000136 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c0,c1013' /bin/sh -c \"gear postreceive >> /tmp/initial-build.log 2>&1\""' returned an error. rc=255 .Last 10 kB of build output: Stopping Ruby cartridge Syntax error on line 10 of /var/lib/openshift/522d6abac7c23d318d000136/ruby/etc/conf.d/openshift.conf: DocumentRoot must be a directory httpd (no pid file) not running Building Ruby cartridge Starting application rb2 /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. Could not run: Could not retrieve facts for ip-10-147-219-9.ec2.internal: undefined method `enum_lsdev' for Facter::Util::Processor:Module An error occurred executing 'gear postreceive' (exit code: 1) Error message: Failed to execute action hook 'deploy' for 522d6abac7c23d318d000136 application rb2 For more details about the problem, try running the command again with the '--trace' option. |