Bug 638326
| Summary: | [Core]: With no available images, ec2 driver throws a stack trace | ||
|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Chris Lalancette <clalance> |
| Component: | deltacloud-core | Assignee: | Michal Fojtik <mfojtik> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 0.3.1 | CC: | cpelland, deltacloud-maint, mmorsi, rananda, sseago, whayutin |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Chris Lalancette
2010-09-28 19:19:55 UTC
I confirmed that imageSet being null was the problem and sent a patch to the core mailing list. That being said the only way I could reproduce this through the standard core deployment was to change the default 'owner_id' used in the images query in the ec2 driver to an account which had no images (my ec2 account after I deleted all my images). AFAIK the core REST interface doesn't allow 'user_id' to be passed in via the client and setting 'id' to something invalid yields another error: 'Deltacloud::BackendError - Invalid id: "ami-foo"' Reassigning to Michal as this is a core issue and i'm not sure if this is valid anymore This one is fixed AFAIK in upcoming deltacloud-core-0.2.0. Stay tuned :) Michal, is this fixed? I'm fairly certain it is, I just wanted to check with you before closing it. Chris Lalancette moving to on_qa for review hrm.. I suppose I would need an account that has access to no images in ec2. Any other ways to test this? Hmm I think you should be able to see 'no images' using ?owner_id=0 or something similar. OK I have tried this: http://localhost:3001/api/images?owner_id=293787749884 I don't have any images registered in Amazon. The result was empty images set in XML. No explosions, errors anything. Verified from Michal Fojtik's account http://localhost:3001/api/images?owner_id=293787749884 It shows a blank page when no ec2 images are there. release pending... release pending... release pending.. 2 perm close closing out old bugs |