Skip to content

hypervisor: XCP-ng 8.2 support - #4672

Merged
yadvr merged 7 commits into
apache:4.15from
shapeblue:xcpng8.2-support
Apr 9, 2021
Merged

hypervisor: XCP-ng 8.2 support#4672
yadvr merged 7 commits into
apache:4.15from
shapeblue:xcpng8.2-support

Conversation

@shwstppr

@shwstpprshwstppr commented Feb 9, 2021

Copy link
Copy Markdown
Contributor

Description

Adds new/missing guest os mappings for XCP-ng/Xenserver 8.1
Copy guest OS mappings from XCP-ng/Xenserver 8.1 for XCP-ng/Xenserver 8.2
Adds Ubuntu 20.04 guest os mapping for XCP-ng/Xenserver 8.2

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@shwstpprshwstppr added this to the 4.16.0.0 milestone Feb 9, 2021
@shwstpprshwstppr self-assigned this Feb 9, 2021
@yadvr

Copy link
Copy Markdown
Member

@shwstppr can you raise them against 4.15 branch and move db changes in the 4.15.0.0->4.15.1.0 path.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr
shwstppr changed the base branch from master to 4.15February 10, 2021 08:57
@shwstpprshwstppr modified the milestones: 4.16.0.0, 4.15.1.0Feb 10, 2021
@apacheapache deleted a comment from blueorangutanFeb 10, 2021
@apacheapache deleted a comment from blueorangutanFeb 10, 2021
@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2672

@Pearl1594

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. JID-[S]22

@yadvryadvr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM
@shwstppr you may also want to check list of supported guest OS (for XCP-ng8.2, if they are same as older 8.0 or we missed anything). One way to do that is get output of xe, for example xe template-list etc. or check docs.

@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos7 ✔centos8 ✖debian. JID-2774

@shwstppr

Copy link
Copy Markdown
ContributorAuthor

Smoke test results,

[root@ref-trl-2439-x-M7-abhishek-kumar-marvin ~]# cat /marvin/smoketests-summary.txt Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_ssvm.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 85 look OK, 1 have error(s)
Only failed tests results shown below:
Test | Result | Time (s) | Test File
--- | --- | --- | ---
test_01_scale_vm | `Failure` | 4.21 | test_scale_vm.py

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@rhtyd added new guest os mappings but changes will conflict with #4300. Will fix them once it is merged cc @nvazquez

Will be great if @GutoVeronezi can raise his PR #4699 for 4.15

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2863

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2865

-- Add support CentOS 8 for Xenserver 8.1.0
INSERT INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(),'Xenserver', '8.1.0', 'CentOS 8', 297, now(), 0);
-- Add support for Debian Buster 10 for Xenserver 8.1.0
INSERT INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(),'Xenserver', '8.1.0', 'Debian Buster 10', 292, now(), 0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@shwstppr bitness (32/64-bit) missing for "Debian Buster 10" , mapping to guest os ids: 292 & 293 here ?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@sureshanaparti that is because there was no bitness mentioned in xcp-ng,

