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

Kumar Vaibhav vaibhav.k.agarwal at in.com
Tue Apr 2 06:01:17 UTC 2013


Hi,Thanks for the help. It worked for me.Regards,Vaibhav Original message From:"Julie Pichon"< jpichon at redhat.com >Date: 28 Mar 13 16:15:33Subject: Re: [rhoslist] Add user field in the instance panel of dashboardTo: Kumar Vaibhav Cc: rhoslist Hi,"Kumar Vaibhav"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,VaibhavIt 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#modifyingexistingdashboardsandpanelsI 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 regis
 ter 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 userid (line 64) but it's commented out due to scalability concerns when expanding it into a name. If you only care about the userid, this is the line you should add to your customised Table.Hope this helps,JulieGet Yourself a cool, short @in.com Email ID now!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhos-list/attachments/20130402/4cf190ef/attachment.htm>


More information about the rhos-list mailing list