slavkap opened a new issue, #6652:
URL: https://github.com/apache/cloudstack/issues/6652
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Primary storage, DB
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.17.0.0 to main
~~~
##### SUMMARY
If the UUID of the primary storage doesn't meet the format of the UUID, the
upgrade of CloudStack fails. This affects the storage plug-ins:
Datera/Nexenta/Cloudbyte/StorPool and Local storage if the UUID is set in the
`agent.properties` file. This is caused by change #5382
##### 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 -->
~~~
On version 4.16.1.0 or lower
Set UUID to a storage that doesn't meet the format `%-%-%`
Upgrade to version 4.17.0.0 or above
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
successful upgrade
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
java.lang.StringIndexOutOfBoundsException: begin 0, end 16, length 4
or
java.lang.NumberFormatException: For input string: "SP"
~~~
--
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]