I've found the problem, it wasn't a bug. It was a configuration issue. I'm using 2 management servers with 2 database servers (HA) and HAProxy to load balance access. My second management server was configured with an error so it couldn't connect correctly with the database. When I created some virtual machines I was probably using the second management server because HAProxy selected it. So, when accessing the web interface as ROOT admin I couldn't see resource usage values changing for the Account because some data in the database wasn't being updated.
After correct configuration I can see usage information for all the accounts, including those linked to LDAP groups. Tks! On 2021/11/22 19:21:32 Jorge Luiz Correa wrote: > When we have an account UserA with a user UserA inside it, we can see and > control usage limits configuring the UserA "account". > > I'm testing the link accounttoldap feature. > > cmk -p ad...@www.hpc link accounttoldap account='DomainAdmins' > accounttype=2 ldapdomain='cn=cs_hpc_domain_admins,ou=grupos,...' type=GROUP > domainid=$DOMAINUD > cmk -p ad...@www.hpc link accounttoldap account='Users' accounttype=0 > ldapdomain='cn=cs_hpc_users,ou=grupos,...' type=GROUP domainid=$DOMAINUD > > So, I got two accounts: DomainAdmins and Users. Each user in > cs_hpc_domain_admins LDAP group is created as a user inside DomainAdmins > account and each user in cs_hpc_users is created as a user inside Users > account. > > Both DomainAdmins and Users accounts have resource limits configured (like > UserA). But, when users create virtual machines these limits don't change! > I can't define limits to users inside accounts, only to accounts. So, I > couldn't find a way to limit usage when accounts are linked to LDAP groups. > > I was hoping that all the resources created by all the users inside the > account would be discounted from the limits of the account. But the account > total usage never changes. > > Am I doing something wrong or this is a bug? > > CloudStack 4.15.2.0 > > Tks! -- __________________________ Aviso de confidencialidade Esta mensagem da Empresa Brasileira de Pesquisa Agropecuaria (Embrapa), empresa publica federal regida pelo disposto na Lei Federal no. 5.851, de 7 de dezembro de 1972, e enviada exclusivamente a seu destinatario e pode conter informacoes confidenciais, protegidas por sigilo profissional. Sua utilizacao desautorizada e ilegal e sujeita o infrator as penas da lei. Se voce a recebeu indevidamente, queira, por gentileza, reenvia-la ao emitente, esclarecendo o equivoco. Confidentiality note This message from Empresa Brasileira de Pesquisa Agropecuaria (Embrapa), a government company established under Brazilian law (5.851/72), is directed exclusively to its addressee and may contain confidential data, protected under professional secrecy rules. Its unauthorized use is illegal and may subject the transgressor to the law's penalties. If you are not the addressee, please send it back, elucidating the failure.