Public bug reported: There is some validation here, but it doesn't seem to be complete: $ nova volume-attach ad1f16cc-d859-4f9d-a7b5-12d28d7ac53c 11111111-2222-4f9d-5555-6 ERROR (BadRequest): Invalid input for field/attribute volumeId. Value: 11111111-2222-4f9d-5555-6. u'11111111-2222-4f9d-5555-6' is not a 'uuid' (HTTP 400)
$ nova volume-attach ad1f16cc-d859-4f9d-a7b5-12d28d7ac53c 11111111-2222-4f9d-5555--666666666666 (note the double hyphen) RemoteError: Remote error: DBDataError (pymysql.err.DataError) (1406, u"Data too long for column 'volume_id' at row 1") [SQL: u'INSERT INTO block_device_mapping (created_at, updated_at, deleted_at, deleted, instance_uuid, source_type, destination_type, guest_format, device_type, disk_bus, boot_index, device_name, delete_on_termination, snapshot_id, volume_id, volume_size, image_id, no_device, connection_info, tag, attachment_id) VALUES ... master @ bc31f5a Merge "Add description to policies in servers_migrations.py" ** Affects: nova Importance: Undecided Status: New -- 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/1680130 Title: Attaching a volume w/ an invalid (too long) UUID results in HTTP 500. Status in OpenStack Compute (nova): New Bug description: There is some validation here, but it doesn't seem to be complete: $ nova volume-attach ad1f16cc-d859-4f9d-a7b5-12d28d7ac53c 11111111-2222-4f9d-5555-6 ERROR (BadRequest): Invalid input for field/attribute volumeId. Value: 11111111-2222-4f9d-5555-6. u'11111111-2222-4f9d-5555-6' is not a 'uuid' (HTTP 400) $ nova volume-attach ad1f16cc-d859-4f9d-a7b5-12d28d7ac53c 11111111-2222-4f9d-5555--666666666666 (note the double hyphen) RemoteError: Remote error: DBDataError (pymysql.err.DataError) (1406, u"Data too long for column 'volume_id' at row 1") [SQL: u'INSERT INTO block_device_mapping (created_at, updated_at, deleted_at, deleted, instance_uuid, source_type, destination_type, guest_format, device_type, disk_bus, boot_index, device_name, delete_on_termination, snapshot_id, volume_id, volume_size, image_id, no_device, connection_info, tag, attachment_id) VALUES ... master @ bc31f5a Merge "Add description to policies in servers_migrations.py" To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1680130/+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