Can not use public baymodel

Bug #1557977 reported by Eli Qiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
High
Eli Qiao

Bug Description

how to reproduce,

use admin user to create a baymodel and mark public field=Ture.

use demo user to show baymodel

taget@taget-ThinkStation-P300:~/devstack$ magnum baymodel-list
+--------------------------------------+-------------------+
| uuid | name |
+--------------------------------------+-------------------+
| 7c9a8e74-c4c9-4fcd-9db5-5f27dfb13e86 | k8sbaymodel-proxy |
+--------------------------------------+-------------------+
taget@taget-ThinkStation-P300:~/devstack$ magnum bay-create --baymodel k8sbaymodel-proxy --name k8sbay1
ERROR: Baymodel k8sbaymodel-proxy could not be found (HTTP 404) (Request-ID: req-9a1d6995-9491-4890-a921-afd8b331b5db)

Revision history for this message
Eli Qiao (taget-9) wrote :

2 issue:

1. we don't add any logic to union public baymodel when get_baymodel in sqlalchamy api.
2. policy.json don't allow us to show baymodel which is not below us.

This is contradictory to how baymodel.public=True

Changed in magnum:
assignee: nobody → Eli Qiao (taget-9)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

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

Changed in magnum:
status: New → In Progress
hongbin (hongbin034)
Changed in magnum:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/293355
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=3bd7492f2154df97054881bfd8b8a541c0d15b6e
Submitter: Jenkins
Branch: master

commit 3bd7492f2154df97054881bfd8b8a541c0d15b6e
Author: Eli Qiao <email address hidden>
Date: Wed Mar 16 18:15:26 2016 +0800

    Allow show public baymodel

    We can not get public baymodel now.

    Fix it by:

    1. Union public baymodel when fetch baymodel from DB.
    2. Don't apply policy checking if the baymodel is public

    Closes-Bug: #1557977
    Change-Id: Ie5b1432d06611cd697a55f67fd66207e1e757382

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 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.