What steps will reproduce the problem?
1. take a deployment running Tungsten-Replicator 2.1.0 (installed with
tungsten-installer)
2. Attempt upgrading to 2.1.1, following steps from
https://docs.continuent.com/wiki/display/TEDOC/Upgrading+Tungsten+Replicator
What is the expected output?
same as reported by the docs
What do you see instead?
$ ./tools/tpm fetch --hosts=f1,f2,f3,f4 --user=tungsten
--directory=~/installs/cookbook/ --verbose
DEBUG >> The command is set to CopyConfigCommand
DEBUG >> Search ifconfig for xx.xx.xx.xx
DEBUG >> Execute `if [ -d ~/installs/cookbook/ ]; then if [ -f
~/installs/cookbook//.lock ]; then echo 0; else echo 1; fi else echo 1; fi`
DEBUG >> RC: 0, Result: 1, No Errors
DEBUG >> Execute `if [ -d ~/installs/cookbook//tungsten ]; then if [ -f
~/installs/cookbook//tungsten/.lock ]; then echo 0; else echo 1; fi else echo
1; fi`
DEBUG >> RC: 0, Result: 0, No Errors
INFO >> Load the current config from tungsten@f1:~/installs/cookbook//tungsten
DEBUG >> Execute `~/installs/cookbook//tungsten/tools/tpm query config`
DEBUG >> RC: 0, Result: {
"__system_defaults_will_be_overwritten__": {
"hosts": {
"__defaults__": {
"host_name": "__defaults__"
}
}
}
}, No Errors
DEBUG >> Search ifconfig for xx.xx.xx.xx
DEBUG >> Execute `if [ -d ~/installs/cookbook/ ]; then if [ -f
~/installs/cookbook//.lock ]; then echo 0; else echo 1; fi else echo 1; fi` on
f2 as tungsten
DEBUG >> RC: 0, Result: 1
DEBUG >> Execute `if [ -d ~/installs/cookbook//tungsten ]; then if [ -f
~/installs/cookbook//tungsten/.lock ]; then echo 0; else echo 1; fi else echo
1; fi` on f2 as tungsten
DEBUG >> RC: 0, Result: 0
INFO >> Load the current config from tungsten@f2:~/installs/cookbook//tungsten
DEBUG >> Execute `~/installs/cookbook//tungsten/tools/tpm query config` on f2
as tungsten
DEBUG >> RC: 0, Result: {
"__system_defaults_will_be_overwritten__": {
"hosts": {
"__defaults__": {
"host_name": "__defaults__"
}
}
}
}
DEBUG >> Search ifconfig for xx.xx.xx.xx
DEBUG >> Execute `if [ -d ~/installs/cookbook/ ]; then if [ -f
~/installs/cookbook//.lock ]; then echo 0; else echo 1; fi else echo 1; fi` on
f3 as tungsten
DEBUG >> RC: 0, Result: 1
DEBUG >> Execute `if [ -d ~/installs/cookbook//tungsten ]; then if [ -f
~/installs/cookbook//tungsten/.lock ]; then echo 0; else echo 1; fi else echo
1; fi` on f3 as tungsten
DEBUG >> RC: 0, Result: 0
INFO >> Load the current config from tungsten@f3:~/installs/cookbook//tungsten
DEBUG >> Execute `~/installs/cookbook//tungsten/tools/tpm query config` on f3
as tungsten
DEBUG >> RC: 0, Result: {
"__system_defaults_will_be_overwritten__": {
"hosts": {
"__defaults__": {
"host_name": "__defaults__"
}
}
}
}
DEBUG >> Search ifconfig for xx.xx.xx.xx
DEBUG >> Execute `if [ -d ~/installs/cookbook/ ]; then if [ -f
~/installs/cookbook//.lock ]; then echo 0; else echo 1; fi else echo 1; fi` on
f4 as tungsten
DEBUG >> RC: 0, Result: 1
DEBUG >> Execute `if [ -d ~/installs/cookbook//tungsten ]; then if [ -f
~/installs/cookbook//tungsten/.lock ]; then echo 0; else echo 1; fi else echo
1; fi` on f4 as tungsten
DEBUG >> RC: 0, Result: 0
INFO >> Load the current config from tungsten@f4:~/installs/cookbook//tungsten
DEBUG >> Execute `~/installs/cookbook//tungsten/tools/tpm query config` on f4
as tungsten
DEBUG >> RC: 0, Result: {
"__system_defaults_will_be_overwritten__": {
"hosts": {
"__defaults__": {
"host_name": "__defaults__"
}
}
}
}
ERROR >> undefined method `each_key' for nil:NilClass
DEBUG >> undefined method `each_key' for nil:NilClass
./ruby-tpm/configure/modules/package_remote.rb:203:in `load_remote_config'
./ruby-tpm/configure/modules/package_remote.rb:63:in `parsed_options?'
./ruby-tpm/configure/modules/package_cluster.rb:91:in `parsed_options?'
./ruby-tpm/configure/configure_command.rb:870:in `parsed_options?'
./ruby-tpm/configure/commands/copy_config.rb:16:in `parsed_options?'
./ruby-tpm/configurator.rb:453:in `parsed_options?'
./ruby-tpm/configurator.rb:231:in `run'
ruby-tpm/configure.rb:31
What is the possible cause?
N/A
What is the proposed solution?
N/A
Additional information
The same error appears using both Ruby 1.8.7 (CentOS) and 1.9.3 (Ubuntu)
Original issue reported on code.google.com by g.maxia on 19 Aug 2013 at 1:03
Original issue reported on code.google.com by
g.maxia
on 19 Aug 2013 at 1:03