createBackup function in admin_actions.py needs detail on how to restore and semantics

Bug #1069986 reported by Michael Fork
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Medium
Andreas Jaeger

Bug Description

There is no details on how a backup taken with createBackup should be restored and the semantics (i.e. is network info retained?)

Tags: nova
Revision history for this message
Michael Fork (mjfork) wrote :

From an IRC chat between a colleague and bcwaldon, sounds like rebuildServer is the right mechanism (guessing with the backup UUID as the image?).

Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi Michael,

I'm confused - can you add some context for me?

Changed in openstack-manuals:
status: New → Incomplete
tags: added: nova
Revision history for this message
Michael Fork (mjfork) wrote :

The only detail could find on "createBackup" is on the API page under "Admin Actions" at http://api.openstack.org/:

POSTv2/{tenant_id}/servers/{server_id}/action
Backup a server instance.

  close
Request parameters
Parameter Description
tenant_id
The ID for the tenant or account in a multi-tenancy cloud.

server_id
The UUID for the server of interest to you.

name
Name of the backup image.

backup_type
The backup type, like 'daily' or 'weekly'.

rotation
Int parameter representing how many backups to keep around.

Request: JSON
{
    'createBackup': {
        'name': 'Backup 1',
        'backup_type': 'daily',
        'rotation': 1
    }
}

No mention of this function is in any of the guides that I could find. Seems like it should document how it works, how to "restore" a backup, etc.

Revision history for this message
Tom Fifield (fifieldt) wrote :

Thanks Michael

Changed in openstack-manuals:
importance: Undecided → Medium
status: Incomplete → Confirmed
Revision history for this message
Tom Fifield (fifieldt) wrote :

./nova/api/openstack/compute/contrib/admin_actions.py

backup:
196
197 Images now have an `image_type` associated with them, which can be
198 'snapshot' or the backup type, like 'daily' or 'weekly'.
199
200 If the image_type is backup-like, then the rotation factor can be
201 included and that will cause the oldest backups that exceed the
202 rotation factor to be deleted.
203

There is no restore, but as noted above - since backups are images, you just rebuild or start a new instance with this image ID

Changed in openstack-manuals:
status: Confirmed → Triaged
Revision history for this message
Tom Fifield (fifieldt) wrote :

Personally, I'd love to know if the backups actually work and would recommend testing before writing this doc.

Revision history for this message
Richard Raseley (richard-raseley) wrote :

I know this is an old bug, but I wanted to pick of some low-hanging fruit to get my feet wet on the openstack-manuals project and I thought this would be a good option.

As it isn't linked in the ticket, but I am assuming the desired content would eventually live here:

http://docs.openstack.org/api/openstack-compute/2/content/POST_os-admin-actions-v2_createBackup_v2__tenant_id__servers__server_id__action_ext-os-admin-actions.html

?

Changed in openstack-manuals:
assignee: nobody → Richard Raseley (richard-raseley)
Revision history for this message
Anne Gentle (annegentle) wrote : Re: [Bug 1069986] Re: createBackup function in admin_actions.py needs detail on how to restore and semantics

I'd prefer to see it in an end user guide, in
openstack-manuals/doc/end-user-guide. The document you link to is basically
a "spec" for the Compute API and is used for python devs to know what to
implement. Also the other clue is ex-os-admin-actions means it's an API
extension. If you can figure out how to do backups in Dashboard and CLI,
start there to fix this bug. Thanks for asking!

On Sat, Jan 18, 2014 at 3:38 PM, Richard Raseley <email address hidden>wrote:

> I know this is an old bug, but I wanted to pick of some low-hanging
> fruit to get my feet wet on the openstack-manuals project and I thought
> this would be a good option.
>
> As it isn't linked in the ticket, but I am assuming the desired content
> would eventually live here:
>
> http://docs.openstack.org/api/openstack-compute/2/content/POST_os-admin-
> actions-v2_createBackup_v2__tenant_id__servers__server_id__action_ext-
> os-admin-actions.html
>
> ?
>
> ** Changed in: openstack-manuals
> Assignee: (unassigned) => Richard Raseley (richard-raseley)
>
> --
> You received this bug notification because you are subscribed to
> OpenStack.
> https://bugs.launchpad.net/bugs/1069986
>
> Title:
> createBackup function in admin_actions.py needs detail on how to
> restore and semantics
>
> Status in OpenStack Manuals:
> Triaged
>
> Bug description:
> There is no details on how a backup taken with createBackup should be
> restored and the semantics (i.e. is network info retained?)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openstack-manuals/+bug/1069986/+subscriptions
>

Revision history for this message
Richard Raseley (richard-raseley) wrote :

Anne, thanks for your comments. I'll nail down the CLI and Dashboard processes and then start building the relevant documentation.

Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

I see the following documentation, can we close this bug now as fixed?

http://docs.openstack.org/admin-guide-cloud/content/volume-backup-restore.html

Tom Fifield (fifieldt)
Changed in openstack-manuals:
status: Triaged → Incomplete
Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi Andreas,

I think this refers to the nova feature, rather than the cinder feature.

Changed in openstack-manuals:
status: Incomplete → Confirmed
assignee: Richard Raseley (richard-raseley) → nobody
milestone: none → kilo
Changed in openstack-manuals:
assignee: nobody → Olga Gusarenko (ogusarenko)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

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

Changed in openstack-manuals:
status: Confirmed → In Progress
Changed in openstack-manuals:
assignee: Olga Gusarenko (ogusarenko) → Andreas Jaeger (jaegerandi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/155720
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=0fc41defc1f70a0fc5c062d86443755fa930e4ea
Submitter: Jenkins
Branch: master

commit 0fc41defc1f70a0fc5c062d86443755fa930e4ea
Author: OlgaGusarenko <email address hidden>
Date: Fri Feb 13 13:34:12 2015 +0200

    Adds the Create a backup section (nova, CLI)

    Images now have an `image_type` associated with them, which can be
    snapshot or the backup type, like 'daily' or 'weekly'.

    If the image_type is backup-like, then the rotation factor can be
    included, and that causes the oldest backups that exceed the
    rotation factor to be deleted.

    This patch explains the usage of the nova backup command,
    and the rotation mechanisms.

    As Dashboard does not provide a user with this possibility,
    so, the section is included to the Manage images section
    which is related to CLI only.

    Change-Id: I58ad41375ae5724b90d3c993395f318f8417e498
    Closes-Bug: #1069986

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

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.