[Openstack] Deleted admin tenant by mistake

Nagaraj Mandya nmandya at gmail.com
Mon Feb 10 15:47:49 UTC 2014


Thanks Adam, I will try that out.

--
Regards,
Nagaraj


On Mon, Feb 10, 2014 at 8:42 PM, Adam Young <ayoung at redhat.com> wrote:

>  On 02/07/2014 04:49 AM, dheeru wrote:
>
>  Create another tenant and assign the admin role. You should be able to
> use it. Which services are not starting ?
>
>
> Not quite enough. Assuming you are using the SQL backend, you want to
> recreate the old Admin tenant ID so tha resources owned by that tenant are
> back.  Do you have a record off the UUID tenant ID?  If so, either create a
> different tenant andn alter it, or directly create it in the data base.
> The SQL is relatively simple:
>
> What i have is:
>  select * from project where name = 'admin';;
>
> +----------------------------------+-------+-------+-------------+---------+-----------+
> | id                               | name  | extra | description | enabled
> | domain_id |
>
> +----------------------------------+-------+-------+-------------+---------+-----------+
> | e0a4094cb09a4e528139d076244d0bde | admin | {}    | NULL        |       1
> | default   |
>
> +----------------------------------+-------+-------+-------------+---------+-----------+
>
> for  'create' the following sql works:
>
> insert into project (id, name, extra, description, enabled, domain_id)
> values ('someuuid', 'admin-too', '{}','Admin Project',1, 'default');
>
> so replace 'someuuid' with the old uuid, and set the name to 'admin'
>
>
>
>
>
>
>  -Dheeru
>  @Community Service
>
>
> On Fri, Feb 7, 2014 at 10:27 AM, Nagaraj Mandya <nmandya at gmail.com> wrote:
>
>> Hello,
>>   I am using OpenStack Grizzly and my services are configured with an
>> admin tenant named "service" (in admin_tenant_name). However, by mistake, I
>> deleted that tenant. Is there some way I can recreate that project? All my
>> services are now failing. Thanks.
>>  --
>> Regards,
>> Nagaraj
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>
>
> --
>  -dheeru
>  @Community Service
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140210/5c7f9f71/attachment.html>


More information about the Openstack mailing list