Skip to content

Conversation

@shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Oct 1, 2021

Description

Use value boot option values from VM details directly similar to other hypervisor plugins instead of relying on boot properties explicitly set for VirtualMachineTO.

Fixes #5535

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?

Use value boot option values from VM details directly similar to other hypervisor plugins instead of relying on boot properties explicitly set for VirtualMachineTO.

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

shwstppr commented Oct 1, 2021

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✖️ el7 ✔️ el8 ✔️ debian. SL-JID 1468

@shwstppr
Copy link
Contributor Author

shwstppr commented Oct 1, 2021

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 1471

@yadvr
Copy link
Member

yadvr commented Oct 2, 2021

@blueorangutan test centos7 xenserver-71

@blueorangutan
Copy link

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

@yadvr
Copy link
Member

yadvr commented Oct 2, 2021

@blueorangutan test centos7 xcpng-82

@blueorangutan
Copy link

@rhtyd unsupported parameters provided. Supported mgmt server os are: centos7, centos6, alma8, ubuntu18, suse15, ubuntu20, rocky8, centos8. Supported hypervisors are: kvm-centos6, kvm-centos7, kvm-centos8, kvm-rocky8, kvm-alma8, kvm-ubuntu18, kvm-ubuntu20, kvm-suse15, vmware-55u3, vmware-60u2, vmware-65u2, vmware-67u3, vmware-70u1, xenserver-65sp1, xenserver-71, xenserver-74, xcpng74, xcpng76, xcpng80, xcpng81, xcpng82

@blueorangutan
Copy link

Trillian test result (tid-2295)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35943 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5543-t2295-xenserver-71.zip
Smoke tests completed. 86 look OK, 1 have errors
Only failed tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestKubernetesCluster>:teardown Error 95.98 test_kubernetes_clusters.py

@yadvr
Copy link
Member

yadvr commented Oct 3, 2021

@blueorangutan test centos7 xcpng82

@blueorangutan
Copy link

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

@yadvr yadvr added this to the 4.16.0.0 milestone Oct 3, 2021
@blueorangutan
Copy link

Trillian test result (tid-2303)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server 7
Total time taken: 49504 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5543-t2303-xcpng82.zip
Smoke tests completed. 86 look OK, 1 have errors
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_scale_vm Failure 4.77 test_scale_vm.py

@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 1501

@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 1519

@AlexanderKgr
Copy link

@AlexanderKgr

  • as I pointed out the templates I've used for testing were registered in 4.15.2, is that what you imply by 'from previous versions'?
  • no, this is not yet merged, you can build the branch yourself and test it out. Do not wait until it gets merged since we're closing on the code freeze and we might cut the RC soon, probably by end of the week.

From 4.15.1
Can you help with build and test? Have never done this before

@borisstoyanov
Copy link
Contributor

@AlexanderKgr if you're not a developer maybe it'll be hard to build it yourself, I have packages is there a location I can upload them fro you?

@AlexanderKgr
Copy link

@AlexanderKgr if you're not a developer maybe it'll be hard to build it yourself, I have packages is there a location I can upload them fro you?

I am network admin at a company and have home lab.both with cloudstack.
Upload them somewhere like gdrive one drive etc and send me the link. For debian version

@borisstoyanov
Copy link
Contributor

@AlexanderKgr I've uploaded management and common deb packages here: https://drive.google.com/drive/folders/1SLdFLWVm6gQKEedMVI7nX-16w_ZSBkle?usp=sharing

you'll have to manually deal with dependencies packages and if you're running 4.15 you'll need to register systemvm template to upgrade properly.

@AlexanderKgr
Copy link

@AlexanderKgr I've uploaded management and common deb packages here: https://drive.google.com/drive/folders/1SLdFLWVm6gQKEedMVI7nX-16w_ZSBkle?usp=sharing

you'll have to manually deal with dependencies packages and if you're running 4.15 you'll need to register systemvm template to upgrade properly.

