token is not found when creating sdk connection for nova server profile

Bug #1521114 reported by Yanyan Hu
6
This bug affects 1 person
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://git.openstack.org/cgit/openstack/senlin/tree/senlin/drivers/openstack/sdk.py#n94

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://git.openstack.org/cgit/openstack/senlin/tree/senlin/profiles/base.py#n239
http://git.openstack.org/cgit/openstack/senlin/tree/senlin/drivers/openstack/nova_v2.py#n26

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-c082-47d4-9c0b-56f812674d49 9336ef68abd74b6eb2b97a7cd54e81e0 1d567ed4ef51453a85545f018b68c26d - - - None] n-01[ae212b35-4c8b-4414-9cf0-8407df55191b] create - ERROR: Could not find token: (HTTP 404) (Request-ID: req-1a1e12d5-2f6c-482e-bfda-005742afa13e)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin (master)

Reviewed: https://review.openstack.org/251262
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=08094f30059233fce0d22a451eda43865fcdecd4
Submitter: Jenkins
Branch: master

commit 08094f30059233fce0d22a451eda43865fcdecd4
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,
    user name/id and password could be used as credential to build sdk
    connection. This patch adds token parameter checking logic into
    create_connection method to ensure correct auth_plugin type will
    be used in this case.

    Change-Id: I2b71bc665bc5632d9ace85c10add8c8828343959
    Closes-Bug: #1521114

Changed in senlin:
status: New → Fix Committed
Qiming Teng (tengqim)
Changed in senlin:
status: Fix Committed → Fix Released
importance: Undecided → High
assignee: nobody → Yanyan Hu (yanyanhu)
milestone: none → mitaka-2
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/senlin 1.0.0.0b2

This issue was fixed in the openstack/senlin 1.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.