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

   We want using cloudstack to manager the Baremetal Server to achieve to 
deploy the OS on physical server.
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    * Baremetal Management
   
   
   ##### COMPONENT NAME
   - Baremetal Management
   
   
   ##### CLOUDSTACK VERSION
   - CloudStack 4.18.0.0
   
   
   ##### CONFIGURATION
   
   
![image](https://github.com/apache/cloudstack/assets/4197714/61432d2a-cf4f-4ad5-accc-938e92d2b7e5)
   
   The Zone name is `csbm` using `Basic` (Network type). and the cluster 
Hypervisor is `BareMetal`
   
   
   -   Management Network: VLAN2128 : 10.26.128.0/24  (IP range is: 
10.26.128.131 ---> 10.26.128.160)
   -   Guest Network:   10.25.30.X/24 (IP range is: 10.25.30.201  --->  
10.25.30.250).   I think this is also the `IPMI network`.
   
   The config  is as below:
   
   
![image](https://github.com/apache/cloudstack/assets/4197714/16304730-c6eb-4e1e-8cb7-b4ed6583fde9)
   
   
![image](https://github.com/apache/cloudstack/assets/4197714/abfda6a6-63ea-49b4-a597-7e01bc9e4690)
   
   
   
   ##### STEPS TO REPRODUCE
   1.  Create a basic Zone as above
   2.  Add Baremetal Server info:
   ```
   ilo:   10.25.30.242
   Ilo Host MAC: f4:02:70:9c:a5:d0
   of CPU cores:  14
   CPU (in MHz): 1000
   Memory (in MB): 515240   (MemTotal:       527606672 kB)
   Host Net MAC: 34:80:0d:43:39:ec
   ```
   3.  Add second storage using NFS
   4.  Add the above  Baremetal Server to the cluster
   5.  The template is 
`ks=http://10.26.20.11:8080/cloudstack_ks/CentOS-79-x86_64.ks;kernel=10.26.20.11:/var/lib/tftpboot/images/CentOS-7.9-x86_64/vmlinuz;initrd=10.26.20.11:/var/lib/tftpboot/images/CentOS-7.9-x86_64/initrd.img`
 and add it to the zone:
   6.   Add BaremetalDhcpProvider and BaremetalPxeProvider:
   
   
![image](https://github.com/apache/cloudstack/assets/4197714/338acef2-16f5-46db-95e4-3dfee9215958)
   
   7.   Add compute offering:
   
   
![image](https://github.com/apache/cloudstack/assets/4197714/436dffbf-eedd-474f-bf7b-c772b1958b9e)
   
   8.   New a Instance:
   
![image](https://github.com/apache/cloudstack/assets/4197714/086e6800-85e7-4013-971c-64af32b9008c)
   
   
   ---
   
   The error on web UI:
   
![image](https://github.com/apache/cloudstack/assets/4197714/eec349e6-d331-444c-b7c7-67618217b7e7)
   
   ```
   Request failed. (431)
   Hypervisor BareMetal does not support rootdisksize override
   ```
   
   The cloudstack manager error log 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
   ```
   
   ##### EXPECTED RESULTS
   Create a Baremetal Instance successfully
   
   ##### ACTUAL RESULTS
   Can not Create a Baremetal Instance
   
   ---
   
   Cloud you please help to handle this issue?  If need other info, please add 
a comment.
   
   
   I can not find some useful info on the official doc, I just find the belows:
   ##### Reference:
   1.   
http://events17.linuxfoundation.org/sites/events/files/slides/Baremetal-v4.1a.pdf
   2.   https://github.com/apache/cloudstack/issues/5772
   3.   
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Baremetal+KickStart
   4.   
https://download.cloudstack.org/centos/7/4.18/cloudstack-baremetal-agent-4.18.0.0-1.el7.x86_64.rpm
   5.   https://github.com/apache/cloudstack/issues/8091
   6.   
https://docs.accelerite.com/app/cloudplatform/pdf/CloudPlatform_powered_by_Apache_CloudStack_Version_4.5.1_Getting_Started_Guide.pdf
   
   
   


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