Code sync undefined method
davidsandilands opened this issue · 1 comments
davidsandilands commented
Describe the Bug
While running code sync on a test cluster it threw an undeclared method statement
Expected Behavior
It should run cleanly
Steps to Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
Environment
- 2019.8.9
- to be confirmed
- gcp
Additional Context
(gcp-3.9.1) ➜ pe_large_201989 git:(gavindidrichsen/pr/add_sudo_root_to_sshcondfig) ✗ pbis
- bolt inventory show
Targets
pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal
pe-compiler-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal
agnt89-beaad0-0.us-west1-c.c.customer-support-scratchpad.internal
agnt89-beaad0-1.us-west1-b.c.customer-support-scratchpad.internal
agnt89-beaad0-2.us-west1-a.c.customer-support-scratchpad.internal
dashboard89-beaad0-0.us-west1-c.c.customer-support-scratchpad.internal
Inventory source
/Users/gavin.didrichsen/Documents/@REFERENCE/github/app/tools/puppet/lab_environments/gcp/deployments/pe_large_201989/inventory.yaml
Target count
6 total, 6 from inventory, 0 adhoc
Additional information
Use the '--targets', '--query', or '--rerun' option to view specific targets
Use the '--detail' option to view target configuration and data
- set +x
(gcp-3.9.1) ➜ pe_large_201989 git:(gavindidrichsen/pr/add_sudo_root_to_sshcondfig) ✗ pbtr peadm::code_sync_status --targets=pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal,pe-compiler-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal - bolt task run peadm::code_sync_status --targets=pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal,pe-compiler-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal
Started on pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal...
Started on pe-compiler-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal...
Finished on pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal:
{
"development": {
"latest_commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"servers": {
"pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal": {
"commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"sync": true
},
"pe-compiler-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal": {
"commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"sync": true
},
"pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal-orchestrator": {
"commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"sync": true
},
"agnt89-beaad0-0.us-west1-c.c.customer-support-scratchpad.internal": {
"commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"sync": true
}
},
"sync": true
},
"production": {
"latest_commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"servers": {
"pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal": {
"commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"sync": true
},
"pe-compiler-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal": {
"commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"sync": true
},
"pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal-orchestrator": {
"commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"sync": true
},
"agnt89-beaad0-0.us-west1-c.c.customer-support-scratchpad.internal": {
"commit": "0d86318140145a1d669679a35eb6a56ec9407556",
"sync": true
}
},
"sync": true
},
"sync": true
}
Failed on pe-compiler-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal:
The task failed with exit code 1 and no stdout, but stderr contained:
/tmp/a5a8a6ce-8b98-41fb-9956-3128d2ef388b/code_sync_status.rb:91:insync_status': undefined method
[]' for nil:NilClass (NoMethodError)
from /tmp/a5a8a6ce-8b98-41fb-9956-3128d2ef388b/code_sync_status.rb:16:inexecute!' from /tmp/a5a8a6ce-8b98-41fb-9956-3128d2ef388b/code_sync_status.rb:112:in
'
Successful on 1 target: pe-server-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal
Failed on 1 target: pe-compiler-7c3d32-0.us-west1-c.c.customer-support-scratchpad.internal
Ran on 2 targets in 8.84 sec - set +x
(gcp-3.9.1) ➜ pe_large_201989 git:(gavindidrichsen/pr/add_sudo_root_to_sshcondfig) ✗
davidsandilands commented
Having read this properly issues is running it on the compiler I will close out