levindecaro opened a new issue, #6820:
URL: https://github.com/apache/cloudstack/issues/6820
<!--
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.
-->
~~~
cloudstack-management
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.17.1
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
kvm
SharedMountPoint (CephFS)
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
CentOS Linux release 7.9.2009 (Core) 3.10.0-1160.45.1.el7.x86_64
libvirt-4.5.0-36.el7_9.5.x86_64
qemu-kvm-ev-2.12.0-44.1.el7_8.1.x86_64
qemu-img-ev-2.12.0-44.1.el7_8.1.x86_64
qemu-kvm-common-ev-2.12.0-44.1.el7_8.1.x86_64
libvirt-daemon-driver-qemu-4.5.0-36.el7_9.5.x86_64
##### SUMMARY
<!-- Explain the problem/feature briefly -->
After upgrade from 4.16.1 to 4.17.1, project admin/user cannot scale up/down
the VM instance reside in same project. However, use root admin could able to
scale up and down.
##### 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.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
1. Login as user of the project
2. Switch to the Project View
3. Shutdown the VM being scale up
4. Click the VM and click Scale up and select the target offering
5. Error Occur
6. Logout, and login with root admin
7. Switch to the project view
8. Click the VM and click Scale up and select the target offering
9. VM scaled successfully.
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
Project users able to scale up/down different offering in project scope.
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
Error throw out from UI `No permission to migrate volume, only root admin
can migrate a volume`
<img width="439" alt="image"
src="https://user-images.githubusercontent.com/36956864/195052647-afa1237c-3ab0-4746-8b91-e7bc0a77991d.png">
<!-- Paste verbatim command output between quotes below -->
~~~
2022-10-11 17:16:51,651 DEBUG [c.c.a.ApiServlet]
(qtp775386112-7759:ctx-94c69cf7) (logid:16180b81) ===START=== 0:0:0:0:0:0:0:1
-- GET
id=c0bab1bb-0e83-4f82-a18c-9ababfc1276e&serviceofferingid=0161471b-4854-46cd-ace3-538ce398775e&automigrate=false&command=scaleVirtualMachine&response=json&projectid=342e988f-e70f-4133-ab13-2a37eabae492
2022-10-11 17:16:51,658 DEBUG [c.c.a.ApiServer]
(qtp775386112-7759:ctx-94c69cf7 ctx-2948ad8f) (logid:16180b81) CIDRs from which
account 'Acct[7ca3efa2-a7eb-4d6a-ad0f-f6a46de66b66-cloudstack.admin] -- Account
{"id": 14, "name": "cloudstack.admin", "uuid":
"7ca3efa2-a7eb-4d6a-ad0f-f6a46de66b66"}' is allowed to perform API calls:
0.0.0.0/0,::/0
2022-10-11 17:16:51,671 DEBUG [c.c.u.AccountManagerImpl]
(qtp775386112-7759:ctx-94c69cf7 ctx-2948ad8f) (logid:16180b81) Access to
Acct[78b5366c-69fa-4314-8579-19ced81d279c-PrjAcct-GPA - GPIS-2] -- Account
{"id": 175, "name": "PrjAcct-GPA - GPIS-2", "uuid":
"78b5366c-69fa-4314-8579-19ced81d279c"} granted to
Acct[7ca3efa2-a7eb-4d6a-ad0f-f6a46de66b66-cloudstack.admin] -- Account {"id":
14, "name": "cloudstack.admin", "uuid": "7ca3efa2-a7eb-4d6a-ad0f-f6a46de66b66"}
by DomainChecker
2022-10-11 17:16:51,673 DEBUG [c.c.u.AccountManagerImpl]
(qtp775386112-7759:ctx-94c69cf7 ctx-2948ad8f) (logid:16180b81) Access to
VM[User|gpis-application-server] granted to
Acct[7ca3efa2-a7eb-4d6a-ad0f-f6a46de66b66-cloudstack.admin] -- Account {"id":
14, "name": "cloudstack.admin", "uuid": "7ca3efa2-a7eb-4d6a-ad0f-f6a46de66b66"}
by DomainChecker
2022-10-11 17:16:51,674 WARN [c.c.a.d.ParamGenericValidationWorker]
(qtp775386112-7759:ctx-94c69cf7 ctx-2948ad8f) (logid:16180b81) Received unknown
parameters for command scaleVirtualMachine. Unknown parameters : projectid
2022-10-11 17:16:51,694 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(qtp775386112-7759:ctx-94c69cf7 ctx-2948ad8f) (logid:16180b81) submit async
job-68509, details: AsyncJobVO: {id:68509, userId: 12, accountId: 14,
instanceType: VirtualMachine, instanceId: 3954, cmd:
org.apache.cloudstack.api.command.user.vm.ScaleVMCmd, cmdInfo:
{"serviceofferingid":"0161471b-4854-46cd-ace3-538ce398775e","response":"json","ctxUserId":"12","httpmethod":"GET","ctxStartEventId":"147487","id":"c0bab1bb-0e83-4f82-a18c-9ababfc1276e","ctxDetails":"{\"interface
com.cloud.offering.ServiceOffering\":\"0161471b-4854-46cd-ace3-538ce398775e\",\"interface
com.cloud.vm.VirtualMachine\":\"c0bab1bb-0e83-4f82-a18c-9ababfc1276e\"}","projectid":"342e988f-e70f-4133-ab13-2a37eabae492","ctxAccountId":"14","uuid":"c0bab1bb-0e83-4f82-a18c-9ababfc1276e","automigrate":"false","cmdEventType":"VM.UPGRADE"},
cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result:
null, initMsid: 52235250599, completeMsid: null,
lastUpdated: null, lastPolled: null, created: null, removed: null}
2022-10-11 17:16:51,695 DEBUG [c.c.a.ApiServlet]
(qtp775386112-7759:ctx-94c69cf7 ctx-2948ad8f) (logid:16180b81) ===END===
0:0:0:0:0:0:0:1 -- GET
id=c0bab1bb-0e83-4f82-a18c-9ababfc1276e&serviceofferingid=0161471b-4854-46cd-ace3-538ce398775e&automigrate=false&command=scaleVirtualMachine&response=json&projectid=342e988f-e70f-4133-ab13-2a37eabae492
~~~
--
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]