Thanks. I am at 4.15.2. will install it in around 3 hours

@nvazquez
Copy link
Contributor

nvazquez commented Oct 6, 2021

Thanks @borisstoyanov
@AlexanderKgr please let us know after you finish your tests, thanks

@borisstoyanov
Copy link
Contributor

@AlexanderKgr @nvazquez I think this should be fine, I've created the templates with 4.15.1 and with 4.15.2 I encountered this blocker, then upgraded to this branch and was able to start my VMs once again.

@nvazquez
Copy link
Contributor

nvazquez commented Oct 6, 2021

@blueorangutan test centos7 xcpng82

@blueorangutan
Copy link

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

@AlexanderKgr
Copy link

@AlexanderKgr I've uploaded management and common deb packages here: https://drive.google.com/drive/folders/1SLdFLWVm6gQKEedMVI7nX-16w_ZSBkle?usp=sharing

you'll have to manually deal with dependencies packages and if you're running 4.15 you'll need to register systemvm template to upgrade properly.

gdrive has sent you a msg to allow me to view files

@AlexanderKgr
Copy link

AlexanderKgr commented Oct 6, 2021

with the version @borisstoyanov gave me
image
have issues updating from 4.15.3
db connection issue
image
reverting to previous db and 4.15.3 fixes this issue.
tried to install 2 times
there was a new option to select
image
the 1st time i selected N and the 2nd i selected Y
The same error

@blueorangutan
Copy link

Trillian test result (tid-2328)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46530 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5543-t2328-xcpng82.zip
Smoke tests completed. 91 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@borisstoyanov
Copy link
Contributor

borisstoyanov commented Oct 7, 2021

@AlexanderKgr I did not had these issues, I highly suspect something went wrong with updating, but could be wrong since I was on centos8 instead of debian, can I ask you to test this once more next week when we have RC1 probably (keep an eye on the mailing lists), since you'll be able to properly update this with dependencie packages manager?

@AlexanderKgr
Copy link

@AlexanderKgr I did not had these issues, I highly suspect something went wrong with updating, but could be wrong since I was on centos8 instead of debian, can I ask you to test this once more next week when we have RC1 probably (keep an eye on the mailing lists), since you'll be able to properly update this with dependencie packages manager?

Sure. No problem neighbor. I am waiting for rc1 to test. Thanks

@sureshanaparti
Copy link
Contributor

I was not able to reproduce this with vms deployed in 4.15.2 with UEFI (secured), then upgraded to this branch. I was able to successfully stop and start VMs with no issues.

There was one warning on stopping VM, it probably does not have to do with this change?

2021-10-06 11:16:03,345 DEBUG [c.c.h.x.r.w.x.CitrixStopCommandWrapper] (DirectAgent-76:ctx-7c82b552) (logid:de9224d6) 9. The VM i-2-8-VM is in Stopping state
2021-10-06 11:16:03,362 WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-76:ctx-7c82b552) (logid:de9224d6) Task failed! Task record:                 uuid: 998fc3ab-99cb-64a6-2550-efc27c14f830
           nameLabel: Async.VM.clean_shutdown
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Wed Oct 06 11:16:03 UTC 2021
            finished: Wed Oct 06 11:16:03 UTC 2021
              status: failure
          residentOn: com.xensource.xenapi.Host@d4f0371d
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [VM_LACKS_FEATURE, OpaqueRef:790a1a78-38cd-4590-aca5-d981d5561cc4]
         otherConfig: {}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

