)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"091bffda3773679d8a9ca550321a6db1abe4df23","unresolved":false,"context_lines":[{"line_number":9,"context_line":"For the P cycle and the upgrade of non controller nodes we should"},{"line_number":10,"context_line":"also accept IP address as well as nova name/uuid to deal with"},{"line_number":11,"context_line":"split-stack environments."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: Ic1edc16efe7620962829c06594b47148a511536e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"bf57530f_e3ef42ae","line":12,"updated":"2017-09-20 13:23:57.000000000","message":"need to file a bug for this (also discussed at https://bugzilla.redhat.com/show_bug.cgi?id\u003d1474697 )","commit_id":"4f15c995994700ea5a7848f0a47ff15f5aac7d99"}],"scripts/upgrade-non-controller.sh":[{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"40779f341ff06f0b35a5e8fccc50d2f48115bc6c","unresolved":false,"context_lines":[{"line_number":112,"context_line":"  addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"},{"line_number":113,"context_line":"  if [[ -n $addr_string ]]; then"},{"line_number":114,"context_line":"    eval \"$2\u003d${addr_string#*\u003d}\" # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":115,"context_line":"  elif [[ $(ping -c1 $name_id_or_ip) ]]; then"},{"line_number":116,"context_line":"    eval \"$2\u003d$name_id_or_ip\""},{"line_number":117,"context_line":"  else"},{"line_number":118,"context_line":"    log \"ERROR cannot discover IP address for $name_id_or_ip or it is not responding to ping. Exiting\""}],"source_content_type":"text/x-sh","patch_set":3,"id":"7f515b1d_9ed8387b","line":115,"updated":"2017-09-28 20:52:04.000000000","message":"i don\u0027t think this does what you intend.\n\nprobably remove the $() from around the ping command and drop the [[ and ]]\u0027s.\n\nOtherwise, the output from ping is what you\u0027re evaluating, not the return code.","commit_id":"bfba693f0b6c0293a5e8f65f4ba66900c283c0b3"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"1d50da33f31ea2c3bc62f774a6d7f43ddeb5a28b","unresolved":false,"context_lines":[{"line_number":112,"context_line":"  addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"},{"line_number":113,"context_line":"  if [[ -n $addr_string ]]; then"},{"line_number":114,"context_line":"    eval \"$2\u003d${addr_string#*\u003d}\" # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":115,"context_line":"  elif [[ $(ping -c1 $name_id_or_ip) ]]; then"},{"line_number":116,"context_line":"    eval \"$2\u003d$name_id_or_ip\""},{"line_number":117,"context_line":"  else"},{"line_number":118,"context_line":"    log \"ERROR cannot discover IP address for $name_id_or_ip or it is not responding to ping. Exiting\""}],"source_content_type":"text/x-sh","patch_set":3,"id":"7f515b1d_59d9ac54","line":115,"in_reply_to":"7f515b1d_9ed8387b","updated":"2017-09-29 13:45:01.000000000","message":"thanks very much for reviewing slagle, yes you\u0027re right \n\n192.168.24.125 is a non-responding address but the condition still passes:\n\n[stack@undercloud DELME]$ ping -c 1 192.168.24.125\nPING 192.168.24.125 (192.168.24.125) 56(84) bytes of data.\nFrom 192.168.24.1 icmp_seq\u003d1 Destination Host Unreachable\n\n--- 192.168.24.125 ping statistics ---\n1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms\n\n\n[stack@undercloud DELME]$ name_id_or_ip\u003d192.168.24.125\n[stack@undercloud DELME]$ if [[ $(ping -c1 $name_id_or_ip) ]]; then echo WEW; fi\nWEW","commit_id":"bfba693f0b6c0293a5e8f65f4ba66900c283c0b3"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"40779f341ff06f0b35a5e8fccc50d2f48115bc6c","unresolved":false,"context_lines":[{"line_number":113,"context_line":"  if [[ -n $addr_string ]]; then"},{"line_number":114,"context_line":"    eval \"$2\u003d${addr_string#*\u003d}\" # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":115,"context_line":"  elif [[ $(ping -c1 $name_id_or_ip) ]]; then"},{"line_number":116,"context_line":"    eval \"$2\u003d$name_id_or_ip\""},{"line_number":117,"context_line":"  else"},{"line_number":118,"context_line":"    log \"ERROR cannot discover IP address for $name_id_or_ip or it is not responding to ping. Exiting\""},{"line_number":119,"context_line":"    exit 1"}],"source_content_type":"text/x-sh","patch_set":3,"id":"7f515b1d_bed41421","line":116,"updated":"2017-09-28 20:52:04.000000000","message":"interesting...this is like a bash \"pass by reference\" :)","commit_id":"bfba693f0b6c0293a5e8f65f4ba66900c283c0b3"},{"author":{"_account_id":7144,"name":"James Slagle","email":"jslagle@redhat.com","username":"slagle"},"change_message_id":"40779f341ff06f0b35a5e8fccc50d2f48115bc6c","unresolved":false,"context_lines":[{"line_number":133,"context_line":"    eval \"$2\u003d$hostname\""},{"line_number":134,"context_line":"  else"},{"line_number":135,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":136,"context_line":"    if [[ $(ping -c1 $name_id_or_ip) ]]; then"},{"line_number":137,"context_line":"        set -e"},{"line_number":138,"context_line":"        hostname\u003d$(ssh $UPGRADE_NODE_USER@$name_id_or_ip hostname)"},{"line_number":139,"context_line":"        log \"node with address $name_id_or_ip found with hostname $hostname\""}],"source_content_type":"text/x-sh","patch_set":3,"id":"7f515b1d_9e3dd890","line":136,"updated":"2017-09-28 20:52:04.000000000","message":"ditto.\n\nalso why the 2 functions that do such a similar thing?\n\nseems like they could be combined into 1. might be simpler.","commit_id":"bfba693f0b6c0293a5e8f65f4ba66900c283c0b3"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"1d50da33f31ea2c3bc62f774a6d7f43ddeb5a28b","unresolved":false,"context_lines":[{"line_number":133,"context_line":"    eval \"$2\u003d$hostname\""},{"line_number":134,"context_line":"  else"},{"line_number":135,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":136,"context_line":"    if [[ $(ping -c1 $name_id_or_ip) ]]; then"},{"line_number":137,"context_line":"        set -e"},{"line_number":138,"context_line":"        hostname\u003d$(ssh $UPGRADE_NODE_USER@$name_id_or_ip hostname)"},{"line_number":139,"context_line":"        log \"node with address $name_id_or_ip found with hostname $hostname\""}],"source_content_type":"text/x-sh","patch_set":3,"id":"7f515b1d_19dfb43a","line":136,"in_reply_to":"7f515b1d_9e3dd890","updated":"2017-09-29 13:45:01.000000000","message":"yes i have done just that on latest version and i really like it a lot better.\n\nthe one function can do both things, discover hostname and IP address","commit_id":"bfba693f0b6c0293a5e8f65f4ba66900c283c0b3"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"8baad2ba3faf4ee4703f94b6baf4859c36b11c9f","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"},{"line_number":117,"context_line":"    ip_addr\u003d${addr_string#*\u003d} # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":118,"context_line":"    log \"nova node $hostname found with IP $ip_addr \""},{"line_number":119,"context_line":"    eval \"$2\u003d$hostname\""},{"line_number":120,"context_line":"    eval \"$3\u003d$ip_addr\""},{"line_number":121,"context_line":"  else"},{"line_number":122,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":123,"context_line":"    if ping -c1 $name_id_or_ip ; then"}],"source_content_type":"text/x-sh","patch_set":4,"id":"7f515b1d_46fe356b","line":120,"range":{"start_line":119,"start_character":0,"end_line":120,"end_character":22},"updated":"2017-10-03 10:01:24.000000000","message":"Not sure about those evals, feels a bit risky. Maybe we could rather document that \"this function sets variables named ...\". Not a blocker though, your call :)","commit_id":"69f2c5e812515ff161ef4bbaf4858dfcb6dd2105"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"709a212c357d25b9fb6c59c34b5d69e84e96bf5f","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"},{"line_number":117,"context_line":"    ip_addr\u003d${addr_string#*\u003d} # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":118,"context_line":"    log \"nova node $hostname found with IP $ip_addr \""},{"line_number":119,"context_line":"    eval \"$2\u003d$hostname\""},{"line_number":120,"context_line":"    eval \"$3\u003d$ip_addr\""},{"line_number":121,"context_line":"  else"},{"line_number":122,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":123,"context_line":"    if ping -c1 $name_id_or_ip ; then"}],"source_content_type":"text/x-sh","patch_set":4,"id":"7f515b1d_8671ca0f","line":120,"range":{"start_line":119,"start_character":0,"end_line":120,"end_character":22},"in_reply_to":"7f515b1d_06127a0a","updated":"2017-10-03 13:11:48.000000000","message":"right, the \"printing to return\" was what this used to do, but it broke when we added the other logging here\n\nI think we could use global scope params here instead. we could even go as far as resetting them to \"\" at the start of the function \n\nI guess that is a somewhat safer option to using eval at least we can control assignment a little more explicitly.","commit_id":"69f2c5e812515ff161ef4bbaf4858dfcb6dd2105"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"c787be891b5a3ff072c303e741836450a3fbbb81","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"},{"line_number":117,"context_line":"    ip_addr\u003d${addr_string#*\u003d} # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":118,"context_line":"    log \"nova node $hostname found with IP $ip_addr \""},{"line_number":119,"context_line":"    eval \"$2\u003d$hostname\""},{"line_number":120,"context_line":"    eval \"$3\u003d$ip_addr\""},{"line_number":121,"context_line":"  else"},{"line_number":122,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":123,"context_line":"    if ping -c1 $name_id_or_ip ; then"}],"source_content_type":"text/x-sh","patch_set":4,"id":"7f515b1d_e63e3eb8","line":120,"range":{"start_line":119,"start_character":0,"end_line":120,"end_character":22},"in_reply_to":"7f515b1d_46fe356b","updated":"2017-10-03 12:24:31.000000000","message":"ack thanks for the review. I can add a comment, and thinking a little more, we can (somewhat) mitigate by making sure there are always exactly three params passed exit error otherwise.","commit_id":"69f2c5e812515ff161ef4bbaf4858dfcb6dd2105"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"72c121c71beb4327bcc4318533d1abb3510ba538","unresolved":false,"context_lines":[{"line_number":116,"context_line":"    addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"},{"line_number":117,"context_line":"    ip_addr\u003d${addr_string#*\u003d} # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":118,"context_line":"    log \"nova node $hostname found with IP $ip_addr \""},{"line_number":119,"context_line":"    eval \"$2\u003d$hostname\""},{"line_number":120,"context_line":"    eval \"$3\u003d$ip_addr\""},{"line_number":121,"context_line":"  else"},{"line_number":122,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":123,"context_line":"    if ping -c1 $name_id_or_ip ; then"}],"source_content_type":"text/x-sh","patch_set":4,"id":"7f515b1d_06127a0a","line":120,"range":{"start_line":119,"start_character":0,"end_line":120,"end_character":22},"in_reply_to":"7f515b1d_e63e3eb8","updated":"2017-10-03 12:46:13.000000000","message":"What i meant was getting rid of the params, and always assign target_host and node_ip (without using eval), and just add a comment before the function definition that we\u0027re sorta returning a value by assinging thes global vars.\n\nBoth of the options are evil. I tried googling but there doesn\u0027t seem much of a better solution (aside from printing within the function with a separator and parsing the function\u0027s stdout, while taking extra care that the function doesn\u0027t print anything else). There are no victories with Bash :D","commit_id":"69f2c5e812515ff161ef4bbaf4858dfcb6dd2105"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"3655bbd43dfa945d8ca5b23e175fbaa320ed00e5","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"},{"line_number":125,"context_line":"    ip_addr\u003d${addr_string#*\u003d} # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":126,"context_line":"    log \"nova node $hostname found with IP $ip_addr \""},{"line_number":127,"context_line":"    eval \"$2\u003d$hostname\""},{"line_number":128,"context_line":"    eval \"$3\u003d$ip_addr\""},{"line_number":129,"context_line":"  else"},{"line_number":130,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":131,"context_line":"    if ping -c1 $name_id_or_ip ; then"}],"source_content_type":"text/x-sh","patch_set":5,"id":"7f515b1d_c667c251","line":128,"range":{"start_line":127,"start_character":0,"end_line":128,"end_character":22},"updated":"2017-10-03 13:11:44.000000000","message":"We may still get rid of these but not a blocker, +2.","commit_id":"63a5c311f975ba6ba75e89a46942f77ce8a69b3b"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"8a8d373bf00430871284d6d9eb8090159a1d2c20","unresolved":false,"context_lines":[{"line_number":124,"context_line":"    addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"},{"line_number":125,"context_line":"    ip_addr\u003d${addr_string#*\u003d} # remove the ctlpane from  ctlplane\u003d192.168.24.11"},{"line_number":126,"context_line":"    log \"nova node $hostname found with IP $ip_addr \""},{"line_number":127,"context_line":"    eval \"$2\u003d$hostname\""},{"line_number":128,"context_line":"    eval \"$3\u003d$ip_addr\""},{"line_number":129,"context_line":"  else"},{"line_number":130,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":131,"context_line":"    if ping -c1 $name_id_or_ip ; then"}],"source_content_type":"text/x-sh","patch_set":5,"id":"7f515b1d_26cfb62a","line":128,"range":{"start_line":127,"start_character":0,"end_line":128,"end_character":22},"in_reply_to":"7f515b1d_c667c251","updated":"2017-10-03 13:13:36.000000000","message":"ack will try the global params way too...","commit_id":"63a5c311f975ba6ba75e89a46942f77ce8a69b3b"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"204d41dc0aea0022f2c0711af5ad9c79a08dc0d0","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        set -e"},{"line_number":135,"context_line":"        HOSTNAME\u003d$(ssh $UPGRADE_NODE_USER@$name_id_or_ip hostname)"},{"line_number":136,"context_line":"        IP_ADDR\u003d$name_id_or_ip"},{"line_number":137,"context_line":"        log \"node $HOSTNAME found with address $name_id_or_ip\""},{"line_number":138,"context_line":"    else"},{"line_number":139,"context_line":"        set -e"},{"line_number":140,"context_line":"        log \"ERROR $name_id_or_ip not known to nova or not responding to ping if it is an IP address. Exiting\""}],"source_content_type":"text/x-sh","patch_set":6,"id":"7f515b1d_092bad30","line":137,"range":{"start_line":137,"start_character":48,"end_line":137,"end_character":60},"updated":"2017-10-03 13:36:59.000000000","message":"could/should use IP_ADDR here (assigned on the previous line so not a huge problem, but better)","commit_id":"8ea96c9e003f7e5b4fe8d1c5f637d2569490b877"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"f1fd983514d961de0ec018fbf0f3174934874e08","unresolved":false,"context_lines":[{"line_number":28,"context_line":"#can make the upgrade script overridable (if a different target will be used)"},{"line_number":29,"context_line":"UPGRADE_SCRIPT\u003d${UPGRADE_SCRIPT:-/root/tripleo_upgrade_node.sh}"},{"line_number":30,"context_line":"#allow override incase the ssh user is not \u0027heat-admin\u0027 - must be able to sudo"},{"line_number":31,"context_line":"UPGRADE_NODE_USER\u003d${UPGRADE_NODE_USER:-\"heat-admin\"}"},{"line_number":32,"context_line":"UPGRADE_NODE\u003d\"\""},{"line_number":33,"context_line":"QUERY_NODE\u003d\"\""},{"line_number":34,"context_line":"SCRIPT\u003d\"\""}],"source_content_type":"text/x-sh","patch_set":7,"id":"7f515b1d_180aa089","line":31,"range":{"start_line":31,"start_character":40,"end_line":31,"end_character":50},"updated":"2017-10-05 07:47:06.000000000","message":"I would have made this a optional parameter, especially for split-deployment where the user has few chance to be heat-admin. I expect that by default it will fail on split env, then the user will open the script (or a bug) and do it again.\n\nMaybe another review on top of this one ?","commit_id":"bfb9f2962fd4933e9588a3b864f5fb538e561629"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"f1fd983514d961de0ec018fbf0f3174934874e08","unresolved":false,"context_lines":[{"line_number":107,"context_line":"fi"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"function reset_hostname_ip {"},{"line_number":110,"context_line":"    HOSTNAME\u003d\"\""},{"line_number":111,"context_line":"    IP_ADDR\u003d\"\""},{"line_number":112,"context_line":"}"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"# find_node_by_name_id_or_ip expects one parameter that is the nova name,"}],"source_content_type":"text/x-sh","patch_set":7,"id":"7f515b1d_18662053","line":111,"range":{"start_line":110,"start_character":0,"end_line":111,"end_character":14},"updated":"2017-10-05 07:47:06.000000000","message":"We use global variables all around the place in this script.  If we still use it in the next release we will have to refactor and use fonction/and local keyword.","commit_id":"bfb9f2962fd4933e9588a3b864f5fb538e561629"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"f1fd983514d961de0ec018fbf0f3174934874e08","unresolved":false,"context_lines":[{"line_number":118,"context_line":"# These variables are thus reset at the outset."},{"line_number":119,"context_line":"function find_node_by_name_id_or_ip {"},{"line_number":120,"context_line":"  reset_hostname_ip"},{"line_number":121,"context_line":"  name_id_or_ip\u003d$1"},{"line_number":122,"context_line":"  # First try as a nova node name or UUID. Could also be an IP (split stack)"},{"line_number":123,"context_line":"  set +e # dont want to fail if nova or ping does below"},{"line_number":124,"context_line":"  nova_name\u003d$(openstack server show $name_id_or_ip -f value -c name)"}],"source_content_type":"text/x-sh","patch_set":7,"id":"7f515b1d_784754be","line":121,"range":{"start_line":121,"start_character":2,"end_line":121,"end_character":16},"updated":"2017-10-05 07:47:06.000000000","message":"Those are global variable without the \"local\" keyword, which is bad.","commit_id":"bfb9f2962fd4933e9588a3b864f5fb538e561629"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"f1fd983514d961de0ec018fbf0f3174934874e08","unresolved":false,"context_lines":[{"line_number":121,"context_line":"  name_id_or_ip\u003d$1"},{"line_number":122,"context_line":"  # First try as a nova node name or UUID. Could also be an IP (split stack)"},{"line_number":123,"context_line":"  set +e # dont want to fail if nova or ping does below"},{"line_number":124,"context_line":"  nova_name\u003d$(openstack server show $name_id_or_ip -f value -c name)"},{"line_number":125,"context_line":"  if [[ -n $nova_name ]]; then"},{"line_number":126,"context_line":"    set -e"},{"line_number":127,"context_line":"    HOSTNAME\u003d$nova_name"}],"source_content_type":"text/x-sh","patch_set":7,"id":"7f515b1d_38131cbb","line":124,"range":{"start_line":124,"start_character":2,"end_line":124,"end_character":11},"updated":"2017-10-05 07:47:06.000000000","message":"global variable.","commit_id":"bfb9f2962fd4933e9588a3b864f5fb538e561629"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"f1fd983514d961de0ec018fbf0f3174934874e08","unresolved":false,"context_lines":[{"line_number":121,"context_line":"  name_id_or_ip\u003d$1"},{"line_number":122,"context_line":"  # First try as a nova node name or UUID. Could also be an IP (split stack)"},{"line_number":123,"context_line":"  set +e # dont want to fail if nova or ping does below"},{"line_number":124,"context_line":"  nova_name\u003d$(openstack server show $name_id_or_ip -f value -c name)"},{"line_number":125,"context_line":"  if [[ -n $nova_name ]]; then"},{"line_number":126,"context_line":"    set -e"},{"line_number":127,"context_line":"    HOSTNAME\u003d$nova_name"},{"line_number":128,"context_line":"    addr_string\u003d$(openstack server show $name_id_or_ip -f value -c addresses)"}],"source_content_type":"text/x-sh","patch_set":7,"id":"7f515b1d_78e3d4a5","line":125,"range":{"start_line":124,"start_character":68,"end_line":125,"end_character":1},"updated":"2017-10-05 07:47:06.000000000","message":"Putting set -e here before the if statement would have avoid the repetition down the path and have the same effect.","commit_id":"bfb9f2962fd4933e9588a3b864f5fb538e561629"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"f1fd983514d961de0ec018fbf0f3174934874e08","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    log \"$name_id_or_ip not known to nova. Trying it as an IP address\""},{"line_number":133,"context_line":"    if ping -c1 $name_id_or_ip ; then"},{"line_number":134,"context_line":"        set -e"},{"line_number":135,"context_line":"        HOSTNAME\u003d$(ssh $UPGRADE_NODE_USER@$name_id_or_ip hostname)"},{"line_number":136,"context_line":"        IP_ADDR\u003d$name_id_or_ip"},{"line_number":137,"context_line":"        log \"node $HOSTNAME found with address $IP_ADDR \""},{"line_number":138,"context_line":"    else"}],"source_content_type":"text/x-sh","patch_set":7,"id":"7f515b1d_f8e8e47c","line":135,"range":{"start_line":135,"start_character":24,"end_line":135,"end_character":42},"updated":"2017-10-05 07:47:06.000000000","message":"So in split env the heat-admin will be use and fail most of the time I expect.","commit_id":"bfb9f2962fd4933e9588a3b864f5fb538e561629"},{"author":{"_account_id":8297,"name":"Sofer Athlan-Guyot","email":"sathlang@redhat.com","username":"chem"},"change_message_id":"f1fd983514d961de0ec018fbf0f3174934874e08","unresolved":false,"context_lines":[{"line_number":147,"context_line":"if [ -n \"$UPGRADE_NODE\" ]; then"},{"line_number":148,"context_line":"  find_node_by_name_id_or_ip $UPGRADE_NODE"},{"line_number":149,"context_line":"  log \"Executing $UPGRADE_SCRIPT on $IP_ADDR\""},{"line_number":150,"context_line":"  ssh $UPGRADE_NODE_USER@$IP_ADDR sudo $UPGRADE_SCRIPT 2\u003e\u00261 | tee -a $LOGFILE"},{"line_number":151,"context_line":"  log \"Clearing any existing dir $UPGRADE_NODE and downloading config\""},{"line_number":152,"context_line":"  rm -rf $UPGRADE_NODE"},{"line_number":153,"context_line":"  openstack overcloud config download --config-dir \"$UPGRADE_NODE\""}],"source_content_type":"text/x-sh","patch_set":7,"id":"7f515b1d_b8870cb7","line":150,"range":{"start_line":150,"start_character":40,"end_line":150,"end_character":55},"updated":"2017-10-05 07:47:06.000000000","message":"Will the script be there in split env, just wondering how it gets delivered, I\u0027m unfamiliar with split env. (you can reply rtfm :))","commit_id":"bfb9f2962fd4933e9588a3b864f5fb538e561629"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"c8e8c06dbe73ed3869356d1ab03b29c81cc92ce2","unresolved":false,"context_lines":[{"line_number":147,"context_line":"if [ -n \"$UPGRADE_NODE\" ]; then"},{"line_number":148,"context_line":"  find_node_by_name_id_or_ip $UPGRADE_NODE"},{"line_number":149,"context_line":"  log \"Executing $UPGRADE_SCRIPT on $IP_ADDR\""},{"line_number":150,"context_line":"  ssh $UPGRADE_NODE_USER@$IP_ADDR sudo $UPGRADE_SCRIPT 2\u003e\u00261 | tee -a $LOGFILE"},{"line_number":151,"context_line":"  log \"Clearing any existing dir $UPGRADE_NODE and downloading config\""},{"line_number":152,"context_line":"  rm -rf $UPGRADE_NODE"},{"line_number":153,"context_line":"  openstack overcloud config download --config-dir \"$UPGRADE_NODE\""}],"source_content_type":"text/x-sh","patch_set":7,"id":"7f515b1d_8e088391","line":150,"range":{"start_line":150,"start_character":40,"end_line":150,"end_character":55},"in_reply_to":"7f515b1d_b8870cb7","updated":"2017-10-05 10:37:31.000000000","message":"ack, this one got me thinking. It *should* be there since it is delivered to the \"non controller \" (disable_upgrade_deployment in roles_data) during the first stage of the upgrade... i guess we will find out on testing.","commit_id":"bfb9f2962fd4933e9588a3b864f5fb538e561629"}]}
