Bug 1122027
Summary: | unspecified error when creating app based on custom cartridge | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Oleg Fayans <ofayans> | ||||
Component: | Node | Assignee: | Luke Meyer <lmeyer> | ||||
Status: | CLOSED EOL | QA Contact: | libra bugs <libra-bugs> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 2.2.0 | CC: | amarecek, bleanhar, jokerman, libra-onpremise-devel, mmasters, mmccomas, rthrashe | ||||
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: | 2017-01-13 22:49:19 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: | |||||||
Attachments: |
|
Description
Oleg Fayans
2014-07-22 11:55:06 UTC
Hi Chris, How did you install OpenShift Enterprise? In your broker logs I see a stack track containing: /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-msg-broker-mcollective-1.26.2/lib/openshift/mcollective_application_container_proxy.rb:2767 That's newer than any version we ship in OpenShift Enterprise. As for debugging the cartridge, sometimes you have to resort to binary search and add debugging information in places where you think the problem might exist. Another challenge for debugging these situations is that the gear is often cleaned up on failure so there's nothing to manually inspect. Since you have root on the Broker (and if this is a development environment) you can modify the Broker to disable rollbacks. You could try commenting out this code: https://github.com/openshift/origin-server/blob/master/controller/app/models/application.rb#L1738. I took a look at your cartridge source and it wasn't obvious to me where "No such file or directory - chdir" could be coming from. Since chdir isn't a command on RHEL it makes me think something is likely being passed to a shell that is not bash. It's going to be tricky to track down but the error will likely be something simple. Hi Brenton, Actually I tried it on devenv instance. So, probably i should have filed this bug against online, not enterprise. However, the same error appears on Origin as well, so, I think, on Enterprise it will be more or less the same. I'll try the steps you advised, and let you know the results. It looks like the problem has been resolved in intervening releases. I see useful error messages when I follow the steps to reproduce: # rhc app create testapp10 shiny-1.1 Application Options ------------------- Domain: testdom Cartridges: shiny-1.1 Gear Size: default Scaling: no Creating application 'testapp10' ... Starting Shiny cartridge Failed to execute: 'control start' for /var/lib/openshift/5745de30770947bba0000003/shiny /var/lib/openshift/5745de30770947bba0000003/shiny/bin/control: line 3: $logf: ambiguous redirect /var/lib/openshift/5745de30770947bba0000003/shiny/bin/control: line 13: cartridge_pid: command not found /var/lib/openshift/5745de30770947bba0000003/shiny/bin/control: line 13: cartridge_pid: command not found /var/lib/openshift/5745de30770947bba0000003/shiny/bin/control: line 13: cartridge_pid: command not found /var/lib/openshift/5745de30770947bba0000003/shiny/bin/control: line 23: error: command not found (Note that in the steps to reproduce, 'shiny-server-1.1.0.49-x86_64.rpm' in the `yum` command should be 'shiny-server-1.2.1.362-x86_64.rpm' to correspondg to the `wget` command, `oo-admin-broker-cache --clear --console` should be replaced by `oo-admin-console-cache --clear`, and `oo-broker` is no longer needed.) Oleg, are there any remaining concerns, or shall we close this report? Thanks! OpenShift Enterprise v2 has officially reached EoL. This product is no longer supported and bugs will be closed. Please look into the replacement enterprise-grade container option, OpenShift Container Platform v3. https://www.openshift.com/container-platform/ More information can be found here: https://access.redhat.com/support/policy/updates/openshift/ The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |