Admin State is always UP regardless of whether Admin State is enabled or not

Bug #1748777 reported by wei.ying
6
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.

wei.ying (wei.yy)
Changed in horizon:
assignee: nobody → wei.ying (wei.yy)
Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/543248
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=0cb96af3a2a77628cd7c3147383ec7e220d49596
Submitter: Zuul
Branch: master

commit 0cb96af3a2a77628cd7c3147383ec7e220d49596
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: I6b95ffa680eab5c29d2bca6c91fc7f028f7f519a
    Closes-Bug:#1748777

Changed in horizon:
status: In Progress → Fix Released
Akihiro Motoki (amotoki)
tags: added: queens-backport-potential
Changed in horizon:
importance: Undecided → Low
milestone: none → rocky-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 14.0.0.0b1

This issue was fixed in the openstack/horizon 14.0.0.0b1 development milestone.

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.