Cannot create a security group rule with its own SG as the source field

Bug #1012457 reported by Tomoe Sugihara
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Julie Pichon

Bug Description

Horizon only allows you to create a rule with the other SG as the source field, not its own SG.
Nova API allows you to create such a rule and horizon shouldn't prevent from creating it.

This happens on essex branch.

Tags: essex
Revision history for this message
Devin Carlen (devcamcar) wrote :

I'm not sure I understand why you would want to do this? Can you explain the use case?

It may be a bug that Nova allows this, so we just need to figure out which one is incorrect and fix it there.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Tomoe Sugihara (tomoe) wrote :

Devin,

If you go to EC2's Security Group page, you can do this. I thought Nova was following that model.
Do you know why Horizon is preventing this?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: nobody → Julie Pichon (jpichon)
status: Incomplete → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote :

I submitted a patch for this, although I realise the bug hasn't been "accepted" yet.

If the patch is declined because of this I'd be happy to adapt the included test to the existing code. There's no test for adding a rule with a security group as source at the moment, and I think it would be useful.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/9979
Committed: http://github.com/openstack/horizon/commit/ac39a8e5903398606053b57ce948cf9d5aa5463a
Submitter: Jenkins
Branch: master

commit ac39a8e5903398606053b57ce948cf9d5aa5463a
Author: Julie Pichon <email address hidden>
Date: Sun Jul 15 21:43:13 2012 +0100

    Allow security group rules to have their own group as a source

    Fixes bug 1012457.

    Change-Id: I8f9dc6904ba4b19302551fae7455fdf41b50442e

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: folsom-3 → 2012.2
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.