Active Panel always go back to Project/Container/Containers

Bug #1822925 reported by Tan Cheng Wee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun UI
Fix Released
Medium
hongbin

Bug Description

I setup my Openstack using kolla-ansible with source and master branch. I can see zun-ui in the dashboard but when I click other panels on the sidebar menu, the sidebar active panel always go back to Project/Container/Containers or Admin/Container/Containers. Screenshot below shows that even though I on images panel, but the active sidebar panel is still Containers.

https://ibb.co/Nr8x548

The Horizon pip list

(horizon)[root@sesame7 /]# pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Package Version
----------------------------- ---------------
alembic 1.0.8
amqp 2.4.2
anyjson 0.3.3
aodhclient 1.2.0
appdirs 1.4.3
asn1crypto 0.24.0
Babel 2.6.0
backports.functools-lru-cache 1.5
backports.ssl-match-hostname 3.7.0.1
beautifulsoup4 4.7.1
blazar-dashboard 1.2.1.dev15
cachetools 3.1.0
castellan 1.2.2
certifi 2018.11.29
cffi 1.12.2
chardet 3.0.4
cliff 2.14.1
cloudkitty-dashboard 8.0.1.dev49
cmd2 0.8.9
congress-dashboard 3.1.0.dev21
contextlib2 0.5.5
cryptography 2.6.1
debtcollector 1.21.0
decorator 4.3.2
designate-dashboard 7.1.0.dev33
Django 1.11.20
django-appconf 1.0.3
django-babel 0.6.2
django-compressor 2.2
django-debreach 1.5.2
django-floppyforms 1.7.0
django-formtools 2.1
django-pyscss 2.0.2
dnspython 1.16.0
docker 3.7.0
docker-pycreds 0.4.0
docutils 0.14
dogpile.cache 0.7.1
elasticsearch 2.4.1
enum34 1.1.6
etcd3 0.8.1
etcd3gw 0.2.4
eventlet 0.24.1
extras 1.0.0
fasteners 0.14.1
fixtures 3.0.0
freezer-web-ui 7.0.1.dev9
funcsigs 1.0.2
functools32 3.2.3.post2
futures 3.2.0
futurist 1.8.1
gnocchiclient 7.0.5
greenlet 0.4.15
grpcio 1.15.0
heat-dashboard 1.4.1.dev13
horizon 15.0.0.0b3.dev8
httplib2 0.12.1
icalendar 4.0.3
idna 2.8
iniparse 0.4
ipaddress 1.0.22
ironic-ui 3.3.1.dev27
iso8601 0.1.12
Jinja2 2.10
jmespath 0.9.4
jsonpatch 1.23
jsonpath-rw 1.4.0
jsonpath-rw-ext 1.2.0
jsonpointer 2.0
jsonschema 2.6.0
karbor-dashboard 1.1.1.dev5
kazoo 2.6.1
keystoneauth1 3.13.1
keystonemiddleware 6.0.0
kitchen 1.1.1
kombu 4.4.0
linecache2 1.0.0
lxml 4.3.2
magnum-ui 5.0.1.dev59
Mako 1.0.7
manila-ui 2.17.1.dev3
MarkupSafe 1.1.1
mistral-dashboard 7.0.1.dev13
monasca-ui 1.14.1.dev24
monotonic 1.5
msgpack 0.6.1
munch 2.3.2
murano-dashboard 6.1.0.dev44
murano-pkg-check 0.3.0
mysqlclient 1.4.2.post1
netaddr 0.7.19
netifaces 0.10.9
networkx 2.2
neutron-fwaas-dashboard 2.0.1.dev5
neutron-lbaas-dashboard 5.1.0.dev29
neutron-vpnaas-dashboard 1.5.1.dev2
octavia-dashboard 2.1.0.dev70
openstacksdk 0.26.0
os-client-config 1.32.0
os-service-types 1.6.0
osc-lib 1.12.1
oslo.cache 1.33.2
oslo.concurrency 3.29.1
oslo.config 6.8.1
oslo.context 2.22.1
oslo.db 4.44.0
oslo.i18n 3.23.1
oslo.log 3.42.3
oslo.messaging 9.5.0
oslo.middleware 3.37.1
oslo.policy 2.1.1
oslo.serialization 2.28.2
oslo.service 1.38.0
oslo.upgradecheck 0.2.1
oslo.utils 3.40.3
oslo.vmware 2.32.2
osprofiler 2.6.0
Paste 3.0.7
PasteDeploy 2.0.1
pathlib 1.0.1
pbr 5.1.3
pika 0.13.0
Pint 0.9
pip 19.0.3
ply 3.11
prettytable 0.7.2
protobuf 3.7.0
psycopg2 2.7.7
pycadf 2.9.0
pycparser 2.19
pycurl 7.19.0
pydot 1.4.1
pygobject 3.22.0
pygpgme 0.3
pyinotify 0.9.6
pyliblzma 0.5.3
pymemcache 2.1.1
pymongo 3.7.2
PyMySQL 0.9.3
pyngus 2.3.0
pyOpenSSL 19.0.0
pyparsing 2.3.1
pyperclip 1.7.0
pyScss 1.3.4
python-barbicanclient 4.8.1
python-blazarclient 2.1.0
python-cinderclient 4.1.0
python-cloudkittyclient 2.1.0
python-congressclient 1.12.0
python-consul 1.1.0
python-dateutil 2.8.0
python-designateclient 2.11.0
python-editor 1.0.4
python-freezerclient 2.1.0
python-glanceclient 2.16.0
python-heatclient 1.17.0
python-ironicclient 2.7.0
python-karborclient 1.2.0
python-keystoneclient 3.19.0
python-magnumclient 2.12.0
python-manilaclient 1.27.0
python-memcached 1.59
python-mimeparse 1.6.0
python-mistralclient 3.8.0
python-monascaclient 1.14.0
python-muranoclient 1.2.0
python-neutronclient 6.12.0
python-novaclient 13.0.0
python-openstackclient 3.18.0
python-qpid-proton 0.27.0
python-saharaclient 2.2.0
python-senlinclient 1.10.1
python-solumclient 2.8.0
python-swiftclient 3.7.0
python-tackerclient 0.15.0
python-troveclient 2.17.0
python-vitrageclient 2.7.0
python-watcherclient 2.2.0
python-zaqarclient 1.11.0
python-zunclient 3.3.0
pytz 2018.9
pyxattr 0.5.1
PyYAML 3.13
rcssmin 1.0.6
redis 3.2.0
repoze.lru 0.7
requests 2.21.0
requestsexceptions 1.4.0
retrying 1.3.3
rfc3986 1.2.0
rjsmin 1.0.12
Routes 2.4.1
sahara-dashboard 10.0.0.0b2.dev5
searchlight-ui 6.0.0.0b3.dev5
semantic-version 2.6.0
senlin-dashboard 0.9.1.dev35
setuptools 40.8.0
simplejson 3.16.0
six 1.12.0
solum-dashboard 2.5.1.dev8
soupsieve 1.8
SQLAlchemy 1.2.18
sqlalchemy-migrate 0.12.0
sqlparse 0.2.4
statsd 3.3.0
stevedore 1.30.1
subprocess32 3.5.3
suds-jurko 0.6
sysv-ipc 1.0.0
tacker-horizon 0.13.1.dev1
Tempita 0.5.2
tenacity 5.0.3
testresources 2.0.1
testscenarios 0.5.0
testtools 2.3.0
tooz 1.64.2
traceback2 1.4.0
trove-dashboard 11.1.0.dev25
ujson 1.35
unicodecsv 0.14.1
unittest2 1.1.0
urlgrabber 3.10
urllib3 1.24.1
vine 1.2.0
virtualenv 16.4.3
vitrage-dashboard 1.8.1.dev2
voluptuous 0.11.5
warlock 1.3.0
watcher-dashboard 1.11.1.dev22
wcwidth 0.1.7
WebOb 1.8.5
websocket-client 0.55.0
wheel 0.33.1
wrapt 1.11.1
XStatic 1.0.2
XStatic-Angular 1.5.8.0
XStatic-Angular-Bootstrap 2.2.0.0
XStatic-Angular-FileUpload 12.0.4.0
XStatic-Angular-Gettext 2.3.8.0
XStatic-Angular-lrdragndrop 1.0.2.4
XStatic-Angular-Schema-Form 0.8.13.0
XStatic-Angular-UUID 0.0.4.0
XStatic-Angular-Vis 4.16.0.0
XStatic-Bootstrap-Datepicker 1.3.1.0
XStatic-Bootstrap-SCSS 3.3.7.1
XStatic-bootswatch 3.3.7.0
XStatic-D3 3.5.17.0
XStatic-FileSaver 1.3.2.0
XStatic-Font-Awesome 4.7.0.0
XStatic-Hogan 2.0.0.2
XStatic-Jasmine 2.4.1.2
XStatic-jQuery 1.12.4.1
XStatic-JQuery-Migrate 1.2.1.1
XStatic-jquery-ui 1.12.1.1
XStatic-JQuery.quicksearch 2.0.3.1
XStatic-JQuery.TableSorter 2.14.5.1
XStatic-JS-Yaml 3.8.1.0
XStatic-JSEncrypt 2.3.1.1
XStatic-Json2yaml 0.1.1.0
XStatic-mdi 1.6.50.2
XStatic-objectpath 1.2.1.0
XStatic-Rickshaw 1.5.0.0
XStatic-roboto-fontface 0.5.0.0
XStatic-smart-table 1.4.13.2
XStatic-Spin 1.2.5.2
XStatic-term.js 0.0.7.0
XStatic-tv4 1.2.7.0
yappi 1.0
yaql 1.1.3
yum-metadata-parser 1.1.4
zake 0.2.2
zaqar-ui 5.1.0.dev18
zun-ui 2.0.1.dev46

