| Summary: | Deployments with mixed state should not be allowed for deletions as it has running instances in it. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Aziza Karol <akarol> | ||||||
| Component: | aeolus-conductor | Assignee: | Jan Provaznik <jprovazn> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | wes hayutin <whayutin> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 1.0.0 | CC: | akarol, deltacloud-maint, ssachdev | ||||||
| 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: | 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
Aziza Karol
2012-01-25 11:35:39 UTC
Created attachment 557431 [details]
msg
The fact that the deployment with running instances was queued for deletion is not a bug - if you delete a deployment which has running instances, these instances are sopped first and the deployment is deleted after all instances are stopped. I wasn't able to reproduce the error message printed by dc-core to logfile (NoMethodError: undefined method `[]' for nil:NilClass), maybe some dc internal not related bug? According to screenshot no error was displayed which means that stop request was sent successfully to all running instances. I would suggest to close this BZ as notabug. After reproducing this bug on a testing machine, here is more info: there is a bug in conductor's stop_instances_and_destroy! method - when iterating through all deployment's instances if there is an instance in not running state, all following instances are skipped. Switching this bug back to ON_DEV Discussed with Jan. bug reproduced on: rpm -qa | grep aeolus aeolus-conductor-0.8.0-17.el6.noarch rubygem-aeolus-cli-0.3.0-7.el6.noarch aeolus-configure-2.5.0-11.el6.noarch aeolus-conductor-daemons-0.8.0-17.el6.noarch aeolus-all-0.8.0-17.el6.noarch aeolus-conductor-doc-0.8.0-17.el6.noarch rubygem-aeolus-image-0.3.0-7.el6.noarch commit f9766608efcf78e440a02f30dd4be25fb6442784 Created attachment 565510 [details]
mixed
Tried to delete a deployment with some running and some pending instance in it.
Proper message was displayed.
rpm -qa|grep aeolus
aeolus-conductor-0.8.0-35.el6.noarch
rubygem-aeolus-cli-0.3.0-10.el6.noarch
aeolus-conductor-doc-0.8.0-35.el6.noarch
rubygem-aeolus-image-0.3.0-9.el6.noarch
aeolus-all-0.8.0-35.el6.noarch
aeolus-conductor-daemons-0.8.0-35.el6.noarch
aeolus-configure-2.5.0-15.el6.noarch
|