1 | halfak@deployment-tin:/srv/deployment/ores/deploy$ scap deploy -v |
---|---|
2 | 20:30:13 Started deploy [ores/deploy@9fd75a1] |
3 | 20:30:13 Deploying Rev: 9fd75a1109495cbe479893df0cb7ab56846548d9 |
4 | 20:30:13 Update DEPLOY_HEAD |
5 | 20:30:13 Creating /srv/deployment/ores/deploy/.git/DEPLOY_HEAD |
6 | Deleted tag 'scap/sync/2016-08-08/0001' (was 10f6d96) |
7 | 20:30:13 Update server info |
8 | Entering 'submodules/editquality' |
9 | Entering 'submodules/ores' |
10 | Entering 'submodules/wheels' |
11 | Entering 'submodules/wikiclass' |
12 | 20:30:13 Started deploy [ores/deploy@9fd75a1]: (no justification provided) |
13 | 20:30:13 |
14 | == WORKER == |
15 | :* deployment-sca03.deployment-prep.eqiad.wmflabs |
16 | 20:30:13 Running remote deploy cmd ['/usr/bin/scap', 'deploy-local', '-v', '--repo', 'ores/deploy', '-g', 'worker', 'fetch', '--refresh-config'] |
17 | ores/deploy: fetch stage(s): 100% (ok: 1; fail: 0; left: 0) |
18 | 20:30:15 Running remote deploy cmd ['/usr/bin/scap', 'deploy-local', '-v', '--repo', 'ores/deploy', '-g', 'worker', 'config_deploy', '--refresh-config'] |
19 | ores/deploy: config_deploy stage(s): 100% (ok: 1; fail: 0; left: 0) |
20 | 20:30:16 Running remote deploy cmd ['/usr/bin/scap', 'deploy-local', '-v', '--repo', 'ores/deploy', '-g', 'worker', 'promote', '--refresh-config'] |
21 | ores/deploy: promote and restart_service stage(s): 100% (ok: 1; fail: 0; left: 0) |
22 | worker deploy successful. Continue? [y]es/[n]o/[c]ontinue all groups: y |
23 | 20:30:20 Finished deploy [ores/deploy@9fd75a1] (duration: 00m 07s) |
24 | 20:30:20 Unhandled error: |
25 | Traceback (most recent call last): |
26 | File "/usr/lib/python2.7/dist-packages/scap/cli.py", line 285, in run |
27 | exit_status = app.main(app.extra_arguments) |
28 | File "/usr/lib/python2.7/dist-packages/scap/deploy.py", line 572, in main |
29 | exec_result = self._execute_for_groups(stages) |
30 | File "/usr/lib/python2.7/dist-packages/scap/deploy.py", line 594, in _execute_for_groups |
31 | self._execute_for_group(stages, group) |
32 | File "/usr/lib/python2.7/dist-packages/scap/deploy.py", line 641, in _execute_for_group |
33 | for label, targets in group.subgroups(): |
34 | File "/usr/lib/python2.7/dist-packages/scap/targets.py", line 283, in subgroups |
35 | for i in xrange(0, len(targets), self.size): |
36 | ValueError: xrange() arg 3 must not be zero |
37 | 20:30:20 deploy failed: <ValueError> xrange() arg 3 must not be zero |
Description
Description
Revisions and Commits
Revisions and Commits
Restricted Differential Revision | |||
rMSCA Scap | |||
Restricted Differential Revision | rMSCAcc58ae9f2891 Exclude empty deploy groups |
Related Objects
Related Objects
- Mentioned In
- T157135: Fix broken beta-labs deploy
- Mentioned Here
- P4880 Beta labs ORES deploy error
Event Timeline
Comment Actions
Relevant scap config: https://phabricator.wikimedia.org/diffusion/1880/browse/master/scap/
Comment Actions
(Time is UTC+1)
[16:50:41] <+hashar> halfak: seems it deploys first to the "worker" group [16:50:53] <+hashar> ores-worker-labs: deployment-sca03.deployment-prep.eqiad.wmflabs [16:51:00] <+hashar> then try to deploy on the 'default' group [16:51:11] <+hashar> which is the same file [16:51:24] <+hashar> so maybe we did an optimization that filter out host that already got deployed [16:51:44] <+hashar> so when deploying the "worker" group, deployment-sca03 is done [16:51:52] <+hashar> then to deploy the rest, scap check the default group [16:52:01] <+hashar> get a list of host that is only [ 'deployment-sca03' ] [16:52:11] <+hashar> that host is filtered out because it got deployed [16:52:16] <+hashar> we end up with an empty list to deploy to [16:52:19] <+hashar> and xrange() bork