2021-10-06 11:16:03,367 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-76:ctx-7c82b552) (logid:de9224d6) Unable to shutdown VM(i-2-8-VM) with force=false on host(ac3de140-597d-4435-ad55-62044d7d2637) due to Task failed! Task record:                 uuid: 998fc3ab-99cb-64a6-2550-efc27c14f830
           nameLabel: Async.VM.clean_shutdown
     nameDescription:
   allowedOperations: []
   currentOperations: {}
             created: Wed Oct 06 11:16:03 UTC 2021
            finished: Wed Oct 06 11:16:03 UTC 2021
              status: failure
          residentOn: com.xensource.xenapi.Host@d4f0371d
            progress: 1.0
                type: <none/>
              result:
           errorInfo: [VM_LACKS_FEATURE, OpaqueRef:790a1a78-38cd-4590-aca5-d981d5561cc4]
         otherConfig: {}
           subtaskOf: com.xensource.xenapi.Task@aaf13f6f
            subtasks: []

2021-10-06 11:16:04,632 DEBUG [c.c.a.ApiServlet] (qtp249034932-13:ctx-f9d3d0fb) (logid:0a34122b) ===START===  172.16.250.11 -- GET  jobId=de9224d6-1812-41bc-82c4-31089104446f&command=queryAsyncJobResult&response=json

@harikrishna-patnala Have you noticed any warning while stopping VM in your tests?

@harikrishna-patnala
Copy link
Contributor

@sureshanaparti I've observed the same warning both before and after fix and for all types of boot options, probably this is related to the specific version of XCP, nothing related to these changes

@sureshanaparti
Copy link
Contributor

@sureshanaparti I've observed the same warning both before and after fix and for all types of boot options, probably this is related to the specific version of XCP, nothing related to these changes

Thanks for the confirmation @harikrishna-patnala

@sureshanaparti
Copy link
Contributor

Merging based on LGTMs and test results.

@sureshanaparti sureshanaparti merged commit 2a42a01 into apache:main Oct 7, 2021
@sureshanaparti
Copy link
Contributor

Hi @AlexanderKgr, Please test with RC1 packages (watch out for the announcement in the mailing list), and share the results here. Thanks.

@yadvr
Copy link
Member

yadvr commented Oct 11, 2021

@AlexanderKgr since the PR was merged, you can actually test ahead of RC1 using the latest/nightly builds from http://download.cloudstack.org/testing/nightly/latest/

@AlexanderKgr
Copy link

@AlexanderKgr since the PR was merged, you can actually test ahead of RC1 using the latest/nightly builds from http://download.cloudstack.org/testing/nightly/latest/

tried to test with cloudstack-management_4.16.0.0-snapshot.20211011_xenial_all.deb but
there was this option
image

i selected N and it broke my installation. had to revert.
Is this option correct?

@yadvr
Copy link
Member

yadvr commented Oct 12, 2021

@AlexanderKgr hope this still was in a dev-test env, selecting N to not overwrite the db properties file was right. What error did you get in logs from updating the packages? (maybe you hit an upgrade issue we can try to fix)

Can you try again and report us your issues
http://download.cloudstack.org/testing/nightly/latest/debian/4.16/

@AlexanderKgr
Copy link

@AlexanderKgr hope this still was in a dev-test env, selecting N to not overwrite the db properties file was right. What error did you get in logs from updating the packages? (maybe you hit an upgrade issue we can try to fix)

Can you try again and report us your issues http://download.cloudstack.org/testing/nightly/latest/debian/4.16/

yes it was a dev-test env.
No errors in update but there was an issue in starting the service cloudstack-management. Will try again in the evening.

@AlexanderKgr
Copy link

@AlexanderKgr hope this still was in a dev-test env, selecting N to not overwrite the db properties file was right. What error did you get in logs from updating the packages? (maybe you hit an upgrade issue we can try to fix)

Can you try again and report us your issues http://download.cloudstack.org/testing/nightly/latest/debian/4.16/

Tried it with CloudStack 4.16.0.0-snapshot.20211014 and i can confirm that it is working.
Created new vms from templates, stopped them start them. Everything works.
Thank you all! @shwstppr @rhtyd @sureshanaparti @borisstoyanov @nvazquez @harikrishna-patnala

@nvazquez
Copy link
Contributor

Excellent thanks @AlexanderKgr !

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.

After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

9 participants