Skip to content

Local template,ISO upload fails #7442

@rajujith

Description

@rajujith
ISSUE TYPE
  • Bug Report
COMPONENT NAME
SSVM
CLOUDSTACK VERSION
4.18.0.0
CONFIGURATION

CloudStack with SSL/TLS enabled for System VMs for browser-based template/ISO upload.

OS / ENVIRONMENT
SUMMARY

Upload a template or ISO using the local upload / browser based upload method. It fails with the below message on the browser although the file upload progress shows 100% :
"Failed to upload ISO. - Error: Request failed with status code 502"

STEPS TO REPRODUCE
1. Navigate to Images, Templates/ ISO
2. Use use upload template from Local or upload ISO from Local
3. Fill in the rest of the details as appropriate and initiate the upload.
EXPECTED RESULTS
Template/ISO upload should work fine. 
ACTUAL RESULTS

Template/ISO file uploads fails

In the SSVM cloud.log we can see this error:

2023-04-17 13:21:36,229 INFO  [storage.resource.HttpUploadServerHandler] (nioEventLoopGroup-3-3:null) HEADER: expires=2023-04-17T14:21:35.215Z
2023-04-17 13:21:36,229 INFO  [storage.resource.HttpUploadServerHandler] (nioEventLoopGroup-3-3:null) HEADER: hostname=null
2023-04-17 13:21:36,230 INFO  [storage.resource.HttpUploadServerHandler] (nioEventLoopGroup-3-3:null) HEADER: content-length=343019751
2023-04-17 13:21:36,230 INFO  [storage.resource.HttpUploadServerHandler] (nioEventLoopGroup-3-3:null) URI: uuid=eab106be-023d-46cd-98c2-30cc3c6e167d
2023-04-17 13:21:36,232 ERROR [storage.resource.HttpUploadServerHandler] (nioEventLoopGroup-3-3:null) post request validation failed
com.cloud.exception.InvalidParameterValueException: signature validation failed.
	at org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.validatePostUploadRequest(NfsSecondaryStorageResource.java:3526)
	at org.apache.cloudstack.storage.resource.HttpUploadServerHandler.channelRead0(HttpUploadServerHandler.java:163)
	at org.apache.cloudstack.storage.resource.HttpUploadServerHandler.channelRead0(HttpUploadServerHandler.java:65)

In the error.log

pass request body failed to 127.0.0.1:8210 (127.0.0.1)

The hostname is not passed properly resulting in the pre-validation of the signature failing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions