Ask Your Question
0

How to delete Swift?

asked 2013-05-02 04:15:00 -0500

henrik16 gravatar image

updated 2013-05-02 04:15:19 -0500

Hello,

I followed the guide instalation for folsom release in the openstack documentation and the tutorial told me to create the keystone endpoints for Swift but not how to install Swift. How should I remove it without errors?

I tried:

keystone service-delete ID OF SERVICE The ID OF SERVICE were listed in: keystone service-list

But I recieve this error:

No handlers could be found for logger "keystoneclient.client"
An unexpected error prevented the server from fulfilling your request. (IntegrityError) (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`keystone`.`endpoint`, CONSTRAINT `endpoint_ibfk_1` FOREIGN KEY (`service_id`) REFERENCES `service` (`id`))') 'DELETE FROM service WHERE service.id = %s' ('9d67149235684f629849a707a1eef038',) (HTTP 500)

Thank you!

edit retag flag offensive close merge delete

Comments

@henrik16 Let me know if you were able to fix the issue.

koolhead17 gravatar imagekoolhead17 ( 2013-11-19 20:12:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-05-02 04:39:17 -0500

jpichon gravatar image

It looks like perhaps you should delete the endpoint first? It's not a very friendly error message, though.

edit flag offensive delete link more

Comments

How can I do that? I do: keystone service-endpoint then I see the ID's , region's, public url's, etc.. but I don't know wich one is the endpoint associated to Swift.. :/ that's my problem..

henrik16 gravatar imagehenrik16 ( 2013-05-02 04:42:43 -0500 )edit
1

keystone service-list will let you know what the serviceid for swift. Then, when running keystone endpoint-list you can compare with the serviceid (should be the last column) for each endpoint, and delete it using the id in the first column.

jpichon gravatar imagejpichon ( 2013-05-02 04:48:07 -0500 )edit
1

If this helps, the (public) URL in my environment look like this: http://<my-ip>:8080/v1/AUTH$(tenantid)s

jpichon gravatar imagejpichon ( 2013-05-02 04:48:58 -0500 )edit

"Endpoint has been deleted." Okay the endpoint was deleted and also the service ... now I went to my dashboard and saw that "Containers" haven't disappeared, do I have to restart some service? Thank you!

henrik16 gravatar imagehenrik16 ( 2013-05-02 04:55:55 -0500 )edit
1

The services list is picked up at login time. Try logging out and back in again, see if it helps.

jpichon gravatar imagejpichon ( 2013-05-02 04:57:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-05-02 04:15:00 -0500

Seen: 478 times

Last updated: May 02 '13