| Summary: | glanceclient: image-create fails with the flags --location / --copy-from with the --progress flag | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Yogev Rabl <yrabl> |
| Component: | python-glanceclient | Assignee: | Jon Bernard <jobernar> |
| Status: | CLOSED ERRATA | QA Contact: | Yogev Rabl <yrabl> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.0 | CC: | dnavale, eglynn, fpercoco, hateya, jobernar, jruzicka, scohen, srevivo, tshefi, yeylon, yrabl |
| Target Milestone: | z4 | Keywords: | Reopened, ZStream |
| Target Release: | 4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | storage | ||
| Fixed In Version: | python-glanceclient-0.12.0-2.el6ost | Doc Type: | Bug Fix |
| Doc Text: |
Previously, when a user used parameters '--location' for URL of a remote image and the '--progress' flag with the glance command line client, an error occurred and the string data was printed out to the stdout. This was due to the glance client not supporting this combination of arguments. The glance client only shows a progress bar when creating an image from a local file.
With this update, when a user requests a progress bar using the '--progress' flag, it checks to make sure that the image data is local. If not, the request for progress bar is ignored. As a result, the user can use the '--progress' flag for both the local and remote image sources, without an error output. Although, the progress bar is displayed only in the case of the local image sources.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-05-29 19:57:09 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Yogev Rabl
2013-12-03 08:09:27 UTC
Closing since there's not enough info to debug this. Please, provide more info along with the bug report (CLI / Server debug output). Feel free to file it if it's still valid and you've more info about the actual error. Thanks! Reopned as it's 100% reproducible. Semi dist setup openstack-glance-2013.2.1-3.el6ost.noarch Using --location or --copy file with --progress -> no image created, only get 'data' on cli prompt. Thanks Tzach for re-opening and the access to the test environment. That was helpful. This is a glanceclient bug. The `--progress` flag tries to get the data from the parsed CLI fields but there's not such a field there. http://git.openstack.org/cgit/openstack/python-glanceclient/tree/glanceclient/v1/shell.py#n229 Patch was merged upstream, backport is needed. Patch was merged internally, but a build was needed before the deadline. We could ask Lon for an exception but I don't think this bug is important enough for that. Pushing to A5. verified on version: python-glanceclient-0.12.0-2.el6ost.noarch python-glance-2013.2.3-2.el6ost.noarch openstack-glance-2013.2.3-2.el6ost.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0577.html |