Revision history [back]

click to hide/show revision 1
initial version

how to get client's IP in the python API

I'm trying to implement a new weigher for cells on openstack. How can I get the client IP (the user who is requesting to create a new instance) inside openstack nova python code?

I already have tried


inside files nova/api/ (NovaKeystoneContext.__call__ method) and nova/api/ (ComputeReqIdMiddleware method), but without success. LOG.debug seems to indicate those methods are not called when a new instance creation is requested.

Any suggestions on how can I achieve that?