# Pastebin To1nDEqh def kolla_pike_workaround(args): '''An issue in Pike with nova that needs to be fixed I believe this is because we are using the simple cell setup which is really an upgrade scenario. Kolla-Ansible does not do this. https://docs.openstack.org/nova/latest/user/cells.html#step-by-step-for-common-use-cases Meantime fix it here''' if re.search('pike', args.image_version): print_progress( 'Kolla', 'Fix Nova, various issues, nova scheduler pod will be restarted', KOLLA_FINAL_PROGRESS) run_shell(args, 'kubectl exec -it nova-conductor-0 -n kolla ' 'nova-manage db sync') run_shell(args, 'kubectl exec -it nova-conductor-0 -n kolla nova-manage ' 'cell_v2 discover_hosts') run_shell(args, 'kubectl delete pod nova-scheduler-0 -n kolla') k8s_wait_for_running_negate(args)