hongbin (hongbin034)
description: updated
Revision history for this message
Tan Cheng Wee (aiyoh79) wrote :

I realize if i change the following line in containers.module.js and the issue goes away

.setDefaultIndexUrl(containerService.getDefaultIndexUrl())

to

.setDefaultIndexUrl('/project/container/containers/')

The only issue with this is the admin->container->containers listing will goes back to project->container->containers listing.

hongbin (hongbin034)
Changed in zun-ui:
importance: Undecided → High
status: New → Triaged
hongbin (hongbin034)
Changed in zun-ui:
importance: High → Medium
assignee: nobody → hongbin (hongbin034)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun-ui (master)

Fix proposed to branch: master
Review: https://review.opendev.org/661471

Changed in zun-ui:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zun-ui (master)

Reviewed: https://review.opendev.org/661471
Committed: https://git.openstack.org/cgit/openstack/zun-ui/commit/?id=aad1d140500822e79fa2d7b2b4bc8180696bfefb
Submitter: Zuul
Branch: master

commit aad1d140500822e79fa2d7b2b4bc8180696bfefb
Author: Hongbin Lu <email address hidden>
Date: Sat May 25 22:16:11 2019 +0000

    Fix the path of the panel navigator

    This commit also introduces an admin_urls module, because there
    are two containers panels (admin and project) and each panel
    need to have a dedicate instance of urlpatterns.
    In before, both panels share the same urlpattern in the urls
    module, which lead to issues that both panels try to set
    the 'dashboard' and 'panel' parameters in the same view.
    As a result, the UI could use the wrong dashboard and panel
    to render the view.

    Change-Id: I046742fa5889be6b2cf9e616b7fd2f62928c7147
    Closes-Bug: #1822925

