CLOUDSTACK-9593: userdata: enforce data is a multiple of 4 characters - #1760
Conversation
|
LGTM |
|
@marcaurele this change looks a good check to add to LTS to as well. Could you please change the base branch to 4.9? Once you do, I will kick regression tests across all hypervisors in order to merge the fix. |
9575195 to
b566210
Compare
|
@jburwell done |
|
I changed the code to make to use the validation of the base64 value which is decoded to return the encoded one. This will happen any necessary padding to the value. |
|
@marcaurele can you check why the Travis run failed |
|
@rhtyd the SQL function I'm using to fix current user data in the database is not present in MySQL 5.5, but only in 5.6 (TO_BASE64, FROM_BASE64). I have to find a workaround, either in SQL or in Java to fix previous data. |
b57339d to
c494ed3
Compare
|
@rhtyd The DB update class for the DatabaseUpgradeChecker doesn't work on Travis. Is there something I'm doing wrong, or missed something? |
|
@marcaurele an upgrade path such as |
c494ed3 to
d340181
Compare
|
right, I forgot about the match required with the version in the pom. I thought I should prepare the stuff for the next 4.9.x release but that cannot work unless the pom files are updated too. I will just move the code inside Upgrade490to4910.java to Upgrade4910to4920.java when it's available. |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-829 |
|
@marcaurele due to db changes in older upgrade paths, this cannot be accepted in 4.9/4.10, please re-base and change base branch to master. |
|
@rhtyd I still don't get it why on new release there isn't the creation of the SQL migration files done by the RM. It's totally unclear where/how I should push my changes for the SQL upgrade. |
d340181 to
58c67d4
Compare
|
@marcaurele we already have 4.10.0.0 release and branch cut, we won't be able to accept PRs with schema changes for 4.9 branch since 4.9.2->4.9.3 path ought not change as it's included in 4.10.0.0 release. As I suggested earlier, change the base branch of the PR to master and put schema changes in 4.10->4.11 upgrade path. |
|
@marcaurele I checked there exists a 4.10.0.0 -> 4.11.0.0 upgrade path on master branch that you can use. |
58c67d4 to
3394765
Compare
|
@rhtyd should be all set now |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@rhtyd conflict fixed |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1425 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1828)
|
|
@marcaurele can you check volume related failures, maybe caused by your changes? |
|
@rhtyd failure due to VM not able to start/restart due to insufficient capacity. Are those tests run in parallel on the integration server? |
|
@marcaurele no they are not run in parallel, but several times when there is an exception/issue on the mgmt server side this general error is thrown. I'm suspecting if this has to do with any exception (NPE etc?) when VM starts? I can check again later today, meanwhile see if you find any issue or think that tests failures were env caused. |
|
Let's do a final test run and then this should be good to merge based on results |
Python base64 requires that the string is a multiple of 4 characters but the Apache codec does not. RFC states is not mandatory so the data should not fail the VR script (vmdata.py). Signed-off-by: Marc-Aurèle Brothier <m@brothier.org> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
14c7820 to
7893605
Compare
|
Fixed conflict. Re-testing... |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✖debian. JID-1486 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-1917)
|
|
Merging this based on two lgtms and test results (ignoring env related Trillian failures). |
Python base64 requires that the string is a multiple of 4 characters but
the Apache codec does not. RFC says is not mandatory but the data should
not fail the VR script (vmdata.py).
Signed-off-by: Marc-Aurèle Brothier m@brothier.org