Skip to content

Conversation

@rohityadavcloud
Copy link
Member

@rohityadavcloud rohityadavcloud commented Jun 3, 2021

Use the latest v5.10 Linux kernel (LTS) from buster-ports and fixes systemvmtemplate build issue on main branch.

Signed-off-by: Rohit Yadav rohit.yadav@shapeblue.com

Use the latest v5.10 Linux kernel (LTS) from buster-ports

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit 2dd1650276e7fa31fc3b920b67be8396647c279d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@weizhouapache
Copy link
Member

@rhtyd good.
maybe consider #3900 and set a smaller template size ?

@rohityadavcloud
Copy link
Member Author

@weizhouapache I think it would be too much maintenance work for gain to maintain separate systemvmtemplate for each hypervisor. These days users can download 100MBs more in few extra seconds.

apt-get autoclean
apt-get clean
reboot
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhtyd might 'reboot' be an issue in packer processing ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No see template.json


function configure_grub() {
# Remove old kernel
apt-get remove -y --purge linux-image-amd64 linux-image-4.19.0-16-amd64 || true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhtyd two potential issues in my opinion
(1) the versions are different in debian releases (debian 10.9.0: kernel 4.19.0.16.debian 10.8.0: kernel 4.19.0.14,etc)
(2) might there be more than 2 versions ? for example, one new kernel by apt-get -q -y dist-upgrade, another new kernel by apt-get -q -y dist-upgrade -t buster-backports ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, we can explore some general way of removing kernels that are not in use.

@weizhouapache
Copy link
Member

@weizhouapache I think it would be too much maintenance work for gain to maintain separate systemvmtemplate for each hypervisor. These days users can download 100MBs more in few extra seconds.

@rhtyd yes, agree. let's use same template for hypervisors.

"scripts/apt_upgrade.sh",
"scripts/apt_upgrade.sh"
],
"expect_disconnect": true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weizhouapache this handles for reboot case. You can read more about it here https://www.packer.io/docs/provisioners/shell

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhtyd good. thanks for the info.


function configure_grub() {
# Remove old kernel
apt-get remove -y --purge linux-image-amd64 linux-image-4* || true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weizhouapache would this help, essentially saying remove all the old 4.x kernels. As the new/LTS Linux kernel are in the 5.x series - https://www.kernel.org/category/releases.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhtyd ok, I will test it.

@weizhouapache weizhouapache mentioned this pull request Jun 7, 2021
12 tasks
@rohityadavcloud
Copy link
Member Author

Is this good to be merged @weizhouapache @Pearl1594

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhtyd yes, it is good to me.

Will we wait for debian 11 which is planned to be released in July ?

@rohityadavcloud
Copy link
Member Author

@weizhouapache yes we should update to Debian 11 if/when it comes before 4.16. In the meanwhile we can use the same Linux kernel backport same as Debian 11.

@weizhouapache
Copy link
Member

@weizhouapache yes we should update to Debian 11 if/when it comes before 4.16. In the meanwhile we can use the same Linux kernel backport same as Debian 11.

@rhtyd ok, let's merge it when Pearl approves.

the codename of debian11 is 'Bullseye', cool.
bullseye-backports already exists, good.
http://ftp.debian.org/debian/dists/bullseye-backports/

@rohityadavcloud
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 264

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
[[ -f /bin/vhd-util ]] && return

wget --no-check-certificate https://github.com/shapeblue/cloudstack-nonoss/raw/master/vhd-util -O /bin/vhd-util
wget --no-check-certificate https://github.com/shapeblue/cloudstack-nonoss/raw/main/vhd-util -O /bin/vhd-util
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jfyi @sureshanaparti - fixed this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted, thanks @rhtyd

@rohityadavcloud
Copy link
Member Author

@blueorangutan test matrix

@blueorangutan
Copy link

@rhtyd a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@rohityadavcloud
Copy link
Member Author

@blueorangutan test matrix

@blueorangutan
Copy link

@rhtyd a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@apache apache deleted a comment from blueorangutan Jun 17, 2021
@apache apache deleted a comment from blueorangutan Jun 17, 2021
@blueorangutan
Copy link

Trillian test result (tid-985)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44329 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5073-t985-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 87 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Failure 526.36 test_vpc_redundant.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Error 526.37 test_vpc_redundant.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 463.68 test_vpc_redundant.py
test_05_rvpc_multi_tiers Failure 504.96 test_vpc_redundant.py

@blueorangutan
Copy link

Trillian test result (tid-988)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45596 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5073-t988-xenserver-71.zip
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 86 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_volume_usage Error 82.34 test_usage.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL Failure 605.14 test_vpc_redundant.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 525.84 test_vpc_redundant.py
test_05_rvpc_multi_tiers Failure 538.46 test_vpc_redundant.py
test_05_rvpc_multi_tiers Error 538.48 test_vpc_redundant.py

@rohityadavcloud rohityadavcloud merged commit cc27c70 into apache:main Jul 15, 2021
@weizhouapache
Copy link
Member

@rhtyd good. are you going to build new systemvm template and upload to download.cloudstack.org ?

@rohityadavcloud
Copy link
Member Author

@weizhouapache the current 4.16 systemvmtemplate from this PR has been already on download.cloudstack.org for weeks now, all PRs being tested against that systemvmtemplate

@weizhouapache
Copy link
Member

@weizhouapache the current 4.16 systemvmtemplate from this PR has been already on download.cloudstack.org for weeks now, all PRs being tested against that systemvmtemplate

@rhtyd nice, good to know. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants