futuregrid / cloud-metrics

Project to create usage statistics from IaaS such as OpenStack, Eucalyptus, and Nimbus
2 stars 3 forks source link

Translating AccountId and OwnerId to readable texts #39

Closed lee212 closed 11 years ago

lee212 commented 12 years ago

In a nutshell, 'PBMHOVGABDLBO6QLM7BFT' type of ownerids should be converted to a readable user name like 'hyungro' and 'lee'.

Eucalyptus 3.0 changes the formats of ownerId and adds new entries such as accountId and those new and changed entries express itself with not readable encoded strings. We are currently able to convert the string to readable texts using administrative command tools such as euare-* however, it requires a administrative permission to use and it is strict to use in remote locations.

We need a better and easier way to translate the strings with normal users. Searching database directly is one way to do it or searching ldap is as well.

This may takes some time to figure out how to do it.

lee212 commented 11 years ago

Converting ownerid to a readable full name has been implemented in a 'convert_ownerId_str' function name. Commit has been made at: f0905669c55b92b7b38f17e05c5e452c5a1270a9 in June 2012.