yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #21015
[Bug 1361081] Re: v1&v2 creation interface prompts differences when Image name exceeds limit
Jin,
What's wrong with the v2 output?
FWIW, we're probably not in a position to make the error output
consistent across api versions, if that is what you're asking for.
** Changed in: glance
Status: New => Won't Fix
** Also affects: python-glanceclient
Importance: Undecided
Status: New
** Changed in: python-glanceclient
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1361081
Title:
v1&v2 creation interface prompts differences when Image name exceeds
limit
Status in OpenStack Image Registry and Delivery Service (Glance):
Won't Fix
Status in Python client library for Glance:
Won't Fix
Bug description:
v1 api gives clear prompt as below,
linux:˜/source> glance image-create --name="cirros-0.3.2-x86_64-11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111" --disk-format=qcow2 \
> --container-format=bare --is-public=true --min-disk=133766616\
> --copy-from http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img
Request returned failure status 400.
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
Image name too long: 820<br /><br />
</body>
</html> (HTTP 400)
v2 gives blur prompt,
# glance --os-image-api-version 2 image-create --name Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong. --disk-format=qcow2 --container-format=bare < cirros-0.3.2-x86_64-disk.img
Unable to set 'name' to
'Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.Thisimagenameistoolong.'
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1361081/+subscriptions
References