image can't be registered without description parameter

Bug #1510505 reported by Andrey Pavlov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Andrey Pavlov

Bug Description

Attempts to register image without description parameter lead to the following error:

2015-10-27 14:38:24.698 9351 ERROR sahara.utils.api [req-4c2eac72-ffb1-4a7e-8274-8402772066e5 ] Request aborted with status code 500 and message 'Internal Server Error'
2015-10-27 14:38:24.699 9351 ERROR sahara.utils.api [req-4c2eac72-ffb1-4a7e-8274-8402772066e5 ] Traceback (most recent call last):
  File "/home/kshatrix/sahara/sahara/utils/api.py", line 97, in handler
    return func(**kwargs)
  File "/home/kshatrix/sahara/sahara/api/acl.py", line 43, in handler
    return func(*args, **kwargs)
  File "/home/kshatrix/sahara/sahara/service/validation.py", line 76, in handler
    return func(*args, **kwargs)
  File "/home/kshatrix/sahara/sahara/service/validation.py", line 47, in handler
    return func(*args, **kwargs)
  File "/home/kshatrix/sahara/sahara/api/v10.py", line 239, in images_set
    return u.render(api.register_image(image_id, **data).wrapped_dict)
  File "/home/kshatrix/sahara/sahara/service/api.py", line 284, in register_image
    client.images.set_description, image_id, username, description)
  File "/home/kshatrix/sahara/sahara/utils/openstack/base.py", line 101, in execute_with_retries
    raise e
BadRequest: Invalid input for field/attribute _sahara_description. Value: None. None is not of type 'string' (HTTP 400) (Request-ID: req-83bebc2a-b916-407f-b9dd-017bc7128e07)

Changed in sahara:
assignee: nobody → Andrey Pavlov (apavlov-n)
Changed in sahara:
importance: Undecided → Medium
milestone: none → mitaka-1
status: New → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (master)

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

Changed in sahara:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/239653
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=99309f6690a92b160f120186515cf0fa90c04d70
Submitter: Jenkins
Branch: master

commit 99309f6690a92b160f120186515cf0fa90c04d70
Author: Andrey Pavlov <email address hidden>
Date: Tue Oct 27 15:22:46 2015 +0300

    Adding ability to register image without description

    set_description method of SaharaImageManager was changed
    so that its description parameter became optional

    Change-Id: Ib357872e658b9c74f12cfedc1b505ce00e555d0f
    Closes-bug: #1510505

Changed in sahara:
status: In Progress → Fix Committed
Changed in sahara:
status: Fix Committed → Fix Released
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.