[Yahoo-eng-team] [Bug 1631995] [NEW] Incorrect debug message when swift driver can't determine image size

2016-10-10 Thread Darja Shakhray
Public bug reported:

When image is uploaded to Swift as a segmented object, it cannot
correctly determine its size. As a result glance prints debug message:
"Cannot determine image size. Adding as a segmented object to Swift."

The first part of the message is not necessary. This post looks
alarmingly like an error message that leads people confused.

** Affects: glance
 Importance: Low
 Status: Confirmed

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

Title:
  Incorrect debug message when swift driver can't determine image size

Status in Glance:
  Confirmed

Bug description:
  When image is uploaded to Swift as a segmented object, it cannot
  correctly determine its size. As a result glance prints debug message:
  "Cannot determine image size. Adding as a segmented object to Swift."

  The first part of the message is not necessary. This post looks
  alarmingly like an error message that leads people confused.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1611389] [NEW] 500 error when using unicode in url

2016-08-09 Thread Darja Shakhray
Public bug reported:

ENVARIMENT: devstack, master 09.08.2016, glance

send request: 
curl -H "X-Auth-Token: token" -H "Content-Type: text/html; charset=UTF-8" -X 
GET http://host:port/v2/images?name=ввв

actual result: 500 error, log http://paste.openstack.org/show/552442/

** Affects: glance
 Importance: Undecided
 Assignee: Darja Shakhray (dshakhray)
 Status: New

** Changed in: glance
 Assignee: (unassigned) => Darja Shakhray (dshakhray)

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

Title:
  500 error when using unicode in url

Status in Glance:
  New

Bug description:
  ENVARIMENT: devstack, master 09.08.2016, glance

  send request: 
  curl -H "X-Auth-Token: token" -H "Content-Type: text/html; charset=UTF-8" -X 
GET http://host:port/v2/images?name=ввв

  actual result: 500 error, log http://paste.openstack.org/show/552442/

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1539006] [NEW] Unused exception and unnecessary actions in the db

2016-01-28 Thread Darja Shakhray
Public bug reported:

Do update the image when you delete an image from the database to. Then,
caught exception ImageNotFound and Forbidden. The check of access takes
place at higher layer domain model. This code is obsolete. Extra
updating image  increases the load on the db.

https://github.com/openstack/glance/blob/master/glance/db/__init__.py#L285-L295
https://github.com/openstack/glance/blob/master/glance/db/__init__.py#L278

** Affects: glance
 Importance: Undecided
 Assignee: Darja Shakhray (dshakhray)
 Status: New

** Changed in: glance
 Assignee: (unassigned) => Darja Shakhray (dshakhray)

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

Title:
  Unused exception and unnecessary actions in the db

Status in Glance:
  New

Bug description:
  Do update the image when you delete an image from the database to.
  Then, caught exception ImageNotFound and Forbidden. The check of
  access takes place at higher layer domain model. This code is
  obsolete. Extra updating image  increases the load on the db.

  
https://github.com/openstack/glance/blob/master/glance/db/__init__.py#L285-L295
  https://github.com/openstack/glance/blob/master/glance/db/__init__.py#L278

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1537050] [NEW] 500 error when filtering on non-ASCII value

2016-01-22 Thread Darja Shakhray
Public bug reported:

ENVARIMENT: devstack, master 21.01.2016, glance, artifacts

send request: curl -H "X-Auth-Token: token"  -H "Accept-Encoding: utf8"
http://host:port/v3/artifacts/myartifact/v2.0/drafts?name=дд

actual result:
2016-01-22 12:58:13.683 ERROR glance.common.wsgi 
[req-31378054-50ef-42aa-80d6-2f014b8e7317 580fe2a1e2f049408f0feedf9f199e2d 
04cd4fafed9b4a5a826c187375b6297d] Caught error: 'ascii' codec can't encode 
characters in position 0-1: ordinal not in range(128)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi Traceback (most recent call 
last):
2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/common/wsgi.py", line 882, in __call__
2016-01-22 12:58:13.683 TRACE glance.common.wsgi action, request)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/common/wsgi.py", line 919, in dispatch
2016-01-22 12:58:13.683 TRACE glance.common.wsgi return method(*args, 
**kwargs)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/api/v3/artifacts.py", line 822, in list
2016-01-22 12:58:13.683 TRACE glance.common.wsgi params)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/api/v3/artifacts.py", line 780, in _get_filters
2016-01-22 12:58:13.683 TRACE glance.common.wsgi property_value = 
self._bring_to_type(str_type, property_value)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/api/v3/artifacts.py", line 715, in _bring_to_type
2016-01-22 12:58:13.683 TRACE glance.common.wsgi return 
mapper[type_name](value)
2016-01-22 12:58:13.683 TRACE glance.common.wsgi UnicodeEncodeError: 'ascii' 
codec can't encode characters in position 0-1: ordinal not in range(128)

