(/Stage[main]/Heat::Keystone::Domain/Heat_domain_id_setter[heat_domain_id]/ensure) change from absent to present failed: Unable to find matching domain

Bug #1441723 reported by Anastasia Palkina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dmitry Ilyin

Bug Description

"build_id": "2015-04-07_22-54-31",
"ostf_sha": "67d00b954039975dbd97a0cff2600806dfde7947",
"build_number": "291",
"release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-04-07_22-54-31", "ostf_sha": "67d00b954039975dbd97a0cff2600806dfde7947", "build_number": "291", "api": "1.0", "nailgun_sha": "96495457f8455dff98a01d5e613fc8afbf8a6fe2", "openstack_version": "2014.2-6.1", "production": "docker", "python-fuelclient_sha": "30c8ce5cd074c8897960fa3a7f24d6a1165011ea", "astute_sha": "5041b2fb508e6860c3cb96474ca31ec97e549e8b", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "2ca546b86e651d5638dbb1be9bae44b86c84a893", "fuellib_sha": "dc2d90a519dd60b0db803068e58b10274766b278"}}}, "auth_required": true,
"api": "1.0",
"nailgun_sha": "96495457f8455dff98a01d5e613fc8afbf8a6fe2",
"openstack_version": "2014.2-6.1",
"production": "docker",
"python-fuelclient_sha": "30c8ce5cd074c8897960fa3a7f24d6a1165011ea",
"astute_sha": "5041b2fb508e6860c3cb96474ca31ec97e549e8b",
"feature_groups": ["mirantis"],
"release": "6.1",
"fuelmain_sha": "2ca546b86e651d5638dbb1be9bae44b86c84a893",
"fuellib_sha": "dc2d90a519dd60b0db803068e58b10274766b278"

1. Create new environment (Ubuntu)
2. Choose nova-network, flat
3. Choose Sahara
4. Add 1 controller, 1 compute, 1 cinder
5. Start deployment. It was successful
6. There is error on controller (node-8):
2015-04-08 16:00:48 ERR

 (/Stage[main]/Heat::Keystone::Domain/Heat_domain_id_setter[heat_domain_id]/ensure) change from absent to present failed: Unable to find matching domain

Tags: heat sahara
Revision history for this message
Anastasia Palkina (apalkina) wrote :
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Oleksiy Molchanov (omolchanov)
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

Anastasia, why this bug is critical. Are any OSTF tests failing?

Changed in fuel:
importance: Critical → High
status: New → Confirmed
assignee: Oleksiy Molchanov (omolchanov) → Igor Yozhikov (iyozhikov)
ruhe (ruhe)
tags: added: heat sahara
description: updated
Changed in fuel:
assignee: Igor Yozhikov (iyozhikov) → Denis Egorenko (degorenko)
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Denis Egorenko (degorenko) wrote :

I think, that the problem is that command:

https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/heat/manifests/keystone/domain.pp#L51-L56

didn't finished successfully yet before the next command:

https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/heat/manifests/keystone/domain.pp#L58-L66

I tried to run manually:

curl -s -H "X-Auth-Token: 3ddf91ddd33746e8a4d04101f3f450f2" -H "Content-Type: application/json" http://192.168.0.1:5000/v3/domains

{"domains": [{"links": {"self": "http://192.168.0.1:5000/v3/domains/576c5a4fb43e4411ab9a7917425ecd0d"}, "enabled": true, "description": "Contains users and projects created by heat", "name": "heat", "id": "576c5a4fb43e4411ab9a7917425ecd0d"}, {"links": {"self": "http://192.168.0.1:5000/v3/domains/default"}, "enabled": true, "description": "Owns users and tenants (i.e. projects) available on Identity API v2.", "name": "Default", "id": "default"}], "links": {"self": "http://192.168.0.1:5000/v3/domains", "previous": null, "next": null}}

It looks fine.

And next, after this failure:

2015-04-10 16:35:29 +0000 /Stage[main]/Heat::Engine/Service[heat-engine] (info): Starting to evaluate the resource
2015-04-10 16:35:29 +0000 /Stage[main]/Heat::Engine/Service[heat-engine] (notice): Dependency Heat_domain_id_setter[heat_domain_id] has failures: true
2015-04-10 16:35:29 +0000 /Stage[main]/Heat::Engine/Service[heat-engine] (warning): Skipping because of failed dependencies

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/172874

Changed in fuel:
assignee: Denis Egorenko (degorenko) → Dmitry Ilyin (idv1985)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/172874
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=61d0e27545a48e6e5e09e23943b846abfda63674
Submitter: Jenkins
Branch: master

commit 61d0e27545a48e6e5e09e23943b846abfda63674
Author: Dmitry Ilyin <email address hidden>
Date: Mon Apr 13 13:34:15 2015 +0300

    Add retries to heat_domain_id_setter

    * Retry request if no domains found

    Change-Id: I64588305db1c0823bfcc61c9456adc58acd5e7f2
    Closes-Bug: 1441723

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #329

"build_id": "2015-04-20_22-54-31", "ostf_sha": "df8db1f48f03b18126ce5ec65317a1eb83a5a95f", "build_number": "329", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-04-20_22-54-31", "ostf_sha": "df8db1f48f03b18126ce5ec65317a1eb83a5a95f", "build_number": "329", "api": "1.0", "nailgun_sha": "69fca3bada96a48ab19b969621e5128390b7052e", "openstack_version": "2014.2-6.1", "production": "docker", "python-fuelclient_sha": "b4f1ddffd5263489090b65e662173e9e11aafd94", "astute_sha": "bf1751a4fe0d912325e3b4af629126a59c1b2b51", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "0c0e299dcc0276bb8262256148c6ee975857ee86", "fuellib_sha": "b878f1ae8e1d4c6f2f463e810b1f8014df5b22a5"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "69fca3bada96a48ab19b969621e5128390b7052e", "openstack_version": "2014.2-6.1", "production": "docker", "python-fuelclient_sha": "b4f1ddffd5263489090b65e662173e9e11aafd94", "astute_sha": "bf1751a4fe0d912325e3b4af629126a59c1b2b51", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "0c0e299dcc0276bb8262256148c6ee975857ee86", "fuellib_sha": "b878f1ae8e1d4c6f2f463e810b1f8014df5b22a5"

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.