Changed in zun-ui:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun-ui (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/662667

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zun-ui (stable/stein)

Reviewed: https://review.opendev.org/662667
Committed: https://git.openstack.org/cgit/openstack/zun-ui/commit/?id=58ca0552d1e9bfad966431abb6292f57e67a6180
Submitter: Zuul
Branch: stable/stein

commit 58ca0552d1e9bfad966431abb6292f57e67a6180
Author: Hongbin Lu <email address hidden>
Date: Sat May 25 22:16:11 2019 +0000

    Fix the path of the panel navigator

    This commit also introduces an admin_urls module, because there
    are two containers panels (admin and project) and each panel
    need to have a dedicate instance of urlpatterns.
    In before, both panels share the same urlpattern in the urls
    module, which lead to issues that both panels try to set
    the 'dashboard' and 'panel' parameters in the same view.
    As a result, the UI could use the wrong dashboard and panel
    to render the view.

    Change-Id: I046742fa5889be6b2cf9e616b7fd2f62928c7147
    Closes-Bug: #1822925
    (cherry picked from commit aad1d140500822e79fa2d7b2b4bc8180696bfefb)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/zun-ui 4.0.0.0rc1

This issue was fixed in the openstack/zun-ui 4.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/zun-ui 3.0.1

This issue was fixed in the openstack/zun-ui 3.0.1 release.

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.