)]}'
{"etc/kolla-kubernetes/kolla-kubernetes.yml":[{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"04b768a045a9b6987cb971675e2adeea1c8dfa1f","unresolved":false,"context_lines":[{"line_number":165,"context_line":"#iscsi_helper \u003d tgtadm"},{"line_number":166,"context_line":"#iscsi_protocol \u003d iscsi"},{"line_number":167,"context_line":"#######################"},{"line_number":168,"context_line":"cinder_backends:"},{"line_number":169,"context_line":"- lvm_backends:"},{"line_number":170,"context_line":"  - iscsi_target_1:"},{"line_number":171,"context_line":"     ip: \"10.57.120.14\""}],"source_content_type":"text/x-yaml","patch_set":11,"id":"9a89bdaa_1565041d","line":168,"updated":"2016-09-06 23:28:57.000000000","message":"I think this has conflicting meanings with whats in kolla? That would be confusing if true. can we pick another name?","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"c5a74e4a3baede886dc009090ab2aacadcdc64b2","unresolved":false,"context_lines":[{"line_number":165,"context_line":"#iscsi_helper \u003d tgtadm"},{"line_number":166,"context_line":"#iscsi_protocol \u003d iscsi"},{"line_number":167,"context_line":"#######################"},{"line_number":168,"context_line":"cinder_backends:"},{"line_number":169,"context_line":"- lvm_backends:"},{"line_number":170,"context_line":"  - iscsi_target_1:"},{"line_number":171,"context_line":"     ip: \"10.57.120.14\""}],"source_content_type":"text/x-yaml","patch_set":11,"id":"9a89bdaa_232d72fe","line":168,"in_reply_to":"9a89bdaa_1565041d","updated":"2016-09-06 23:53:29.000000000","message":"Absolutely, please make a suggestion I do not have any preference here.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"1b38cc47b6cdde0c57c77320adb485e3d269fd5e","unresolved":false,"context_lines":[{"line_number":165,"context_line":"#iscsi_helper \u003d tgtadm"},{"line_number":166,"context_line":"#iscsi_protocol \u003d iscsi"},{"line_number":167,"context_line":"#######################"},{"line_number":168,"context_line":"cinder_backends:"},{"line_number":169,"context_line":"- lvm_backends:"},{"line_number":170,"context_line":"  - iscsi_target_1:"},{"line_number":171,"context_line":"     ip: \"10.57.120.14\""}],"source_content_type":"text/x-yaml","patch_set":11,"id":"9a89bdaa_de1e59ba","line":168,"in_reply_to":"9a89bdaa_232d72fe","updated":"2016-09-07 00:39:43.000000000","message":"Not really sure. generate_cinder_backend_config? It feels like it could use some qualifier to denote that extra configuration processing is happening on it.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":11869,"name":"zhubingbing","email":"zhu.bingbing@99cloud.net","username":"zhubingbing"},"change_message_id":"789578ac349a8b606d592eab2addf058ef395805","unresolved":false,"context_lines":[{"line_number":168,"context_line":"cinder_storage_list:"},{"line_number":169,"context_line":"- lvm_backends:"},{"line_number":170,"context_line":"  - iscsi_target_1:"},{"line_number":171,"context_line":"     ip: \"10.57.120.14\""},{"line_number":172,"context_line":"     vg_name: \"cinder-volumes\""},{"line_number":173,"context_line":"  - iscsi_target_2:"},{"line_number":174,"context_line":"     ip: \"10.57.120.13\""}],"source_content_type":"text/x-yaml","patch_set":19,"id":"9a89bdaa_84151f9d","line":171,"range":{"start_line":171,"start_character":10,"end_line":171,"end_character":22},"updated":"2016-09-08 04:09:30.000000000","message":"Why here is the specific IP, we should setting varaible","commit_id":"94f90bdf8332510918cf4abfc0239de7ba3ab598"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"9da361558e02272f6ee2207568d82aa904a7b0e7","unresolved":false,"context_lines":[{"line_number":168,"context_line":"cinder_storage_list:"},{"line_number":169,"context_line":"- lvm_backends:"},{"line_number":170,"context_line":"  - iscsi_target_1:"},{"line_number":171,"context_line":"     ip: \"10.57.120.14\""},{"line_number":172,"context_line":"     vg_name: \"cinder-volumes\""},{"line_number":173,"context_line":"  - iscsi_target_2:"},{"line_number":174,"context_line":"     ip: \"10.57.120.13\""}],"source_content_type":"text/x-yaml","patch_set":19,"id":"9a89bdaa_f79da4bc","line":171,"range":{"start_line":171,"start_character":10,"end_line":171,"end_character":22},"in_reply_to":"9a89bdaa_84151f9d","updated":"2016-09-08 12:23:28.000000000","message":"\u0027ip\u0027 is variable 10.67.120.14 it is its value. A user need to specify his/her own ip address.","commit_id":"94f90bdf8332510918cf4abfc0239de7ba3ab598"},{"author":{"_account_id":11869,"name":"zhubingbing","email":"zhu.bingbing@99cloud.net","username":"zhubingbing"},"change_message_id":"789578ac349a8b606d592eab2addf058ef395805","unresolved":false,"context_lines":[{"line_number":171,"context_line":"     ip: \"10.57.120.14\""},{"line_number":172,"context_line":"     vg_name: \"cinder-volumes\""},{"line_number":173,"context_line":"  - iscsi_target_2:"},{"line_number":174,"context_line":"     ip: \"10.57.120.13\""},{"line_number":175,"context_line":"     vg_name: \"local-volumes\""},{"line_number":176,"context_line":"storage_interface: \"eth0\""}],"source_content_type":"text/x-yaml","patch_set":19,"id":"9a89bdaa_24253308","line":174,"range":{"start_line":174,"start_character":10,"end_line":174,"end_character":22},"updated":"2016-09-08 04:09:30.000000000","message":"Why here is the specific IP, we should setting varaible","commit_id":"94f90bdf8332510918cf4abfc0239de7ba3ab598"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"9da361558e02272f6ee2207568d82aa904a7b0e7","unresolved":false,"context_lines":[{"line_number":171,"context_line":"     ip: \"10.57.120.14\""},{"line_number":172,"context_line":"     vg_name: \"cinder-volumes\""},{"line_number":173,"context_line":"  - iscsi_target_2:"},{"line_number":174,"context_line":"     ip: \"10.57.120.13\""},{"line_number":175,"context_line":"     vg_name: \"local-volumes\""},{"line_number":176,"context_line":"storage_interface: \"eth0\""}],"source_content_type":"text/x-yaml","patch_set":19,"id":"9a89bdaa_37a46c06","line":174,"range":{"start_line":174,"start_character":10,"end_line":174,"end_character":22},"in_reply_to":"9a89bdaa_24253308","updated":"2016-09-08 12:23:28.000000000","message":"\u0027ip\u0027 is variable 10.67.120.14 it is its value. A user need to specify his/her own ip address.","commit_id":"94f90bdf8332510918cf4abfc0239de7ba3ab598"}],"services/cinder/cinder-backup-pod.yml.j2":[{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"04b768a045a9b6987cb971675e2adeea1c8dfa1f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{%- set resourceName \u003d kolla_kubernetes.cli.args.service_name %}"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"apiVersion: apps/v1alpha1"},{"line_number":4,"context_line":"kind: PetSet"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_b8128d55","line":1,"updated":"2016-09-06 23:28:57.000000000","message":"Has this been tested? I thought cinder-backup had to have config that matched the volumes that were on the system? it may need the same kind of config generation as lvm?","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"1b38cc47b6cdde0c57c77320adb485e3d269fd5e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{%- set resourceName \u003d kolla_kubernetes.cli.args.service_name %}"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"apiVersion: apps/v1alpha1"},{"line_number":4,"context_line":"kind: PetSet"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_9e43f141","line":1,"in_reply_to":"9a89bdaa_630a1a7b","updated":"2016-09-07 00:39:43.000000000","message":"I\u0027m guessing it will fail even if you have a backend defined when it goes to access the volume. Last I looked it used direct access to the volume rather then through the same interface nova used.\n\nMaybe we should leave out cinder-backup, or maybe somehow mark it as incomplete somehow so folks don\u0027t try and use it?","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"c5a74e4a3baede886dc009090ab2aacadcdc64b2","unresolved":false,"context_lines":[{"line_number":1,"context_line":"{%- set resourceName \u003d kolla_kubernetes.cli.args.service_name %}"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"apiVersion: apps/v1alpha1"},{"line_number":4,"context_line":"kind: PetSet"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_630a1a7b","line":1,"in_reply_to":"9a89bdaa_b8128d55","updated":"2016-09-06 23:53:29.000000000","message":"I tested cinder backup it is working partially as it required its own backends configured, so the control portion works but the actual backup is failing as it tries to connect to swift which does not exist.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":3,"context_line":"apiVersion: apps/v1alpha1"},{"line_number":4,"context_line":"kind: PetSet"},{"line_number":5,"context_line":"metadata:"},{"line_number":6,"context_line":"   name: cinder-backup"},{"line_number":7,"context_line":"spec:"},{"line_number":8,"context_line":"  serviceName: \"cinder-backup\""},{"line_number":9,"context_line":"  replicas: {{ cinder_backup_replicas }}"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_7f1cefc1","line":6,"updated":"2016-09-08 20:31:04.000000000","message":"namespace: {{ kolla_kubernetes_namespace }}","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"}],"services/cinder/cinder-volume-lvm-pod.yml.j2":[{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":7,"context_line":"  labels:"},{"line_number":8,"context_line":"    component: cinder-volume-lvm"},{"line_number":9,"context_line":"    system: cinder-volume-lvm"},{"line_number":10,"context_line":"  namespace: default"},{"line_number":11,"context_line":"spec:"},{"line_number":12,"context_line":"  template:"},{"line_number":13,"context_line":"    metadata:"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_bf63d740","line":10,"range":{"start_line":10,"start_character":13,"end_line":10,"end_character":20},"updated":"2016-09-08 20:31:04.000000000","message":"{{ kolla_kubernetes_namespace }}","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":15,"context_line":"      labels:"},{"line_number":16,"context_line":"        component: cinder-volume-lvm"},{"line_number":17,"context_line":"        system: cinder-volume-lvm"},{"line_number":18,"context_line":"      namespace: default"},{"line_number":19,"context_line":"      annotations:"},{"line_number":20,"context_line":"        pod.alpha.kubernetes.io/init-containers: \u0027["},{"line_number":21,"context_line":"          {"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_3f50a75e","line":18,"range":{"start_line":18,"start_character":0,"end_line":18,"end_character":24},"updated":"2016-09-08 20:31:04.000000000","message":"remove this line please.","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":86,"context_line":"      hostNetwork: True"},{"line_number":87,"context_line":"      hostIPC: True"},{"line_number":88,"context_line":"      nodeSelector:"},{"line_number":89,"context_line":"          kolla_storage: \"true\""},{"line_number":90,"context_line":"      containers:"},{"line_number":91,"context_line":"        - image: \"{{ cinder_volume_image_full }}\""},{"line_number":92,"context_line":"          name: cinder-volume-lvm"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_7f8f8fcc","line":89,"range":{"start_line":89,"start_character":10,"end_line":89,"end_character":31},"updated":"2016-09-08 20:31:04.000000000","message":"can we change this to:\n{%- set selector \u003d kolla_kubernetes_hostlabel_storage_lvm |\n                       default(kolla_kubernetes_hostlabel_storage |\n                         default(kolla_kubernetes_hostlabel_controller)\n                       )\n%}\n{{ selector.key }}: {{ selector.value }}","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"}],"services/cinder/cinder-volume-pod.yml.j2":[{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"2d29c786c8d25e7671212d1e2e734f4d20b4988c","unresolved":false,"context_lines":[{"line_number":25,"context_line":"                 \"sh\","},{"line_number":26,"context_line":"                 \"-ce\","},{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":29,"context_line":"                     {%- for backends in cinder_backends -%}"},{"line_number":30,"context_line":"                        {%- if \u0027lvm_backends\u0027 in backends -%}"},{"line_number":31,"context_line":"                           {%- for lvm_backend in backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":8,"id":"9a89bdaa_2294da89","line":28,"updated":"2016-09-05 13:46:44.000000000","message":"It really feels to me like this should be done in kolla genconfig instead of kolla-kubernetes. I don\u0027t see anything in the code here that makes it need to happen at runtime so should be possible to do there?\n\nThis makes it hard for an operator to override the logic or may have unexpected action if they carefully hand crafted their cinder.conf.","commit_id":"216e470d32d4952ae12f63ea987110ce366cd48d"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"54a6c88f83678a9061923b5e88462436e40d64a3","unresolved":false,"context_lines":[{"line_number":25,"context_line":"                 \"sh\","},{"line_number":26,"context_line":"                 \"-ce\","},{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":29,"context_line":"                     {%- for backends in cinder_backends -%}"},{"line_number":30,"context_line":"                        {%- if \u0027lvm_backends\u0027 in backends -%}"},{"line_number":31,"context_line":"                           {%- for lvm_backend in backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":8,"id":"9a89bdaa_16c8f754","line":28,"in_reply_to":"9a89bdaa_2294da89","updated":"2016-09-05 13:54:43.000000000","message":"Since currently it is not done in Kolla, the only way to move forward is to use it defined in kubernetes. I agreed ideally it should be part of genconfig. Regardless, it is control by a variable, so if this variable is not defined all this logic will be skipped.\nAlso since we do not offer now easy way to reconfigure, this approach helps to get things running with specifying just two parameters. Later operators can extend/modify cinder.conf as they pleased.","commit_id":"216e470d32d4952ae12f63ea987110ce366cd48d"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"04b768a045a9b6987cb971675e2adeea1c8dfa1f","unresolved":false,"context_lines":[{"line_number":3,"context_line":"apiVersion: extensions/v1beta1"},{"line_number":4,"context_line":"kind: DaemonSet"},{"line_number":5,"context_line":"metadata:"},{"line_number":6,"context_line":"  name: cinder-volume"},{"line_number":7,"context_line":"  labels:"},{"line_number":8,"context_line":"    component: cinder-volume"},{"line_number":9,"context_line":"    system: cinder-volume"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_35f5a856","line":6,"updated":"2016-09-06 23:28:57.000000000","message":"can we rename this to:\ncinder-volume-lvm\n\nThat way when we add other cinder-volume types we can leave this file alone.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"c5a74e4a3baede886dc009090ab2aacadcdc64b2","unresolved":false,"context_lines":[{"line_number":3,"context_line":"apiVersion: extensions/v1beta1"},{"line_number":4,"context_line":"kind: DaemonSet"},{"line_number":5,"context_line":"metadata:"},{"line_number":6,"context_line":"  name: cinder-volume"},{"line_number":7,"context_line":"  labels:"},{"line_number":8,"context_line":"    component: cinder-volume"},{"line_number":9,"context_line":"    system: cinder-volume"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_237bb2f6","line":6,"in_reply_to":"9a89bdaa_35f5a856","updated":"2016-09-06 23:53:29.000000000","message":"Ok will change it","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"04b768a045a9b6987cb971675e2adeea1c8dfa1f","unresolved":false,"context_lines":[{"line_number":25,"context_line":"                 \"bash\","},{"line_number":26,"context_line":"                 \"-ce\","},{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":29,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":30,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":31,"context_line":"                     {%- for backends in cinder_backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_7501f069","line":28,"updated":"2016-09-06 23:28:57.000000000","message":"management node interface is not nessisarily the one with the default route. I\u0027d do it with a {{ mgmt_interface }} or something like that, similar to what we did with the tun_interface. I think kolla has a var like that.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"c5a74e4a3baede886dc009090ab2aacadcdc64b2","unresolved":false,"context_lines":[{"line_number":25,"context_line":"                 \"bash\","},{"line_number":26,"context_line":"                 \"-ce\","},{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":29,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":30,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":31,"context_line":"                     {%- for backends in cinder_backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_835d5e7b","line":28,"in_reply_to":"9a89bdaa_7501f069","updated":"2016-09-06 23:53:29.000000000","message":"I do not like this idea, because we relay on ansible and their variables. Interface with default route guarantees connectivity between nodes. If you completely against this approach, I would agree on a variable in kola-kubernetes.yml","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"1b38cc47b6cdde0c57c77320adb485e3d269fd5e","unresolved":false,"context_lines":[{"line_number":25,"context_line":"                 \"bash\","},{"line_number":26,"context_line":"                 \"-ce\","},{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":29,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":30,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":31,"context_line":"                     {%- for backends in cinder_backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_9e74d168","line":28,"in_reply_to":"9a89bdaa_835d5e7b","updated":"2016-09-07 00:39:43.000000000","message":"we already rely on ansible and their vars a lot. but it can easily be overridden in kolla-kubernetes too. and if/when we split it out some day, it can be made to continue to work. the value is already defined in kolla though. lets use it for now.\n\nno, default route absolutely does not guarantee node connectivity. For example, I might set my default network out to the internet so I can get security updates, put a firewall on my node so nothing on the public network can ever talk to the node as its only for security updates, and have a backend network that is internal only firewalled looser for cross node communication. I totally would do this myself if I didn\u0027t have a cobbler package mirror on my backend network.\n\nThis must be specifiable by the operator and not just guessed at.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"04b768a045a9b6987cb971675e2adeea1c8dfa1f","unresolved":false,"context_lines":[{"line_number":26,"context_line":"                 \"-ce\","},{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":29,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":30,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":31,"context_line":"                     {%- for backends in cinder_backends -%}"},{"line_number":32,"context_line":"                        {%- if \u0027lvm_backends\u0027 in backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_55330c62","line":29,"updated":"2016-09-06 23:28:57.000000000","message":"same here. see if the kolla config has a _interface that would work.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"c5a74e4a3baede886dc009090ab2aacadcdc64b2","unresolved":false,"context_lines":[{"line_number":26,"context_line":"                 \"-ce\","},{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":29,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":30,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":31,"context_line":"                     {%- for backends in cinder_backends -%}"},{"line_number":32,"context_line":"                        {%- if \u0027lvm_backends\u0027 in backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_43cef62e","line":29,"in_reply_to":"9a89bdaa_55330c62","updated":"2016-09-06 23:53:29.000000000","message":"same as above","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"04b768a045a9b6987cb971675e2adeea1c8dfa1f","unresolved":false,"context_lines":[{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":29,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":30,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":31,"context_line":"                     {%- for backends in cinder_backends -%}"},{"line_number":32,"context_line":"                        {%- if \u0027lvm_backends\u0027 in backends -%}"},{"line_number":33,"context_line":"                           {%- for lvm_backend in backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_b553786a","line":30,"updated":"2016-09-06 23:28:57.000000000","message":"it feels really dirty to be doing this here with shell...\n\nWhat about we move this out into its own configmap. something like:\nhttps://github.com/openstack/kolla-kubernetes/blob/master/services/common/api-haproxy-configmap.yml.j2\n\nAnd do each volume backend as a separate subfile in the configmap?\n\nThen the init container here can just merge in that one file.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"c5a74e4a3baede886dc009090ab2aacadcdc64b2","unresolved":false,"context_lines":[{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":29,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":30,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":31,"context_line":"                     {%- for backends in cinder_backends -%}"},{"line_number":32,"context_line":"                        {%- if \u0027lvm_backends\u0027 in backends -%}"},{"line_number":33,"context_line":"                           {%- for lvm_backend in backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_c38846c8","line":30,"in_reply_to":"9a89bdaa_b553786a","updated":"2016-09-06 23:53:29.000000000","message":"hm we have a concept of configmaps and it seems all services are using them more or less with success. I think init container is a perfect tool to be able to address corner cases or any type of customization we need. I would prefer to leave it as is.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"1b38cc47b6cdde0c57c77320adb485e3d269fd5e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":28,"context_line":"                  compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":29,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":30,"context_line":"                  {%- if cinder_backends is defined -%}"},{"line_number":31,"context_line":"                     {%- for backends in cinder_backends -%}"},{"line_number":32,"context_line":"                        {%- if \u0027lvm_backends\u0027 in backends -%}"},{"line_number":33,"context_line":"                           {%- for lvm_backend in backends -%}"}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_1e060186","line":30,"in_reply_to":"9a89bdaa_c38846c8","updated":"2016-09-07 00:39:43.000000000","message":"Seems like we\u0027re at an impasse. Probably need more eyes on the review then.\n\nThis really feels wrong to me. Even a templated configmap feels kind of wrong to me but I\u0027m willing to make that compromise since kolla genconfig isn\u0027t up to snuff yet. This really feels like trying to screw in a screw with a hammer to me.\n\nThis is templating out cli commands, to generate config file lines. why not skip the middle man and use template commands to generate the config file directly? Its much harder to inspect the generated config file before actually starting the service this way.\n\nThe generated configmap could be merged here like so:\ncat /svc/configmap-volume/$backend_ip | crudini --merge /srv/pod-main-config/cinder.conf\n\nAgain, this feels a little dirty, but easier to see what its going to do by doing a few kolla-kubernetes resource-template create cinder cinder-volume-configmap then trying to run the container and extract out the generated config file.\n\nIt also allows other workflows to replace the override configmap and add their own stuff in.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"}],"services/cinder/iscsid-pod.yml.j2":[{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":6,"context_line":"  labels:"},{"line_number":7,"context_line":"    component: iscsid"},{"line_number":8,"context_line":"    system: iscsid"},{"line_number":9,"context_line":"  namespace: default"},{"line_number":10,"context_line":"spec:"},{"line_number":11,"context_line":"  template:"},{"line_number":12,"context_line":"    metadata:"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_7f54ef20","line":9,"range":{"start_line":9,"start_character":13,"end_line":9,"end_character":20},"updated":"2016-09-08 20:31:04.000000000","message":"{{ kolla_kubernetes_namespace }}","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":14,"context_line":"      labels:"},{"line_number":15,"context_line":"        component: iscsid"},{"line_number":16,"context_line":"        system: iscsid"},{"line_number":17,"context_line":"      namespace: default"},{"line_number":18,"context_line":"      annotations:"},{"line_number":19,"context_line":"        pod.alpha.kubernetes.io/init-containers: \u0027["},{"line_number":20,"context_line":"          {"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_ff471f75","line":17,"range":{"start_line":17,"start_character":6,"end_line":17,"end_character":24},"updated":"2016-09-08 20:31:04.000000000","message":"remove","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":40,"context_line":"      hostNetwork: True"},{"line_number":41,"context_line":"      hostIPC: True"},{"line_number":42,"context_line":"      nodeSelector:"},{"line_number":43,"context_line":"          kolla_compute: \"true\""},{"line_number":44,"context_line":"      containers:"},{"line_number":45,"context_line":"        - image: {{ iscsid_image_full }}"},{"line_number":46,"context_line":"          name: iscsid"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_02246cad","line":43,"updated":"2016-09-08 20:31:04.000000000","message":"{%- set selector \u003d kolla_kubernetes_hostlabel_compute %}\n{{ selector.key }}: {{ selector.value }}","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"}],"services/cinder/tgtd-pod.yml.j2":[{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"2d29c786c8d25e7671212d1e2e734f4d20b4988c","unresolved":false,"context_lines":[{"line_number":24,"context_line":"                 \"sh\","},{"line_number":25,"context_line":"                 \"-ce\","},{"line_number":26,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":27,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d0.0.0.0:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"},{"line_number":28,"context_line":"             \"volumeMounts\": ["},{"line_number":29,"context_line":"                {"},{"line_number":30,"context_line":"                   \"name\": \"tgtd-configmap\","}],"source_content_type":"text/x-jinja2","patch_set":8,"id":"9a89bdaa_b6a58b05","line":27,"updated":"2016-09-05 13:46:44.000000000","message":"Should we add an address override in kolla for this?\n\nIf not, we could use jq to pull the value, sed s/\\( portal\u003d\\)[^ ]*/\\10.0.0.0:3260 on it, and use jq to push it back?","commit_id":"216e470d32d4952ae12f63ea987110ce366cd48d"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"54a6c88f83678a9061923b5e88462436e40d64a3","unresolved":false,"context_lines":[{"line_number":24,"context_line":"                 \"sh\","},{"line_number":25,"context_line":"                 \"-ce\","},{"line_number":26,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":27,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d0.0.0.0:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"},{"line_number":28,"context_line":"             \"volumeMounts\": ["},{"line_number":29,"context_line":"                {"},{"line_number":30,"context_line":"                   \"name\": \"tgtd-configmap\","}],"source_content_type":"text/x-jinja2","patch_set":8,"id":"9a89bdaa_36217bfc","line":27,"in_reply_to":"9a89bdaa_b6a58b05","updated":"2016-09-05 13:54:43.000000000","message":"Agree again, it should be done in Kolla idealy, but since it has not been done yet, that is the only way to move forward.","commit_id":"216e470d32d4952ae12f63ea987110ce366cd48d"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"04b768a045a9b6987cb971675e2adeea1c8dfa1f","unresolved":false,"context_lines":[{"line_number":24,"context_line":"                 \"sh\","},{"line_number":25,"context_line":"                 \"-ce\","},{"line_number":26,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":27,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d0.0.0.0:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"},{"line_number":28,"context_line":"             \"volumeMounts\": ["},{"line_number":29,"context_line":"                {"},{"line_number":30,"context_line":"                   \"name\": \"tgtd-configmap\","}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_f846d54d","line":27,"updated":"2016-09-06 23:28:57.000000000","message":"See earlier ps statement about this.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"1b38cc47b6cdde0c57c77320adb485e3d269fd5e","unresolved":false,"context_lines":[{"line_number":24,"context_line":"                 \"sh\","},{"line_number":25,"context_line":"                 \"-ce\","},{"line_number":26,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":27,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d0.0.0.0:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"},{"line_number":28,"context_line":"             \"volumeMounts\": ["},{"line_number":29,"context_line":"                {"},{"line_number":30,"context_line":"                   \"name\": \"tgtd-configmap\","}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_de7579fa","line":27,"in_reply_to":"9a89bdaa_c37686d6","updated":"2016-09-07 00:39:43.000000000","message":"\"we could use jq to pull the value, sed s/\\( portal\u003d\\)[^ ]*/\\10.0.0.0:3260 on it, and use jq to push it back?\"\n\nThis at least would allow the rest of the kolla provided config to continue to work unchanged, just overriding the one thing we need to override.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":19384,"name":"Serguei Bezverkhi","email":"sbezverk@cisco.com","username":"sbezverk"},"change_message_id":"c5a74e4a3baede886dc009090ab2aacadcdc64b2","unresolved":false,"context_lines":[{"line_number":24,"context_line":"                 \"sh\","},{"line_number":25,"context_line":"                 \"-ce\","},{"line_number":26,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":27,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d0.0.0.0:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"},{"line_number":28,"context_line":"             \"volumeMounts\": ["},{"line_number":29,"context_line":"                {"},{"line_number":30,"context_line":"                   \"name\": \"tgtd-configmap\","}],"source_content_type":"text/x-jinja2","patch_set":11,"id":"9a89bdaa_c37686d6","line":27,"in_reply_to":"9a89bdaa_f846d54d","updated":"2016-09-06 23:53:29.000000000","message":"I did not understood your comments, could you please clarify.\nIf kolla changes the way it generates configs to be more suitable for kubernetes I have no problem to remove it completely, but god knows when it is going to happen.","commit_id":"f19107671710e50f3d3d3532fe74d166d5c5902c"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"0d1e2722ca44d47223275815497437e6546d9b97","unresolved":false,"context_lines":[{"line_number":24,"context_line":"                 \"sh\","},{"line_number":25,"context_line":"                 \"-ce\","},{"line_number":26,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":27,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d0.0.0.0:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"]"},{"line_number":28,"context_line":"             \"volumeMounts\": ["},{"line_number":29,"context_line":"                {"},{"line_number":30,"context_line":"                   \"name\": \"tgtd-configmap\","}],"source_content_type":"text/x-jinja2","patch_set":16,"id":"9a89bdaa_01958685","line":27,"updated":"2016-09-07 22:54:49.000000000","message":"Try these 3:\n\ncmd\u003d$(jq -r .command /srv/configmap/..data/config.json);\nnewcmd\u003d$(echo $cmd | sed \u0027\u0027s/\\\\( portal\u003d\\\\)[^ ]*/\\\\10.0.0.0:3260/\u0027\u0027);\njq -s add /srv/configmap/..data/config.json \u003c(echo \\\"{\\\\\\\"command\\\\\\\":\\\\\\\"$newcmd\\\\\\\"}\\\") \u003e /srv/pod-main-config/config.json;","commit_id":"f2c484d95a6e03f4fc6cd1f026ac664fcd051446"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"d15f5e8b3dd4b0a62cdd6fdfd3f5bb632ad20b4b","unresolved":false,"context_lines":[{"line_number":24,"context_line":"                 \"sh\","},{"line_number":25,"context_line":"                 \"-ce\","},{"line_number":26,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":27,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d0.0.0.0:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"},{"line_number":28,"context_line":"             \"volumeMounts\": ["},{"line_number":29,"context_line":"                {"},{"line_number":30,"context_line":"                   \"name\": \"tgtd-configmap\","}],"source_content_type":"text/x-jinja2","patch_set":17,"id":"9a89bdaa_7c88b571","line":27,"updated":"2016-09-07 23:48:40.000000000","message":"What a second.... this is running as net\u003dhost...\n\n0.0.0.0 will listen on all interfaces, not just the private storage network or kube network.\n\nWe should probably change this to bind to the specific address then on {{storage_interface}}. Which would make it required to be done here and not in genconfig.","commit_id":"7668751fe55488b2b479ced653c2d873902af5e1"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"7002a5797b24cb0770b7ab7a672f69b712d11901","unresolved":false,"context_lines":[{"line_number":25,"context_line":"                 \"-ce\","},{"line_number":26,"context_line":"                 \"cp -a /srv/configmap/..data/* /srv/pod-main-config/;"},{"line_number":27,"context_line":"                  {%- if storage_interface is defined -%}"},{"line_number":28,"context_line":"                    compute_node_mgnt_interface\u003d\u0027\u0027{{ storage_interface }}\u0027\u0027;"},{"line_number":29,"context_line":"                  {%- else -%}"},{"line_number":30,"context_line":"                    compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":31,"context_line":"                  {%- endif -%}"}],"source_content_type":"text/x-jinja2","patch_set":18,"id":"9a89bdaa_f044e94a","line":28,"updated":"2016-09-08 00:29:42.000000000","message":"Can this be changed to be storage_interface? compute_node_mgmt_interface is a little confusing.","commit_id":"962c6490067b4ebfcfcd70f9ac17f5782bcace45"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"7002a5797b24cb0770b7ab7a672f69b712d11901","unresolved":false,"context_lines":[{"line_number":27,"context_line":"                  {%- if storage_interface is defined -%}"},{"line_number":28,"context_line":"                    compute_node_mgnt_interface\u003d\u0027\u0027{{ storage_interface }}\u0027\u0027;"},{"line_number":29,"context_line":"                  {%- else -%}"},{"line_number":30,"context_line":"                    compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":31,"context_line":"                  {%- endif -%}"},{"line_number":32,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":33,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d\u0027\u0027$compute_node_ip\u0027\u0027:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"}],"source_content_type":"text/x-jinja2","patch_set":18,"id":"9a89bdaa_1c2089f6","line":30,"updated":"2016-09-08 00:29:42.000000000","message":"I don\u0027t think this code can ever be reached? storage_interface is always defined. Several of the kolla config files depend on it, including ceph.conf.","commit_id":"962c6490067b4ebfcfcd70f9ac17f5782bcace45"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"7002a5797b24cb0770b7ab7a672f69b712d11901","unresolved":false,"context_lines":[{"line_number":29,"context_line":"                  {%- else -%}"},{"line_number":30,"context_line":"                    compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":31,"context_line":"                  {%- endif -%}"},{"line_number":32,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":33,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d\u0027\u0027$compute_node_ip\u0027\u0027:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"},{"line_number":34,"context_line":"             \"volumeMounts\": ["},{"line_number":35,"context_line":"                {"}],"source_content_type":"text/x-jinja2","patch_set":18,"id":"9a89bdaa_5046754f","line":32,"updated":"2016-09-08 00:29:42.000000000","message":"storage_ip?","commit_id":"962c6490067b4ebfcfcd70f9ac17f5782bcace45"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"7002a5797b24cb0770b7ab7a672f69b712d11901","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                    compute_node_mgnt_interface\u003d$(ip route | grep default | awk \u0027\u0027{print $5}\u0027\u0027);"},{"line_number":31,"context_line":"                  {%- endif -%}"},{"line_number":32,"context_line":"                  compute_node_ip\u003d$(ip addr show dev $compute_node_mgnt_interface | grep \u0027\u0027state UP\u0027\u0027 -A2 | tail -n1 | awk \u0027\u0027{print $2}\u0027\u0027 | cut -f1  -d\u0027\u0027/\u0027\u0027);"},{"line_number":33,"context_line":"                  jq \u0027\u0027.command \u003d \\\"tgtd -d 1 -f --iscsi portal\u003d\u0027\u0027$compute_node_ip\u0027\u0027:3260\\\"\u0027\u0027 /srv/configmap/..data/config.json \u003e /srv/pod-main-config/config.json; \"],"},{"line_number":34,"context_line":"             \"volumeMounts\": ["},{"line_number":35,"context_line":"                {"},{"line_number":36,"context_line":"                   \"name\": \"tgtd-configmap\","}],"source_content_type":"text/x-jinja2","patch_set":18,"id":"9a89bdaa_301d7166","line":33,"updated":"2016-09-08 00:29:42.000000000","message":"While I prefer the 3 line change, I prefer the single sed over the jq thing here as its very unlikely other things in config.json will be named portal and its more likely a container update might change the flags sent to tgtd. For example the operator might want to tweak the debug level. It would be unexpected to tweak it in /etc/kolla and not have it apply.","commit_id":"962c6490067b4ebfcfcd70f9ac17f5782bcace45"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":6,"context_line":"  labels:"},{"line_number":7,"context_line":"    component: tgtd"},{"line_number":8,"context_line":"    system: tgtd"},{"line_number":9,"context_line":"  namespace: default"},{"line_number":10,"context_line":"spec:"},{"line_number":11,"context_line":"  template:"},{"line_number":12,"context_line":"    metadata:"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_c277e49d","line":9,"range":{"start_line":9,"start_character":13,"end_line":9,"end_character":20},"updated":"2016-09-08 20:31:04.000000000","message":"{{ kolla_kubernetes_namespace }}","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":14,"context_line":"      labels:"},{"line_number":15,"context_line":"        component: tgtd"},{"line_number":16,"context_line":"        system: tgtd"},{"line_number":17,"context_line":"      namespace: default"},{"line_number":18,"context_line":"      annotations:"},{"line_number":19,"context_line":"        pod.alpha.kubernetes.io/init-containers: \u0027["},{"line_number":20,"context_line":"          {"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_0272acad","line":17,"updated":"2016-09-08 20:31:04.000000000","message":"remove","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"03c4af90f5b36f66b1304e9e60c419d4ae7337e4","unresolved":false,"context_lines":[{"line_number":47,"context_line":"      hostNetwork: True"},{"line_number":48,"context_line":"      hostIPC: True"},{"line_number":49,"context_line":"      nodeSelector:"},{"line_number":50,"context_line":"          kolla_storage: \"true\""},{"line_number":51,"context_line":"      containers:"},{"line_number":52,"context_line":"        - image: \"{{ tgtd_image_full }}\""},{"line_number":53,"context_line":"          name: tgtd"}],"source_content_type":"text/x-jinja2","patch_set":20,"id":"9a89bdaa_423d94ba","line":50,"updated":"2016-09-08 20:31:04.000000000","message":"{%- set selector \u003d kolla_kubernetes_hostlabel_storage_lvm |\n                       default(kolla_kubernetes_hostlabel_storage |\n                         default(kolla_kubernetes_hostlabel_controller)\n                       )\n%}\n{{ selector.key }}: {{ selector.value }}","commit_id":"2a3cab2a7af601a6618e2b471b532d34048beac5"}]}
