apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.07k stars 1.1k forks source link

User Data registration via UI doesn't honour the domain field #9333

Open Pearl1594 opened 3 months ago

Pearl1594 commented 3 months ago
ISSUE TYPE
COMPONENT NAME
User Data
CLOUDSTACK VERSION

4.19 (would be present from 4.18 - when managed user data service support was added)

CONFIGURATION
OS / ENVIRONMENT
SUMMARY

Registration of user data in a specific domain i.e., by passing the domain in the UI , doesn't honour the domain id passed, rather creates the user data in the domain you are currently logged in to.

STEPS TO REPRODUCE
1. Log in as Admin
2. Create a domain - domain1 under ROOT domain
3. As Admin in the ROOT domain context, register a user data and pass domain as /domain1
4. User data is registered but the domain appears as ROOT and not /domain1
EXPECTED RESULTS
User data be registered in the correct domain 
ACTUAL RESULTS
User data created / registered in the domain in the current context
shwstppr commented 3 months ago

Currently, afaik, userdata is owned by an account and cannot be owned by a domain. If an account under the domain is passed then UI/API should be able to honor them. Maybe this should be changed or there should be some way to share userdata similar to templates