keystone: error 500 when creating identity endpoint

Asked by pirlouit

Hello

When creating the identity endpoint following the guide http://docs.openstack.org/juno/install-guide/install/apt/content/keystone-services.html, I get a "An unexpected error prevented the server from fulfilling your request. (HTTP 500)" error. My cloud design runs openstack (Juno) over 3 Virtual Machines (Ubuntu server 14.04), but at that point (keystone install and setup) I am only working on the controller node for the moment.

openstack@controller:~$ more source.src
    export OS_SERVICE_TOKEN=f000c6975f9c93d5cb5e
    export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
    openstack@controller:~$ source source.src
    openstack@controller:~$ keystone --debug endpoint-create --service-id fcb0d0f94e19474fad673041534a902c --publicurl http://controller:5000/v2.0 --internalurl http://controller:5000/v2.0 --adminurl http://controller:35357/v2.0 --region nantes
    DEBUG:keystoneclient.session:REQ: curl -i -X GET http://controller:35357/v2.0/OS-KSADM/services/fcb0d0f94e19474fad673041534a902c -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: f000c6975f9c93d5cb5e"
    INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
    DEBUG:urllib3.connectionpool:Setting read timeout to 600.0
    DEBUG:urllib3.connectionpool:"GET /v2.0/OS-KSADM/services/fcb0d0f94e19474fad673041534a902c HTTP/1.1" 200 158
    DEBUG:keystoneclient.session:RESP: [200] {'date': 'Tue, 09 Jun 2015 20:42:02 GMT', 'vary': 'X-Auth-Token', 'content-length': '158', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'}
    RESP BODY: {"OS-KSADM:service": {"id": "fcb0d0f94e19474fad673041534a902c", "enabled": true, "type": "identity", "name": "keystone", "description": "OpenStack Identity"}}

    DEBUG:keystoneclient.session:REQ: curl -i -X POST http://controller:35357/v2.0/endpoints -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: f000c6975f9c93d5cb5e" -d '{"endpoint": {"adminurl": "http://controller:35357/v2.0", "service_id": "fcb0d0f94e19474fad673041534a902c", "region": "nantes", "internalurl": "http://controller:5000/v2.0", "publicurl": "http://controller:5000/v2.0"}}'
    INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
    DEBUG:urllib3.connectionpool:Setting read timeout to 600.0
    DEBUG:urllib3.connectionpool:"POST /v2.0/endpoints HTTP/1.1" 500 143
    DEBUG:keystoneclient.session:RESP:
    DEBUG:keystoneclient.session:Request returned failure status: 500
    An unexpected error prevented the server from fulfilling your request. (HTTP 500)
    openstack@controller:~$
    openstack@controller:~$
    openstack@controller:~$ netstat -an | grep -i listen
    tcp 0 0 10.0.2.15:3306 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN
    tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:35357 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN
    tcp6 0 0 :::80 :::* LISTEN
    tcp6 0 0 :::22 :::* LISTEN
    unix 2 [ ACC ] STREAM LISTENING 11817 /var/run/libvirt/libvirt-sock
    unix 2 [ ACC ] STREAM LISTENING 11819 /var/run/libvirt/libvirt-sock-ro
    unix 2 [ ACC ] STREAM LISTENING 9263 /var/run/dbus/system_bus_socket
    unix 2 [ ACC ] STREAM LISTENING 8269 @/com/ubuntu/upstart
    unix 2 [ ACC ] STREAM LISTENING 11913 /var/run/mysqld/mysqld.sock
    unix 2 [ ACC ] SEQPACKET LISTENING 8584 /run/udev/control
    unix 2 [ ACC ] STREAM LISTENING 9822 @ISCSIADM_ABSTRACT_NAMESPACE
    unix 2 [ ACC ] STREAM LISTENING 10441 /var/run/acpid.socket

    openstack@controller:~$ more /var/log/keystone/keystone.conf
    /var/log/keystone/keystone.conf: Permission non accordée
    openstack@controller:~$ sudo more /var/log/keystone/keystone.conf
    /var/log/keystone/keystone.conf: Aucun fichier ou dossier de ce type
    openstack@controller:~$ sudo cat /var/log/keystone/keystone.conf
    cat: /var/log/keystone/keystone.conf: Aucun fichier ou dossier de ce type
    openstack@controller:~$ sudo ls /var/log/keystone/
    openstack@controller:~$

    openstack@controller:~$ dmesg | tail
    [ 20.757621] init: mongodb main process (1168) terminated with status 100
    [ 23.891161] Ebtables v2.0 registered
    [ 24.085109] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 24.184411] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [ 32.976051] init: plymouth-upstart-bridge main process (150) killed by TERM signal
    [ 45.127989] Bridge firewalling registered
    [ 45.297645] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
    [ 45.345844] IPv6: ADDRCONF(NETDEV_UP): virbr0: link is not ready
    [ 57.975301] cgroup: systemd-logind (652) created nested cgroup for controller "memory" which has incomplete hierarchy support. Nested cgroups may change behavior in the future.
    [ 57.975304] cgroup: "memory" requires setting use_hierarchy to 1 on the root

