Ask Your Question
0

Could not find user: demo

asked 2016-11-09 23:28:41 -0500

chinadm123 gravatar image

when i execute the command:"openstack role add --project demo --user demo user** "

there is no error return,but when i check the log file keystone.log,i find there have some errors like this:** 2016-11-10 13:12:40.865 16121 INFO keystone.common.wsgi [req-941fdc2d-58cd-4821-9eb5-d528584b08ee 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] GET http://10.214.168.11:35357/v3/roles/user 2016-11-10 13:12:40.870 16121 WARNING keystone.common.wsgi [req-941fdc2d-58cd-4821-9eb5-d528584b08ee 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] Could not find role: user 2016-11-10 13:12:41.006 16123 INFO keystone.common.wsgi [req-460c3c8f-d2e4-4f41-96b5-726ce1f318a7 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] GET http://10.214.168.11:35357/v3/roles?name=user (http://10.214.168.11:35357/v3/roles?n...) 2016-11-10 13:12:41.175 16121 INFO keystone.common.wsgi [req-85e96ef3-1a33-40ca-9b07-d305f4f1cd1f 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] GET http://10.214.168.11:35357/v3/users/demo 2016-11-10 13:12:41.181 16121 WARNING keystone.common.wsgi [req-85e96ef3-1a33-40ca-9b07-d305f4f1cd1f 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] Could not find user: demo 2016-11-10 13:12:41.268 16123 INFO keystone.common.wsgi [req-f703b7f3-bf24-43df-9396-25cc2ddd997c 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] GET http://10.214.168.11:35357/v3/users/demo 2016-11-10 13:12:41.274 16123 WARNING keystone.common.wsgi [req-f703b7f3-bf24-43df-9396-25cc2ddd997c 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] Could not find user: demo 2016-11-10 13:12:41.360 16121 INFO keystone.common.wsgi [req-40554ca4-230c-4ee0-8acc-aaa396e24d10 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] GET http://10.214.168.11:35357/v3/users?name=demo (http://10.214.168.11:35357/v3/users?n...) 2016-11-10 13:12:41.463 16123 INFO keystone.common.wsgi [req-c898939a-fed7-4b6a-bbb0-8985113d48cd 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] GET http://10.214.168.11:35357/v3/projects/demo (http://10.214.168.11:35357/v3/project...) 2016-11-10 13:12:41.466 16123 WARNING keystone.common.wsgi [req-c898939a-fed7-4b6a-bbb0-8985113d48cd 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] Could not find project: demo 2016-11-10 13:12:41.553 16121 INFO keystone.common.wsgi [req-ed97b2ef-f4a8-41e8-a901-f874667d714a 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] GET http://10.214.168.11:35357/v3/projects/demo (http://10.214.168.11:35357/v3/project...) 2016-11-10 13:12:41.556 16121 WARNING keystone.common.wsgi [req-ed97b2ef-f4a8-41e8-a901-f874667d714a 482d038755f6402f9bad0b6fa43cca40 a3c59fc59fc9497d995b0e51f4555c92 - default default] Could not find project: demo

I use openstack command to check the status,it looks like ok:

[root@ctum2A1898001 ~]# openstack user list

+----------------------------------+-------+ | ID | Name | +----------------------------------+-------+ | 482d038755f6402f9bad0b6fa43cca40 | admin | | 5f95dd2265be4058aab4562db8260a58 | demo | | 777093ba9f094fcaa5def16b480aafe6 | nova | +----------------------------------+-------+

[root@ctum2A1898001 ~]# openstack project list

+----------------------------------+---------+ | ID | Name | +----------------------------------+---------+ | 6eb95e137e034bdcb252b6e5f5bdcaea | demo | | a3c59fc59fc9497d995b0e51f4555c92 | admin | | bf16035aea0349e6baea43bfa5fb4661 | service | +----------------------------------+---------+

[root@ctum2A1898001 ~]# openstack role list

+----------------------------------+-------+ | ID | Name | +----------------------------------+-------+ | c6b33f1cb27e41aba9aaed27cebf3144 | admin | | e643dded483046fea3251508de296548 | user | +----------------------------------+-------+

[root@ctum2A1898001 ~]# openstack service list

+----------------------------------+----------+----------+ | ID | Name | Type | +----------------------------------+----------+----------+ | 8e1f853e15524df1a0ea780c69fb0e86 | nova | compute | | a164f99ea8e24e2db57fb6e129b8d6a9 | keystone | identity | +----------------------------------+----------+----------+

Any suggestion? thank you in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-11-17 00:52:41 -0500

silently gravatar image

I suggest you try as follow :

openstack project create --domain default   --description "Service Project" service

openstack project create --domain default   --description "Demo Project" demo

openstack user create --domain default   --password-prompt demo

openstack role create user

openstack role add --project demo --user demo user
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-09 23:23:53 -0500

Seen: 366 times

Last updated: Nov 17 '16