0sorkon opened a new issue, #8286:
URL: https://github.com/apache/cloudstack/issues/8286

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   cloudstack-management 4.18.1.0
   CloudMonkey 6.1.0
   
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   N/A
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   N/A
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   When trying to create a volume using cloudmonkey or a GET request from our 
internal billing, with explicit project id, the volume is created outside the 
specified project. No errors or warnings in the logs. At the same time, using 
the web-interface, the volume is created normally, in the required project.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   1. create project
   2. try to add volume to project by
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   `create volume account=apiuser 
diskofferingid=292f41bb-fdc9-45f8-a8c1-053d73e4e876 
projectid=9583b71e-bc01-4a99-ac5c-af330ecd5ffb size=1 
zoneid=709aa5c5-bc74-4767-995b-a0cd726c3324 name=data-proj-02 
domainid=82df48a6-789a-11ee-88c6-262ebb5a4c73`
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Volume created in requred project
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   Volume created outside the specified project without errors or wornings.
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   Apache CloudStack 🐵 CloudMonkey 6.1.0                                        
                                                                        {
     "volume": {for async API result apache/cloudstack-cloudmonkey/issues
       "account": "apiuser",I result
       "created": "2023-11-30T15:57:31+0100"
       "destroyed": false,
       "diskofferingdisplaytext": "Custom Disk on shared storage",
       "diskofferingid": "292f41bb-fdc9-45f8-a8c1-053d73e4e876",
       "diskofferingname": "Custom shared",
       "displayvolume": true,
       "domain": "ROOT",
       "domainid": "82df48a6-789a-11ee-88c6-262ebb5a4c73",
       "hasannotations": false,
       "hypervisor": "None",
       "id": "de471d98-54cc-4b98-9d70-52cff81808f2",
       "isextractable": true,
       "jobid": "d0718329-1339-4856-9f46-a491cca07a78",
       "jobstatus": 0,
       "name": "data-proj-02",
       "provisioningtype": "thin",
       "quiescevm": false,
       "size": 1073741824,
       "state": "Allocated",
       "storagetype": "shared",
       "supportsstoragesnapshot": false,
       "tags": [],
       "type": "DATADISK",
       "zoneid": "709aa5c5-bc74-4767-995b-a0cd726c3324",
       "zonename": "NL1-WS-WEN"
     }
   }
   
   ~~~
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to