PowerVC volume image import failed
If you are passing volume names to
powervc-volume-image-import
as you import an image, and receive an error message
such as, "No volume with a name or ID of <foobar>
exists," then use this
information to solve the problem.
Explanation
The OpenStack volumes API provides a way to search for volumes by either
ID or name. This API modifies the search parameters that are passed to it by calling
ast.literal_eval()
method on each of them. This method does not work for strings
that contain quotation marks in them. For example, both of the following strings are
invalid:>>>ast.literal_eval('["test"]')
['test']
Solution
- To avoid the error message, use the volume ID instead of the volume name when you are calling
powervc-volume-image-import
. - Avoid creating volumes with quotation marks.