[16:25 xcp-ng1 ~]# xe template-list uuid ( RO) : 847f7f36-6da8-487d-940d-f0f06939a1b6
name-label ( RW): SUSE Linux Enterprise Desktop 12 SP4 (64-bit)
name-description ( RW): Template that allows VM installation from SLES-based distros. To use this template from the CLI, install your VM using vm-install, then watch the virtual display in XenCenter, and fill in the prompts.
uuid ( RO) : 4b6425be-728a-4a2c-8333-0aef209a348b
name-label ( RW): CentOS 8
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 552bce37-51b2-445d-84f2-5f33fa112d7e
name-label ( RW): Other install media
name-description ( RW): Template which allows VM installation from install media
uuid ( RO) : 4b116889-af64-42af-ba86-75dcb3cb7828
name-label ( RW): Scientific Linux 7
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 7774689b-4ca1-4dea-8545-dddd6b64c17f
name-label ( RW): Windows 10 (64-bit)
name-description ( RW): Clones of this template will automatically provision their storage when first booted and then reconfigure themselves with the optimal settings for Windows 10 (64-bit).
uuid ( RO) : 83af4ddb-e029-48ff-ba7a-11a23ff99caa
name-label ( RW): Windows Server 2012 (64-bit)
name-description ( RW): Clones of this template will automatically provision their storage when first booted and then reconfigure themselves with the optimal settings for Windows Server 2012 (64-bit).
uuid ( RO) : d986ea98-09fa-4e9a-9ee6-e6c78119496f
name-label ( RW): Windows Server 2019 (64-bit)
name-description ( RW): Clones of this template will automatically provision their storage when first booted and then reconfigure themselves with the optimal settings for Windows Server 2019 (64-bit).
uuid ( RO) : dda40663-76e5-45dd-a644-7eb0bed6a1f7
name-label ( RW): SUSE Linux Enterprise Desktop 12 SP3 (64-bit)
name-description ( RW): Template that allows VM installation from SLES-based distros. To use this template from the CLI, install your VM using vm-install, then watch the virtual display in XenCenter, and fill in the prompts.
uuid ( RO) : bac315b4-66fd-4488-82f5-9808e927b4b9
name-label ( RW): Debian Buster 10
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 9caee571-3b07-4673-940d-1d687b2818d6
name-label ( RW): Windows 10 (32-bit)
name-description ( RW): Clones of this template will automatically provision their storage when first booted and then reconfigure themselves with the optimal settings for Windows 10 (32-bit).
uuid ( RO) : f873abe0-b138-4995-8f6f-498b423d234d
name-label ( RW): Oracle Linux 7
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 094706dd-5d22-4830-99b7-c710769c9dcc
name-label ( RW): CoreOS
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 11c46476-bd5c-4d75-9cf0-57fe55343ba3
name-label ( RW): Windows 8.1 (64-bit)
name-description ( RW): Clones of this template will automatically provision their storage when first booted and then reconfigure themselves with the optimal settings for Windows 8.1 (64-bit).
uuid ( RO) : 381ebb02-96d5-11e7-92b9-b8ca3a97c5fc
name-label ( RW): Debian Stretch 9.0
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : c15fab79-6cce-4e1f-916f-a64b98ff9e7d
name-label ( RW): Windows Server 2016 (64-bit)
name-description ( RW): Clones of this template will automatically provision their storage when first booted and then reconfigure themselves with the optimal settings for Windows Server 2016 (64-bit).
uuid ( RO) : b5915805-d800-459d-826a-322dc9cf07e2
name-label ( RW): SUSE Linux Enterprise 15 (64-bit)
name-description ( RW): Template that allows VM installation from SLES-based distros. To use this template from the CLI, install your VM using vm-install, then watch the virtual display in XenCenter, and fill in the prompts.
uuid ( RO) : 110ecfa7-0fe4-4b35-a247-0b0141a738ba
name-label ( RW): SUSE Linux Enterprise Server 12 SP5 (64-bit)
name-description ( RW): Template that allows VM installation from SLES-based distros. To use this template from the CLI, install your VM using vm-install, then watch the virtual display in XenCenter, and fill in the prompts.
uuid ( RO) : 6959dfe8-534c-4c58-8a8c-3c3792293543
name-label ( RW): Oracle Linux 8
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 11fd3dc9-96cc-49af-b091-a2ca7e94c589
name-label ( RW): CentOS 7
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : c060fa00-8c96-4eb8-bcc9-772daaa01885
name-label ( RW): SUSE Linux Enterprise Server 12 SP4 (64-bit)
name-description ( RW): Template that allows VM installation from SLES-based distros. To use this template from the CLI, install your VM using vm-install, then watch the virtual display in XenCenter, and fill in the prompts.
uuid ( RO) : 74ae424d-a1d3-4d96-9827-d1d60a4c7511
name-label ( RW): Ubuntu Bionic Beaver 18.04
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 17a818b5-20a6-4d34-a7ef-320da9ef4c14
name-label ( RW): Windows Server 2012 R2 (64-bit)
name-description ( RW): Clones of this template will automatically provision their storage when first booted and then reconfigure themselves with the optimal settings for Windows Server 2012 R2 (64-bit).
uuid ( RO) : e9763585-f70a-4526-bfcb-822064742e9f
name-label ( RW): Ubuntu Xenial Xerus 16.04
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 4383f051-cc9e-48d5-99e9-8fa2e979e2d0
name-label ( RW): Windows 8.1 (32-bit)
name-description ( RW): Clones of this template will automatically provision their storage when first booted and then reconfigure themselves with the optimal settings for Windows 8.1 (32-bit).
uuid ( RO) : 79abf1d8-4b61-4fc3-aafa-58b0ccae48d3
name-label ( RW): Debian Jessie 8.0
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 7279a78a-4756-4fc3-99f0-3e7694c0319e
name-label ( RW): NeoKylin Linux Server 7
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 2cf37285-57bc-4633-a24f-0c6c825dda66
name-label ( RW): Ubuntu Focal Fossa 20.04
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 03d30863-86a2-428e-94c8-88ddfcb8cd29
name-label ( RW): Red Hat Enterprise Linux 7
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>
uuid ( RO) : 47fb0ec8-a0d5-46b8-a995-5455bf845bc7
name-label ( RW): SUSE Linux Enterprise Server 12 SP3 (64-bit)
name-description ( RW): Template that allows VM installation from SLES-based distros. To use this template from the CLI, install your VM using vm-install, then watch the virtual display in XenCenter, and fill in the prompts.
uuid ( RO) : 612863ed-900d-456d-b4b7-38b70915fd1f
name-label ( RW): Red Hat Enterprise Linux 8
name-description ( RW): To use this template from the CLI, install your VM using vm-install, then set other-config-install-repository to the path to your network repository, e.g. http://<server>/<path> or nfs:server:/<path>

