Admin State is always UP regardless of whether Admin State is enabled or not
Bug #1748777 reported by
wei.ying
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
wei.ying |
Bug Description
Env: devstack master branch
Steps to reproduce:
1. Go to Porject/Routers panel.
2. Click the "Create Router" button and Don't enable "Enable Admin State" option.
3. Submit the form.
After the router is created, we can see that the "Admin State" column is displayed as UP.
Changed in horizon: | |
assignee: | nobody → wei.ying (wei.yy) |
Changed in horizon: | |
status: | New → In Progress |
tags: | added: queens-backport-potential |
Changed in horizon: | |
importance: | Undecided → Low |
milestone: | none → rocky-1 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/543248 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=0cb96af3a2a 77628cd7c314738 3ec7e220d49596
Committed: https:/
Submitter: Zuul
Branch: master
commit 0cb96af3a2a7762 8cd7c3147383ec7 e220d49596
Author: wei.ying <email address hidden>
Date: Mon Feb 12 01:44:26 2018 +0800
Admin State is always UP whatever whether router Admin State is checked or not
On the project creation router page, if we don't check "Enable Admin
State" option, when the router is created, "Admin State" is displayed
as UP. This inconsistency is because the judgment condition of [1]
doesn't hold which causes the "admin_state_up" parameter not to be
passed by the call creation router interface. In this case, the
back-end defaults to "admin_state_up" to be UP.
Since the router "Enable Admin State" option has an initial value of
True, there is no need to check for [1].
[1] https:/ /github. com/openstack/ horizon/ blob/master/ openstack_ dashboard/ dashboards/ project/ routers/ forms.py# L121
Change-Id: I6b95ffa680eab5 c29d2bca6c91fc7 f028f7f519a Bug:#1748777
Closes-