I tried to uninstall/reinstall keystone with the commands sudo apt-get remove and sudo apt-get install.

As you can see, the keystone logfile does not exist. When entering into mariadb, with sql commands into the keystone database, I can see the "service" table has one record, and the user table has two. Does that mean the keystone db is correctly synchronized?

I have also tried to unset $OS_SERVICE_TOKEN and $OS_SERVICE_ENDPOINT, as suggested in another thread, without success.

Thank you in advance for your help, I am totally stuck here.

Pirlouit

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
pirlouit
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
pirlouit (osuser) said :
#2

Hi

I am still don't know what is the cause of the problem. I have checked the content of the keystone.conf file, and the keystone database seems just fine. Any help would be so appreciated.

Thank you

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
pirlouit (osuser) said :
#4

Hi
I still have the problem despite all my efforts.

R.

-------- Message d'origine --------
De : Launchpad Janitor <email address hidden>
Date :08/08/2015 10:42 AM (GMT+01:00)
A : <email address hidden>
Objet : Re: [Question #268982]: keystone: error 500 when creating identity endpoint

Your question #268982 on Keystone changed:
https://answers.launchpad.net/keystone/+question/268982

    Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

--
If you're still having this problem, you can reopen your question either
by replying to this email or by going to the following page and
entering more information about your problem:
https://answers.launchpad.net/keystone/+question/268982

You received this question notification because you asked the question.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
pirlouit (osuser) said :
#6

problem still there.

Revision history for this message
pirlouit (osuser) said :
#7

solved by launching manual sync of the db:

[QUOTE]openstack@controller:~$ keystone-manage db_sync
2015-08-29 18:50:59.560 3246 INFO migrate.versioning.api [-] 44 -> 45...
2015-08-29 18:50:59.579 3246 INFO migrate.versioning.api [-] done
2015-08-29 18:50:59.580 3246 INFO migrate.versioning.api [-] 45 -> 46...
2015-08-29 18:50:59.584 3246 INFO migrate.versioning.api [-] done
2015-08-29 18:50:59.584 3246 INFO migrate.versioning.api [-] 46 -> 47...
[...][/QUOTE]

Revision history for this message
pirlouit (osuser) said :
#8

solved by launching manual sync of the db:

[QUOTE]openstack@controller:~$ keystone-manage db_sync
2015-08-29 18:50:59.560 3246 INFO migrate.versioning.api [-] 44 -> 45...
2015-08-29 18:50:59.579 3246 INFO migrate.versioning.api [-] done
2015-08-29 18:50:59.580 3246 INFO migrate.versioning.api [-] 45 -> 46...
2015-08-29 18:50:59.584 3246 INFO migrate.versioning.api [-] done
2015-08-29 18:50:59.584 3246 INFO migrate.versioning.api [-] 46 -> 47...
[...][/QUOTE]