Skip to content

CLOUDSTACK-10160: Fix typo in Libvirt XML definition for Virtio-SCSI#2341

Merged
yadvr merged 2 commits into
apache:masterfrom
wido:CLOUDSTACK-10160
Nov 28, 2017
Merged

CLOUDSTACK-10160: Fix typo in Libvirt XML definition for Virtio-SCSI#2341
yadvr merged 2 commits into
apache:masterfrom
wido:CLOUDSTACK-10160

Conversation

@wido
Copy link
Copy Markdown
Contributor

@wido wido commented Nov 27, 2017

The attribute for the XML element 'controller' should be 'model' and
not 'mode'.

Source: https://libvirt.org/formatdomain.html#elementsControllers

A scsi controller has an optional attribute model, which is one of
'auto', 'buslogic', 'ibmvscsi', 'lsilogic', 'lsisas1068', 'lsisas1078',
'virtio-scsi' or 'vmpvscsi'.

In the current state a regular SCSI device is attached and not a Virtio-SCSI
device.

Afterwards this is what lspci reports:

root@ub-scsi:~# lspci |grep -i scsi
00:09.0 SCSI storage controller: Red Hat, Inc Virtio SCSI
root@ub-scsi:~# 

The attribute for the XML element 'controller' should be 'model' and
not 'mode'.

Source: https://libvirt.org/formatdomain.html#elementsControllers

  A scsi controller has an optional attribute model, which is one of
  'auto', 'buslogic', 'ibmvscsi', 'lsilogic', 'lsisas1068', 'lsisas1078',
  'virtio-scsi' or 'vmpvscsi'.

In the current state a regular SCSI device is attached and not a Virtio-SCSI
device.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
@wido wido added this to the 4.11 milestone Nov 27, 2017
@wido wido requested review from nathanejohnson and yadvr November 27, 2017 12:02
@wido
Copy link
Copy Markdown
Contributor Author

wido commented Nov 27, 2017

Preferably this one would be merged to 4.10 as well so that we could fix it in a hotfix there.

Otherwise 4.11

Copy link
Copy Markdown
Member

@yadvr yadvr left a comment

Choose a reason for hiding this comment

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

LGTM, simple change.

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Nov 27, 2017

@wido the 4.10 maintainer may choose to backport (cherry-pick it)
@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

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

To make sure the XML output string is correct

Signed-off-by: Wido den Hollander <wido@widodh.nl>
@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1308

@wido
Copy link
Copy Markdown
Contributor Author

wido commented Nov 27, 2017

Thanks @rhtyd !

I've also added a UnitTest in a second commit to make sure this is tested.

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Nov 27, 2017

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member

@nathanejohnson nathanejohnson left a comment

Choose a reason for hiding this comment

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

Good catch!

@wido
Copy link
Copy Markdown
Contributor Author

wido commented Nov 27, 2017

@nathanejohnson: Not to point a finger, but without this it never worked properly. Although it seemed to work as VirtIO-SCSI it was actually just plain SCSI.

@nathanejohnson
Copy link
Copy Markdown
Member

@wido when using linux, it recognizes as a VIRTIO-Scsi HBA, and when spinning up Windows guests with the Virtio SCSI drivers installed it recognizes the storage appropriately. That doesn't "prove" it's actually using it as virtio-scsi, but it's possible when the "model" is not specified (or incorrectly specified) it might default to "auto", which might do the right thing based on OS support? I'm guessing here.

screen shot 2017-11-27 at 10 34 15 am

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-1704)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36050 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2341-t1704-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_host_annotations.py
Intermitten failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermitten failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermitten failure detected: /marvin/tests/smoke/test_templates.py
Intermitten failure detected: /marvin/tests/smoke/test_volumes.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Test completed. 63 look OK, 4 have error(s)

Test Result Time (s) Test File
test_01_vpc_remote_access_vpn Failure 45.87 test_vpc_vpn.py
test_07_resize_fail Failure 15.39 test_volumes.py
test_04_rvpc_privategw_static_routes Failure 228.46 test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanup Failure 112.75 test_privategw_acl.py
test_02_vpc_privategw_static_routes Failure 218.42 test_privategw_acl.py
test_01_vpc_privategw_acl Failure 61.70 test_privategw_acl.py
test_05_add_annotation_for_invalid_entityType Error 0.07 test_host_annotations.py
test_change_service_offering_for_vm_with_snapshots Skipped 0.00 test_vm_snapshots.py
test_09_copy_delete_template Skipped 0.03 test_templates.py
test_06_copy_template Skipped 0.00 test_templates.py
test_static_role_account_acls Skipped 0.02 test_staticroles.py
test_11_ss_nfs_version_on_ssvm Skipped 0.02 test_ssvm.py
test_01_scale_vm Skipped 0.00 test_scale_vm.py
test_01_primary_storage_iscsi Skipped 0.14 test_primary_storage.py
test_vm_nic_adapter_vmxnet3 Skipped 0.00 test_nic_adapter_type.py
test_03_nic_multiple_vmware Skipped 1.14 test_nic.py
test_nested_virtualization_vmware Skipped 0.00 test_nested_virtualization.py
test_06_copy_iso Skipped 0.00 test_iso.py
test_list_ha_for_host_valid Skipped 0.02 test_hostha_simulator.py
test_list_ha_for_host_invalid Skipped 0.02 test_hostha_simulator.py
test_list_ha_for_host Skipped 0.03 test_hostha_simulator.py
test_hostha_enable_feature_without_setting_provider Skipped 0.03 test_hostha_simulator.py
test_hostha_enable_feature_valid Skipped 0.02 test_hostha_simulator.py
test_hostha_disable_feature_valid Skipped 0.02 test_hostha_simulator.py
test_hostha_configure_invalid_provider Skipped 0.03 test_hostha_simulator.py
test_hostha_configure_default_driver Skipped 0.02 test_hostha_simulator.py
test_ha_verify_fsm_recovering Skipped 0.03 test_hostha_simulator.py
test_ha_verify_fsm_fenced Skipped 0.02 test_hostha_simulator.py
test_ha_verify_fsm_degraded Skipped 0.02 test_hostha_simulator.py
test_ha_verify_fsm_available Skipped 0.02 test_hostha_simulator.py
test_ha_multiple_mgmt_server_ownership Skipped 0.02 test_hostha_simulator.py
test_ha_list_providers Skipped 0.03 test_hostha_simulator.py
test_ha_enable_feature_invalid Skipped 0.03 test_hostha_simulator.py
test_ha_disable_feature_invalid Skipped 0.04 test_hostha_simulator.py
test_ha_configure_enabledisable_across_clusterzones Skipped 0.11 test_hostha_simulator.py
test_configure_ha_provider_valid Skipped 0.03 test_hostha_simulator.py
test_configure_ha_provider_invalid Skipped 0.04 test_hostha_simulator.py
test_deploy_vgpu_enabled_vm Skipped 0.04 test_deploy_vgpu_enabled_vm.py
test_3d_gpu_support Skipped 0.04 test_deploy_vgpu_enabled_vm.py

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Nov 28, 2017

Lgtm, any further improvements may be submitted in separate PRs. Merging now, thanks.

@yadvr yadvr merged commit fdf2509 into apache:master Nov 28, 2017
bernardodemarco pushed a commit to scclouds/cloudstack that referenced this pull request Jul 16, 2025
…ouds'

Alteração nas exceções quando nenhuma estratégia suporta a criação de VM _snapshot_

Closes apache#2341

See merge request scclouds/scclouds!1191
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.

5 participants