rajujith opened a new issue, #7442:
URL: https://github.com/apache/cloudstack/issues/7442
<!--
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.
-->
~~~
SSVM
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.18.0.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
CloudStack with SSL/TLS enabled for System VMs for browser-based
template/ISO upload.
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
##### SUMMARY
<!-- Explain the problem/feature briefly -->
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
<!--
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. 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.
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
Template/ISO upload should work fine.
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
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.
--
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]