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
req.remote_addr
inside files nova/api/auth.py (NovaKeystoneContext.call method) and nova/api/compute_req_id.py (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?
Thanks