[Openstack-operators] [Magnum] Keystone error while creating a baymodel
Abhishek Chanda
abhishek.lists at gmail.com
Tue Jun 21 21:46:25 UTC 2016
Sorry for being vague. Here are some more details:
I installed the Mitaka packages from opensuse repo. Here are the config files
magnum.conf https://gist.github.com/achanda/3fca8914e225e430e8e6a86f321cb77d
api-paste.ini https://gist.github.com/achanda/4415d5554156234c9ef5da0300e1487e
policy.json https://gist.github.com/achanda/12f21236bb19ae0c71774c19c372813f
# pip freeze
You are using pip version 6.0.8, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
alembic==0.8.2
amqp==1.4.6
anyjson==0.3.3
aodh==2.0.1.dev2
appdirs==1.4.0
automaton==0.7.0
Babel==1.3
backports.ssl-match-hostname==3.4.0.2
beautifulsoup4==4.3.2
blinker==1.3
boto==2.39.0
c3==1.26.1
cachetools==1.0.3
castellan==0.3.1
ceilometer==6.0.1.dev12
cffi==1.1.0
cinder==8.0.1.dev50
cliff==1.15.0
cmd2==0.6.8
colorama==0.3.3
contextlib2==0.4.0
coverage==3.7.1
croniter==0.3.5
cryptography==1.0
cssselect==0.9.1
debtcollector==1.3.0
decorator==3.4.0
designate==2.0.1.dev11
Django==1.8.6
django-appconf==0.6
django-babel==0.4.0
django-compressor==1.5
django-nose==1.2
django-openstack-auth==2.2.1
django-pyscss==2.0.2
dnspython==1.12.0
docker-py==1.7.2
dogpile.cache==0.5.7
dogpile.core==0.4.1
ec2-api==0.2.0
ecdsa==0.13
eci-cinder-scheduler==1.0
eci-python-libs==1.0.47
enum==0.4.4
enum34==1.0.4
eventlet==0.18.4
extras==0.0.3
falcon==0.4.0.dev0
fasteners==0.14.1
fixtures==1.3.1
Flask==0.10.1
flup==1.0.3.dev20110405
funcsigs==0.4
futures==3.0.2
futurist==0.13.0
glance==12.0.1.dev14
glance-store==0.13.1
gnocchiclient==2.1.0
google-api-python-client==1.5.0
greenlet==0.4.5
gunicorn==19.3.0
happybase==0.8
heat==6.0.1.dev23
horizon==9.0.1.dev40
html5lib==0.999999
httplib2==0.9.2
idna==2.0
iniparse==0.4
ipaddress==1.0.14
iso8601==0.1.11
itsdangerous==0.24
Jinja2==2.8
jsonpatch==1.11
jsonpath-rw==1.2.3
jsonpath-rw-ext==0.1.9
jsonpointer==1.9
jsonschema==2.4.0
kafka-python==1.0.1
kazoo==2.0
keyring==7.1.2
keystone==9.0.2.dev1
keystoneauth1==2.2.0
keystonemiddleware==4.0.0
kombu==3.0.26
ldappool==1.0
logutils==0.3.3
lxml==3.5.0
M2Crypto==0.21.1
magnum==2.0.1.dev5
Mako==1.0.1
MarkupSafe==0.23
meld3==1.0.0
mock==1.3.0
monotonic==0.6
mox3==0.8.0
msgpack-python==0.4.6
MySQL-python==1.2.4
netaddr==0.7.14
netifaces==0.10.4
networkx==1.10
neutron==8.1.1.dev32
neutron-lib==0.0.2
nose==1.3.7
nose-exclude==0.4.1
nosehtmloutput==0.0.5
nosexcover==1.0.8
nova==13.0.1.dev53
oauth2client==1.5.1
oauthlib==0.7.2
openstack.nose-plugin==0.11
openstacksdk==0.8.1
os-brick==1.2.0
os-client-config==1.16.0
os-testr==0.6.0
os-win==0.3.1
oslo.cache==1.6.0
oslo.concurrency==3.7.0
oslo.config==3.9.0
oslo.context==2.2.0
oslo.db==4.7.0
oslo.i18n==3.3.0
oslo.log==3.2.0
oslo.messaging==4.6.1
oslo.middleware==3.8.0
oslo.policy==1.5.0
oslo.reports==1.7.0
oslo.rootwrap==2.0.0
oslo.serialization==2.4.0
oslo.service==1.7.0
oslo.utils==3.6.0
oslo.versionedobjects==1.8.0
oslo.vmware==2.5.0
osprofiler==1.2.0
ovs==2.6.0.dev1
paramiko==1.16.0
passlib==1.6.2
Paste==2.0.1
PasteDeploy==1.5.2
pathlib==1.0
pbr==1.8.0
pecan==1.0.2
pika==0.10.0
pika-pool==0.1.3
Pillow==2.8.1
Pint==0.6
platform-encryption==1.0
ply==3.4
positional==1.0.1
prettytable==0.7.2
psutil==3.1.1
psycopg2==2.6
pyasn1==0.1.9
pyasn1-modules==0.0.5
pycadf==2.1.0
pycparser==2.10
pycrypto==2.6.1
pycurl==7.19.0
pygobject==3.10.2
pyinotify==0.9.6
PyJWT==1.1.0
pykerberos==1.1.10
pymongo==3.0.3
PyMySQL==0.6.6
pyOpenSSL==0.14
pyparsing==2.0.1
pysaml2==2.4.0
pyScss==1.3.4
pysnmp==4.2.5
python-barbicanclient==3.3.0
python-ceilometerclient==2.3.0
python-cinderclient==1.6.0
python-dateutil==2.4.2
python-designateclient==1.5.0
python-editor==0.3
python-glanceclient==2.0.0
python-heatclient==0.8.0
python-keystoneclient==2.3.1
python-ldap==2.4.15
python-magnumclient==2.0.0
python-manilaclient==1.8.1
python-memcached==1.57
python-mimeparse==0.1.4
python-neutronclient==3.1.1
python-novaclient==3.3.0
python-openid==2.2.5
python-openstackclient==2.2.0
python-saharaclient==0.13.0
python-subunit==1.0.0
python-swiftclient==3.0.0
python-troveclient==1.3.0
pytz==2015.2
pywbem==0.7.0
PyYAML==3.11
repoze.lru==0.6
repoze.who==2.2
requests==2.9.1
requests-aws==0.1.8
requests-kerberos==0.8.0
requestsexceptions==1.1.2
retrying==1.3.3
rfc3986==0.2.0
Routes==2.2
rsa==3.1.4
rtslib-fb==2.1.49
ryu==4.0
semantic-version==2.4.1
simplegeneric==0.8.1
simplejson==3.3.1
singledispatch==3.4.0.3
siolib==1.5.0
six==1.10.0
SQLAlchemy==1.0.11
sqlalchemy-migrate==0.10.0
sqlparse==0.1.15
stevedore==1.8.0
suds-jurko==0.6
supervisor==3.1.3
taskflow==1.30.0
tempest-lib==1.0.0
Tempita==0.5.1
termcolor==1.1.0
testrepository==0.0.20
testresources==0.2.7
testscenarios==0.5.0
testtools==1.5.0
thrift==0.9.1
tooz==1.34.0
uncertainties==2.4.6
unicodecsv==0.9.4
unittest2==0.8.0
uritemplate==0.6
urlgrabber==3.9.1
urllib3==1.14
voluptuous==0.8.7
waitress==0.8.9
warlock==1.1.0
WebOb==1.4.1
websocket-client==0.32.0
websockify==0.6.1
WebTest==2.0.18
Werkzeug==0.9.6
wrapt==1.10.6
WSME==0.8.0
xattr==0.7.2
XStatic==1.0.1
XStatic-Angular==1.3.7.0
XStatic-Angular-Bootstrap==0.11.0.2
XStatic-Angular-Gettext==2.1.0.2
XStatic-Angular-lrdragndrop==1.0.2.2
XStatic-Bootstrap-Datepicker==1.3.1.0
XStatic-Bootstrap-SCSS==3.2.0.0
XStatic-bootswatch==3.3.5.3
XStatic-D3==3.1.6.2
XStatic-Font-Awesome==4.3.0.0
XStatic-Hogan==2.0.0.2
XStatic-Jasmine==2.1.2.0
XStatic-jQuery==1.10.2.1
XStatic-JQuery-Migrate==1.2.1.1
XStatic-jquery-ui==1.11.0.1
XStatic-JQuery.quicksearch==2.0.3.1
XStatic-JQuery.TableSorter==2.14.5.1
XStatic-JSEncrypt==2.0.0.2
XStatic-mdi==1.1.70.1
XStatic-Rickshaw==1.5.0.0
XStatic-roboto-fontface==0.4.3.2
XStatic-smart-table==1.4.5.3
XStatic-Spin==1.2.5.2
XStatic-term.js==0.0.4.2
yum-metadata-parser==1.1.2
zake==0.2.0
zope.interface==4.1.1
Thanks
On Tue, Jun 21, 2016 at 2:28 PM, Hongbin Lu <hongbin.lu at huawei.com> wrote:
> Hi Abhishek,
>
> I have no idea ant need further information. Could you provide the following information?
> * How you installed Magnum (install from source or package, manually or using any tool, etc.)?
> * Which version of Magnum you installed (master, Mitaka, etc.)?
> * Could you paste your Magnum config files (under /etc/magnum/, you might want to remove passwords and other confidential information)?
> * Could you type "sudo pip freeze" and paste the output here?
>
> Ping me in IRC if you want.
>
> Best regards,
> Hongbin
>
>> -----Original Message-----
>> From: Abhishek Chanda [mailto:abhishek.lists at gmail.com]
>> Sent: June-21-16 5:05 PM
>> To: openstack-operators at lists.openstack.org
>> Subject: [Openstack-operators] [Magnum] Keystone error while creating a
>> baymodel
>>
>> Hi all,
>>
>> I am trying to run Magnum on 3 management nodes. I get the following
>> error in api logs while trying to create a baymodel
>>
>> Traceback (most recent call last):
>> File "/usr/lib/python2.7/site-packages/wsmeext/pecan.py", line 84, in
>> callfunction
>> result = f(self, *args, **kwargs)
>> File "<string>", line 2, in post
>> File "/usr/lib/python2.7/site-packages/magnum/api/validation.py",
>> line 96, in wrapper
>> return func(*args, **kwargs)
>> File "<string>", line 2, in post
>> File "/usr/lib/python2.7/site-packages/magnum/api/validation.py",
>> line 131, in wrapper
>> return func(*args, **kwargs)
>> File "/usr/lib/python2.7/site-
>> packages/magnum/api/controllers/v1/baymodel.py",
>> line 315, in post
>> attr_validator.validate_os_resources(context, baymodel_dict)
>> File "/usr/lib/python2.7/site-packages/magnum/api/attr_validator.py",
>> line 91, in validate_os_resources
>> validate_method(cli, baymodel[attr])
>> File "/usr/lib/python2.7/site-packages/magnum/api/attr_validator.py",
>> line 66, in validate_external_network
>> networks = cli.neutron().list_networks()
>> File "/usr/lib/python2.7/site-packages/magnum/common/exception.py",
>> line 170, in wrapped
>> return func(*args, **kw)
>> File "/usr/lib/python2.7/site-packages/magnum/common/clients.py",
>> line 254, in neutron
>> region_name=region_name)
>> File "/usr/lib/python2.7/site-packages/magnum/common/clients.py",
>> line 135, in url_for
>> return self.keystone().client.service_catalog.url_for(**kwargs)
>> File "/usr/lib/python2.7/site-packages/magnum/common/keystone.py",
>> line 78, in client
>> self._client = self._get_ks_client()
>> File "/usr/lib/python2.7/site-packages/magnum/common/keystone.py",
>> line 144, in _get_ks_client
>> return kc_v3.Client(**kwargs)
>> File "/usr/lib/python2.7/site-packages/keystoneclient/v3/client.py",
>> line 190, in __init__
>> super(Client, self).__init__(**kwargs)
>> File "/usr/lib/python2.7/site-packages/debtcollector/renames.py",
>> line 45, in wrapper
>> return f(*args, **kwargs)
>> File "/usr/lib/python2.7/site-packages/debtcollector/renames.py",
>> line 45, in wrapper
>> return f(*args, **kwargs)
>> File "/usr/lib/python2.7/site-packages/positional/__init__.py", line
>> 94, in inner
>> return func(*args, **kwargs)
>> File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py",
>> line 299, in __init__
>> self.auth_token_from_user = self.auth_ref.auth_token
>> File "/usr/lib/python2.7/site-packages/keystoneclient/access.py",
>> line 141, in auth_token
>> return self['auth_token']
>> KeyError: 'auth_token'
>>
>> I noticed that the kwargs being passed to Client, has a key called
>> token but not auth_token. Interestingly, when I change that to
>> auth_token, it still does not work. What am I missing here?
>>
>> Thanks
>>
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
More information about the OpenStack-operators
mailing list