Cannot create a baymodel in Mitaka

Bug #1604532 reported by Abhishek Chanda
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Committed
Abhishek Chanda

Bug Description

Trying to create a baymodel using the Mitaka branch. I get this error in API logs

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/wsmeext/", line 84, in callfunction
    result = f(self, *args, **kwargs)
  File "<string>", line 2, in post
  File "/usr/lib/python2.7/site-packages/magnum/api/", line 96, in wrapper
    return func(*args, **kwargs)
  File "<string>", line 2, in post
  File "/usr/lib/python2.7/site-packages/magnum/api/", line 131, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/magnum/api/controllers/v1/", line 315, in post
    attr_validator.validate_os_resources(context, baymodel_dict)
  File "/usr/lib/python2.7/site-packages/magnum/api/", line 91, in validate_os_resources
    validate_method(cli, baymodel[attr])
  File "/usr/lib/python2.7/site-packages/magnum/api/", line 66, in validate_external_network
    networks = cli.neutron().list_networks()
  File "/usr/lib/python2.7/site-packages/magnum/common/", line 170, in wrapped
    return func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/magnum/common/", line 254, in neutron
  File "/usr/lib/python2.7/site-packages/magnum/common/", line 135, in url_for
    return self.keystone().client.service_catalog.url_for(**kwargs)
  File "/usr/lib/python2.7/site-packages/magnum/common/", line 78, in client
    self._client = self._get_ks_client()
  File "/usr/lib/python2.7/site-packages/magnum/common/", line 143, in _get_ks_client
    return kc_v3.Client(**kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/v3/", line 190, in __init__
    super(Client, self).__init__(**kwargs)
  File "/usr/lib/python2.7/site-packages/debtcollector/", line 45, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/debtcollector/", line 45, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/positional/", line 94, in inner
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/", line 299, in __init__
    self.auth_token_from_user = self.auth_ref.auth_token
  File "/usr/lib/python2.7/site-packages/keystoneclient/", line 141, in auth_token
    return self['auth_token']
KeyError: 'auth_token'

This env has both keystone v2 and v3, Magnum is of course configured using the v3 endpoint. Versions

# rpm -qa | grep keystone

This patch fixes this

Ton Ngo (ton-i)
Changed in magnum:
assignee: nobody → Abhishek Chanda (abhishek-i)
Wenzhi Yu (yuywz)
Changed in magnum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (stable/mitaka)

Submitter: Jenkins
Branch: stable/mitaka

commit c41470da2165a3a019b4a6fc12cdc1af406fbe77
Author: Abhishek Chanda <email address hidden>
Date: Wed Jun 22 23:29:39 2016 -0700

    Pass auth_token in auth_ref

    In our env, keystone was looking for auth_token inside auth_ref
    while trying to construct the client. This resulted in an exception.
    This patch fixed the problem.

    Closes-Bug: #1604532

    Change-Id: I101cf72f61dd824cb62f7f2b6d42ade6e7f3b1c3

tags: added: in-stable-mitaka
Changed in magnum:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 2.1.0

This issue was fixed in the openstack/magnum 2.1.0 release.

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.