[openstack-dev] [swift] install custom middleware via devstack

gordon chung gord at live.ca
Tue Apr 28 12:45:36 UTC 2015


> Hi 
> I'm working on a custom middleware which will place on swift-proxy 
> pipeline, just before the latest proxy-logging. 
> 
> how can I force devstack to install my middleware just as I run ./stack.sh? 
> #The point is that I'm looking for a mature and standard to do it, so 
> I'm not going to just edit the stack.sh and Embed some scripts to 
> manually handle the case! but as I mentioned I would like the learn the 
> best case... 

i don't know if there's an official standard to doing this -- it's discouraged by some. that said, we do exactly this using ceilometermiddleware[1][2] so if you're looking for a reference point, it might help.

[1] http://github.com/openstack-dev/devstack/blob/master/lib/swift#L384-L392
[2] http://github.com/openstack-dev/devstack/blob/master/lib/ceilometer#L337-L348

cheers,
gord 		 	   		  


More information about the OpenStack-dev mailing list