Skip to content

[closed] Replace builtin CentOS 5.x with 8.0 templates#3710

Closed
andrijapanicsb wants to merge 7 commits into
masterfrom
update-default-system-template-centos8
Closed

[closed] Replace builtin CentOS 5.x with 8.0 templates#3710
andrijapanicsb wants to merge 7 commits into
masterfrom
update-default-system-template-centos8

Conversation

@andrijapanicsb
Copy link
Copy Markdown
Contributor

@andrijapanicsb andrijapanicsb commented Nov 24, 2019

Description

New default/bultin templates for major hypervisors:

  • CentOS 8.0 (VMware/KVM/XenServer)
  • Minimal install with "standard" / "core" groupinstall (a.k.a. additional network tools - ifconfig, route, etc.)
  • nano, iftop, iotop, htop, bash-completion, traceroute
  • ssh running, systemctl stop/disable firewalld, SELinux disabled
  • disabled "predictive" interface names (net.ifnames=0 added to kernel boot line)
  • stripped UUID/MAC from eth0 network config file
  • VMware: opensource variant "open-vm-tools" installed - recommended by VMware (instead of using the one from ESXi hosts); both vmw_pvscsi and vmxnet3 drivers present and details added to vm_template_table to spin VMs with those devices
  • XenServer: XenServer Tools 6.5sp1 installed (xs-tools confirmed as running, considering this is CentOS8 which the xs-tools installation script was not aware of)
  • KVM: no special configuration, VirtIO present by default

Types of changes

  • [ x] Enhancement (improves an existing feature and functionality)

Screenshots (if appropriate):

How Has This Been Tested?

Templates were deployed on ACS install with old versions of hypervisors: VMware 5.5, XenServer 6.5sp1 fully patched up to patch 1066 and CentOS 7.3 (3 clusters, mixed env) and verified to work on those versions of hypervisors.

Yet to be tested against VMware 6.0/6.5/6.7, XenServer 7.0, 7.1, 7.x and Ubuntu 16/18, CentOS 7.6 maybe - but if it works on older ones than any newer hypervisor should be no problem.

Comment:

  • The only concern is that XenServer 6.5 must have all the patches installed (confirmed that patch XS65ESP1066 is needed) - otherwise, CentOS 8 (actually, anything newer than CentOS 7.2) will not boot successfully.

Replace builtin CentOS 5.x with 8.0 templates
@andrijapanicsb andrijapanicsb changed the title Replace builtin CentOS 5.x with 8.0 templates [Work in progress - do not merge] Replace builtin CentOS 5.x with 8.0 templates Nov 24, 2019
Delete an ancient template added in ACS 2.2, which was set as removed in ACS 4.5. 
Just for sake of cleanup and easier overview of builtin templates we provide.
cent8 - works when XS 6.5 sp1 updated to patch 1066 (all patches...)
From the clean install of (master/4.14?) - delete an ancient template "centos53-x86_64" added in 2.2, which was set as removed in 4.5. For sake of cleanup and easier overview of builtin templates in DB.
@andrijapanicsb
Copy link
Copy Markdown
Contributor Author

andrijapanicsb commented Nov 24, 2019

I need "help" confirming that I've done the proper job of removing an ancient template "centos53-x86_64" for Xen which was added in ACS 2.2 and then marked as removed in ACS 4.5 - this is purely cleanup so we can more easily observe those builtin ones in the vm_templates table (I've issues with garbage collection as you can tell....)

  • I've added the delete SQL statement for schema upgrade cleanup file from 4.13 to 4.14 - that is fine for sure
  • I've removed 2 lines from the setup/db/templates.sql - so that the template is NOT added in the first place for the new installations on master (to be 4.14) - this one is what I would like someone to confirm is OK.

@andrijapanicsb andrijapanicsb added this to the 4.14.0.0 milestone Nov 24, 2019
@apache apache deleted a comment from blueorangutan Nov 24, 2019
@apache apache deleted a comment from blueorangutan Nov 24, 2019
@andrijapanicsb
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

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

@andrijapanicsb
Copy link
Copy Markdown
Contributor Author

(original templates.sql file might not be the right place to change things, will need to redo some changes later)

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✖centos6 ✔centos7 ✔debian. JID-380

@andrijapanicsb
Copy link
Copy Markdown
Contributor Author

Wrong places to edit the files, closing this one. Work continued in #3712

@andrijapanicsb andrijapanicsb deleted the update-default-system-template-centos8 branch November 24, 2019 22:59
@andrijapanicsb andrijapanicsb changed the title [Work in progress - do not merge] Replace builtin CentOS 5.x with 8.0 templates [closed] Replace builtin CentOS 5.x with 8.0 templates Nov 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants