Skip to content

This branch implements the CSV and native HA support for Hyper-V - #351

Closed
anshul1886 wants to merge 1 commit into
apache:masterfrom
anshul1886:hyperv-fccsv
Closed

anshul1886 wants to merge 1 commit into
apache:masterfrom
anshul1886:hyperv-fccsv

Conversation

@anshul1886

Copy link
Copy Markdown

For design related details refer to https://cwiki.apache.org/confluence/display/CLOUDSTACK/iSCSI+and+HA+support+in+Hyper-V.

This is similar to VmWare in design and implementation.

@asfbot

asfbot commented Jun 3, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #297 SUCCESS
This pull request looks good

@asfbot

asfbot commented Jun 3, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #298 FAILURE
Looks like there's a problem with this pull request

@remibergsma

Copy link
Copy Markdown
Contributor

Hi @anshul1886,
Thanks for the PR :-) Looks like quite some work!
I don't have a Hyper-V setup to test it.. Will ask around and see who can help test it.

@asfbot

asfbot commented Jun 8, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #337 FAILURE
Looks like there's a problem with this pull request

@asfbot

asfbot commented Jun 8, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #338 FAILURE
Looks like there's a problem with this pull request

@sebgoa

sebgoa commented Jul 2, 2015

Copy link
Copy Markdown
Member

@anshul1886 looks like it failed the tests. Can you check what's happening and correct accordingly ?

@anshul1886

Copy link
Copy Markdown
Author

@Runseb These are false failures. The changes on which these tests are failing are in Hyper-V agent so can be safely ignored as these tests are not testing Hyper-V Agent.

@devdeep

devdeep commented Jul 20, 2015

Copy link
Copy Markdown
Contributor

I'll take a look and get back if I have any queries

@asfbot

asfbot commented Jul 27, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #124 SUCCESS
This pull request looks good

@asfbot

asfbot commented Jul 27, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #822 SUCCESS
This pull request looks good

@asfbot

asfbot commented Jul 27, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #125 SUCCESS
This pull request looks good

@anshul1886

Copy link
Copy Markdown
Author

Rebased the code to latest master

@asfbot

asfbot commented Jul 27, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #823 SUCCESS
This pull request looks good

@asfbot

asfbot commented Jul 27, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #57 SUCCESS
This pull request looks good

@asfbot

asfbot commented Jul 27, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #58 SUCCESS
This pull request looks good

@remibergsma

Copy link
Copy Markdown
Contributor

@anshul1886 Can you update the PR? It doesn't merge clean.
Anyone able to review Hyper-v?

@anshul1886

Copy link
Copy Markdown
Author

@remibergsma,
Rebased the branch to latest master

@asfbot

asfbot commented Aug 10, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #237 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 10, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #934 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 10, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #170 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 14, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #291 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 14, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #292 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 14, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #988 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 14, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #989 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 14, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #293 SUCCESS
This pull request looks good

@anshul1886

Copy link
Copy Markdown
Author

Removed the MigrateCompleteCommand as per review comments

@asfbot

asfbot commented Aug 14, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #990 UNSTABLE
Looks like there's a problem with this pull request

@swill

swill commented May 17, 2016

Copy link
Copy Markdown
Contributor

Can you run the following tests on this PR and post the results? I will run my KVM CI against it to verify nothing is broken for other hypervisors.

echo "Running tests with required_hardware=true"
nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=true \
smoke/test_password_server.py \
smoke/test_vpc_redundant.py \
smoke/test_routers_iptables_default_policy.py \
smoke/test_routers_network_ops.py \
smoke/test_vpc_router_nics.py \
smoke/test_router_dhcphosts.py \
smoke/test_loadbalance.py \
smoke/test_internal_lb.py \
smoke/test_ssvm.py \
smoke/test_vpc_vpn.py \
smoke/test_privategw_acl.py \
smoke/test_network.py

echo "Running tests with required_hardware=false"
nosetests --with-marvin --marvin-config=${marvinCfg} -s -a tags=advanced,required_hardware=false \
smoke/test_routers.py \
smoke/test_network_acl.py \
smoke/test_reset_vm_on_reboot.py \
smoke/test_vm_life_cycle.py \
smoke/test_service_offerings.py \
smoke/test_network.py \
component/test_vpc_offerings.py \
component/test_vpc_routers.py

@swill

swill commented May 18, 2016

Copy link
Copy Markdown
Contributor

CI RESULTS

Tests Run: 81
  Skipped: 0
   Failed: 0
   Errors: 1
 Duration: 8h 06m 18s

Summary of the problem(s):

