You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "MejdiB (via GitHub)" <gi...@apache.org> on 2024/05/27 13:53:56 UTC

[I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

MejdiB opened a new issue, #9127:
URL: https://github.com/apache/cloudstack/issues/9127

   ##### ISSUE TYPE
    * Improvement Request
   
   ##### COMPONENT NAME
   ~~~
   UI, API
   ~~~
   
   ##### CLOUDSTACK VERSION
   ~~~
   4.18.x and newer
   ~~~
   
   ##### SUMMARY
   Currently, admins can set various global configuration options for resource limits such as "max.account.cpus", "max.account.memory", "max.domain.cpus", "max.domain.memory" etc. However, there is no option for limiting total number of projects for a domain or account like "max.account.projects" and "max.domain.projects". Furthermore, an input field on the UI for the Configure Limits view for a particular domain or account is missing. As a workaround it can be configured using Cloudmonkey: 
   
   ```
   (localcloud) 🐱 > update resourcelimit
   domainid=37ff2485-cc1e-11ee-a4eb-1e00db000197 account=ACSUser
   resourcetype=5 max=3
   {
     "resourcelimit": {
       "account": "ACSUser",
       "domain": "ROOT",
       "domainid": "37ff2485-cc1e-11ee-a4eb-1e00db000197",
       "max": 3,
       "resourcetype": "5",
       "resourcetypename": "project"
     }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "charlesweng (via GitHub)" <gi...@apache.org>.
charlesweng commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2140885820

   What would be the recommended default maximum you would be looking for?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2149502342

   thanks @MejdiB @my-code-AL , I still want to have the functional discussion if projects should be limited per account or domain, but I like your functionality none-the-less.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2141442547

   @MejdiB , projects can be per domain but not per account as these are a type of shared account. cc @my-code-AL 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "MejdiB (via GitHub)" <gi...@apache.org>.
MejdiB commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2141327322

   @my-code-AL This is just an example for a workaround using Cloudmonkey, as this is not available on the UI on the Configure Limits view. "max.account.projects" and "max.domain.projects" are not yet implemented as constants in Cloudstack. At least I don't see them in the global configuration options.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #9127: Add limit configuration for number of projects per domain/account and add UI function for configuring limits
URL: https://github.com/apache/cloudstack/issues/9127


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "my-code-AL (via GitHub)" <gi...@apache.org>.
my-code-AL commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2138356522

   I'll look into this


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2150558634

   Ok @MejdiB , so I was thinking as projects are basically a special kind of account in a domain it should be a domain limit. I do understand your use-case though. Maybe both are good to have.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "my-code-AL (via GitHub)" <gi...@apache.org>.
my-code-AL commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2140888571

   @MejdiB . I'm also curious why you selected "5" for the project resource type. I don't see this as a listed option for the API constants.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "MejdiB (via GitHub)" <gi...@apache.org>.
MejdiB commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2141328746

   @charlesweng I am not looking for any specific default value. Instead, why not setting this as configuration options just like "max.account.cpu" or "max.account.memory"?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Add limit configuration for number of projects per domain/account and add UI function for configuring limits [cloudstack]

Posted by "MejdiB (via GitHub)" <gi...@apache.org>.
MejdiB commented on issue #9127:
URL: https://github.com/apache/cloudstack/issues/9127#issuecomment-2149575884

   @DaanHoogland @my-code-AL It happens that users have created multiple projects to evade the default resource limits for accounts or projects, e.g. Project x part 1, project x part 2 etc. since there is no project limit per default. For this reason, I had to set the project limit for accounts using Cloudmonkey (as described in my example). This was the original motivation behind this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org