← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1538381] [NEW] nova backup allows any sting of bake_type

 

Public bug reported:

taget@taget-ThinkStation-P300:~/devstack$ nova help backup 
usage: nova backup <server> <name> <backup-type> <rotation>

Backup a server by creating a 'backup' type snapshot.

Positional arguments:
  <server>       Name or ID of server.
  <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.

But we can create a backup by

nova backup cent_from_snap cent_from_sna_bak weeklydd 2

follow schema need to be improved.

create_backup = {
    'type': 'object',
    'properties': {
        'createBackup': {
            'type': 'object',
            'properties': {
                'name': parameter_types.name,
                'backup_type': {
                    'type': 'string',
                },
                'rotation': parameter_types.non_negative_integer,
                'metadata': {
                    'type': 'object',
                }
            },
            'required': ['name', 'backup_type', 'rotation'],
            'additionalProperties': False,
        },
    },
    'required': ['createBackup'],
    'additionalProperties': False,
}

** Affects: nova
     Importance: Low
     Assignee: Eli Qiao (taget-9)
         Status: Confirmed


** Tags: api

** Changed in: nova
     Assignee: (unassigned) => Eli Qiao (taget-9)

** Changed in: nova
   Importance: Undecided => Low

** Changed in: nova
       Status: New => Confirmed

** Tags added: api

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1538381

Title:
  nova backup allows any sting of bake_type

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  taget@taget-ThinkStation-P300:~/devstack$ nova help backup 
  usage: nova backup <server> <name> <backup-type> <rotation>

  Backup a server by creating a 'backup' type snapshot.

  Positional arguments:
    <server>       Name or ID of server.
    <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.

  But we can create a backup by

  nova backup cent_from_snap cent_from_sna_bak weeklydd 2

  follow schema need to be improved.

  create_backup = {
      'type': 'object',
      'properties': {
          'createBackup': {
              'type': 'object',
              'properties': {
                  'name': parameter_types.name,
                  'backup_type': {
                      'type': 'string',
                  },
                  'rotation': parameter_types.non_negative_integer,
                  'metadata': {
                      'type': 'object',
                  }
              },
              'required': ['name', 'backup_type', 'rotation'],
              'additionalProperties': False,
          },
      },
      'required': ['createBackup'],
      'additionalProperties': False,
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1538381/+subscriptions


Follow ups