[Yahoo-eng-team] [Bug 1481783] Re: snaptshot image can't be shown properly
The fix was merged by commit 8454fe70a0d3914ac2f4a538ca112ea6ece9c572. ** Changed in: glance Status: New => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1481783 Title: snaptshot image can't be shown properly Status in Glance: Fix Released Bug description: When create a snapshot , then check the snapshot image by glance client, it failed with schema error. [root@vm134 glance]# glance image-show 8b571100-8dd7-4303-9695-927e500f71a0 None is not of type u'string' Failed validating u'type' in schema[u'properties'][u'ramdisk_id']: {u'description': u'ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.', u'is_base': False, u'pattern': u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$', u'type': u'string'} On instance[u'ramdisk_id']: None [root@vm134 glance]# glance image-show 8b571100-8dd7-4303-9695-927e500f71a0 None is not of type u'string' Failed validating u'type' in schema[u'properties'][u'kernel_id']: {u'description': u'ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.', u'is_base': False, u'pattern': u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$', u'type': u'string'} On instance[u'kernel_id']: To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1481783/+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 1481783] [NEW] snaptshot image can't be shown properly
Public bug reported: When create a snapshot , then check the snapshot image by glance client, it failed with schema error. [root@vm134 glance]# glance image-show 8b571100-8dd7-4303-9695-927e500f71a0 None is not of type u'string' Failed validating u'type' in schema[u'properties'][u'ramdisk_id']: {u'description': u'ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.', u'is_base': False, u'pattern': u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$', u'type': u'string'} On instance[u'ramdisk_id']: None [root@vm134 glance]# glance image-show 8b571100-8dd7-4303-9695-927e500f71a0 None is not of type u'string' Failed validating u'type' in schema[u'properties'][u'kernel_id']: {u'description': u'ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.', u'is_base': False, u'pattern': u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$', u'type': u'string'} On instance[u'kernel_id']: ** Affects: glance Importance: Undecided Assignee: Long Quan Sha (shalq) Status: New ** Changed in: glance Assignee: (unassigned) => Long Quan Sha (shalq) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1481783 Title: snaptshot image can't be shown properly Status in Glance: New Bug description: When create a snapshot , then check the snapshot image by glance client, it failed with schema error. [root@vm134 glance]# glance image-show 8b571100-8dd7-4303-9695-927e500f71a0 None is not of type u'string' Failed validating u'type' in schema[u'properties'][u'ramdisk_id']: {u'description': u'ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.', u'is_base': False, u'pattern': u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$', u'type': u'string'} On instance[u'ramdisk_id']: None [root@vm134 glance]# glance image-show 8b571100-8dd7-4303-9695-927e500f71a0 None is not of type u'string' Failed validating u'type' in schema[u'properties'][u'kernel_id']: {u'description': u'ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.', u'is_base': False, u'pattern': u'^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$', u'type': u'string'} On instance[u'kernel_id']: To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1481783/+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 1474907] Re: HTTP 500 error during create task
** Changed in: glance Status: In Progress => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1474907 Title: HTTP 500 error during create task Status in Glance: Invalid Bug description: When I run glance task-create, missing --input, it will result in http 500 error. It is straightforward there is another parameter missing. It should show user a correct message. [root@vm134 ]# glance task-create --type import HTTPInternalServerError (HTTP 500) To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1474907/+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 1474907] [NEW] HTTP 500 error during create task
Public bug reported: When I run glance task-create, missing --input, it will result in http 500 error. It is straightforward there is another parameter missing. It should show user a correct message. [root@vm134 ]# glance task-create --type import HTTPInternalServerError (HTTP 500) ** Affects: glance Importance: Undecided Assignee: Long Quan Sha (shalq) Status: New ** Changed in: glance Assignee: (unassigned) => Long Quan Sha (shalq) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1474907 Title: HTTP 500 error during create task Status in Glance: New Bug description: When I run glance task-create, missing --input, it will result in http 500 error. It is straightforward there is another parameter missing. It should show user a correct message. [root@vm134 ]# glance task-create --type import HTTPInternalServerError (HTTP 500) To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1474907/+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 1472449] [NEW] download error when the image locations is blank
Public bug reported: When the locations is blank, downloading image will show python error, but the error message is not correct. [root@vm134 pe]# glance image-show 9be94a27-367f-4a26-ae7a-045db3cb7332 +--+--+ | Property | Value| +--+--+ | checksum | None | | container_format | None | | created_at | 2015-07-02T09:09:22Z | | disk_format | None | | id | 9be94a27-367f-4a26-ae7a-045db3cb7332 | | locations| [] | | min_disk | 0| | min_ram | 0| | name | test | | owner| e4b36a5b654942328943a835339a6289 | | protected| False| | size | None | | status | queued | | tags | [] | | updated_at | 2015-07-02T09:09:22Z | | virtual_size | None | | visibility | private | +--+--+ [root@vm134 pe]# glance image-download 9be94a27-367f-4a26-ae7a-045db3cb7332 --file myimg iter() returned non-iterator of type 'NoneType' ** Affects: glance Importance: Undecided Assignee: Long Quan Sha (shalq) Status: New ** Changed in: glance Assignee: (unassigned) => Long Quan Sha (shalq) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1472449 Title: download error when the image locations is blank Status in OpenStack Image Registry and Delivery Service (Glance): New Bug description: When the locations is blank, downloading image will show python error, but the error message is not correct. [root@vm134 pe]# glance image-show 9be94a27-367f-4a26-ae7a-045db3cb7332 +--+--+ | Property | Value| +--+--+ | checksum | None | | container_format | None | | created_at | 2015-07-02T09:09:22Z | | disk_format | None | | id | 9be94a27-367f-4a26-ae7a-045db3cb7332 | | locations| [] | | min_disk | 0| | min_ram | 0| | name | test | | owner| e4b36a5b654942328943a835339a6289 | | protected| False| | size | None | | status | queued | | tags | [] | | updated_at | 2015-07-02T09:09:22Z | | virtual_size | None | | visibility | private | +--+--+ [root@vm134 pe]# glance image-download 9be94a27-367f-4a26-ae7a-045db3cb7332 --file myimg iter() returned non-iterator of type 'NoneType' To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1472449/+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 1469356] [NEW] glance v2 image api should provide accurate message for user
Public bug reported: glance v2 api is uses multiple proxies, the exceptions is thrown from those proxies and be handled in v2 api. The original message in exception is more accurate, we should show that original message to user, instead of making a common message which is not useful for end user. For example: when user attempts to create membership to a public image, currently he will get a message "Not allowed to create members for image", user doesn't get useful information. If we use the message from the original exception, it will show "Public images do not have members", it is more accurate. ** Affects: glance Importance: Undecided Assignee: Long Quan Sha (shalq) Status: New ** Changed in: glance Assignee: (unassigned) => Long Quan Sha (shalq) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1469356 Title: glance v2 image api should provide accurate message for user Status in OpenStack Image Registry and Delivery Service (Glance): New Bug description: glance v2 api is uses multiple proxies, the exceptions is thrown from those proxies and be handled in v2 api. The original message in exception is more accurate, we should show that original message to user, instead of making a common message which is not useful for end user. For example: when user attempts to create membership to a public image, currently he will get a message "Not allowed to create members for image", user doesn't get useful information. If we use the message from the original exception, it will show "Public images do not have members", it is more accurate. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1469356/+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 1462315] [NEW] glance member-create failed with HTTP 500 error
Public bug reported: At first, I run "glance member-create" and then "glance member-delete", they were successful. But when I run "glance member-create" again with the same parameters, it failed with HTTP 500 error. [root@vm9 /]# glance member-create 2d2421ca-d4bd-4c69-91cf-5d167d20073a 95e0dd9ed89544428f1daa7071c6990f [root@vm9 /]# glance member-delete 2d2421ca-d4bd-4c69-91cf-5d167d20073a 95e0dd9ed89544428f1daa7071c6990f [root@vm9 /]# glance member-create 2d2421ca-d4bd-4c69-91cf-5d167d20073a 95e0dd9ed89544428f1daa7071c6990f HTTPInternalServerError (HTTP 500) glance registry.log : File "/usr/lib/python2.7/site-packages/glance/registry/api/v1/members.py", line 269, in update self.db_api.image_member_create(req.context, values) File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 1020, in image_member_create _image_member_update(context, memb_ref, values, session=session) File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/api.py", line 1051, in _image_member_update memb_ref.save(session=session) File "/usr/lib/python2.7/site-packages/glance/db/sqlalchemy/models.py", line 77, in save super(GlanceBase, self).save(session or db_api.get_session()) File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/models.py", line 48, in save session.flush() File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 1919, in flush self._flush(objects) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2037, in _flush transaction.rollback(_capture_exception=True) File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__ compat.reraise(exc_type, exc_value, exc_tb) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2001, in _flush flush_context.execute() File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 372, in execute rec.execute(self) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 526, in execute uow File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 65, in save_obj mapper, table, insert) File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 602, in _emit_insert_statements execute(statement, params) File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 729, in execute return meth(self, multiparams, params) File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/elements.py", line 322, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 826, in _execute_clauseelement compiled_sql, distilled_params File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 958, in _execute_context context) File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/compat/handle_error.py", line 261, in _handle_dbapi_exception e, statement, parameters, cursor, context) File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1155, in _handle_dbapi_exception util.raise_from_cause(newraise, exc_info) File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause reraise(type(exception), exception, tb=exc_tb) File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 951, in _execute_context context) File "/usr/lib/python2.7/site-packages/ibm_db_sa/ibm_db.py", line 106, in do_execute cursor.execute(statement, parameters) File "/usr/lib64/python2.7/site-packages/ibm_db_dbi.py", line 1335, in execute self._execute_helper(parameters) File "/usr/lib64/python2.7/site-packages/ibm_db_dbi.py", line 1247, in _execute_helper raise self.messages[len(self.messages) - 1] DBDuplicateEntry: (IntegrityError) ibm_db_dbi::IntegrityError: Statement Execute Failed: [IBM][CLI Driver][DB2/LINUXX8664] SQL0803N One or more values in the INSERT statement, UPDATE statement, or foreign key update caused by a DELETE statement are not valid because the primary key, unique constraint or unique index identified by "2" constrains table "GLANCE.IMAGE_MEMBERS" from having duplicate values for the index key. SQLSTATE=23505 SQLCODE=-803 'INSERT INTO image_members (created_at, updated_at, deleted_at, deleted, image_id, "member", can_share, status) VALUES (?, ?, ?, ?, ?, ?, ?, ?)' (datetime.datetime(2015, 6, 5, 10, 39, 9, 724699), datetime.datetime(2015, 6, 5, 10, 39, 9, 724711), None, '0', '2d2421ca-d4bd-4c69-91cf-5d167d20073a', '95e0dd9ed89544428f1daa7071c6990f', '0', 'pending') ** 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/1462315 Title: glance member-create failed with HTTP 50