| Summary: | Disabled providers appear on the Deployable Details page | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Tomas Sedovic <tsedovic> | ||||
| Component: | aeolus-conductor | Assignee: | Tomas Hrcka <thrcka> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.0.0 | CC: | akarol, deltacloud-maint, jeckersb, ssachdev, thrcka | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-08-30 17:13:06 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Tomas Sedovic
2011-12-21 14:46:16 UTC
fixed in git commit df5f048e28b557eaa72702894c5da4aff3ea95d4 Created attachment 550534 [details]
Patch to correct scope issue
This seems to break db:setup
# RAILS_ENV=production rake db:setup
... snip ...
rake aborted!
PGError: ERROR: relation "providers" does not exist
LINE 1: SELECT "providers".* FROM "providers" WHERE (enabled = 't')
^
: SELECT "providers".* FROM "providers" WHERE (enabled = 't')
Tasks: TOP => db:setup => db:schema:load => environment
The attached patch corrects this by delaying the evaluation of Provider within the scope context by encapsulating it in a lambda.
(In reply to comment #2) > Created attachment 550534 [details] > Patch to correct scope issue your patch was pushed to master on conductor Only enabled providers are visible now. Environment -- > Images Import image . I disabled mock and it was not there in the list while importing image . Then i enabled mock and it appeared in the list. ============================================== Same for Environment --> Images --> click on any image only enabled providers are listed. ========================================= Verified in rpm -qa|grep aeolus aeolus-configure-2.6.0-0.20120105171403gitf0043e8.el6.noarch aeolus-conductor-doc-0.9.0-0.20120105223209git5e068fe.el6.noarch rubygem-arel-2.0.10-0.aeolus.el6.noarch rubygem-rack-mount-0.7.1-3.aeolus.el6.noarch rubygem-ZenTest-4.3.3-2.aeolus.el6.noarch rubygem-aeolus-image-0.4.0-0.20120105171419git8108b42.el6.noarch aeolus-conductor-0.9.0-0.20120105223209git5e068fe.el6.noarch aeolus-all-0.9.0-0.20120105223209git5e068fe.el6.noarch rubygem-aeolus-cli-0.4.0-0.20120105171410git2c6b457.el6.noarch aeolus-conductor-daemons-0.9.0-0.20120105223209git5e068fe.el6.noarch |