Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift MaaS Replication Checks Failing - Traceback - KeyError: 'replication_type' #172

Closed
byronmccollum opened this issue Mar 10, 2015 · 6 comments
Assignees

Comments

@byronmccollum
Copy link

MaaS installation from RPC 10.1.2...

Account Replication

root@lab-byron-upgrade-n07:/usr/lib/rackspace-monitoring-agent/plugins# python swift-recon.py --ring-type account replication
status error main()\n File "swift-recon.py", line 352, in main\n stats = swift_replication(args.ring)\n File "swift-recon.py", line 156, in swift_replication\n replication_statistics[rep_dict.pop('replication_type')] = rep_dict\nKeyError: 'replication_type'\n
Traceback (most recent call last):
  File "swift-recon.py", line 365, in <module>
    main()
  File "swift-recon.py", line 352, in main
    stats = swift_replication(args.ring)
  File "swift-recon.py", line 156, in swift_replication
    replication_statistics[rep_dict.pop('replication_type')] = rep_dict
KeyError: 'replication_type'

Container Replication

root@lab-byron-upgrade-n07:/usr/lib/rackspace-monitoring-agent/plugins# python swift-recon.py --ring-type container replication
status error main()\n File "swift-recon.py", line 352, in main\n stats = swift_replication(args.ring)\n File "swift-recon.py", line 156, in swift_replication\n replication_statistics[rep_dict.pop('replication_type')] = rep_dict\nKeyError: 'replication_type'\n
Traceback (most recent call last):
  File "swift-recon.py", line 365, in <module>
    main()
  File "swift-recon.py", line 352, in main
    stats = swift_replication(args.ring)
  File "swift-recon.py", line 156, in swift_replication
    replication_statistics[rep_dict.pop('replication_type')] = rep_dict
KeyError: 'replication_type'

Object Replication

root@lab-byron-upgrade-n07:/usr/lib/rackspace-monitoring-agent/plugins# python swift-recon.py --ring-type object replication
status error main()\n File "swift-recon.py", line 352, in main\n stats = swift_replication(args.ring)\n File "swift-recon.py", line 156, in swift_replication\n replication_statistics[rep_dict.pop('replication_type')] = rep_dict\nKeyError: 'replication_type'\n
Traceback (most recent call last):
  File "swift-recon.py", line 365, in <module>
    main()
  File "swift-recon.py", line 352, in main
    stats = swift_replication(args.ring)
  File "swift-recon.py", line 156, in swift_replication
    replication_statistics[rep_dict.pop('replication_type')] = rep_dict
KeyError: 'replication_type'
@claco
Copy link
Contributor

claco commented Mar 10, 2015

@byronmccollum So @sigmavirus24 and I have stumbled on this before. I swear it was a combo of a) we fixed it (maybe we didn't backport), and b) there is no replication related states without a replication network: rcbops/rpc-heat#3

@sigmavirus24 sigmavirus24 self-assigned this Mar 10, 2015
@sigmavirus24
Copy link
Contributor

Looks like A). I'll backport it ASAP

@sigmavirus24
Copy link
Contributor

See #173

@byronmccollum
Copy link
Author

Further investigation shows replication failed to start, which is the root of the failures above.

@nrb
Copy link

nrb commented Jun 22, 2015

@byronmccollum, @sigmavirus24 is this resolved, then?

@sigmavirus24
Copy link
Contributor

looks it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants