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

   ### problem
   
   With ACS 4.20.1 registering template is somehow broken, I think this is 
likely an envrionmental issue but I don't know how to troubleshoot this.
   
   These are the API logs:
   ```
   2025-07-31 19:18:59,248 DEBUG [c.c.a.ApiServlet] 
(qtp2038105753-24:[ctx-2195f9e3]) (logid:6f46b92b) ===START===  192.168.2.10 -- 
GET  
requireshvm=true&ispublic=true&isfeatured=true&url=http:%2F%2F192.168.1.10%2Fiso%2FopenSUSE-Leap-15.6-Minimal-VM.x86_64-Cloud.qcow2&name=openSUSE+15.6&zoneids=323a3a13-7758-4042-98fc-e165da1b139c&hypervisor=KVM&format=QCOW2&details[0].rootDiskController=osdefault&directdownload=false&ostypeid=09b4b8e1-e502-477c-b41f-464133790a53&command=registerTemplate&response=json&sessionkey=VHRyB-69qV39NjH70l_dcPz-LkA
   2025-07-31 19:18:59,248 DEBUG [c.c.a.ApiServlet] 
(qtp2038105753-24:[ctx-2195f9e3]) (logid:6f46b92b) Two factor authentication is 
already verified for the user 2, so skipping
   2025-07-31 19:18:59,254 DEBUG [c.c.a.ApiServer] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) CIDRs from 
which account 'Account 
[{"accountName":"admin","id":2,"uuid":"d7cde215-82fa-11ed-b2b0-525400110090"}]' 
is allowed to perform API calls: 0.0.0.0/0,::/0
   2025-07-31 19:18:59,256 INFO  [o.a.c.a.DynamicRoleBasedAPIAccessChecker] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Account for 
user id d7cebf69-82fa-11ed-b2b0-525400110090 is Root Admin or Domain Admin, all 
APIs are allowed.
   2025-07-31 19:18:59,256 DEBUG [o.a.c.a.StaticRoleBasedAPIAccessChecker] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) RoleService is 
enabled. We will use it instead of StaticRoleBasedAPIAccessChecker.
   2025-07-31 19:18:59,256 DEBUG [o.a.c.r.ApiRateLimitServiceImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) API rate 
limiting is disabled. We will not use ApiRateLimitService.
   2025-07-31 19:18:59,304 DEBUG [o.a.c.s.h.HeuristicRuleHelper] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) No heuristic 
rules found for zone [Zone {"id": "1", "name": "IND-GGN1", "uuid": 
"323a3a13-7758-4042-98fc-e165da1b139c"}] and heuristic type [TEMPLATE]. 
Returning null.
   2025-07-31 19:18:59,306 DEBUG [c.c.s.StatsCollector] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Verifying 
image storage [ImageStore 
{"id":1,"name":"nfs-secondary-rpi","uuid":"a6732a62-6a70-4894-b2b4-6ef04fdab76c"}].
 Capacity: total=[1.7910 TB], used=[589.36 GB], threshold=[90.00%].
   2025-07-31 19:18:59,307 INFO  [c.c.t.HypervisorTemplateAdapter] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Private 
template will be allocated in image store [ImageStore 
{"id":1,"name":"nfs-secondary-rpi","uuid":"a6732a62-6a70-4894-b2b4-6ef04fdab76c"}]
 in zone [Zone {"id": "1", "name": "IND-GGN1", "uuid": 
"323a3a13-7758-4042-98fc-e165da1b139c"}].
   2025-07-31 19:18:59,308 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) template 
Template {"format":"QCOW2","id":296,"name":"openSUSE 
15.6","uniqueName":"296-2-18ffb204-50c6-3846-998e-ed851d37b8f3","uuid":"e5f8dab9-0156-442c-9e4f-66ef65f3f98f"}
 with id 296 is not in store: ImageStore 
{"id":1,"name":"nfs-secondary-rpi","uuid":"a6732a62-6a70-4894-b2b4-6ef04fdab76c"},
 type: Image
   2025-07-31 19:18:59,320 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) template 
Template {"format":"QCOW2","id":296,"name":"openSUSE 
15.6","uniqueName":"296-2-18ffb204-50c6-3846-998e-ed851d37b8f3","uuid":"e5f8dab9-0156-442c-9e4f-66ef65f3f98f"}
 with id 296 is already in store:ImageStore 
{"id":1,"name":"nfs-secondary-rpi","uuid":"a6732a62-6a70-4894-b2b4-6ef04fdab76c"},
 type: Image
   2025-07-31 19:18:59,329 DEBUG [o.a.c.s.i.BaseImageStoreDriverImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Performing 
image store createTemplate async callback
   2025-07-31 19:18:59,330 INFO  [o.a.c.s.i.BaseImageStoreDriverImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Updating store 
ref entry for template Template {"format":"QCOW2","id":296,"name":"openSUSE 
15.6","uniqueName":"296-2-18ffb204-50c6-3846-998e-ed851d37b8f3","uuid":"e5f8dab9-0156-442c-9e4f-66ef65f3f98f"}
   2025-07-31 19:18:59,373 DEBUG [c.c.r.ResourceLimitManagerImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Updating 
resource Type = secondary_storage count for Account = 2 Operation = increasing 
Amount = (5.00 MB) 5242880
   2025-07-31 19:18:59,382 DEBUG [c.c.r.ResourceLimitManagerImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Updating 
resource Type = template count for Account = 2 Operation = increasing Amount = 1
   2025-07-31 19:18:59,391 WARN  [o.a.c.m.w.WebhookServiceImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Skipping 
delivering event Event {"description":"{\"details\":\"Id: 296 name: openSUSE 
15.6\",\"event\":\"TEMPLATE.CREATE\",\"status\":\"Completed\"}","eventId":null,"eventType":"TEMPLATE.CREATE","eventUuid":null,"resourceType":"VirtualMachineTemplate","resourceUUID":null}
 to any webhook as account ID is missing
   2025-07-31 19:18:59,392 WARN  [o.a.c.f.e.EventDistributorImpl] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) Failed to 
publish event [category: ActionEvent, type: TEMPLATE.CREATE] on bus 
webhookEventBus
   2025-07-31 19:18:59,415 DEBUG [c.c.a.ApiServlet] 
(qtp2038105753-24:[ctx-2195f9e3, ctx-c3098e09]) (logid:6f46b92b) ===END===  
192.168.2.10 -- GET  
requireshvm=true&ispublic=true&isfeatured=true&url=http:%2F%2F192.168.1.10%2Fiso%2FopenSUSE-Leap-15.6-Minimal-VM.x86_64-Cloud.qcow2&name=openSUSE+15.6&zoneids=323a3a13-7758-4042-98fc-e165da1b139c&hypervisor=KVM&format=QCOW2&details[0].rootDiskController=osdefault&directdownload=false&ostypeid=09b4b8e1-e502-477c-b41f-464133790a53&command=registerTemplate&response=json&sessionkey=VHRyB-69qV39NjH70l_dcPz-LkA
   
   ```
   
   ### versions
   
   ACS 4.20.1, multi-arch env
   
   ### The steps to reproduce the bug
   
   _No response_
   
   ### What to do about it?
   
   _No response_


-- 
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: commits-unsubscr...@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to