[rhos-list] Add user field in the instance panel of dashboard

Julie Pichon jpichon at redhat.com
Thu Mar 28 10:44:51 UTC 2013


Hi,

"Kumar Vaibhav" <vaibhav.k.agarwal at in.com> wrote:
> Hi,As a admin I find it difficult to know instanceuser mapping.I want
> to add the userid information to be added for the Dashboard on the
> instance page. Is it possible to do this? How I can augment the
> dashboard to add this feature?Regards,Vaibhav

It should be possible to do this.

There is some documentation on how to modify an existing panel:

http://docs.openstack.org/developer/horizon/topics/customizing.html#modifying-existing-dashboards-and-panels

I haven't tried this but I think your best bet would be to create a new customised panel that extends the existing one, in which you modify the Table to include the additional field. Then you would unregister the existing Instances panel using the previous docs, and register yours to replace it.

You can see the existing Table at https://github.com/openstack/horizon/blob/stable/folsom/horizon/dashboards/syspanel/instances/tables.py#L44 . Looking at that code, it looks like there already used to be a user_id (line 64) but it's commented out due to scalability concerns when expanding it into a name. If you only care about the user_id, this is the line you should add to your customised Table.

Hope this helps,

Julie




More information about the rhos-list mailing list