Author Topic: devstack keystore service stop and Login failed for user admin on dashboard  (Read 4118 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
devstack keystore service stop and Login failed for user admin on dashboard
« on: พฤษภาคม 10, 2017, 02:51:19 PM »
ปัญหาเรื่องการ login dashboard ผ่าน devstack ไม่ได้ เนื่องจากปิดเซิฟเวอร์แล้วเปิดขึ้นมาใหม่
devstack keystore service stop and Login failed for user admin on dashboard

###tail -f /var/log/apache2/horizon_error.log
2017-05-10 06:02:13.792762 DEBUG:keystoneauth.identity.v3.base:Making authentication request to http://192.168.1.105/identity/v3/auth/tokens
2017-05-10 13:02:13.802858 AH02454: uwsgi: attempt to connect to Unix domain socket /var/run/uwsgi/keystone-wsgi-public.socket (uwsgi-uds-keystone-wsgi-public) failed
2017-05-10 13:02:13.802872 AH00959: ap_proxy_connect_backend disabling worker for (uwsgi-uds-keystone-wsgi-public) for 0s
2017-05-10 13:02:13.802876 failed to make connection to backend: httpd-UDS:0
2017-05-10 06:02:13.803593 DEBUG:keystoneauth.session:Request returned failure status: 503
2017-05-10 06:02:13.803801 WARNING openstack_auth.forms Login failed for user "admin", remote address 192.168.1.100.

เกิดจากเรื่องของ socket uwsgi ไม่สามารถสร้างขึ้นมาได้ เลยทำให้ keystore ที่จัดการเรื่องการ login + key ต่างๆ ไม่สามารถ start service ได้ ทำการตรวจสอบเช็คโดย
#journalctl -xe

ก็จะเจอ error ประมาณนี้ ตอนบูต OS
May 10 14:13:37 ubuntu devstack@keystone.service[7259]: bind(): No such file or directory [core/socket.c line 230]
May 10 14:13:37 ubuntu systemd[1]: devstack@keystone.service: Main process exited, code=exited, status=1/FAILURE
May 10 14:13:37 ubuntu systemd[1]: Failed to start Devstack devstack@keystone.service.
-- Subject: Unit devstack@keystone.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit devstack@keystone.service has failed.
--
-- The result is failed.
May 10 14:13:37 ubuntu systemd[1]: devstack@keystone.service: Unit entered failed state.
May 10 14:13:37 ubuntu systemd[1]: devstack@keystone.service: Failed with result 'exit-code'.

devstack@keystone.service - Devstack devstack@keystone.service
   Loaded: loaded (/etc/systemd/system/devstack@keystone.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2017-05-10 14:32:13 ICT; 1min 2s ago
  Process: 7870 ExecStart=/usr/local/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini (code=exited, status=1/FAILURE)
 Main PID: 7870 (code=exited, status=1/FAILURE)
   Status: "initializing uWSGI"

##How to temp fixed until patch
cd /var/run
mkdir uwsgi
chmod 777 uwsgi

##start keystone service on devstack
systemctl restart devstack@keystone.service

แล้วทำการ login ผ่าน http://ip อีกทีก็จะสามารถ login ได้ครับผม : )