{"body":"def kolla_pike_workaround(args):\n    '''An issue in Pike with nova that needs to be fixed\n\n    I believe this is because we are using the simple cell setup which is\n    really an upgrade scenario. Kolla-Ansible does not do this.\n\n    https://docs.openstack.org/nova/latest/user/cells.html#step-by-step-for-common-use-cases\n\n    Meantime fix it here'''\n\n    if re.search('pike', args.image_version):\n        print_progress(\n            'Kolla',\n            'Fix Nova, various issues, nova scheduler pod will be restarted',\n            KOLLA_FINAL_PROGRESS)\n\n        run_shell(args,\n                  'kubectl exec -it nova-conductor-0 -n kolla '\n                  'nova-manage db sync')\n        run_shell(args,\n                  'kubectl exec -it nova-conductor-0 -n kolla nova-manage '\n                  'cell_v2 discover_hosts')\n        run_shell(args,\n                  'kubectl delete pod nova-scheduler-0 -n kolla')\n        k8s_wait_for_running_negate(args)\n","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/To1nDEqh","modified":1513625981,"id":"To1nDEqh","size":962,"lines":25,"own_paste":false,"theme":"","date":1513625981}