dashboard scenario does not handle 30x HTTP code

Bug #1498297 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Won't Fix
Undecided
Mehdi Abaakouk

Bug Description

Since this patch: https://github.com/openstack/tempest/commit/f0b070c012093dce4195c9892664cc2bd5f9d06b

The login_url is build from dashboard_url to POST credentials to Horizon server.
However, it does not work as expected if you have http://<host>/horizon URL.

See logs:
"POST /horizon/auth/login/horizon/auth/login/ HTTP/1.1" 404 5153 "http://devstack-trusty-rax-dfw-5036280/horizon/auth/login/" "Python-urllib/2.7"

Config:
login_url=http://devstack-trusty-rax-dfw-5036280/horizon/
dashboard_url=http://devstack-trusty-rax-dfw-5036280/horizon/auth/login/

vhost: http://logs.openstack.org/74/224974/26/check/gate-puppet-openstack-integration-dsvm-trusty/baf0c41/logs/apache_config/15-horizon_vhost.conf.txt.gz

Changed in tempest:
assignee: nobody → David Lyle (david-lyle)
Revision history for this message
Emilien Macchi (emilienm) wrote :

so if use dashboard_url=http://devstack-trusty-rax-dfw-5036280/ - the request will not be 404 this time, though I have mismatch error (can't find "Overview"): http://paste.openstack.org/show/sbpxUCls7JD5d29IunZl/

This is because a redirection:
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET / HTTP/1.1" 301 236 "-" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET /horizon HTTP/1.1" 302 - "-" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET /horizon/auth/login/?next=/horizon/ HTTP/1.1" 200 6904 "-" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET / HTTP/1.1" 301 236 "-" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET /horizon HTTP/1.1" 302 - "-" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET /horizon/auth/login/?next=/horizon/ HTTP/1.1" 200 6904 "-" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "POST /horizon/auth/login/ HTTP/1.1" 200 7020 "http://devstack-trusty-rax-dfw-5036280/" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET / HTTP/1.1" 301 236 "-" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET /horizon HTTP/1.1" 302 - "-" "Python-urllib/2.7"
127.0.0.1 - - [22/Sep/2015:04:54:24 +0000] "GET /horizon/auth/login/?next=/horizon/ HTTP/1.1" 200 6904 "-" "Python-urllib/2.7"

Revision history for this message
Emilien Macchi (emilienm) wrote :

so I think the current code does not try to POST again after the redirection.

summary: - login_url POST is wrong
+ dashboard scenario does not handle 30x HTTP code
Changed in tempest:
assignee: David Lyle (david-lyle) → Emilien Macchi (emilienm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/226165

Changed in tempest:
status: New → In Progress
Changed in tempest:
assignee: Emilien Macchi (emilienm) → Mehdi Abaakouk (sileht)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by Emilien Macchi (<email address hidden>) on branch: master
Review: https://review.openstack.org/226165
Reason: Abandoning the patch, since it does not look we have the issue anymore in our Puppet CI, tempest now pass horizon testing: https://review.openstack.org/224974

Revision history for this message
Ken'ichi Ohmichi (oomichi) wrote :

Now dashboard scenario tests has been moved to horizon itself since https://review.openstack.org/#/c/313713/

So this bug report is necessary to be marked as "Won't Fix" on Tempest side.

Changed in tempest:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.