token is not found when creating sdk connection for nova server profile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
Fix Released
|
High
|
Yanyan Hu |
Bug Description
Currently, create_connection method of sdk driver always uses 'token' as default auth_plugin type when building connection in all openstack drivers plugins.
http://
However, when user name/id and password are provided in customized context in profile spec, 'password' auth_plugin should be used to create sdk connection:
http://
http://
Otherwise, the following error will be given when trying to create nova server through nova driver:
2015-11-30 03:31:57.944 16629 WARNING senlin.engine.event [req-cfd9354a-
Changed in senlin: | |
status: | Fix Committed → Fix Released |
importance: | Undecided → High |
assignee: | nobody → Yanyan Hu (yanyanhu) |
milestone: | none → mitaka-2 |
Reviewed: https:/ /review. openstack. org/251262 /git.openstack. org/cgit/ openstack/ senlin/ commit/ ?id=08094f30059 233fce0d22a451e da43865fcdecd4
Committed: https:/
Submitter: Jenkins
Branch: master
commit 08094f30059233f ce0d22a451eda43 865fcdecd4
Author: yanyanhu <email address hidden>
Date: Mon Nov 30 04:11:58 2015 -0500
Decide auth_plugin type in create_connection
In the case where customized context is provided in profile spec, connection method to ensure correct auth_plugin type will
user name/id and password could be used as credential to build sdk
connection. This patch adds token parameter checking logic into
create_
be used in this case.
Change-Id: I2b71bc665bc563 2d9ace85c10add8 c8828343959
Closes-Bug: #1521114