Heat can't create user in keystone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
High
|
MOS Heat | ||
6.0.x |
Invalid
|
High
|
MOS Maintenance | ||
6.1.x |
Invalid
|
High
|
MOS Maintenance | ||
7.0.x |
Invalid
|
High
|
MOS Maintenance | ||
8.0.x |
Invalid
|
High
|
MOS Heat |
Bug Description
Unable to create heat stack with autoscaling policy, because heat cannot create stack user in keystone. Looks like 'description' field, required by keystone, isn't passed by heat.
Here are snippet from heat-all.log:
<134>Sep 27 05:21:01 node-20 heat-engine 2015-09-27 05:21:01.631 8875 INFO heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
2015-09-27 05:21:01.631 8875 TRACE heat.engine.
<134>Sep 27 05:21:02 node-20 heat-engine 2015-09-27 05:21:02.675 8875 INFO heat.engine.stack [-] Stack CREATE FAILED (mtestcase): Resource CREATE failed: InternalServerE
<134>Sep 27 05:21:02 node-20 heat-engine 2015-09-27 05:21:02.688 8875 INFO heat.engine.service [-] Stack create failed, status FAILED
Here are snippet from feystone-all.log:
<14>Sep 27 05:21:01 node-18 keystone-all 10.135.163.19 - - [27/Sep/2015 05:21:01] "OPTIONS / HTTP/1.0" 300 925 0.001276
<11>Sep 27 05:21:01 node-18 keystone-all 'description'
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
2015-09-27 05:21:01.608 45192 TRACE keystone.
<14>Sep 27 05:21:01 node-18 keystone-all 10.135.163.2 - - [27/Sep/2015 05:21:01] "POST /v3/users HTTP/1.1" 500 310 0.037797
MOS version 6.0
Keystone identity backend - LDAP
# dpkg --list | grep -E -e 'heat|keystone'
ii heat-api 2014.2-
ii heat-api-cfn 2014.2-
ii heat-api-cloudwatch 2014.2-
ii heat-common 2014.2-
ii heat-engine 2014.2-
ii keystone 1:2014.
ii keystone-doc 1:2014.
ii python-heat 2014.2-
ii python-heatclient 0.2.12-
ii python-keystone 1:2014.
ii python-
ii python-
when/how this was found?
we recently saw such error on a customer env where a certain patch was introduced to Keystone. the patch is not present in any of our branches
for example, if you clone the Keystone repo, checkout the openstack- ci/fuel- 6.0/2014. 2 branch and search for the failing line
rgrep "user_ref\ ['description" .
nothing is found! So how do we see this error?
Please ensure that the problem is existing on vanilla versions first. If those lines in Keystone code were introduced by LDAP plugin, target the bug on plugin, not Heat.