access info (ips / security groups) should be on instance detail page

Bug #897090 reported by Jesse Andrews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Andy Chong

Bug Description

After creating a server I click on the name and expect to see relevant information (like access information - ips and firewall rules)

Steps:

1) install essex devstack
2) log into dashboard and launch a tty image
3) after it is running click on the name of the server to get to the detail view

Missing:

  fixed ips
  floating ips
  security groups

For the security groups - you should either see details of the ruleset or it should be a link to the security group detail page.

Devin Carlen (devcamcar)
Changed in horizon:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → essex-3
Devin Carlen (devcamcar)
Changed in horizon:
assignee: nobody → Paul McMillan (paul-mcmillan)
Revision history for this message
Paul McMillan (paul-mcmillan) wrote :

I've written a patch that displays IP addresses by network group (public, private, etc.) and submitted it for review here:
https://review.openstack.org/#change,2639

The nova API returns all IP addresses associated with an instance, but does not indicate whether they are fixed or floating. I've opened a bug that will improve the API so we can display this information.
https://bugs.launchpad.net/nova/+bug/909209

The nova API doesn't currently provide a way to get the security groups for an instance. This was added to the ec2 API in response to bug 802046, but the nova API didn't get updated. I've opened a bug for this.
https://bugs.launchpad.net/nova/+bug/909207

At this point, the display of security groups and floating IPs is blocked by those other two bugs. Once those are patched, I will finish working on this ticket.

Tres Henry (tres)
Changed in horizon:
milestone: essex-3 → essex-4
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

Bumping to 2012.1 since there isn't a patch yet.

Changed in horizon:
milestone: essex-4 → 2012.1
Thierry Carrez (ttx)
Changed in horizon:
milestone: 2012.1 → essex-rc1
Changed in horizon:
milestone: essex-rc1 → none
assignee: Paul McMillan (paul-mcmillan) → nobody
Revision history for this message
Andy Chong (andycjw) wrote :

I was looking into this, and does this mean it is not fixable unless
nova client is updated to access this API patched below?
https://bugs.launchpad.net/nova/+bug/909207

Revision history for this message
Andy Chong (andycjw) wrote :

is it acceptable if i add something like

    @property
    def security_groups(self):
        try:
            resp, body = novaclient(self.request).client.get(
                        '/servers/%s/os-security-groups' % self.id)
            security_groups = body['security_groups']
            return security_groups
        except:
            return None

to the Server API wrapper in horizon/api/nova.py ???

Andy Chong (andycjw)
Changed in horizon:
assignee: nobody → Andy Chong (andycjw)
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/5023

Changed in horizon:
status: Confirmed → In Progress
Devin Carlen (devcamcar)
Changed in horizon:
milestone: none → essex-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit ceed4838437b27ee12b6eadc4d3fe7631954cbc5
Author: Andy Chong <email address hidden>
Date: Wed Mar 7 14:23:10 2012 +0800

    Show security groups for instance in overview detail.

    Fixes bug 897090, since IP information is displayed as nova returns it.

    Change-Id: If64ec14ba4cf6b081a7a99aa7ccee0aef70efa35

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: essex-rc1 → 2012.1
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.