[Openstack] [Closed]Horizon can't not login

Li, Chen chen.li at intel.com
Thu Jun 19 06:03:46 UTC 2014


Hi everyone,

Really thanks for all your helps.
Finally I get help from IRC channel openstack-horizon.
And I can login now. ☺

Sorry I have forgot the guy’s name, just remember it is start with m.
Hey, if you see the mail, I really want to thanks you again for the help!!!

It is caused by a really small issue.
Because my test environment do not need public network at all, so I didn’t pay attention to the “service_plugins” configuration in neutron.conf.
The “service_plugins” has been commented out.

I tested booting instances, but only with private network.
I checked neutron-server, but only the process and command “neutron net-list”.

The key message for my issue in error_log is:

                    Recoverable error: 404 Not Found
That means something can’t be connected.
And finally I found the output for command “neutron floatingip-list” is:
404 Not Found

The resource could not be found.

After set “service_plugins = router” and restart neutron-server, I can get logined!!!!!

Thanks.
-chen

From: laclasse [mailto:laclasse at gmail.com]
Sent: Thursday, June 19, 2014 6:51 AM
To: Li, Chen
Subject: Re: [Openstack] Horizon can't not login

Hi Chen,

In my experience logs of horizon could be throwing you off, i could be wrong but if I were you I would:

- check the keystone db in the mysql db of your deployment and look for your webadmin user there (most likely working as you mentioned nova commands did work) - assuming you are talking about the same user trying to auth to Horizon and launching nova client commands.
- stop the horizon service, make sure there is no package conflicts (missing or partly installed) on the machine running it, purge the package and re-install the package.
If this fail. I would then re-install the previous version of Horizon that worked, and check if that is still the case. That will help to isolate the issue to the newer package and allow you to record a bug on it regarding in place upgrades

Hope this helps


On Wed, Jun 18, 2014 at 10:37 AM, Li, Chen <chen.li at intel.com<mailto:chen.li at intel.com>> wrote:
After enable debug mode, I get info in browser:
http://paste.openstack.org/show/84376/


This do not change anything. ☹
adding SESSION_ENGINE = 'django.contrib.sessions.backends.cache' into local_settings.py


From: Yitao Jiang [mailto:willierjyt at gmail.com<mailto:willierjyt at gmail.com>]
Sent: Wednesday, June 18, 2014 4:11 PM
To: Li, Chen

Subject: Re: [Openstack] Horizon can't not login

​1、Enable DEBUG Mode, setting
    DEBUG = True
    TEMPLATE_DEBUG = DEBUG
2、Maybe(or maybe not) you should enable SESSION_ENGINE just adding SESSION_ENGINE = 'django.contrib.sessions.backends.cache' into local_settings.py
and below are related to keystone, you can make a compareation

OPENSTACK_HOST = "127.0.0.1"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0<http://%25s:5000/v2.0>" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"



---
Thanks,
Yitao(依涛 姜)
jiangyt.github.io<http://jiangyt.github.io>

On Wed, Jun 18, 2014 at 2:43 PM, Li, Chen <chen.li at intel.com<mailto:chen.li at intel.com>> wrote:
Yes. I’m definitely  in a test environment.

Anyway, do you know why this issue happens ???
Because when I’m under Havana, horizon can easily work almost  need no change for /etc/openstack-dashboard/local_settings.


From: Remo Mattei [mailto:remo at italy1.com<mailto:remo at italy1.com>]
Sent: Wednesday, June 18, 2014 2:40 PM

To: Li, Chen
Cc: <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Subject: Re: [Openstack] Horizon can't not login

You will never use this type of installation in production. But yes it allows you to learn.

Remo

Inviato da iPhone ()

Il giorno Jun 17, 2014, alle ore 23:25, "Li, Chen" <chen.li at intel.com<mailto:chen.li at intel.com>> ha scritto:
Because

1.        there is no need to use Packstack at all.

2.       I want to learn what’s the configuration change in icehouce.

3.       Separate installation processes.

4.       So on …


From: Remo Mattei [mailto:remo at italy1.com]
Sent: Wednesday, June 18, 2014 2:23 PM
To: Li, Chen
Cc: <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Subject: Re: [Openstack] Horizon can't not login

Ouch why?



Inviato da iPhone ()

Il giorno Jun 17, 2014, alle ore 23:20, "Li, Chen" <chen.li at intel.com<mailto:chen.li at intel.com>> ha scritto:
Sorry. I have installed all packages by hand.
Not using packstack at all.

Also, without GUI, all commands are working fine.


From: Remo Mattei [mailto:remo at italy1.com]
Sent: Wednesday, June 18, 2014 2:18 PM
To: Li, Chen
Cc: <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Subject: Re: [Openstack] Horizon can't not login

It is on your shell where your run the packstack install

Inviato da iPhone ()

Il giorno Jun 17, 2014, alle ore 23:09, "Li, Chen" <chen.li at intel.com<mailto:chen.li at intel.com>> ha scritto:
Where can I find the keystone_admin file ???

From: Remo Mattei [mailto:remo at italy1.com]
Sent: Wednesday, June 18, 2014 2:07 PM
To: Li, Chen
Cc: <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>
Subject: Re: [Openstack] Horizon can't not login

You should have a file called keystone_admin with the pass of your dashboard try that.

Remo

Inviato da iPhone ()

Il giorno Jun 17, 2014, alle ore 22:28, "Li, Chen" <chen.li at intel.com<mailto:chen.li at intel.com>> ha scritto:
Hi list,

I just installed a fresh new Horizon on CentOS.
My kernel is “2.6.32-358.el6.x86_64”.
And the version of horizon:
openstack-dashboard.noarch                        2014.1-1.el6    @openstack-icehouse

When I trying to login , I get error.
Here is what I get from /var/log/httpd/error_log:
http://paste.openstack.org/show/84366/

Based on https://ask.openstack.org/en/question/6180/unable-to-login-to-openstack-dashboard-havana/
I already disabled SELinux and also changed
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "admin"

Here is my /etc/openstack-dashboard/local_settings:
http://paste.openstack.org/show/84365/

Anyone know why this happened ???

Thanks.
-chen
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


!DSPAM:1,53a12fc2148291377437528!
!DSPAM:1,53a1310d151812237138763!

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140619/d5c29b72/attachment.html>


More information about the Openstack mailing list