ERROR: test suite for <class 'integration.smoke.test_internal_lb.TestInternalLb'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/suite.py", line 209, in run
    self.setUp()
  File "/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/suite.py", line 292, in setUp
    self.setupContext(ancestor)
  File "/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/suite.py", line 315, in setupContext
    try_run(context, names)
  File "/usr/lib/python2.7/site-packages/nose-1.3.7-py2.7.egg/nose/util.py", line 471, in try_run
    return func()
  File "/data/git/cs1/cloudstack/test/integration/smoke/test_internal_lb.py", line 296, in setUpClass
    cls.template.download(cls.apiclient)
  File "/usr/lib/python2.7/site-packages/marvin/lib/base.py", line 1350, in download
    elif 'Downloaded' in template.status:
TypeError: argument of type 'NoneType' is not iterable
----------------------------------------------------------------------
Additional details in: /tmp/MarvinLogs/test_network_XMQTJ1/results.txt

Associated Uploads

/tmp/MarvinLogs/DeployDataCenter__May_17_2016_19_58_42_BEN56X:

/tmp/MarvinLogs/test_network_XMQTJ1:

/tmp/MarvinLogs/test_vpc_routers_QO25FZ:

Uploads will be available until 2016-07-18 02:00:00 +0200 CEST

Comment created by upr comment.

@swill

swill commented May 18, 2016

Copy link
Copy Markdown
Contributor

I have seen this error with other PRs. I am not sure exactly where it comes from. Out of curiosity, is the PR up-to-date in terms of rebasing?

I think this is a clean CI result considering I am seeing this same issue in some other PRs.

@anshul1886

Copy link
Copy Markdown
Author

@swill Yes, PR is up to date. It was updated yesterday.

@swill

swill commented May 18, 2016

Copy link
Copy Markdown
Contributor

Ok thanks. I just wanted to verify. I don't think I can merge this without integration tests against HyperV being run. My tests just show it does not break other stuff, but we still don't have any proof it works for HyperV at this point.

@anshul1886

Copy link
Copy Markdown
Author

@swill @rhtyd I am facing permission denied exceptions for some APIs in UI. Seems like they are after the merge of PR #1489.

@swill

swill commented May 18, 2016

Copy link
Copy Markdown
Contributor

@rhtyd can you work with @anshul1886 to understand what is going on here? This is important as we are about to freeze master and cut 4.9. Thanks...

@yadvr

yadvr commented May 18, 2016

Copy link
Copy Markdown
Member

@swill yeah I've asked @anshul1886 few questions and waiting for answers. Btw, since we're in a release/branch freeze, this feature PR need to be held until 4.9.0 is released.

@bvbharatk

Copy link
Copy Markdown
Contributor

ACS CI BVT Run

Sumarry:
Build Number 142
Hypervisor xenserver
NetworkType Advanced
Passed=70
Failed=3
Skipped=3

Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0

Failed tests:

  • test_vpc_vpn.py
    • test_01_vpc_remote_access_vpn Failed
  • test_volumes.py
    • test_06_download_detached_volume Failed
  • test_vm_life_cycle.py
    • test_10_attachAndDetach_iso Failed

Skipped tests:
test_vm_nic_adapter_vmxnet3
test_static_role_account_acls
test_deploy_vgpu_enabled_vm

Passed test suits:
test_deploy_vm_with_userdata.py
test_affinity_groups_projects.py
test_portable_publicip.py
test_over_provisioning.py
test_global_settings.py
test_scale_vm.py
test_service_offerings.py
test_routers_iptables_default_policy.py
test_routers.py
test_reset_vm_on_reboot.py
test_snapshots.py
test_deploy_vms_with_varied_deploymentplanners.py
test_login.py
test_list_ids_parameter.py
test_public_ip_range.py
test_multipleips_per_nic.py
test_regions.py
test_affinity_groups.py
test_network_acl.py
test_pvlan.py
test_nic.py
test_deploy_vm_root_resize.py
test_resource_detail.py
test_secondary_storage.py
test_disk_offerings.py

@jburwell

jburwell commented Aug 4, 2016

Copy link
Copy Markdown
Contributor

@anshul1886 @rhtyd it appears that there was a push to get this merged for the 4.9 release, but a conflict may have occurred with the Dynamic Role-based API Checker enhancement. Were you able to resolve the issue? It also appears that @bvbharat had 3 test failures and 3 test skips. Where does resolution of these test issues stand?

@yadvr

yadvr commented Aug 5, 2016

Copy link
Copy Markdown
Member

@anshul1886 can you rebase against latest master and push -f ?

[Hyper-V] Fixed various HA related issues

[HyperV] Fixed residual clustered VM removal errors

[HyperV] Added better handling for non-HA VMs

[HyperV] Make all the states in HyperV hostVmStateReport to PowerOff or PowerOn, as cloudStack understands only these two state

[HyperV] Removed dead code which fixes few coverity bugs

disabled native HA for system VMs as this may lead to unaccounted system VMs on hyperv

