Fix virtual template size for managed storage for KVM / refactor cloud-install-sys-tmplt#3371
Conversation
|
@rhtyd please run your check again so that we can find the problem. |
|
@rhtyd From my point of view the code from sven is a cleanup/improvement. How can one see now what causes the problem? For me the problem is now, how can I decide if there's a problem with svens code or is there something that should change in Trillian? |
|
https://github.com/shapeblue/Trillian Is the code here up to date? There's no way to set something like this up in a few days but if we would choose to do it: Would an installation using the code in the repo above behave (more or less) the same as blueorangutan? |
|
I'll have to review if the flags have changed. From a users point of view, the command should be backward compatible. Trillian is working OK with other PRs so likely the issue is in the PR, or the script was changed such that the usage is not backward compatible. |
|
@DennisKonrad you can test against a local kvm based nested env in few hours: https://github.com/rhtyd/monkeybox |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Isn't the whole use case of Trillian to spin up an cloudstack env on the fly to run the smoke tests? Also you pointed out the merge guideline states the smoketests should pass. So it seems to me there's not much use in manually setting up monkey box to test. Maybe I don't understand the difference between Monkeybox and Trillian. Could you elaborate on this? Also the question would be of importance to me: Can one use the trillian repo to get (more or less) the same results (as blueorangutan)? |
|
@DennisKonrad a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@DennisKonrad yes, but Trillian requires a lot of effort to setup and manage, and can span multiple hosts/machines. Monkeybox is aimed for developers who can setup a nested kvm based dev-test env on a single machine. Marvin based smoketests can run on both env. BO is a github bot account that triggers jobs in our internal Jenkins which uses Trillian to deploy and run tests against an env. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2833 |
|
@rhtyd Ok, that clears up things a lot. But what about those two. How can one make sense of the test result there? https://builds.apache.org/job/cloudstack-pr-analysis The jenkins fails with some code that doesnt even belong to the PR and the Travis tests mostly seem to pass this time even though they didn't with the same code before?? |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2835 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@DennisKonrad master needs stabilisation, which is why you're seeing intermittent errors. The jenkins job is not reliable, I'm not sure how to manage that, I usually ignore that like most people. I check Travis test results and smoketests via BO. 4.11 for example is most stable branch where Travis mostly passes along with smoketests. We'll need to put some effort on master to ensure Travis test runs are reliable, this would require either fixing the failing tests or the code that caused that regression. |
|
@rhtyd So to resolve this issue can you provide the calls to those scripts to @svenvogel so he can maybe adapt this PR to work with the BO that's currently in place? I see no other way to resolve this issue. |
|
@svenvogel @DennisKonrad here are bunch of issues with this PR:
Given this is a refactoring/cleanup PR, this ought to be backward compatible wrt script execution usages, i.e. don't remove flags and don't replace old flags, without proper documentation don't change how script is used. |
|
@rhtyd @syed thanks for help. i will introduce a flag for managed storage and revert the necessary changes back for createtemplt.sh script. after that there should be not a problem. after that we can run the next test. |
|
@rhtyd how can i test it by self with "@blue...."? |
0326345 to
954d74e
Compare
6c6e3bb to
d444fae
Compare
@weizhouapache thanks for checking. yes you are sure. now it should be rebased 👍 |
|
LGTM 👍 Thanks @svenvogel |
|
I'll get back on this soon to review, let me kick tests in the meanwhile |
|
@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-433 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
weizhouapache
left a comment
There was a problem hiding this comment.
LGTM
tested following actions on kvm/ubuntu18.04
deploy a new zone with these changes
register template
download template
create vm
download volume
create template from volume
|
4 LGTM, checks passed tested in different environments CentOS and Ubuntu. |
|
Apologies @svenvogel , I have reverted this PR/merge - since tests have NOT complete (there is no output) - let me kick the tests again, and if all fine, you can merge it after that, please. |
|
@blueorangutan test |
|
@andrijapanicsb a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-633)
|
…d-install-sys-tmplt (apache#3371) * remove unused chksum flag * refactor cloud-install-sys-tmplt / add qemu-img command to calculate correct virtual size * add qemu-utils dependency to debian build control file * add qemu-utils dependency to centos spec file
…tor cloud-install-sys-tmplt (apache#3371)" (apache#3771) This reverts commit a0efbf9.
… / refactor cloud-install-sys-tmplt (apache#3371)" (apache#3771)" (apache#3772) This reverts commit e319c8b.
Description
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
tested manually in our production environment with different files like vhd, qcow2 and ova