| Summary: | Exception: NoMethodError: undefined method `list_user_env_vars' for #<Gear:0x000000080814e0> | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Jessica Forrester <jforrest> |
| Component: | Pod | Assignee: | Abhishek Gupta <abhgupta> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | jhou, xtian |
| 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: | 2014-01-24 03:24:31 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: | |
|
Description
Jessica Forrester
2013-10-16 14:38:04 UTC
This happened since the application was stuck fetching the active_capacity fact from the node and the gear did not have the server_identity set. With the application in this state, when the REST API call to fetch environment variables is made, the proxy cannot be instantiated and hence missing_method error. Subsequently, about an hour later, when the stuck pending_op was re-triggered, it succeeded and the application was successfully created. To fix this issue, we need to check the presence of the server_identity and if it is not set, then raise an appropriate exception rather than throwing the method missing exception. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/c3ef5af8873b7a7180022bd156001f88c3bac03d Fix for bug 1019876 Fixed with --> https://github.com/openshift/origin-server/pull/3915 Tested on devenv_3912 with the modified code, set server_identity to null in application's group_instaces, and restrieve its evironment variables, will get response:
{"api_version":1.6,"data":null,"messages":[{"exit_code":null,"field":null,"index":null,"severity":"error","text":"Unable to complete the requested operation due to: The node to create the gear on has not yet been identified.\nReference ID: dc386b55fb1be4bffb7be9e5e7f29256"}],"status":"internal_server_error","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],"type":null,"version":"1.6"}
This bug will be moved to verified once the PR is merged.
|