** Affects: glance
 Importance: Undecided
 Assignee: Darja Shakhray (dshakhray)
 Status: New


** Tags: artifacts

** Changed in: glance
 Assignee: (unassigned) => Darja Shakhray (dshakhray)

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

Title:
  500 error when filtering on non-ASCII value

Status in Glance:
  New

Bug description:
  ENVARIMENT: devstack, master 21.01.2016, glance, artifacts

  send request: curl -H "X-Auth-Token: token"  -H "Accept-Encoding:
  utf8" http://host:port/v3/artifacts/myartifact/v2.0/drafts?name=дд

  actual result:
  2016-01-22 12:58:13.683 ERROR glance.common.wsgi 
[req-31378054-50ef-42aa-80d6-2f014b8e7317 580fe2a1e2f049408f0feedf9f199e2d 
04cd4fafed9b4a5a826c187375b6297d] Caught error: 'ascii' codec can't encode 
characters in position 0-1: ordinal not in range(128)
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi Traceback (most recent call 
last):
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/common/wsgi.py", line 882, in __call__
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi action, request)
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/common/wsgi.py", line 919, in dispatch
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi return method(*args, 
**kwargs)
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/api/v3/artifacts.py", line 822, in list
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi params)
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/api/v3/artifacts.py", line 780, in _get_filters
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi property_value = 
self._bring_to_type(str_type, property_value)
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi   File 
"/opt/stack/glance/glance/api/v3/artifacts.py", line 715, in _bring_to_type
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi return 
mapper[type_name](value)
  2016-01-22 12:58:13.683 TRACE glance.common.wsgi UnicodeEncodeError: 'ascii' 
codec can't encode characters in position 0-1: ordinal not in range(128)

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1522027] [NEW] Glance doesn't catches UnicodeDecodeError exception

2015-12-02 Thread Darja Shakhray
Public bug reported:

ENVIRONMENT: devstack, Glance (master, 02.12.2015)

STEPS TO REPRODUCE:
curl -H "X-Auth-Token: token"  -X GET http://localhost:9292/v2/images?name=%FF 
-i

ACTUAL RESULT:
HTTP/1.1 500 Internal Server Error
Content-Length: 228
Content-Type: text/html; charset=UTF-8
X-Openstack-Request-Id: req-d2497fe5-443a-43eb-be30-c38418aca1e1
Date: Wed, 02 Dec 2015 12:20:23 GMT


 
  500 Internal Server Error
 
 
  500 Internal Server Error
  The server has either erred or is incapable of performing the requested 
operation.


 


logs: http://paste.openstack.org/show/480634/

** Affects: glance
 Importance: Undecided
 Assignee: Darja Shakhray (dshakhray)
 Status: New

** Changed in: glance
 Assignee: (unassigned) => Darja Shakhray (dshakhray)

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

Title:
  Glance doesn't catches UnicodeDecodeError exception

Status in Glance:
  New

Bug description:
  ENVIRONMENT: devstack, Glance (master, 02.12.2015)

  STEPS TO REPRODUCE:
  curl -H "X-Auth-Token: token"  -X GET 
http://localhost:9292/v2/images?name=%FF -i

  ACTUAL RESULT:
  HTTP/1.1 500 Internal Server Error
  Content-Length: 228
  Content-Type: text/html; charset=UTF-8
  X-Openstack-Request-Id: req-d2497fe5-443a-43eb-be30-c38418aca1e1
  Date: Wed, 02 Dec 2015 12:20:23 GMT

  
   
500 Internal Server Error
   
   
500 Internal Server Error
The server has either erred or is incapable of performing the requested 
operation.


   
  

  logs: http://paste.openstack.org/show/480634/

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1517809] [NEW] Filtering by 'created_at' and 'updated_at' when specify invalid value causes 500 error

2015-11-19 Thread Darja Shakhray
Public bug reported:

ENVIRONMENT: devstack, Glance (master, 19.11.2015)

STEPS TO REPRODUCE:
send request 
curl -H "X-Auth-Token: token"  -X GET 
http://localhost:9292/v2/images?updated_at=lt:100 -i
or 
curl -H "X-Auth-Token: token"  -X GET 
http://localhost:9292/v2/images?created_at=lt:100 -i

