Bug 800849 - State "vanished" displayed for failed vsphere instances.
State "vanished" displayed for failed vsphere instances.
Product: CloudForms Cloud Engine
Classification: Red Hat
Component: aeolus-conductor (Show other bugs)
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Matt Wagner
Aziza Karol
: Regression, Reopened
Depends On:
  Show dependency treegraph
Reported: 2012-03-07 07:04 EST by Aziza Karol
Modified: 2014-08-17 18:27 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-12-13 14:49:13 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
instance in vanished state (203.65 KB, image/png)
2012-03-07 07:09 EST, Aziza Karol
no flags Details
application in stopped state (241.57 KB, image/png)
2012-03-07 07:10 EST, Aziza Karol
no flags Details
fail count (205.62 KB, image/png)
2012-03-07 07:22 EST, Aziza Karol
no flags Details
vanished state (247.13 KB, image/png)
2012-05-02 05:23 EDT, Aziza Karol
no flags Details
create_failed persists (117.45 KB, image/png)
2012-08-29 11:55 EDT, Matt Wagner
no flags Details
vsphere (40.53 KB, image/png)
2012-10-25 09:41 EDT, Aziza Karol
no flags Details

  None (edit)
Description Aziza Karol 2012-03-07 07:04:57 EST
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
My vsphere instances failed to launch due to request time out.(logged https://bugzilla.redhat.com/show_bug.cgi?id=800818).
2.later when i checked the failed vsphere instance state,its displayed as vanished.see attach screenshot.

export.csv of on of the failed vsphere instance:


Instance;13;;created;;2012-03-07 07:30:48 UTC

Instance;13;;state changed to create_failed;create_failed;2012-03-07 07:31:34 UTC

Instance;13;;state changed to vanished;vanished;2012-03-07 07:32:26 UTC

Instance;13;;Instance disappeared from cloud provider;vanished;2012-03-07 07:32:27 UTC

but if you check the application state,it is showing as stopped. see attach screenshot of application state. The alert state is vanished and if you see the failed alert count in zone is 3. so there is an inconsistency is states.

Actual results:
inconsistency in states.

Expected results:
proper states  should be displayed.

Additional info:
rpm -qa | grep aeolus
Comment 1 Aziza Karol 2012-03-07 07:09:18 EST
Created attachment 568271 [details]
instance in vanished state
Comment 2 Aziza Karol 2012-03-07 07:10:49 EST
Created attachment 568272 [details]
application in stopped state
Comment 3 Aziza Karol 2012-03-07 07:20:50 EST
Also i see that due to all this inconsistency in states the failed count in overview section of monitor page is  not  getting updated. it still shows o instead of 3.

see attached screenshot
Comment 4 Aziza Karol 2012-03-07 07:22:02 EST
Created attachment 568276 [details]
fail count
Comment 5 Dave Johnson 2012-03-07 14:05:27 EST
So this seems like this is fall out from the addition of the vanished state (related to Bug 795891).  I recreated the issue when I pushed a image to vsphere, deleted the image from the vsphere ui, and deploy a blueprint pointed at this image which no longer existed in vsphere.

The deployment failed with create_failed but upon a refresh, the state transitioned to vanished which doesn't seem correct.  

Also, wondering about aziza's comment 2 & 3... I believe she opened a separate issue with bug 800837

Re-assigning to matt

Marking as a soft medium as it can cause confusion
Comment 6 Dave Johnson 2012-03-07 14:07:54 EST
Actually, I am thinking aziza's comment 2 & 3 point to bug 800829
Comment 7 Matt Wagner 2012-03-07 15:17:43 EST
I think what we should do here is, if an instance ends up in create_failed, leave it in that state. This is already how we handle stopped instances.
Comment 9 Matt Wagner 2012-03-14 14:39:28 EDT
Pushed to master:

commit 239e651c106747f60330ac5d198986e6f49784c1
Author: Matt Wagner <matt.wagner@redhat.com>
Date:   Wed Mar 7 17:31:47 2012 -0500

    BZ 800849 - CREATE_FAILED instances will not be marked as vanished
    Since they were never created on the backend provider, it doesn't
    make a lot of sense to mark them as "vanished." It's also a bad user
    experience. Instead, if an instance fails to get created, leave it
    in that state.
    This resolves https://bugzilla.redhat.com/show_bug.cgi?id=800849
    and likely https://bugzilla.redhat.com/show_bug.cgi?id=800837 too.
Comment 10 wes hayutin 2012-04-17 17:29:14 EDT
Mike did this get in?
Comment 11 Mike Orazi 2012-04-18 11:48:25 EDT
The code landed in master after the freeze/cut-over and didn't have blocker+ so it is not currently in the product rpm.

This looks severe enough that we should blocker+ it and pull it into the rpm.
Comment 13 Rehana 2012-04-25 09:31:36 EDT
As per comment 5, i tried creating create_failed instance, observed that the instance status was set to "Create_failed"

Also observed that for application the status was still showing as "stopped"
raised a separate bug to track this issue ;https://bugzilla.redhat.com/show_bug.cgi?id=816194

verified on;
rpm -qa | grep aeolus
Comment 14 Aziza Karol 2012-05-02 05:21:59 EDT
Reopening this bug as this is a regression.

Vanished state is displayed for failed vsphere instance.
see attached screenshot.

#rpm -qa | grep aeolus
Comment 15 Aziza Karol 2012-05-02 05:23:01 EDT
Created attachment 581548 [details]
vanished state
Comment 16 wes hayutin 2012-05-02 10:13:52 EDT
bumping to 1.0.z, 1.1.0
Comment 17 errata-xmlrpc 2012-05-15 18:49:52 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

Comment 19 James Laska 2012-08-08 16:23:35 EDT
Reopening, it appears this issue may remain, and was not resolved in cloudforms 1.0.  

akarol: Can you indicate whether this problem remains OPEN in CloudForms-1.0.1?
Comment 20 Matt Wagner 2012-08-29 11:54:27 EDT
I just spent a while attempting to reproduce this, but I cannot get a failed instance to move to vanished. The create_failed -> vanished instance transition should not longer be possible. I will attach a screenshot showing a deployment history for me, after a forced vSphere deployment failure.

I'm going to move this back over to ON_QA. If you do run into this problem again, would you mind contacting me so we can try to figure out what's different?
Comment 21 Matt Wagner 2012-08-29 11:55:26 EDT
Created attachment 607949 [details]
create_failed persists
Comment 22 Giulio Fidente 2012-10-09 09:12:41 EDT
I can't reproduce this either by deleting the template from the target provider and trying to relaunch the app.
Comment 23 Aziza Karol 2012-10-25 09:40:24 EDT
Create failed state is displayed for failed vsphere instances.
see attached screenshot

rpm -qa | grep aeolus
Comment 24 Aziza Karol 2012-10-25 09:41:21 EDT
Created attachment 633323 [details]

Note You need to log in before you can comment on or make changes to this bug.