Using priority for HA instead of passing two parameters in functions and removed some dead code

Fixed Vm start failing after cold volume migration
@anshul1886

Copy link
Copy Markdown
Author

Rebased the branch against current master.

@kiwiflyer

Copy link
Copy Markdown
Contributor

tag:needslove

@cloudmonger

Copy link
Copy Markdown

ACS CI BVT Run

Sumarry:
Build Number 383
Hypervisor xenserver
NetworkType Advanced
Passed=105
Failed=0
Skipped=7

Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0

Failed tests:

Skipped tests:
test_01_test_vm_volume_snapshot
test_vm_nic_adapter_vmxnet3
test_static_role_account_acls
test_11_ss_nfs_version_on_ssvm
test_nested_virtualization_vmware
test_3d_gpu_support
test_deploy_vgpu_enabled_vm

Passed test suits:
test_deploy_vm_with_userdata.py
test_affinity_groups_projects.py
test_portable_publicip.py
test_over_provisioning.py
test_global_settings.py
test_scale_vm.py
test_service_offerings.py
test_routers_iptables_default_policy.py
test_loadbalance.py
test_routers.py
test_reset_vm_on_reboot.py
test_deploy_vms_with_varied_deploymentplanners.py
test_network.py
test_router_dns.py
test_non_contigiousvlan.py
test_login.py
test_deploy_vm_iso.py
test_list_ids_parameter.py
test_public_ip_range.py
test_multipleips_per_nic.py
test_regions.py
test_affinity_groups.py
test_network_acl.py
test_pvlan.py
test_volumes.py
test_nic.py
test_deploy_vm_root_resize.py
test_resource_detail.py
test_secondary_storage.py
test_vm_life_cycle.py
test_routers_network_ops.py
test_disk_offerings.py

@DaanHoogland

Copy link
Copy Markdown
Contributor

@kiwiflyer why does this need TLC? or is that remark deprecated?

@kiwiflyer

Copy link
Copy Markdown
Contributor

It had been untouched for a while, so now that it's moving forward again, you can consider this tag depreciated.

@kiwiflyer

Copy link
Copy Markdown
Contributor

@karuturi Could you see if you could get some folks from Accelerate to help review this PR? We'd really like to get this one moved forward. There are some comments above regarding some requested unit testing to make sure this doesn't break functionality. Help would be appreciated!

@haodeon

haodeon commented Dec 22, 2018

Copy link
Copy Markdown

Hi there, I found this PR after listening to a recording of Sowmya's presentation "Hyper-V Clustering with CloudStack".

The Accelerite Blog implies CSV's and Failover Clustering is enabled in CloudStack but when I built a test environment I could not select PreSetup when adding Primary Storage as per the presentation slides.

It appears to me the presentation was based on functionality provided in this PR, is there any chance of this ever getting merged?

@rafaelweingartner

Copy link
Copy Markdown
Member

Hello Haodeon,
Maybe this feature that you have read about depends on this PR. However, I am not 100% on that.
Now, about the PR getting merged; it is only a matter of having a volunteer (do you have people in your team to do that?) to fix the conflicts and improve the code with the reviews comments. Afterwards, when tests pass, we for sure will merge it.

The problem here was that the company proposing this PR just left it hanging out there, and did not engage with the community.

@DaanHoogland

Copy link
Copy Markdown
Contributor

@anshul1886 please rebase and re-open if still relevant

shwstppr pushed a commit to shapeblue/cloudstack that referenced this pull request Feb 7, 2024
* StoragePoolType as a class

* Fix agent side StoragePoolType enum to class

* Handle StoragePoolType for StoragePoolJoinVO

* Since StoragePoolType is a class, it cannot be converted by @Enumerated annotation.
Implemented conveter class and logic to utilize @convert annotation.

* Fix UserVMJoinVO for StoragePoolType

* fixed missing imports

* Since StoragePoolType is a class, it cannot be converted by @Enumerated annotation.
Implemented conveter class and logic to utilize @convert annotation.

* Fixed equals for the enum.

* removed not needed try/catch for prepareAttribute

* Added license to the file.

* Implemented "supportsPhysicalDiskCopy" for storage adaptor. (apache#352)

Co-authored-by: mprokopchuk <mprokopchuk@apple.com>

* Add javadoc to StoragePoolType class

* Add unit test for StoragePoolType comparisons

* StoragePoolType "==" and ".equals()" fix.

* Fix for abstract storage adaptor set up issue

* review comments

---------

Co-authored-by: Marcus Sorensen <mls@apple.com>
Co-authored-by: mprokopchuk <mprokopchuk@apple.com>
Co-authored-by: mprokopchuk <mprokopchuk@gmail.com>
Co-authored-by: Suresh Kumar Anaparti <suresh.anaparti@shapeblue.com>
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.