EXPECTED RESULT:
status code 400 and message error

ACTUAL RESULT:

 
  500 Internal Server Error
 
 
  500 Internal Server Error
  The server has either erred or is incapable of performing the requested 
operation.


 
http://paste.openstack.org/show/479387/

** Affects: glance
 Importance: Undecided
 Status: New

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

Title:
  Filtering by 'created_at' and 'updated_at'  when specify invalid value
  causes 500 error

Status in Glance:
  New

Bug description:
  ENVIRONMENT: devstack, Glance (master, 19.11.2015)

  STEPS TO REPRODUCE:
  send request 
  curl -H "X-Auth-Token: token"  -X GET 
http://localhost:9292/v2/images?updated_at=lt:100 -i
  or 
  curl -H "X-Auth-Token: token"  -X GET 
http://localhost:9292/v2/images?created_at=lt:100 -i

  EXPECTED RESULT:
  status code 400 and message error

  ACTUAL RESULT:
  
   
500 Internal Server Error
   
   
500 Internal Server Error
The server has either erred or is incapable of performing the requested 
operation.


   
  http://paste.openstack.org/show/479387/

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1517935] [NEW] Filtering by 'created_at' and 'updated_at' when specify invalid operator causes 500 error

2015-11-19 Thread Darja Shakhray
Public bug reported:

ENVIRONMENT: devstack, Glance (master, 19.11.2015)

STEPS TO REPRODUCE:
send request
curl -H "X-Auth-Token: token" -X GET 
http://localhost:9292/v2/images?updated_at=invalid_operator:100 -i
or
curl -H "X-Auth-Token: token" -X GET 
http://localhost:9292/v2/images?created_at=invalid_operator:100 -i

EXPECTED RESULT:
status code 400 and message error

ACTUAL RESULT:

 
  500 Internal Server Error
 
 
  500 Internal Server Error
  The server has either erred or is incapable of performing the requested 
operation.

 
 Darja Shakhray (dshakhray)

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

Title:
  Filtering by 'created_at' and 'updated_at' when specify invalid
  operator causes 500 error

Status in Glance:
  New

Bug description:
  ENVIRONMENT: devstack, Glance (master, 19.11.2015)

  STEPS TO REPRODUCE:
  send request
  curl -H "X-Auth-Token: token" -X GET 
http://localhost:9292/v2/images?updated_at=invalid_operator:100 -i
  or
  curl -H "X-Auth-Token: token" -X GET 
http://localhost:9292/v2/images?created_at=invalid_operator:100 -i

  EXPECTED RESULT:
  status code 400 and message error

  ACTUAL RESULT:
  
   
500 Internal Server Error
   
   
500 Internal Server Error
The server has either erred or is incapable of performing the requested 
operation.

   
  https://bugs.launchpad.net/glance/+bug/1517935/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1511025] Re: Image download with multi tenant true fails

2015-11-02 Thread Darja Shakhray
** Project changed: glance => swift

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

Title:
  Image download with multi tenant true fails

Status in OpenStack Object Storage (swift):
  New

Bug description:
  Overview:
  Trying to download an image while using multi tenant fails.

  How to reproduce:
  In the glance-api.conf set swift_store_multi_tenant = True.

  Then upload an image
  glance --os-image-api-version 1 image-create --name test --copy-from 
http://127.0.0.1:5321 --container-format bare --disk-format raw

  Download image
  glance image-download 965afb71-61f7-4834-b62b-6fc6e3a1d381 --file /tmp/file

  Output:
  'NoneType' object has no attribute 'close'
  The server: http://paste.openstack.org/show/477571/

  Expected:
  Image to be downloaded.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp


[Yahoo-eng-team] [Bug 1512416] [NEW] Glance doesn't catches exception NotFound from glance_store

2015-11-02 Thread Darja Shakhray
Public bug reported:

Glance doesn't catches exception NotFound from glance_store when upload
images
https://github.com/openstack/glance/blob/master/glance/api/v2/image_data.py#L83,
it results to errors http://paste.openstack.org/show/477804/

** Affects: glance
 Importance: Undecided
 Assignee: Darja Shakhray (dshakhray)
 Status: New

** Changed in: glance
 Assignee: (unassigned) => Darja Shakhray (dshakhray)

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

Title:
  Glance doesn't catches exception  NotFound  from glance_store

Status in Glance:
  New

Bug description:
  Glance doesn't catches exception NotFound from glance_store when
  upload images
  
https://github.com/openstack/glance/blob/master/glance/api/v2/image_data.py#L83,
  it results to errors http://paste.openstack.org/show/477804/

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp