heat-keystone-setup shall quit, when fail to get tenant_id

Bug #1260561 reported by DennyZhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
DennyZhang

Bug Description

When run heat-keystone-setup to enable heat, I encounter below problem.
,-----------
| [root@control ~(keystone_admin)]# /usr/bin/heat-keystone-setup
| /usr/bin/heat-keystone-setup
| 'NoneType' object has no attribute 'has_service_catalog'
| Using the OS_PASSWORD for the SERVICE_PASSWORD.
| ADMIN_ROLE 95d3ef28a0d7488eaa99acf95576afc2
| SERVICE_TENANT
| SERVICE_PASSWORD 9d278a0b5fcc4f4e
| SERVICE_TOKEN 672d35ceb6c1452fb6f0960c3601c541
| SERVICE_HOST 192.168.209.131
| ...
`-----------

After some trouble shooting, the problem is caused by the failure of
"keystone token-get".
,-----------
| [root@control ~(keystone_admin)]# keystone token-get
| keystone token-get
| WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
| 'NoneType' object has no attribute 'has_service_catalog'
`-----------

This means keystone_setup function in heat-keystone-setup fail to get the tenant_id.
But the script keep going, with this serious problem.

Before making the problem more complex, we'd better quit the script for this severes problem.

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

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

Changed in heat:
assignee: nobody → DennyZhang (denny-6)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/61905
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=88b8e20f1ce367a3affefe20c45a1708e8a06bc3
Submitter: Jenkins
Branch: master

commit 88b8e20f1ce367a3affefe20c45a1708e8a06bc3
Author: DennyZhang <email address hidden>
Date: Thu Dec 12 19:30:41 2013 -0600

    add assertion to heat-keystone-setup script

    Defensive check for various critical steps in the script

    Change-Id: I9df01011940d80532787c3acaf0cc8ec10e97cc8
    closes-bug: #1260561

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: icehouse-2 → 2014.1
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.