Setting higher vcpus result in following exception,
nameLabel: Async.VM.start_on
nameDescription:
allowedOperations: []
currentOperations: {}
created: Mon Mar 22 09:51:24 UTC 2021
finished: Mon Mar 22 09:51:24 UTC 2021
status: failure
residentOn: com.xensource.xenapi.Host@483f7fdc
progress: 1.0
type: <none/>
result:
errorInfo: [HOST_NOT_ENOUGH_PCPUS, 16, 3]
otherConfig: {}
subtaskOf: com.xensource.xenapi.Task@aaf13f6f
subtasks: []
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test centos7 xenserver-71

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + xenserver-71) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-281)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35955 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4672-t281-xenserver-71.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_router_dhcphosts.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 82 look OK, 4 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestKubernetesCluster>:teardownError100.64test_kubernetes_clusters.py
test_router_dhcphostsFailure22.64test_router_dhcphosts.py
ContextSuite context=TestRouterDHCPHosts>:teardownError36.98test_router_dhcphosts.py
test_01_isolate_network_FW_PF_default_routes_egress_trueFailure109.17test_routers_network_ops.py
test_02_isolate_network_FW_PF_default_routes_egress_falseFailure131.47test_routers_network_ops.py
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_trueFailure158.37test_routers_network_ops.py
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_falseFailure160.36test_routers_network_ops.py
test_01_scale_vmFailure11.28test_scale_vm.py

@shwstppr

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

@yadvr

yadvr commented Apr 6, 2021

Copy link
Copy Markdown
Member

@blueorangutan test centos7 xenserver-71

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + xenserver-71) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-365)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 37550 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4672-t365-xenserver-71.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_router_nics.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 85 look OK, 2 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestKubernetesCluster>:teardownError89.28test_kubernetes_clusters.py
test_01_scale_vmFailure12.31test_scale_vm.py

@shwstppr

Copy link
Copy Markdown
ContributorAuthor

Latest smoke test run:

[root@ref-trl-726-x-M7-abhishek-kumar-marvin ~]# cat /marvin/smoketests-summary.txt
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.py
Smoke tests completed. 85 look OK, 2 have error(s)
Only failed tests results shown below:
Test | Result | Time (s) | Test File
--- | --- | --- | ---
ContextSuite context=TestKubernetesCluster>:teardown | `Error` | 113.92 | test_kubernetes_clusters.py
test_01_scale_vm | `Failure` | 4.16 | test_scale_vm.py

cc @vladimirpetrov

@shwstppr
shwstppr marked this pull request as ready for review April 8, 2021 06:50

@vladimirpetrovvladimirpetrov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Feature tested, LGTM.

@yadvr
yadvr merged commit d8c6e00 into apache:4.15Apr 9, 2021
weizhouapache added a commit to weizhouapache/cloudstack that referenced this pull request Aug 21, 2023
weizhouapache added a commit to weizhouapache/cloudstack that referenced this pull request Aug 28, 2023
weizhouapache added a commit to weizhouapache/cloudstack that referenced this pull request Aug 28, 2023
Sign up for freeto 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.

6 participants

@shwstppr@yadvr@blueorangutan@Pearl1594@sureshanaparti@vladimirpetrov