Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1191531

Summary: Project disappeared after executing heat-keystone-setup-domain --stack-domain-admin-password
Product: Red Hat OpenStack Reporter: Eduard Barrera <ebarrera>
Component: openstack-heatAssignee: Zane Bitter <zbitter>
Status: CLOSED WORKSFORME QA Contact: Amit Ugol <augol>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: berrange, dasmith, eglynn, kchamart, ndipanov, sbaker, sbauza, sferdjao, sgordon, shardy, vromanso, yeylon, zbitter
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-02 21:20:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eduard Barrera 2015-02-11 13:14:26 UTC
Description of problem:

Customer reports that a project disappeared after creating a heat domain with 

# heat-keystone-setup-domain --stack-domain-admin-password

I would like to priorize first recovering the environment, only one tenant disappeared, the others are working fine.

I have look at the database keystone.poject and really the entry is not there. 

If we look at the screenshoot attached be can see the dashboard reporting a tenant_id instead of a tenant name.

Despite the fact that the project is not there we can find in nova.instances instances belonging to that project.

The logs were not in debug mode and there is no database backup were to compare the damages created.

I'm thinking on various solutions, but we dont know what effect they could have in the installation:

1.- Insert an entry with the tenant_id and tenant name directly to the database
Pros / Conts ?  I we do that what we can break ?


2.- Create another project and Alter the database where they will be under the new project created. Pros / Conts ? What will happen with the floating IPs/ security groups ? share volumes/images with the new tenant ?

for example: 

 https://ask.openstack.org/en/question/28026/how-to-move-a-instance-between-projects/

 https://lists.launchpad.net/openstack/msg19955.html

3.- Any chance to live migrate the instances somewhere else ? How?

4.- Create a snapshot of the running instance, share with another tenant and start it under the other tenant.

There is a RFE upstream for moving insances from tenants:
https://bugs.launchpad.net/nova/+bug/1180950


Version-Release number of selected component (if applicable):
openstack-ceilometer-alarm-2014.1.2-1.el7ost.noarch         Mon Oct 27 14:03:21 2014	1414415001	Red Hat, Inc.
openstack-ceilometer-api-2014.1.2-1.el7ost.noarch           Mon Oct 27 14:05:49 2014	1414415149	Red Hat, Inc.
openstack-ceilometer-central-2014.1.2-1.el7ost.noarch       Mon Oct 27 14:01:58 2014	1414414918	Red Hat, Inc.
openstack-ceilometer-collector-2014.1.2-1.el7ost.noarch     Mon Oct 27 14:05:57 2014	1414415157	Red Hat, Inc.
openstack-ceilometer-common-2014.1.2-1.el7ost.noarch        Mon Oct 27 14:01:58 2014	1414414918	Red Hat, Inc.
openstack-ceilometer-notification-2014.1.2-1.el7ost.noarch  Mon Oct 27 14:05:57 2014	1414415157	Red Hat, Inc.
openstack-cinder-2014.1.2-2.el7ost.noarch                   Mon Oct 27 14:05:27 2014	1414415127	Red Hat, Inc.
openstack-dashboard-2014.1.2-2.el7ost.noarch                Mon Oct 27 14:03:52 2014	1414415032	Red Hat, Inc.
openstack-dashboard-theme-2014.1.2-2.el7ost.noarch          Mon Oct 27 14:03:50 2014	1414415030	Red Hat, Inc.
openstack-glance-2014.1.2-3.el7ost.noarch                   Mon Oct 27 13:57:04 2014	1414414624	Red Hat, Inc.
openstack-heat-api-2014.1.3-2.el7ost.noarch                 Wed Nov 26 10:31:47 2014	1416994307	Red Hat, Inc.
openstack-heat-api-cfn-2014.1.3-2.el7ost.noarch             Wed Nov 26 10:31:47 2014	1416994307	Red Hat, Inc.
openstack-heat-api-cloudwatch-2014.1.3-2.el7ost.noarch      Wed Nov 26 10:31:47 2014	1416994307	Red Hat, Inc.
openstack-heat-common-2014.1.3-2.el7ost.noarch              Wed Nov 26 10:31:47 2014	1416994307	Red Hat, Inc.
openstack-heat-engine-2014.1.3-2.el7ost.noarch              Wed Nov 26 10:31:47 2014	1416994307	Red Hat, Inc.
openstack-keystone-2014.1.2.1-2.el7ost.noarch               Mon Oct 27 14:07:48 2014	1414415268	Red Hat, Inc.
openstack-neutron-2014.1.2-2.el7ost.noarch                  Mon Oct 27 14:09:05 2014	1414415345	Red Hat, Inc.
openstack-neutron-ml2-2014.1.2-2.el7ost.noarch              Mon Oct 27 14:09:12 2014	1414415352	Red Hat, Inc.
openstack-nova-api-2014.1.2-1.el7ost.noarch                 Mon Oct 27 14:08:14 2014	1414415294	Red Hat, Inc.
openstack-nova-cert-2014.1.2-1.el7ost.noarch                Mon Oct 27 14:09:31 2014	1414415371	Red Hat, Inc.
openstack-nova-common-2014.1.2-1.el7ost.noarch              Mon Oct 27 14:03:34 2014	1414415014	Red Hat, Inc.
openstack-nova-conductor-2014.1.2-1.el7ost.noarch           Mon Oct 27 14:03:34 2014	1414415014	Red Hat, Inc.
openstack-nova-console-2014.1.2-1.el7ost.noarch             Mon Oct 27 14:07:57 2014	1414415277	Red Hat, Inc.
openstack-nova-novncproxy-2014.1.2-1.el7ost.noarch          Mon Oct 27 14:04:40 2014	1414415080	Red Hat, Inc.
openstack-nova-scheduler-2014.1.2-1.el7ost.noarch           Mon Oct 27 14:05:40 2014	1414415140	Red Hat, Inc.
openstack-selinux-0.5.16-2.el7ost.noarch                    Mon Oct 27 13:57:19 2014	1414414639	Red Hat, Inc.
openstack-swift-1.13.1-3.el7ost.noarch                      Mon Oct 27 14:03:07 2014	1414414987	Red Hat, Inc.
openstack-swift-plugin-swift3-1.7-3.el7ost.noarch           Mon Oct 27 14:08:07 2014	1414415287	Red Hat, Inc.
openstack-swift-proxy-1.13.1-3.el7ost.noarch                Mon Oct 27 14:08:07 2014	1414415287	Red Hat, Inc.
openstack-utils-2014.1-3.2.el7ost.noarch                    Mon Oct 27 13:57:02 2014	1414414622	Red Hat, Inc.