xuanyuanaosheng commented on issue #8124:
URL: https://github.com/apache/cloudstack/issues/8124#issuecomment-1788592747

   @hooklee2000 Add a Baremetal Template only in the Baremetal zone and it 
added successfully.
   
   But after adding a `compute offering` using below: 
   
   
![image](https://github.com/apache/cloudstack/assets/4197714/6fdca536-b4bd-45d9-ae98-7637fafe40d1)
   
   It has errors:
   
![image](https://github.com/apache/cloudstack/assets/4197714/87bd7731-4207-455b-b692-f42dbdecb22f)
   
   The cloudstack managerment error is:
   ```
   2023-11-01 11:52:11,611 WARN  [o.a.c.a.ProjectRoleBasedApiAccessChecker] 
(qtp1955920234-21:ctx-6316c47a ctx-d191f040) (logid:8b62d839) Project is null, 
ProjectRoleBasedApiAccessChecker only applies to projects, returning API 
[deployVirtualMachine] for user [User 
{"username":"admin","uuid":"5be40e54-0958-11ec-8fc1-005056b6a63a"}.] as allowed.
   2023-11-01 11:52:11,613 DEBUG [o.a.c.a.StaticRoleBasedAPIAccessChecker] 
(qtp1955920234-21:ctx-6316c47a ctx-d191f040) (logid:8b62d839) RoleService is 
enabled. We will use it instead of StaticRoleBasedAPIAccessChecker.
   2023-11-01 11:52:11,614 DEBUG [o.a.c.r.ApiRateLimitServiceImpl] 
(qtp1955920234-21:ctx-6316c47a ctx-d191f040) (logid:8b62d839) API rate limiting 
is disabled. We will not use ApiRateLimitService.
   2023-11-01 11:52:11,642 DEBUG [c.c.u.AccountManagerImpl] 
(qtp1955920234-21:ctx-6316c47a ctx-d191f040) (logid:8b62d839) Access granted to 
Account 
[{"accountName":"admin","id":2,"uuid":"5be302d9-0958-11ec-8fc1-005056b6a63a"}] 
to 
org.apache.cloudstack.quota.vo.ServiceOfferingVO$$EnhancerByCGLIB$$46ce7255@3e0fe605
 by AffinityGroupAccessChecker
   2023-11-01 11:52:11,643 DEBUG [c.c.u.AccountManagerImpl] 
(qtp1955920234-21:ctx-6316c47a ctx-d191f040) (logid:8b62d839) Access granted to 
Account 
[{"accountName":"admin","id":2,"uuid":"5be302d9-0958-11ec-8fc1-005056b6a63a"}] 
to null by AffinityGroupAccessChecker
   2023-11-01 11:52:11,658 INFO  [c.c.a.ApiServer] 
(qtp1955920234-21:ctx-6316c47a ctx-d191f040) (logid:8b62d839) Hypervisor 
BareMetal does not support rootdisksize override
   2023-11-01 11:52:11,659 DEBUG [c.c.a.ApiServlet] 
(qtp1955920234-21:ctx-6316c47a ctx-d191f040) (logid:8b62d839) ===END===  
10.64.94.63 -- GET  
zoneid=f84ce38e-19a1-406c-b084-77fe9f2e0938&podid=89c04114-3d16-42a0-8b94-545d03d75574&clusterid=a26a640e-8196-436a-93a1-b4a6f8a1700f&hostid=651f88a7-7289-47b5-b546-ef082d3a469e&boottype=BIOS&bootmode=LEGACY&templateid=20886ce1-de64-4bcb-8b18-a46c5c0f1711&startvm=true&serviceofferingid=8625dc84-75b5-423f-b496-22dd266c8f71&affinitygroupids=&keypairs=&name=test001&displayname=test001&command=deployVirtualMachine&response=json
   ```
   
   I don't know why the web UI using `command=deployVirtualMachine`  to create 
a Baremetal Instance.  Could you please take a look at this problem?
   
   
   


-- 
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