Skip to content

Fixed VM scaling test on Xenserver#4443

Closed
Spaceman1984 wants to merge 3 commits into
apache:masterfrom
shapeblue:scale_vm_fails_tests
Closed

Fixed VM scaling test on Xenserver#4443
Spaceman1984 wants to merge 3 commits into
apache:masterfrom
shapeblue:scale_vm_fails_tests

Conversation

@Spaceman1984

@Spaceman1984 Spaceman1984 commented Nov 5, 2020

Copy link
Copy Markdown
Contributor

Description

If a VM is started before setting the global var enable.dynamic.scale.vm to true, scaling is not possible on the specific VM until it is stopped and started again. Setting the global var before starting the VM solves the problem. The template also needs dynamic scaling enabled. But after checking those variables the VM instance would still fail due to the default max vCPUs being set to 16.

Fixes: #4237

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)

Screenshots (if appropriate):

How Has This Been Tested?

Run the Marvin test - scaling works fine.

@Spaceman1984

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Spaceman1984 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-2335

@Spaceman1984

Copy link
Copy Markdown
Contributor Author

@blueorangutan test ?

@Spaceman1984 Spaceman1984 changed the title Added global var before scaling VM Enabled dynamic scaling before starting a VM for Marvin VM scaling test Nov 5, 2020
@Spaceman1984 Spaceman1984 changed the title Enabled dynamic scaling before starting a VM for Marvin VM scaling test Enabled dynamic scaling before starting a VM for Marvin VM scaling test on Xenserver Nov 5, 2020
@Spaceman1984

Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 xcpng76

@blueorangutan

Copy link
Copy Markdown

@Spaceman1984 a Trillian-Jenkins test job (centos7 mgmt + xcpng76) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3129)
Environment: xcpng76 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36731 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4443-t3129-xcpng76.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.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 9.32 test_scale_vm.py

@Spaceman1984
Spaceman1984 marked this pull request as draft November 5, 2020 20:36
@Spaceman1984

Copy link
Copy Markdown
Contributor Author

Needs more investigation

@Spaceman1984

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@Spaceman1984 Spaceman1984 modified the milestones: 4.15.0.0, 4.16.0.0 Nov 11, 2020
@Spaceman1984

Copy link
Copy Markdown
Contributor Author

Changing to milestone 4.16 as per #4447

@blueorangutan

Copy link
Copy Markdown

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

@Spaceman1984

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@Spaceman1984 Spaceman1984 changed the title Enabled dynamic scaling before starting a VM for Marvin VM scaling test on Xenserver Fixed VM scaling test on Xenserver Nov 11, 2020
@Spaceman1984
Spaceman1984 marked this pull request as ready for review November 11, 2020 14:39
@Spaceman1984

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Spaceman1984 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-2372

@Spaceman1984

Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 xcpng76

@blueorangutan

Copy link
Copy Markdown

@Spaceman1984 a Trillian-Jenkins test job (centos7 mgmt + xcpng76) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3159)
Environment: xcpng76 (x2), Advanced Networking with Mgmt server 7
Total time taken: 32666 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4443-t3159-xcpng76.zip
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_host_maintenance.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 11.43 test_scale_vm.py

@Spaceman1984

Copy link
Copy Markdown
Contributor Author

Something else is still wrong.

@Spaceman1984
Spaceman1984 marked this pull request as draft November 13, 2020 07:32
@yadvr

yadvr commented Feb 18, 2021

Copy link
Copy Markdown
Member

@Spaceman1984 any update on this?

@Spaceman1984

Copy link
Copy Markdown
Contributor Author

No update, I haven't looked into this since November, I will have to reinvestigate.

@Spaceman1984

Copy link
Copy Markdown
Contributor Author

@blueorangutan test centos7 xcpng76

@blueorangutan

Copy link
Copy Markdown

@Spaceman1984 a Trillian-Jenkins test job (centos7 mgmt + xcpng76) has been kicked to run smoke tests

@yadvr

yadvr commented Apr 27, 2021

Copy link
Copy Markdown
Member

Fixed by #4929, closing this.

@yadvr yadvr closed this Apr 27, 2021
@BenoitLair

Copy link
Copy Markdown

Hello @rohityadavcloud
We still have this issue with ACS 4.16.0 and Xcp-NG 8.2

Could it be possible to have a fix or a tweak to allow bypass "memory-static-max" constraint violation moreover of the xen max vcpu ?

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.

Test scale_vm_vm needs fixing for XenServer/XCP-ng

6 participants