Skip to content

Commit

Permalink
Remove affinity requests that are too restrictive
Browse files Browse the repository at this point in the history
Unfortunately, the PowerVS region we use for testing has limited
capacity and setting too many affinity controls in the specs makes
re-recording them a pain.
  • Loading branch information
jaywcarman committed Jan 28, 2023
1 parent 16b4da1 commit bed18fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions lib/tasks_private/power_virtual_servers.rake
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ namespace :vcr do
"key_pair_name" => "test-ssh-key-with-comment-line-breaks",
"migratable" => true,
"pin_policy" => "hard",
"placement_group" => "test-placement-group-anti-affinity",
"networks" => [
IbmCloudPower::PVMInstanceAddNetwork.new(
"network_id" => "test-network-pub-vlan"
Expand All @@ -148,7 +147,6 @@ namespace :vcr do
"key_pair_name" => "test-ssh-key-no-comment",
"migratable" => true,
"pin_policy" => "none",
"placement_group" => "test-placement-group-affinity",
"networks" => [
IbmCloudPower::PVMInstanceAddNetwork.new(
"network_id" => "test-network-pub-vlan-dns"
Expand All @@ -166,7 +164,6 @@ namespace :vcr do
"key_pair_name" => "test-ssh-key-no-comment",
"migratable" => true,
"pin_policy" => "none",
"placement_group" => "test-placement-group-affinity",
"networks" => [
IbmCloudPower::PVMInstanceAddNetwork.new(
"network_id" => "test-network-vlan"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,13 @@ def assert_specific_flavor
def assert_specific_vm
instance_name = "test-instance-rhel-s922-shared-tier3"
vm = ems.vms.find_by(:name => instance_name)
placement_group = ems.placement_groups.find_by(:name => "test-placement-group-affinity")
expect(vm).to have_attributes(
:location => "unknown",
:name => instance_name,
:description => "PVM Instance",
:vendor => "ibm_power_vs",
:power_state => "on",
:placement_group_id => placement_group.id,
:placement_group_id => nil,
:raw_power_state => "ACTIVE",
:connection_state => "connected",
:type => "ManageIQ::Providers::IbmCloud::PowerVirtualServers::CloudManager::Vm"
Expand Down

0 comments on commit bed18fd

Please sign in to comment.