Skip to content

Commit be23d57

Browse files
(PE-40379) push more debug
1 parent 5c6bd94 commit be23d57

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

spec/acceptance/peadm_spec/plans/test_migration.pp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,24 @@
66
Optional[String] $new_replica_postgresql_host = undef,
77
Optional[String] $upgrade_version = undef,
88
) {
9+
out::message("primary_host:${primary_host}.")
10+
out::message("new_primary_host:${new_primary_host}.")
11+
out::message("new_replica_host:${new_replica_host}.")
12+
out::message("new_primary_postgresql_host:${new_primary_postgresql_host}.")
13+
out::message("new_replica_postgresql_host:${new_replica_postgresql_host}.")
14+
out::message("upgrade_version:${upgrade_version}.")
15+
916
# Convert String values to targets if they are not blank
1017
$primary_target = $primary_host ? { '' => undef, default => peadm::get_targets($primary_host, 1) }
1118
$new_primary_target = $new_primary_host ? { '' => undef, default => peadm::get_targets($new_primary_host, 1) }
1219
$new_replica_target = $new_replica_host ? { '' => undef, default => peadm::get_targets($new_replica_host, 1) }
1320
$new_primary_postgresql_target = $new_primary_postgresql_host ? { '' => undef, default => peadm::get_targets($new_primary_postgresql_host, 1) }
1421
$new_replica_postgresql_target = $new_replica_postgresql_host ? { '' => undef, default => peadm::get_targets($new_replica_postgresql_host, 1) }
22+
out::message("primary_target:${primary_target}.")
23+
out::message("new_primary_target:${new_primary_target}.")
24+
out::message("new_replica_target:${new_replica_target}.")
25+
out::message("new_primary_postgresql_target:${new_primary_postgresql_target}.")
26+
out::message("new_replica_postgresql_target:${new_replica_postgresql_target}.")
1527

1628
# run infra status on the primary
1729
out::message("Running peadm::status on primary host ${primary_target}")
@@ -79,7 +91,7 @@
7991
# if a new PE version was specified then check it has been upgraded
8092
out::message("upgrade_version:${upgrade_version}.")
8193
if $upgrade_version and $upgrade_version != '' and !empty($upgrade_version) {
82-
if $peadm_config['value']['pe_version'] == $upgrade_version {
94+
if $peadm_config['pe_version'] == $upgrade_version {
8395
out::message("Upgraded to new PE version ${upgrade_version} correctly")
8496
} else {
8597
fail_plan("Failed to upgrade to new PE version ${upgrade_version} correctly")

0 commit comments

Comments
 (0)