Ask Your Question

restart swift in Pike

asked 2018-01-08 04:38:30 -0500

cinderela gravatar image

Hello, Beginning the Pike release, most of the services including swift are containerized. Before Pike, whenever I needed to change the configuration, I would reload it via service restart. How can this be done on a service which runs in a container? If I change a config in /etc/swift/proxy-server.conf, does it takes effect immediately or should I restart swift? If I need to restart, how to do it?

thanks, IK

edit retag flag offensive close merge delete


You can deploy OpenStack in many ways, in containers or not. I have a DevStack deployment based on the newest bits. There are no containers. The deployment uses systemd to manage services, and, from memory, Swift Proxy is restarted with systemctl restart devstack@s-proxy.

Bernd Bausch gravatar imageBernd Bausch ( 2018-01-08 08:18:27 -0500 )edit

In case you use Docker containers, try docker restart CONTAINERNAME.

Bernd Bausch gravatar imageBernd Bausch ( 2018-01-08 08:33:45 -0500 )edit

Thanks Bernd for commenting.

cinderela gravatar imagecinderela ( 2018-01-09 09:05:59 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-01-09 09:04:54 -0500

cinderela gravatar image

Actually I found a way to do that, it is similar to Bernd Bausch's comment; First you find the container name by running:

sudo docker ps -a | grep swift

and then:

sudo docker restart swift_proxy

you can check the status again with the 'docker ps -a' command.


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-01-08 04:38:30 -0500

Seen: 519 times

Last updated: Jan 09 '18