action domain-setup failed

Bug #1793170 reported by Ashley Lai
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat Charm
Fix Released
High
Liam Young

Bug Description

Running action domain-setup failed with the following error. Should the charm checks and not create duplicate entry? Is there a way to check if the domain-setup action is already ran?

2018-09-18 15:39:12 DEBUG domain-setup No user with a name or ID of 'heat_domain_admin' exists.
2018-09-18 15:39:15 DEBUG domain-setup Conflict occurred attempting to store user - Duplicate entry found with name heat_domain_admin at domain ID 31d9ae3596a74afcbfd3e8264

Revision history for this message
Ashley Lai (alai) wrote :

$ juju show-action-status 71a0f002-c8c2-42e7-899a-3a299d9798ba
actions:
- action: domain-setup
  completed at: 2018-09-18 15:39:16
  id: 71a0f002-c8c2-42e7-899a-3a299d9798ba
  status: failed
  unit: heat/1

Revision history for this message
Ashley Lai (alai) wrote :

We get the following error on first time running "juju action domain-setup".

2018-09-25 09:20:50 DEBUG domain-setup ii python-openstackclient 3.14.0-0ubuntu1~cloud0 all OpenStack Command-line Client - Python 2.7
2018-09-25 09:20:53 DEBUG domain-setup No domain with a name or ID of 'heat' exists.
2018-09-25 09:20:56 DEBUG domain-setup Conflict occurred attempting to store project - it is not permitted to have two projects acting as domains with the same name: heat. (HTTP 409) (Request-ID: req-fd1e09ef-3570-4724-be76-97b2418972f2)

2018-09-25-09:21:10 INFO {'status': 'failed', 'timing': {'started': '2018-09-25 09:20:51 +0000 UTC', 'completed': '2018-09-25 09:20:56 +0000 UTC', 'enqueued': '2018-09-25 09:20:51 +0000 UTC'}, 'message': 'exit status 1'}

Revision history for this message
Ashley Lai (alai) wrote :
Revision history for this message
Ashley Lai (alai) wrote :
description: updated
Ashley Lai (alai)
description: updated
James Page (james-page)
Changed in charm-heat:
status: New → In Progress
Liam Young (gnuoy)
Changed in charm-heat:
assignee: nobody → Liam Young (gnuoy)
James Page (james-page)
Changed in charm-heat:
importance: Undecided → High
Ryan Beisner (1chb1n)
Changed in charm-heat:
milestone: none → 18.11
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-heat (master)

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

Revision history for this message
Liam Young (gnuoy) wrote :

Fix pushed to cs:~gnuoy/heat-3 and pr here: https://review.openstack.org/#/c/605125/

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

Reviewed: https://review.openstack.org/605125
Committed: https://git.openstack.org/cgit/openstack/charm-heat/commit/?id=e8354a1b6804bb2fcf091dc12cc50a753f561a86
Submitter: Zuul
Branch: master

commit e8354a1b6804bb2fcf091dc12cc50a753f561a86
Author: Liam Young <email address hidden>
Date: Tue Sep 25 16:22:00 2018 +0000

    Specify domain when looking up heat user

    The domain-setup action checks if the heat domain, user and roles
    are setup before creating them, but in the case of the user it
    was not checking the users existence in the correct domain.

    Change-Id: I6998fe0543b26232c65c43bc9b2a8cc4b20bcbc5
    Closes-Bug: #1793170

Changed in charm-heat:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-heat (stable/18.08)

Fix proposed to branch: stable/18.08
Review: https://review.openstack.org/605346

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-heat (stable/18.08)

Reviewed: https://review.openstack.org/605346
Committed: https://git.openstack.org/cgit/openstack/charm-heat/commit/?id=4081434abfb79b9c824d4f2c288e6a19ad7ed689
Submitter: Zuul
Branch: stable/18.08

commit 4081434abfb79b9c824d4f2c288e6a19ad7ed689
Author: Liam Young <email address hidden>
Date: Tue Sep 25 16:22:00 2018 +0000

    Specify domain when looking up heat user

    The domain-setup action checks if the heat domain, user and roles
    are setup before creating them, but in the case of the user it
    was not checking the users existence in the correct domain.

    Change-Id: I6998fe0543b26232c65c43bc9b2a8cc4b20bcbc5
    Closes-Bug: #1793170
    (cherry picked from commit e8354a1b6804bb2fcf091dc12cc50a753f561a86)

David Ames (thedac)
Changed in charm-heat:
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.