heat (kilo) - WARNING keystoneclient.middleware.auth_token [-] This middleware module is deprecated as of v0.10.0 in favor of keystonemiddleware.auth_token
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
heat (Juju Charms Collection) |
Fix Released
|
Medium
|
Ryan Beisner |
Bug Description
On trusty-kilo, UOSCI's heat cli quick check fails ('heat stack-list' returns non-zero). Inspecting the heat unit logs reveals that the heat-api service is infintely terminating/
# reproducer
Using bundle: http://
juju-deployer -Bv -c next-kilo-
heat stack-list
# end-user symptom, cli output
jenkins@
Unable to establish connection to http://
# end-user symptom, cli output (debug)
jenkins@
DEBUG (session) REQ: curl -g -i -X GET http://
DEBUG (session) RESP: [200] date: Thu, 05 Mar 2015 17:22:39 GMT content-type: application/json content-length: 424 vary: X-Auth-Token x-distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
DEBUG (v2) Making authentication request to http://
DEBUG (session) REQ: curl -g -i -X GET http://
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
HeatShell(
File "/usr/local/
args.
File "/usr/local/
utils.
File "/usr/local/
for o in objs:
File "/usr/local/
stacks = self._list(url, 'stacks')
File "/usr/local/
body = self.client.
File "/usr/local/
return self.client_
File "/usr/local/
resp, body = self.json_
File "/usr/local/
resp = self._http_
File "/usr/local/
raise_
File "/usr/local/
return func(*args, **kwargs)
File "/usr/local/
resp = send(**kwargs)
File "/usr/local/
raise exceptions.
keystoneclient.
# from heat unit syslog (infinite terminate/respawn of heat-api)
Mar 5 17:32:20 juju-osci-
Mar 5 17:32:20 juju-osci-
Mar 5 17:32:20 juju-osci-
Mar 5 17:32:20 juju-osci-
Mar 5 17:32:21 juju-osci-
Mar 5 17:32:21 juju-osci-
# from heat-api.log (infinite)
2015-03-05 17:35:39.489 30788 WARNING keystoneclient.
2015-03-05 17:35:39.490 30788 WARNING keystoneclient.
2015-03-05 17:35:39.494 30788 CRITICAL heat [-] DuplicateOptError: duplicate option: auth_uri
2015-03-05 17:35:39.494 30788 TRACE heat Traceback (most recent call last):
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/bin/
2015-03-05 17:35:39.494 30788 TRACE heat app = config.
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat app = wsgi.paste_
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat return deploy.
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat return loadobj(APP, uri, name=name, **kw)
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat return context.create()
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat return self.object_
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat app = filter(app)
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat return AuthUrlFilter(app, conf)
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat self.auth_url = self._get_
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat importutils.
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat __import_
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat CONF.register_
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat result = f(self, *args, **kwargs)
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat self.register_
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat return f(self, *args, **kwargs)
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat return group._
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat if _is_opt_
2015-03-05 17:35:39.494 30788 TRACE heat File "/usr/lib/
2015-03-05 17:35:39.494 30788 TRACE heat raise DuplicateOptErr
2015-03-05 17:35:39.494 30788 TRACE heat DuplicateOptError: duplicate option: auth_uri
2015-03-05 17:35:39.494 30788 TRACE heat
# juju stat heat
jenkins@
environment: osci-sv08
machines:
"7":
agent-state: started
agent-version: 1.21.3
dns-name: 172.17.108.111
instance-id: b1a64fd6-
instance-state: ACTIVE
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1536M root-disk=10240M
services:
heat:
charm: local:trusty/
exposed: false
relations:
amqp:
- rabbitmq-server
identity-
- keystone
shared-db:
- mysql
units:
heat/0:
machine: "7"
open-ports:
- 8000/tcp
- 8004/tcp
Related branches
- Corey Bryant: Needs Fixing
-
Diff: 113 lines (+96/-1)2 files modifiedmetadata.yaml (+1/-1)
templates/kilo/api-paste.ini (+95/-0)
Changed in heat (Juju Charms Collection): | |
assignee: | nobody → Ryan Beisner (1chb1n) |
Changed in heat (Juju Charms Collection): | |
status: | New → Triaged |
milestone: | none → 15.10 |
importance: | Undecided → Medium |
status: | Triaged → Fix Released |
milestone: | 15.10 → 15.07 |
Making this change to /etc/heat/ api-paste. ini on the heat unit seems to resolve. Heat starts and binds to 8000 & 8004. heat stack-list returns non-zero.
[filter:authtoken] filter_ factory = keystoneclient. middleware. auth_token: filter_ factory factory = keystonemiddlew are.auth_ token:filter_ factory
#paste.
paste.filter_
I will work on an MP for the heat charm.