Comment 0 for bug 1693710

Revision history for this message
Alexey Stupnikov (astupnikov) wrote : metadata option doesn't support unicode

There is upstream bug #1693151. We need to backport the solution to out private branches.

Bug description:

Due to suboptimal type restriction it is impossible to provide unicode arguments with --metadata option.

Example:

cinder create --metadata 'test'='тест' 1
usage: cinder create [--consisgroup-id <consistencygroup-id>]
                     [--snapshot-id <snapshot-id>]
                     [--source-volid <source-volid>]
                     [--source-replica <source-replica>]
                     [--image-id <image-id>] [--image <image>] [--name <name>]
                     [--description <description>]
                     [--volume-type <volume-type>]
                     [--availability-zone <availability-zone>]
                     [--metadata [<key=value> [<key=value> ...]]]
                     [--hint <key=value>] [--allow-multiattach]
                     [<size>]
error: argument --metadata: invalid str value: u'test=u\u0442\u0435\u0441\u0442'
Try 'cinder help create' for more information.