Bug 1040700

Summary: Error message on app env sync failure is.... bad
Product: OpenShift Online Reporter: Clayton Coleman <ccoleman>
Component: PodAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: dmcphers, 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-30 00:53:05 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 Clayton Coleman 2013-12-11 22:50:06 UTC
App "foo" has 2 php gears (scaled) but I moved the disk contents of gear 891133878006244771364864 to another location to mimic gear disappearing on disk.

[Dec 13 17:48 cc4 ~/code/li]$ rhc set-env -a foo A=B
Setting environment variable(s) ... 
Sync for 891133878006244771364864@ip-10-232-46-73 user variables failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6]

The broker should expect the node to return a "unable to sync environment variables to gear x" message, and present something better.

Comment 1 Dan McPherson 2014-01-13 23:16:01 UTC
https://github.com/openshift/li/pull/2272

Comment 4 Jianwei Hou 2014-01-14 05:49:13 UTC
Verified on devenv_4219

1. Create a scalable application, scale it up to 2 gears
2. Move 1 gear to another location from node
3. Add env

Result:
rhc set-env -a php1s A=B
Setting environment variable(s) ... Failed to update environment variable(s) on your application's gear(s).  Please try again and contact support if the issue persists.