]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix L3 HA network creation to allow user to create router
authorSachi King <sachi.king@anchor.com.au>
Sun, 2 Nov 2014 13:35:51 +0000 (00:35 +1100)
committerAssaf Muller <amuller@redhat.com>
Tue, 11 Nov 2014 13:34:06 +0000 (15:34 +0200)
commit033e1413fa74a12fc4a0601c42e184317b0586c4
tree389d50a20a83bad88113fa92bcf7aa4fc481861e
parent44fe2d924327b8c8de17e59ad1b925fd11cc017b
Fix L3 HA network creation to allow user to create router

Update HA Network creation to use an admin context to allow Neutron
to create the tenant-less network required for the HA router when
it does not yet exist and is being created by a non-admin user.

Neutron creates these resources without a tenant so users cannot see
or modify the HA network, ports, etc.  Port creation and association
already use elivated admin contexts to allow their function when
an user attempts to create a HA L3 router.

Conflicts:
        neutron/tests/unit/db/test_l3_ha_db.py

Change-Id: I36166158a0970b8d08d6702054b11a43fb684281
Closes-Bug: #1388716
(cherry picked from commit cc9bc24229f1d79dc99303db1affc03c030c011e)
neutron/db/l3_hamode_db.py
neutron/tests/unit/db/test_l3_ha_db.py