Merge lp:~chad.smith/charms/trusty/glance-simplestreams-sync/handle-connectionerror into lp:~landscape/charms/trusty/glance-simplestreams-sync/landscape
Status: | Merged |
---|---|
Merged at revision: | 65 |
Proposed branch: | lp:~chad.smith/charms/trusty/glance-simplestreams-sync/handle-connectionerror |
Merge into: | lp:~landscape/charms/trusty/glance-simplestreams-sync/landscape |
Diff against target: |
12 lines (+1/-1) 1 file modified
scripts/glance-simplestreams-sync.py (+1/-1) |
To merge this branch: | bzr merge lp:~chad.smith/charms/trusty/glance-simplestreams-sync/handle-connectionerror |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bogdana Vereha (community) | Approve | ||
Данило Шеган (community) | Approve | ||
Review via email: mp+294330@code.launchpad.net |
Description of the change
NOTE: Resubmit of https:/
Unhandled exceptions cause the charm to remove the simplestreams cron which retries the image uploads upon a known set of errors. During initial connection to the glance API, the charm received a ConnectionError as raised by glanceclient. This broken pipe was a result of glance api service restart during the install process.
File "/usr/lib/
raise exc.Communicati
CommunicationError: Error communicating with http://
Manually re-running the script called by the cron
/usr/share/
This merge proposal handles glanceclient.
Testing instructions:
This can e tested using landscape with the following patch=== modified file 'canonical/
--- canonical/
+++ canonical/
@@ -24,7 +24,7 @@
"url": "cs:trusty/
},
"glance-
- "url": "cs:~landscape-
+ "url": "cs:~chad.
},
"hacluster": {
"url": "cs:trusty/
Deploy to your favorite substrate.
Looks good, thanks for the fix: it's been tested on a deployed cloud. (I've got a task on the board to invert the logic in the script to only remove the "cronpoll" on actual success, but didn't get to it for 16.05: it would avoid us having to deal with every potential exception one-by-one)
Once merged, a simple "charm push PATH-TO- CHECKOUT- OF-landscape 'cs:~landscape- charmers/ trusty/ glance- simplestreams- sync'" followed by charm publish on the likely resulting -7 should be sufficient (permissions are already set up on it).