)]}'
{"extraconfig/tasks/yum_update.sh":[{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"46c3c5543a290a9186112eef759b468e510d46cb","unresolved":false,"context_lines":[{"line_number":142,"context_line":"# `nova-manage db online_data_migrations` command before, which might result in"},{"line_number":143,"context_line":"# a performance impairment. So, as a stop-gap-solution we run it here, which is"},{"line_number":144,"context_line":"# a noop if there is nothing to do."},{"line_number":145,"context_line":"if [[ \"$(hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid)\" \u003d \"$(facter hostname)\" ]] ; do"},{"line_number":146,"context_line":"    /usr/bin/nova-manage db online_data_migrations"},{"line_number":147,"context_line":"done"},{"line_number":148,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"3a461143_f6c80dab","line":145,"range":{"start_line":145,"start_character":9,"end_line":145,"end_character":57},"updated":"2017-02-01 15:59:29.000000000","message":"the bootstrap_nodeid is set per role https://github.com/openstack/tripleo-heat-templates/blob/92e203aab60eee1d7f99d244a3576f6c6363fa2e/overcloud.j2.yaml#L284 , so there is a bootstrap node for computes, for blockstorages, for cephs, as well as for controllers.\n\nSo as is, this will be true for compute-0 for example:\n\n[root@overcloud-compute-0 ~]# hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid\novercloud-compute-0\n\n[root@overcloud-objectstorage-0 ~]# hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid\novercloud-objectstorage-0\n\n[root@overcloud-controller-2 ~]# hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid\novercloud-controller-0\n\nYou probably want to make the clause something like (line 49 above):\n\nif [[ \"$pacemaker_status\" \u003d\u003d \"active\" \u0026\u0026 \\\n      \"$(hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid)\" \u003d \"$(facter hostname)\" ]] ; then\n\n\nso you can run only on the bootstrap controller","commit_id":"beac35790d12bb4efffddf294bf970c85cdfa0af"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"4914a7faa66b3c85a02daad16037a1580518a790","unresolved":false,"context_lines":[{"line_number":142,"context_line":"# `nova-manage db online_data_migrations` command before, which might result in"},{"line_number":143,"context_line":"# a performance impairment. So, as a stop-gap-solution we run it here on the"},{"line_number":144,"context_line":"# first controller node, which is a noop if there is nothing to do."},{"line_number":145,"context_line":"if hiera -c /etc/puppet/hiera.yaml service_names | grep -q nova_api \u0026\u0026 \\"},{"line_number":146,"context_line":"  [[ \"$(hiera -c /etc/puppet/hiera.yaml bootstrap_nodeid)\" \u003d \"$(facter hostname)\" ]] ; then"},{"line_number":147,"context_line":"    /usr/bin/nova-manage db online_data_migrations"},{"line_number":148,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":2,"id":"1a430d35_6fc8db55","line":145,"range":{"start_line":145,"start_character":3,"end_line":145,"end_character":48},"updated":"2017-02-09 09:00:58.000000000","message":"nice I will change my conditional at https://review.openstack.org/#/c/419886/32/puppet/major_upgrade_steps.j2.yaml","commit_id":"47857c48098b5d7c9a778102702def3b467e85e2"}]}
