Bug 1050938
| Summary: | unable to list app's environment variables via REST | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Oleg Fayans <ofayans> |
| Component: | Master | Assignee: | Dan McPherson <dmcphers> |
| Status: | CLOSED WORKSFORME | QA Contact: | libra bugs <libra-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.x | CC: | amarecek, dmcphers |
| 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-14 15:27:27 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: | |||
Do you have any env vars set? I get what you get when I don't but here is an example with the var foo set:
{"api_version":1.6,"data":[{"links":{"GET":{"href":"https://ec2-23-22-79-10.compute-1.amazonaws.com/broker/rest/application/52d5560b9808f03dac000007/environment-variable/foo","method":"GET","optional_params":[],"rel":"Get environment variable","required_params":[]},"UPDATE":{"href":"https://ec2-23-22-79-10.compute-1.amazonaws.com/broker/rest/application/52d5560b9808f03dac000007/environment-variable/foo","method":"PUT","optional_params":[],"rel":"Update environment variable","required_params":[{"description":"Value of the environment variable","invalid_options":[],"name":"value","type":"string","valid_options":[]}]},"DELETE":{"href":"https://ec2-23-22-79-10.compute-1.amazonaws.com/broker/rest/application/52d5560b9808f03dac000007/environment-variable/foo","method":"DELETE","optional_params":[],"rel":"Delete environment variable","required_params":[]}},"name":"foo","value":"bar"}],"messages":[{"exit_code":0,"field":null,"index":null,"severity":"info","text":"Listing environment variables for application blah"}],"status":"ok","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],"type":"environment-variables","version":"1.6"}
Please reopen if you are still having this issue.
|
Description of problem: When I list environment variables of the app via REST request, I get the empty list Version-Release number of selected component (if applicable): ami-c71a2cae How reproducible: Always Steps to Reproduce: 1. Create an app 2. execute the following REST request: curl -k -X GET https://<broker_ip>/broker/rest/application/<app_id>/environment-variables -u <username>:<password> 3. Actual results: {"api_version":1.6,"data":[],"messages":[{"exit_code":0,"field":null,"index":null,"severity":"info","text":"Listing environment variables for application qehvyent"}],"status":"ok","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],"type":"environment-variables","version":"1.6"} Expected results: list of all env vars Additional info: