cinder/cinder/compute
Clenimar Filemon 4fe3f4cfda Read domain info from context when contacting nova
When we make a keystoneauth Session instance we are not looking at domain
info. This way we're always creating v2Password auth plugin, which will
obviously fail in an Identity v3-only scenario.

This patch makes domain information (i.e user_domain_id and project_domain_id)
be read from the context so that we can issue v3Password plugin as well.

Also, the logic behind auth plugin creation has been changed, as long as the
loading mechanism is designed to read options from config files, which is not
the case. Creating the plugin directly seems to fit better here.

This change is backwards compatible, since identity.Password can figure
out what Identity version is in use and will ignore domain info if v2.0

Change-Id: I687a73cce4230e1d98d5c42fdc81549d5bc6ab1a
Closes-Bug: #1599168
2016-09-20 19:49:34 +00:00
..
__init__.py Cleaning up CONF.register_opts() in compute/__init__.py 2015-08-21 14:17:25 -05:00
nova.py Read domain info from context when contacting nova 2016-09-20 19:49:34 +00:00