Succeed message for Resize Instance is confusing (resize is async operation)

Bug #1277257 reported by Cindy Lu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Wishlist
Ana Malagon

Bug Description

If I try to size up a flavor (m1.xlarge), it gives me the message "Success: Preparing instance "____" for resize" - but nothing happens.

Please see the attached image.

The top image shows a successful resize. The second shows the successful message, but no behavior.

Revision history for this message
Cindy Lu (clu-m) wrote :
Revision history for this message
Julie Pichon (jpichon) wrote :

It seems like Resize is an asynchronous function and that is why we don't get a result immediately (and I'm guessing we try to indicate so by saying "Preparing" rather than "Resized successfully" or something like that). All we can confirm is that we sent the request to Nova.

REQ: curl -i 'http://192.168.100.177:8774/v2/42365c9f445a46e791e62d9093c113ad/servers/53f67c2d-4724-419b-896c-0ddb1a9d6525/action' -X POST -H "X-Auth-Project-Id: 42365c9f445a46e791e62d9093c113ad" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 83edcf42258c48c7119ba8b1b584d63e" -d '{"resize": {"flavorRef": "5"}}'
RESP: [202] CaseInsensitiveDict({'date': 'Fri, 07 Feb 2014 16:51:36 GMT', 'content-length': '0', 'content-type': 'text/html; charset=UTF-8', 'x-compute-request-id': 'req-0d62ed35-8108-40ef-84e8-96d51760b6ab'})

The behaviour for Nova client is similar if I try to resize to a flavour too large for my VM:

$ nova resize 53f67c2d-4724-419b-896c-0ddb1a9d6525 5
$

In the nova-conductor logs:

WARNING nova.scheduler.utils [req-9a544a50-2bf4-4c58-aafa-a1b3b57b11d4 demo demo] Failed to compute_task_migrate_server: No valid host was found.

I don't see a way for Horizon to surface the error, or perhaps there is a message we can consume once the real time communication blueprint is implemented? ( https://blueprints.launchpad.net/horizon/+spec/realtime-communication ) Instance actions list the request ids but not the results either, as far as I can tell.

Changed in horizon:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Julie Pichon (jpichon) wrote :

Perhaps for now, similar to Migration we could change the message to say "Scheduled resize" rather than "Preparing".

Ana Malagon (atmalagon)
Changed in horizon:
assignee: nobody → Ana Malagon (atmalagon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/79679

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote : Re: Resize Instance doesn't work

Further improvements for asynchronous actions can probably be handled as part of bug 1286418.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/79679
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=98bd28fb78e1d735944a65d78e14e84f6cdfd7b2
Submitter: Jenkins
Branch: master

commit 98bd28fb78e1d735944a65d78e14e84f6cdfd7b2
Author: Ana Malagon <email address hidden>
Date: Thu Mar 13 07:02:07 2014 -0400

    Clarified success message for instance resize

    Resize is an asynchronous action; the success
    message can only confirm that the request for
    resize was accepted by the nova API service
    and that a corresponding RPC message was sent
    to the nova scheduler service.

    Closes-Bug: #1277257
    Change-Id: I125c79c4c76fcb27f1e0d3c7122125e9036b1008

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
summary: - Resize Instance doesn't work
+ Succeed message for Resize Instance is confusing (resize is async
+ operation)
Changed in horizon:
milestone: none → icehouse-rc1
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-rc1 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.