← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1477912] [NEW] size still exist when create image with incomplete parameter in api v1

 

Public bug reported:

version:Glance master

Reproduce:
1. glance image-create --file xxxx --name test    (in my env, image file's size is 642580480B)
   Then An error raised: 400 Bad Request: Disk format is not specified. (HTTP 400)

2. glance image-list
    list information:

ID  | Name | Disk Format | Container Format |   Size   | Status
--------------------------------------------------------------------
xxx | test |             |                  |642580480 | queued

    except: There should not leave 'size' in the list.

ID  | Name | Disk Format | Container Format |   Size   | Status
--------------------------------------------------------------------
xxx | test |             |                  |          | queued

There is no bug in api v2.  Only occured in api v1

** Affects: glance
     Importance: Undecided
     Assignee: wangxiyuan (wangxiyuan)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => wangxiyuan (wangxiyuan)

** Description changed:

  version:Glance master
  
  Reproduce:
  1. glance image-create --file xxxx --name test    (in my env, image file's size is 642580480B)
-    Then An error raised: 400 Bad Request: Disk format is not specified. (HTTP 400)
+    Then An error raised: 400 Bad Request: Disk format is not specified. (HTTP 400)
  
  2. glance image-list
-     list information:
- +--------------------------------------------------+---------+---------------+-----------------------+-------------+--------+
- | ID                                                       | Name   | Disk Format | Container Format | Size           | Status |
- +--------------------------------------------------+---------+---------------+-----------------------+-------------+--------+
- | b2e8b309-d40f-4399-b34f-44bfdf6791e0 | test     |                   |                           | 642580480 | queued |
- +--------------------------------------------------+---------+---------------+-----------------------+-------------+--------+
+     list information:
+ +--------------------------------------------------+---------+---------------+------------
+ | ID                            | Name   | Disk Format | Container Format | Size | Status |+--------------------------------------------------+---------+---------------+-----------
+ | b2e8b309-d40f-4399-b34f-44bfdf6791e0 | test     |        |       | 642580480 | queued |
+ +--------------------------------------------------+---------+---------------+------------
  
  except: without 'size'
- +--------------------------------------------------+---------+---------------+-----------------------+-------------+--------+
- | ID                                                       | Name   | Disk Format | Container Format | Size           | Status |
- +--------------------------------------------------+---------+---------------+-----------------------+-------------+--------+
- | b2e8b309-d40f-4399-b34f-44bfdf6791e0 | test     |                   |                           |                  | queued |
- +--------------------------------------------------+---------+---------------+-----------------------+-------------+--------+
- 
+ +--------------------------------------------------+---------+---------------+------------
+ | ID                            | Name   | Disk Format | Container Format | Size | Status |+--------------------------------------------------+---------+---------------+-----------
+ | b2e8b309-d40f-4399-b34f-44bfdf6791e0 | test     |        |               |    | queued |
+ +--------------------------------------------------+---------+---------------+------------
  
  There is no bug in api v2.  Only occured in api v1

** Description changed:

  version:Glance master
  
  Reproduce:
  1. glance image-create --file xxxx --name test    (in my env, image file's size is 642580480B)
     Then An error raised: 400 Bad Request: Disk format is not specified. (HTTP 400)
  
  2. glance image-list
      list information:
- +--------------------------------------------------+---------+---------------+------------
- | ID                            | Name   | Disk Format | Container Format | Size | Status |+--------------------------------------------------+---------+---------------+-----------
- | b2e8b309-d40f-4399-b34f-44bfdf6791e0 | test     |        |       | 642580480 | queued |
- +--------------------------------------------------+---------+---------------+------------
+ 
+ ID  | Name | Disk Format | Container Format |   Size   | Status 
+ --------------------------------------------------------------------
+ xxx | test |                                |642580480 | queued 
  
  except: without 'size'
- +--------------------------------------------------+---------+---------------+------------
- | ID                            | Name   | Disk Format | Container Format | Size | Status |+--------------------------------------------------+---------+---------------+-----------
- | b2e8b309-d40f-4399-b34f-44bfdf6791e0 | test     |        |               |    | queued |
- +--------------------------------------------------+---------+---------------+------------
+ ID  | Name | Disk Format | Container Format |   Size   | Status 
+ --------------------------------------------------------------------
+ xxx | test |                                |          | queued 
  
  There is no bug in api v2.  Only occured in api v1

** Description changed:

  version:Glance master
  
  Reproduce:
  1. glance image-create --file xxxx --name test    (in my env, image file's size is 642580480B)
     Then An error raised: 400 Bad Request: Disk format is not specified. (HTTP 400)
  
  2. glance image-list
      list information:
  
- ID  | Name | Disk Format | Container Format |   Size   | Status 
+ ID  | Name | Disk Format | Container Format |   Size   | Status
  --------------------------------------------------------------------
- xxx | test |                                |642580480 | queued 
+ xxx | test |             |                  |642580480 | queued
  
  except: without 'size'
- ID  | Name | Disk Format | Container Format |   Size   | Status 
+ ID  | Name | Disk Format | Container Format |   Size   | Status
  --------------------------------------------------------------------
- xxx | test |                                |          | queued 
+ xxx | test |             |                  |          | queued
  
  There is no bug in api v2.  Only occured in api v1

** Description changed:

  version:Glance master
  
  Reproduce:
  1. glance image-create --file xxxx --name test    (in my env, image file's size is 642580480B)
     Then An error raised: 400 Bad Request: Disk format is not specified. (HTTP 400)
  
  2. glance image-list
      list information:
  
  ID  | Name | Disk Format | Container Format |   Size   | Status
  --------------------------------------------------------------------
  xxx | test |             |                  |642580480 | queued
  
- except: without 'size'
+     except: There should not leave 'size' in the list.
+ 
  ID  | Name | Disk Format | Container Format |   Size   | Status
  --------------------------------------------------------------------
  xxx | test |             |                  |          | queued
  
  There is no bug in api v2.  Only occured in api v1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1477912

Title:
  size still exist when create image with incomplete parameter in api v1

Status in Glance:
  New

Bug description:
  version:Glance master

  Reproduce:
  1. glance image-create --file xxxx --name test    (in my env, image file's size is 642580480B)
     Then An error raised: 400 Bad Request: Disk format is not specified. (HTTP 400)

  2. glance image-list
      list information:

  ID  | Name | Disk Format | Container Format |   Size   | Status
  --------------------------------------------------------------------
  xxx | test |             |                  |642580480 | queued

      except: There should not leave 'size' in the list.

  ID  | Name | Disk Format | Container Format |   Size   | Status
  --------------------------------------------------------------------
  xxx | test |             |                  |          | queued

  There is no bug in api v2.  Only occured in api v1

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


Follow ups