Ability to Upgrade / Update Guest Not Fully Functional

Bug #1211924 reported by Auston McReynolds
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Dan Nguyen

Bug Description

trove-mgmt-cli's "host > update_all" seems to claim to be able to upgrade/update the guest on deployed hosts, but it does not work as advertised.

I see https://github.com/openstack/python-troveclient/blob/b98893926d14bd0b5b2706c808688659695c1731/troveclient/hosts.py#L49-L54

however, I can't find a corresponding "update" action in the mgmt api:

https://github.com/openstack/trove/blob/166fd33ee013488bca13507fba03da73697f0199/trove/extensions/mgmt/instances/service.py#L97

There's no mention in the apischema of an update/upgrade action, so I'm thinking that this feature wasn't fully ported. On a semi-related note, trove-mgmt-cli's "host > list" exposes this fault: https://bugs.launchpad.net/trove/+bug/1130983. The gerrit review for the proposed fix (https://review.openstack.org/#/c/32916/) had this comment added before the commit was ultimately abandoned:

> ""rdhosts" is a Rackspace Nova API extension. IIRC Mike put those in the
> public at some point as a fork, although we need to
> probably find a better way to handle them.
>
> We *should* change things to work with standard Nova functionality, but
> this function has been changed so that its return values > are entirely
> different. This will break expectations of Rackspace ops (as well as tests)
> are relying on. I think a better solution is to > "fix" this in a way that
> doesn't mean radically changing the views, or simply creating a new API
> call entirely."

description: updated
Revision history for this message
Michael Basnight (hubcap) wrote :

Id rather fix the existing api calls if possible.

Changed in trove:
status: New → Triaged
importance: Undecided → Medium
Changed in trove:
assignee: nobody → Dan Nguyen (daniel-a-nguyen)
Revision history for this message
Nikhil Manchanda (slicknik) wrote :

Dan, are we planning to fix this old mgmt API as part of the Upgrade BP work that you are doing? Thanks!

Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :

yep, let me add this to the current patch in review

Revision history for this message
Dan Nguyen (daniel-a-nguyen) wrote :
Changed in trove:
status: Triaged → In Progress
Changed in trove:
milestone: none → juno-1
Changed in trove:
milestone: juno-1 → juno-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/81410
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=ac45127c86e5b9d4723b0cb8a58a8b5d1570c706
Submitter: Jenkins
Branch: master

commit ac45127c86e5b9d4723b0cb8a58a8b5d1570c706
Author: daniel-a-nguyen <email address hidden>
Date: Fri Mar 28 15:49:57 2014 -0700

    Added route for Admin API to support guest upgrade

    Added optional metadata param to API

    1. Changed route to {tenant_id}/mgmt/instances/{instance_id}/upgrade
    2. Changed POST body to send properties inside an upgrade dict
    3. Removed unimplemented method from guest agent manager
    4. Swap out rpc call to use _cast
    5. Removed instance_id from rpc call
    6. Removed strategy from api calls
    7. Switched out import of guestagent api in favor of common.remote
    8. Rename UpgradeNotifier to UpgradeMessageSender

    Change-Id: I12d09fd70ab028da1cd2818fe380310e99b66d2d
    Implements: blueprint upgrade-guestagent
    Closes-Bug: #1211924

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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