)]}'
{"specs/stein/config-container-image-optimizations.rst":[{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"b1db0419036c3d1051abb657f2ff31ef0d01a44d","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Config Container Image Optimization"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Problem Description"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_eab868c2","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":35},"updated":"2018-11-29 15:07:49.000000000","message":"shall we include for Large Scale Deployments please?","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":11444,"name":"Radoslaw Smigielski","display_name":"Radek","email":"rsmigiel@redhat.com","username":"radek"},"change_message_id":"553b8c5a94b85680d3f2b3ee13e4aba78df51296","unresolved":false,"context_lines":[{"line_number":22,"context_line":"At a high level our approach to generating config files for containers is"},{"line_number":23,"context_line":"as follows:"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"* We use Puppet --tags to control the catalog for each Puppet execution. This allows us to control which resources are executed and thus allows us to generate only the config files without starting the services or performing other system modifications. It also allows us to share the same baremetal manifests and modules from our baremetal deployments and thus simplified our containerized configuration efforts."},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* We generate config files for each service using a container which has the service itself installed. This is required because Puppet won\u0027t run without the stock config files in place. In other words the service RPMs need to be installed before Puppet will run without errors. (Ways around this were explored but they weren\u0027t pretty and involved hacks to Puppet at catalog generation time.)"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_65b1e900","line":25,"range":{"start_line":25,"start_character":0,"end_line":25,"end_character":412},"updated":"2018-11-29 15:26:18.000000000","message":"this line is more than 400 characters long\n\nfew more very long lines below","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"b1db0419036c3d1051abb657f2ff31ef0d01a44d","unresolved":false,"context_lines":[{"line_number":31,"context_line":"* An ephemeral config container is used to generate files for each service. This is done before each runtime service container starts. We currently bind mount in read only config files to the service container which are used to configure"},{"line_number":32,"context_line":"the actual service via the kolla_config interface."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Taking all of the above into account we typically share the same container for"},{"line_number":35,"context_line":"each service and re-use it as both a runtime container and an ephemeral config"},{"line_number":36,"context_line":"container. Our current implementation of Puppet configuration is to orchestrate"},{"line_number":37,"context_line":"each node to generate its own config files in a distributed manner. What this"},{"line_number":38,"context_line":"means is that each of our service containers has both the application code"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_6a945836","line":35,"range":{"start_line":34,"start_character":50,"end_line":35,"end_character":12},"updated":"2018-11-29 15:07:49.000000000","message":"this looks ambiguously, as if we were using a golden image for all purposes","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"b1db0419036c3d1051abb657f2ff31ef0d01a44d","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Taking all of the above into account we typically share the same container for"},{"line_number":35,"context_line":"each service and re-use it as both a runtime container and an ephemeral config"},{"line_number":36,"context_line":"container. Our current implementation of Puppet configuration is to orchestrate"},{"line_number":37,"context_line":"each node to generate its own config files in a distributed manner. What this"},{"line_number":38,"context_line":"means is that each of our service containers has both the application code"},{"line_number":39,"context_line":"and all of the Puppet configuration modules, applications, etc. in them."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_4a2b9ce8","line":37,"range":{"start_line":36,"start_character":68,"end_line":37,"end_character":66},"updated":"2018-11-29 15:07:49.000000000","message":"would be also nice to state a problem how James described it: \"Why would we even run the exact same puppet binary + manifest\nindividually 40,000 times so that we can produce the exact same set of\nconfiguration files that differ only by things such as IP address,\nhostnames, and passwords? Maybe we should instead be thinking about\nhow we can do that *1* time centrally, and produce a configuration\nthat can be reused across 40,000 nodes with little effort.\"\n\nthat is though, for future implementation not to be covered in this spec, but still poses a problem for Large Scale Config Management.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"801b037fd384354929b79ce69bcaae6954988cf9","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Taking all of the above into account we typically share the same container for"},{"line_number":35,"context_line":"each service and re-use it as both a runtime container and an ephemeral config"},{"line_number":36,"context_line":"container. Our current implementation of Puppet configuration is to orchestrate"},{"line_number":37,"context_line":"each node to generate its own config files in a distributed manner. What this"},{"line_number":38,"context_line":"means is that each of our service containers has both the application code"},{"line_number":39,"context_line":"and all of the Puppet configuration modules, applications, etc. in them."},{"line_number":40,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_0674bccc","line":37,"range":{"start_line":36,"start_character":68,"end_line":37,"end_character":66},"in_reply_to":"3f79a3b5_4a2b9ce8","updated":"2018-11-29 17:27:52.000000000","message":"See the proposed solution below...\n\nAlso see the alternatives. The stuff I\u0027m explaining here is for historical purposes. Based on recent IRC and mailing list conversations its clear to me that some do now realize why things are the way they are today.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"1e195ae22f7e4af3999f2e5f76bcdd37b146bc01","unresolved":false,"context_lines":[{"line_number":65,"context_line":"be applied this way. Across the cluster however 99% of the config files"},{"line_number":66,"context_line":"are exactly the same on each node only differing by these per host settings."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Instead of running Puppet on each node we could run Puppet once for each"},{"line_number":69,"context_line":"service for the entire cluster. The Undercloud could be used for this"},{"line_number":70,"context_line":"tasks and the resulting config files could then be stored and deployed across"},{"line_number":71,"context_line":"the cluster.  This would eliminate the need to deploy the heavier config images to each node in the cluster and would minimize the CPU usage consumed in"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_0cda9d75","line":68,"range":{"start_line":68,"start_character":0,"end_line":68,"end_character":63},"updated":"2018-11-29 18:26:26.000000000","message":"Does\u0027nt puppet do more than just writing config files? It also executes stuff needed to initialize databases, and set up things in Keystone catalog? We would have to ship the database \"as config\" as well? I don\u0027t see how that could work for updates?","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"6d48adcad29dae8acbd12fd8d41a46bb745131dc","unresolved":false,"context_lines":[{"line_number":65,"context_line":"be applied this way. Across the cluster however 99% of the config files"},{"line_number":66,"context_line":"are exactly the same on each node only differing by these per host settings."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Instead of running Puppet on each node we could run Puppet once for each"},{"line_number":69,"context_line":"service for the entire cluster. The Undercloud could be used for this"},{"line_number":70,"context_line":"tasks and the resulting config files could then be stored and deployed across"},{"line_number":71,"context_line":"the cluster.  This would eliminate the need to deploy the heavier config images to each node in the cluster and would minimize the CPU usage consumed in"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_f8102d5e","line":68,"range":{"start_line":68,"start_character":0,"end_line":68,"end_character":63},"in_reply_to":"3f79a3b5_0cda9d75","updated":"2018-11-30 10:28:43.000000000","message":"Hm, that\u0027s correct and we missed that, indeed. There is a bunch of bootstrap-host based coordination tasks like creating things with openstack services puppet providers and doing db-sync et al tasks. So the approach need to be updated like once for configs plus once for bootstrap tasks of each a service.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"d30f0abc5b60859af30999d63381fd441b24e283","unresolved":false,"context_lines":[{"line_number":65,"context_line":"be applied this way. Across the cluster however 99% of the config files"},{"line_number":66,"context_line":"are exactly the same on each node only differing by these per host settings."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Instead of running Puppet on each node we could run Puppet once for each"},{"line_number":69,"context_line":"service for the entire cluster. The Undercloud could be used for this"},{"line_number":70,"context_line":"tasks and the resulting config files could then be stored and deployed across"},{"line_number":71,"context_line":"the cluster.  This would eliminate the need to deploy the heavier config images to each node in the cluster and would minimize the CPU usage consumed in"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_fbf58721","line":68,"range":{"start_line":68,"start_character":0,"end_line":68,"end_character":63},"in_reply_to":"3f79a3b5_f8102d5e","updated":"2018-11-30 10:31:33.000000000","message":"\u003e So the approach need to be updated like once for configs plus once\n \u003e for bootstrap tasks of each a service.\n\num, rather it is:\n* at undercloud, once for configs,\n* at overcloud control plane under management of the underlcoud, once for bootstrap tasks of each a service\n* at computes and other non-CP, like storage, nodes - is it required to do some special magic as well (perhaps it\u0027s not!)?","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"bdf94abed1e2e2c1b8b3209f71af352034aa5ecf","unresolved":false,"context_lines":[{"line_number":65,"context_line":"be applied this way. Across the cluster however 99% of the config files"},{"line_number":66,"context_line":"are exactly the same on each node only differing by these per host settings."},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Instead of running Puppet on each node we could run Puppet once for each"},{"line_number":69,"context_line":"service for the entire cluster. The Undercloud could be used for this"},{"line_number":70,"context_line":"tasks and the resulting config files could then be stored and deployed across"},{"line_number":71,"context_line":"the cluster.  This would eliminate the need to deploy the heavier config images to each node in the cluster and would minimize the CPU usage consumed in"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_9b6b7aec","line":68,"range":{"start_line":68,"start_character":0,"end_line":68,"end_character":63},"in_reply_to":"3f79a3b5_fbf58721","updated":"2018-12-10 12:37:23.000000000","message":"Some init/maintenance tasks can be run as ephemeral containers on bootstrap nodes (e.g. DB syncs are already run this way i think), and some could be perhaps run from the undercloud, connecting to the overcloud services (e.g. i\u0027d imagine Keystone catalog population could be done like this).\n\nThis probably needs to be investigated in individual cases. I\u0027d guess some Puppet actions might not be so easy to convert into either of the suggestions above.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"1e195ae22f7e4af3999f2e5f76bcdd37b146bc01","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Instead of running Puppet on each node we could run Puppet once for each"},{"line_number":69,"context_line":"service for the entire cluster. The Undercloud could be used for this"},{"line_number":70,"context_line":"tasks and the resulting config files could then be stored and deployed across"},{"line_number":71,"context_line":"the cluster.  This would eliminate the need to deploy the heavier config images to each node in the cluster and would minimize the CPU usage consumed in"},{"line_number":72,"context_line":"generating config files that are largely the same."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"We could then devise a substring replacement tool which would seach for"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_0cacdde9","line":71,"range":{"start_line":70,"start_character":51,"end_line":71,"end_character":11},"updated":"2018-11-29 18:26:26.000000000","message":"I wonder if git would be a good candidate for storing these.\n\nAltough, another idea is to build RPM\u0027s that install whatever we need as config into /var/lib/config-data. If we make HOSTNAME, IPADDRESS etc (stuff that are hosts specific) variables a RPM post script could do the job of reading the host specific stuff either from the host or from a map shipped as part of the RPM package and update all the files.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"2be09b16fd589734d0d0ae79e3eb299d47abad9c","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Instead of running Puppet on each node we could run Puppet once for each"},{"line_number":69,"context_line":"service for the entire cluster. The Undercloud could be used for this"},{"line_number":70,"context_line":"tasks and the resulting config files could then be stored and deployed across"},{"line_number":71,"context_line":"the cluster.  This would eliminate the need to deploy the heavier config images to each node in the cluster and would minimize the CPU usage consumed in"},{"line_number":72,"context_line":"generating config files that are largely the same."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"We could then devise a substring replacement tool which would seach for"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_651d6960","line":71,"range":{"start_line":70,"start_character":48,"end_line":71,"end_character":11},"updated":"2018-11-29 15:21:42.000000000","message":"perhaps for large scale deployments, pulling those in is more preferable when pushing it out?","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"792dd4ae1063d6dd0504f2aed6c4c17e6bbd886b","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Instead of running Puppet on each node we could run Puppet once for each"},{"line_number":69,"context_line":"service for the entire cluster. The Undercloud could be used for this"},{"line_number":70,"context_line":"tasks and the resulting config files could then be stored and deployed across"},{"line_number":71,"context_line":"the cluster.  This would eliminate the need to deploy the heavier config images to each node in the cluster and would minimize the CPU usage consumed in"},{"line_number":72,"context_line":"generating config files that are largely the same."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"We could then devise a substring replacement tool which would seach for"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_fbdfc76a","line":71,"range":{"start_line":70,"start_character":51,"end_line":71,"end_character":11},"in_reply_to":"3f79a3b5_0cacdde9","updated":"2018-11-30 10:39:31.000000000","message":"git might work perfectly well, though I\u0027d prefer we to stick on a unified approach, like Etcd or any KVS (causal consistent in ideal world...) to share any data both control plane of openstack overclouds and management plane of undercloud. That is, less architectures to support.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"bdf94abed1e2e2c1b8b3209f71af352034aa5ecf","unresolved":false,"context_lines":[{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Instead of running Puppet on each node we could run Puppet once for each"},{"line_number":69,"context_line":"service for the entire cluster. The Undercloud could be used for this"},{"line_number":70,"context_line":"tasks and the resulting config files could then be stored and deployed across"},{"line_number":71,"context_line":"the cluster.  This would eliminate the need to deploy the heavier config images to each node in the cluster and would minimize the CPU usage consumed in"},{"line_number":72,"context_line":"generating config files that are largely the same."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"We could then devise a substring replacement tool which would seach for"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_fe213ca2","line":71,"range":{"start_line":70,"start_character":51,"end_line":71,"end_character":11},"in_reply_to":"3f79a3b5_fbdfc76a","updated":"2018-12-10 12:37:23.000000000","message":"For any pull-based solution, we must ensure that services don\u0027t pull in latest config on service or container restart. Upgrades might require that some config changes are delivered together with code changes. So we\u0027d have to version the config and have individual nodes pull a particular version (not necessarily latest) until they\u0027re told otherwise. That\u0027s additional complexity to consider when thinking about pull-based config.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"2be09b16fd589734d0d0ae79e3eb299d47abad9c","unresolved":false,"context_lines":[{"line_number":72,"context_line":"generating config files that are largely the same."},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"We could then devise a substring replacement tool which would seach for"},{"line_number":75,"context_line":"and replace all of the Undercloud IP/hostname settings on each node before"},{"line_number":76,"context_line":"applying the config file settings locally. In this manner we would still have"},{"line_number":77,"context_line":"custom config files on each node but would avoid having to deploy containers"},{"line_number":78,"context_line":"with Puppet to each node within the cluster."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_253451d7","line":75,"range":{"start_line":75,"start_character":4,"end_line":75,"end_character":67},"updated":"2018-11-29 15:21:42.000000000","message":"assuming that those will be pulled, not pushed, then locally processed, that sounds like a nice plan, indeed.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"2be09b16fd589734d0d0ae79e3eb299d47abad9c","unresolved":false,"context_lines":[{"line_number":78,"context_line":"with Puppet to each node within the cluster."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"After implementing the above we could update our container layers so that"},{"line_number":81,"context_line":"the service containers did not have Puppet installed in them. Then we could"},{"line_number":82,"context_line":"relayer our config containers so that Puppet is installed later for each"},{"line_number":83,"context_line":"service."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"NOTE: This last part (modifing the image layers to install Puppet later) will"},{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_459b8dc6","line":83,"range":{"start_line":81,"start_character":62,"end_line":83,"end_character":8},"updated":"2018-11-29 15:21:42.000000000","message":"wait, why would we still want local puppet runs once we have pulled and processed IPs/hostnames et al data locally already?..","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"1e195ae22f7e4af3999f2e5f76bcdd37b146bc01","unresolved":false,"context_lines":[{"line_number":78,"context_line":"with Puppet to each node within the cluster."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"After implementing the above we could update our container layers so that"},{"line_number":81,"context_line":"the service containers did not have Puppet installed in them. Then we could"},{"line_number":82,"context_line":"relayer our config containers so that Puppet is installed later for each"},{"line_number":83,"context_line":"service."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"NOTE: This last part (modifing the image layers to install Puppet later) will"},{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_4c889524","line":83,"range":{"start_line":81,"start_character":62,"end_line":83,"end_character":8},"in_reply_to":"3f79a3b5_459b8dc6","updated":"2018-11-29 18:26:26.000000000","message":"I think Dan\u0027s idea is that Puppet would be installed on these containers only when they are used to create the config. So only on the node used to generate the config. (i.e Undercloud) ??","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"792dd4ae1063d6dd0504f2aed6c4c17e6bbd886b","unresolved":false,"context_lines":[{"line_number":78,"context_line":"with Puppet to each node within the cluster."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"After implementing the above we could update our container layers so that"},{"line_number":81,"context_line":"the service containers did not have Puppet installed in them. Then we could"},{"line_number":82,"context_line":"relayer our config containers so that Puppet is installed later for each"},{"line_number":83,"context_line":"service."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"NOTE: This last part (modifing the image layers to install Puppet later) will"},{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_bbc2af87","line":83,"range":{"start_line":81,"start_character":62,"end_line":83,"end_character":8},"in_reply_to":"3f79a3b5_4c889524","updated":"2018-11-30 10:39:31.000000000","message":"right, then we should also consider a single golden-config-image for all services. It won\u0027t be pushed to overclouds ever, but stored locally for undercloud and versioned (tagged) accoring to the version(s) of overcloud(s) under control of that undercloud.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"0d561f8d5d10b7ca8423973e1773d2bf1f93fa11","unresolved":false,"context_lines":[{"line_number":78,"context_line":"with Puppet to each node within the cluster."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"After implementing the above we could update our container layers so that"},{"line_number":81,"context_line":"the service containers did not have Puppet installed in them. Then we could"},{"line_number":82,"context_line":"relayer our config containers so that Puppet is installed later for each"},{"line_number":83,"context_line":"service."},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"NOTE: This last part (modifing the image layers to install Puppet later) will"},{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_67ceb859","line":83,"range":{"start_line":81,"start_character":62,"end_line":83,"end_character":8},"in_reply_to":"3f79a3b5_bbc2af87","updated":"2018-11-30 15:15:02.000000000","message":"To sum up, the TODO plan is:\n\n1) decouple systemd (I have it WIP, not for Stein though) - we might want to mention or not it here as well,\n\n2) all that this spec proposes, but also please consider a *config-only* golden image (not for runtime of services), as an alternative to creating an extra config-layer with puppet and ruby for all images. That is, an all-in-one config image to be used for the required puppet config steps executed 1 time for UC, to generate all configs of computes, and $roles_number times executed for overcloud bootstrap nodes to do the remnants of tasks.\n\n3) given that we picked a cofig golden image, remove *all* config bits off the pure runtime containers images.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"2be09b16fd589734d0d0ae79e3eb299d47abad9c","unresolved":false,"context_lines":[{"line_number":85,"context_line":"NOTE: This last part (modifing the image layers to install Puppet later) will"},{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"},{"line_number":87,"context_line":"on the Undercloud. The benefit however is that these containers will be"},{"line_number":88,"context_line":"kept locally on the Undercloud only and not deployed out to the entire cluster."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_65eec921","line":88,"range":{"start_line":88,"start_character":36,"end_line":88,"end_character":78},"updated":"2018-11-29 15:21:42.000000000","message":"correct, that would significantly reduce the amount of security maintenance work for those images to be done only for undercloud w/o any services interruption on overcloud(s).\n\nbut I\u0027m still finding that part controversial to the initial proposal of running puppet once for each service then distribute (pull or push)...","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"17f9c3ef0ffd5ccc7ed7dc9a4f36e04534de82dd","unresolved":false,"context_lines":[{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"},{"line_number":87,"context_line":"on the Undercloud. The benefit however is that these containers will be"},{"line_number":88,"context_line":"kept locally on the Undercloud only and not deployed out to the entire cluster."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Alternatives"},{"line_number":92,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_0aefe4fb","line":89,"updated":"2018-11-29 14:50:23.000000000","message":"Missing details here are now we\u0027d marshal the hiera data into a format that would work for this. We\u0027d have to compress Hiera into a temporary location on the processing node (Undercloud) for the entire cluster. Generate the config files and then keep track of the local IPs, hostnames that would need to be substring replaced accordingly.\n\nThis is the tricky part of this model :/","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"2be09b16fd589734d0d0ae79e3eb299d47abad9c","unresolved":false,"context_lines":[{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"},{"line_number":87,"context_line":"on the Undercloud. The benefit however is that these containers will be"},{"line_number":88,"context_line":"kept locally on the Undercloud only and not deployed out to the entire cluster."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Alternatives"},{"line_number":92,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_85c8c5aa","line":89,"in_reply_to":"3f79a3b5_0aefe4fb","updated":"2018-11-29 15:21:42.000000000","message":"some KVS, like Etcd, for the rescue?","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"801b037fd384354929b79ce69bcaae6954988cf9","unresolved":false,"context_lines":[{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"},{"line_number":87,"context_line":"on the Undercloud. The benefit however is that these containers will be"},{"line_number":88,"context_line":"kept locally on the Undercloud only and not deployed out to the entire cluster."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Alternatives"},{"line_number":92,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_e62420c7","line":89,"in_reply_to":"3f79a3b5_85c8c5aa","updated":"2018-11-29 17:27:52.000000000","message":"Etcd would be an alternative way of implementing this. See the \"alternatives section\" below.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":3153,"name":"Emilien Macchi","email":"emilien@redhat.com","username":"emilienm"},"change_message_id":"7a5bc6445644b523946b8566fba144c4a2622ad1","unresolved":false,"context_lines":[{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"},{"line_number":87,"context_line":"on the Undercloud. The benefit however is that these containers will be"},{"line_number":88,"context_line":"kept locally on the Undercloud only and not deployed out to the entire cluster."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Alternatives"},{"line_number":92,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_ffb32cea","line":89,"in_reply_to":"3f79a3b5_e62420c7","updated":"2018-11-30 17:20:40.000000000","message":"I like the idea of a KVS, we already investigated that in the past.\nWe could indeed have etcd on the undercloud storing the hieradata and serving the data to config files which now have hardcoded IPs.\n\nFor example:\n  [database]\n  connection \u003d mysql://{{nova_db_user}}:{{nova_db_password}}@{{nova_db_host}}/{{nova_db_name}}","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"2fe25ff444294982a9267bbcb4e5e44eae26b5cb","unresolved":false,"context_lines":[{"line_number":86,"context_line":"still significantly increase the size of the container registry we require"},{"line_number":87,"context_line":"on the Undercloud. The benefit however is that these containers will be"},{"line_number":88,"context_line":"kept locally on the Undercloud only and not deployed out to the entire cluster."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"Alternatives"},{"line_number":92,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_2bf14d98","line":89,"in_reply_to":"3f79a3b5_ffb32cea","updated":"2018-12-03 12:30:21.000000000","message":"I think etcd is a runtime dependency however. As such it can\u0027t go on the Undercloud. Etcd would exist on an Overcloud node I think (or nodes) and get used that way so that it is up even if the Undercloud disappears.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"05ce7f4ca7a3897e300e90a43ba26955671b342f","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Other ways to avoid deploying \"heavy config containers\" to each node."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"* Make our RPM packaging lighter. I think this is probably always a good idea"},{"line_number":97,"context_line":"  but if we were to de-couple the Puppet RPMs from things like systemd it"},{"line_number":98,"context_line":"  would be a lighter set of RPMs in the base layer. Perhaps this is"},{"line_number":99,"context_line":"  acceptable."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_4fff2eff","line":96,"updated":"2018-11-29 13:37:44.000000000","message":"I think this idea is probably the easiest to implement. If we could make a Puppet subpackage for example that didn\u0027t require the installation of systemd.\n\nStill, Puppet and Ruby alone may not be acceptable to some so the top level idea in this spec may prove useful in that case.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"2be09b16fd589734d0d0ae79e3eb299d47abad9c","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Other ways to avoid deploying \"heavy config containers\" to each node."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"* Make our RPM packaging lighter. I think this is probably always a good idea"},{"line_number":97,"context_line":"  but if we were to de-couple the Puppet RPMs from things like systemd it"},{"line_number":98,"context_line":"  would be a lighter set of RPMs in the base layer. Perhaps this is"},{"line_number":99,"context_line":"  acceptable."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_653c8991","line":96,"in_reply_to":"3f79a3b5_4fff2eff","updated":"2018-11-29 15:21:42.000000000","message":"that looks like a complementing supporting improvements, not really an alternative. It needs to be done either way IMO.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"bdf94abed1e2e2c1b8b3209f71af352034aa5ecf","unresolved":false,"context_lines":[{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Other ways to avoid deploying \"heavy config containers\" to each node."},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"* Make our RPM packaging lighter. I think this is probably always a good idea"},{"line_number":97,"context_line":"  but if we were to de-couple the Puppet RPMs from things like systemd it"},{"line_number":98,"context_line":"  would be a lighter set of RPMs in the base layer. Perhaps this is"},{"line_number":99,"context_line":"  acceptable."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_fe461c56","line":96,"in_reply_to":"3f79a3b5_653c8991","updated":"2018-12-10 12:37:23.000000000","message":"+1 this sounds like a good idea for all scenarios.","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"bdf94abed1e2e2c1b8b3209f71af352034aa5ecf","unresolved":false,"context_lines":[{"line_number":98,"context_line":"  would be a lighter set of RPMs in the base layer. Perhaps this is"},{"line_number":99,"context_line":"  acceptable."},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"* Etcd. We would still require some use of Puppet (or perhaps another config"},{"line_number":102,"context_line":"  management tool like Ansible) to configure legacy services. I like this"},{"line_number":103,"context_line":"  approach as it perhaps fits nicely with next gen containers architectures."},{"line_number":104,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_be4c2474","line":101,"range":{"start_line":101,"start_character":2,"end_line":101,"end_character":6},"updated":"2018-12-10 12:37:23.000000000","message":"The pull-based solution caveats i mentioned above apply here. We must pull versioned config, not simply \"latest\".","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"2be09b16fd589734d0d0ae79e3eb299d47abad9c","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":"* Etcd. We would still require some use of Puppet (or perhaps another config"},{"line_number":102,"context_line":"  management tool like Ansible) to configure legacy services. I like this"},{"line_number":103,"context_line":"  approach as it perhaps fits nicely with next gen containers architectures."},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"* Ansible. Perhaps not related other than it is a different tool that might"},{"line_number":106,"context_line":"  accomplish the same things and require a smaller set of dependencies."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_256771bc","line":103,"updated":"2018-11-29 15:21:42.000000000","message":"we may still need it for undercloud and hiera tricks","commit_id":"b454f01a6f28f509c6224516d97fdba400fae866"}]}
