All latest (0.14.0) client v2 requests broken when querying any Glance server which is not running head of tree code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Critical
|
Unassigned |
Bug Description
When the 0.14.0 client is run against a glance server which is not head of tree the following exception is raised:
2014-09-09 13:08:59.606 DEBUG curl -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-
2014-09-09 13:08:59.621 ERROR Request returned failure status 404.
2014-09-09 13:08:59.624 CRITICAL HTTPNotFound: <html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
The resource could not be found.<br /><br />
</body>
</html> (HTTP 404)
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller Traceback (most recent call last):
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/usr/local/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller sys.exit(main())
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller fn(*fn_args)
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller engine.run()
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller for _state in self.run_iter():
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller misc.Failure.
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller failures[
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller six.reraise(
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller result = task.execute(
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller client = self.get_
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller insecure=
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller return client_class(*args, **kwargs)
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller resource_type_model = self._get_
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller schema = self.schemas.
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller _, raw_schema = self.http_
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller return self._request(
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller File "/opt/stack/
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller raise exc.from_
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller HTTPNotFound: <html>
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller <head>
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller <title>404 Not Found</title>
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller </head>
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller <body>
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller <h1>404 Not Found</h1>
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller The resource could not be found.<br /><br />
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller </body>
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller </html> (HTTP 404)
2014-09-09 13:08:59.624 1830 TRACE dnsaasinstaller
summary: |
- metadef exception when client run against older server + metadef exception when client run against older server's v2 api |
Changed in python-glanceclient: | |
status: | Fix Committed → Fix Released |
To reproduce:
$ ./.tox/ py27/bin/ glance --verbose --os-image- api-version 2 image-list common. http"
No handlers could be found for logger "glanceclient.
Request returned failure status 404.
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
The resource could not be found.<br /><br />
</body>
</html> (HTTP 404)
versus:
$ ./.tox/ py27/bin/ glance --verbose --os-image- api-version 1 image-list ------- ------- ------- ------- -----+- ------- ------- ------- ------- ----+-- ------- ----+-- ------- ------- --+---- ------- -+----- ---+ ------- ------- ------- ------- -----+- ------- ------- ------- ------- ----+-- ------- ----+-- ------- ------- --+---- ------- -+----- ---+ e2eb-4575- b242-8704517e95 d7 | cirros- 0.3.2-x86_ 64-uec | ami | ami | 25165824 | active | a839-474f- a16b-34779c6590 5c | cirros- 0.3.2-x86_ 64-uec- kernel | aki | aki | 4969360 | active |
+-----
| ID | Name | Disk Format | Container Format | Size | Status |
+-----
| 3def22ed-
| ca34f1b7-