)]}'
{"manifests/profile/base/rabbitmq.pp":[{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"13deeca96f0611b3c184619691fa8bb584931c2d","unresolved":false,"context_lines":[{"line_number":90,"context_line":"      }"},{"line_number":91,"context_line":"    }"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    if hiera(\u0027stack_action\u0027) \u003d\u003d \u0027UPDATE\u0027 {"},{"line_number":94,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":95,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":96,"context_line":"      $rabbitmq_pass \u003d hiera(\u0027rabbitmq::default_pass\u0027)"}],"source_content_type":"text/x-puppet","patch_set":5,"id":"da4df55a_74097031","line":93,"range":{"start_line":93,"start_character":26,"end_line":93,"end_character":28},"updated":"2016-12-22 09:08:09.000000000","message":"This will probably work OK, but I wonder if there\u0027s a cleaner way to do it, e.g a puppet resource chain which only applies rabbitmq_user when rabbit is running?\n\nNot a blocker but please move the stack_action parameter to the class interface.","commit_id":"e263a416ac3e57afcbd16464a8e92ada00b32fa3"},{"author":{"_account_id":18575,"name":"Saravanan KR","email":"krsacme@gmail.com","username":"saravanankr"},"change_message_id":"a126db0e5dd9ea98ddf5c64bcac578c703c8c205","unresolved":false,"context_lines":[{"line_number":90,"context_line":"      }"},{"line_number":91,"context_line":"    }"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    if hiera(\u0027stack_action\u0027) \u003d\u003d \u0027UPDATE\u0027 {"},{"line_number":94,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":95,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":96,"context_line":"      $rabbitmq_pass \u003d hiera(\u0027rabbitmq::default_pass\u0027)"}],"source_content_type":"text/x-puppet","patch_set":5,"id":"da4df55a_6b818a4a","line":93,"range":{"start_line":93,"start_character":26,"end_line":93,"end_character":28},"in_reply_to":"da4df55a_74097031","updated":"2016-12-22 09:26:44.000000000","message":"Done","commit_id":"e263a416ac3e57afcbd16464a8e92ada00b32fa3"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"13deeca96f0611b3c184619691fa8bb584931c2d","unresolved":false,"context_lines":[{"line_number":94,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":95,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":96,"context_line":"      $rabbitmq_pass \u003d hiera(\u0027rabbitmq::default_pass\u0027)"},{"line_number":97,"context_line":"      $rabbitmq_user \u003d hiera(\u0027rabbitmq::default_user\u0027)"},{"line_number":98,"context_line":"      rabbitmq_user { $rabbitmq_user :"},{"line_number":99,"context_line":"        password \u003d\u003e $rabbitmq_pass,"},{"line_number":100,"context_line":"        provider \u003d\u003e \u0027rabbitmqctl\u0027,"}],"source_content_type":"text/x-puppet","patch_set":5,"id":"da4df55a_b44678bd","line":97,"range":{"start_line":97,"start_character":30,"end_line":97,"end_character":38},"updated":"2016-12-22 09:08:09.000000000","message":"Please define these parameters in the class interface, e.g lines 47 to 52, as it makes the interface cleaner and the class easier to test.","commit_id":"e263a416ac3e57afcbd16464a8e92ada00b32fa3"},{"author":{"_account_id":18575,"name":"Saravanan KR","email":"krsacme@gmail.com","username":"saravanankr"},"change_message_id":"a126db0e5dd9ea98ddf5c64bcac578c703c8c205","unresolved":false,"context_lines":[{"line_number":94,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":95,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":96,"context_line":"      $rabbitmq_pass \u003d hiera(\u0027rabbitmq::default_pass\u0027)"},{"line_number":97,"context_line":"      $rabbitmq_user \u003d hiera(\u0027rabbitmq::default_user\u0027)"},{"line_number":98,"context_line":"      rabbitmq_user { $rabbitmq_user :"},{"line_number":99,"context_line":"        password \u003d\u003e $rabbitmq_pass,"},{"line_number":100,"context_line":"        provider \u003d\u003e \u0027rabbitmqctl\u0027,"}],"source_content_type":"text/x-puppet","patch_set":5,"id":"da4df55a_8b96ae92","line":97,"range":{"start_line":97,"start_character":30,"end_line":97,"end_character":38},"in_reply_to":"da4df55a_b44678bd","updated":"2016-12-22 09:26:44.000000000","message":"Done","commit_id":"e263a416ac3e57afcbd16464a8e92ada00b32fa3"},{"author":{"_account_id":3153,"name":"Emilien Macchi","email":"emilien@redhat.com","username":"emilienm"},"change_message_id":"a8796cf50d2480fe834ae16c9b9958e9079312f6","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    if $stack_action \u003d\u003d \u0027UPDATE\u0027 {"},{"line_number":110,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":111,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":112,"context_line":"      rabbitmq_user { $rabbitmq_user :"},{"line_number":113,"context_line":"        password \u003d\u003e $rabbitmq_pass,"},{"line_number":114,"context_line":"        provider \u003d\u003e \u0027rabbitmqctl\u0027,"},{"line_number":115,"context_line":"        admin    \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":7,"id":"ba5201f7_a9918348","line":112,"updated":"2017-01-10 19:19:56.000000000","message":"So to me this is something we should rather fix in puppetlabs-rabbitmq because it is a bug that any user of the rabbitmq module could hit.\n\nIf I understand correctly, the admin user in RabbitMQ is managed by rabbitmq-server when the process starts. Then, if you change the password in Puppet, the config files will be updated but there is no mechanism in place today to update the actual user in rabbitmq.\n\nIt would make sense to patch rabbitmq::rabbitmqadmin with this code you wrote here, with some orchestration so we would have this kind of scenario:\n\n* first bootstrap of the cluster, user is created by rabbitmq\n* during puppet run, rabbitmq::rabbitmqadmin would also try to create the resource but since the user already exist and the provider is idempotent, it would be noop\n* if you change the password in hieradata, puppet would update config files and run the rabbitmq::rabbitmqadmin again with new data and this time the user would be updated.\n\nDoing it here would also work but it adds some logic specific in TripleO while we could solve the problem in a more high level.\n\nPlease submit a patch in puppetlabs-rabbitmq and email me the PR, I\u0027m core on the module and can review it quickly.\nPing me on IRC if you need help too.\n\nThanks","commit_id":"a535b85af37b59cb0f706cdcb214e32bdac25401"},{"author":{"_account_id":18575,"name":"Saravanan KR","email":"krsacme@gmail.com","username":"saravanankr"},"change_message_id":"03c2a0f1f1e97f95cbf375220a6c49e8606ee596","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    if $stack_action \u003d\u003d \u0027UPDATE\u0027 {"},{"line_number":110,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":111,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":112,"context_line":"      rabbitmq_user { $rabbitmq_user :"},{"line_number":113,"context_line":"        password \u003d\u003e $rabbitmq_pass,"},{"line_number":114,"context_line":"        provider \u003d\u003e \u0027rabbitmqctl\u0027,"},{"line_number":115,"context_line":"        admin    \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":7,"id":"7a3c09a3_d2155649","line":112,"in_reply_to":"7a3c09a3_c52839e5","updated":"2017-01-17 05:35:59.000000000","message":"\u003e What\u0027s the reasoning to only define this when it\u0027s an update? Shouldn\u0027t we be defining it this always?\n\nDuring the first run (deploy), the rabbitmq config files are updated via puppetlabs-rabbitmq and then pacemaker starts the rabbitmq server which will use the credentials from the config file. So, when puppetlabs-rabbitmq is invoked, rabbitmq server is not running in the first run. This is the reason that it is needed only for update. \n\nIIUC, Emilien\u0027s point was to invoke rabbitmq_user in the upstream (at rabbitmqadmin), but what I observed is, rabbitmqadmin will not be invoked at all. This piece of code should be invoked only when rabbitmq is already running.","commit_id":"a535b85af37b59cb0f706cdcb214e32bdac25401"},{"author":{"_account_id":18575,"name":"Saravanan KR","email":"krsacme@gmail.com","username":"saravanankr"},"change_message_id":"dca0a2960e6c1d18f33d13a548b65a3000a15f08","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    if $stack_action \u003d\u003d \u0027UPDATE\u0027 {"},{"line_number":110,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":111,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":112,"context_line":"      rabbitmq_user { $rabbitmq_user :"},{"line_number":113,"context_line":"        password \u003d\u003e $rabbitmq_pass,"},{"line_number":114,"context_line":"        provider \u003d\u003e \u0027rabbitmqctl\u0027,"},{"line_number":115,"context_line":"        admin    \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":7,"id":"ba5201f7_b1f3819e","line":112,"in_reply_to":"ba5201f7_19d9eb83","updated":"2017-01-11 13:31:15.000000000","message":"The set of puppet apply logs observed in controller (in ha deployment) are below. Here I don\u0027t observe anything on the rabbitmq::rabbimqadmin, as we mention service_manage [2] as false in the pacemaker deployment [1]. So I don\u0027t think we can put it in rabbitmqadmin. I was checking if we can put the code any where else, but it is not guaranteed that service will be started for the first run as it will be started by pacemaker.\n\n-----------------------------------------------------\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[/etc/rabbitmq]/owner: owner changed \u0027rabbitmq\u0027 to \u0027root\u0027^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[/etc/rabbitmq]/group: group changed \u0027rabbitmq\u0027 to \u0027root\u0027^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[/etc/rabbitmq/ssl]/ensure: created^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[rabbitmq-env.config]/ensure: defined content as \u0027{md5}0ecf10c9fdbbbdac58ec22105e5a85e3\u0027^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[rabbitmqadmin.conf]/ensure: defined content as \u0027{md5}44d4ef5cb86ab30e6127e83939ef09c4\u0027^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[/etc/systemd/system/rabbitmq-server.service.d]/ensure: created^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[/etc/systemd/system/rabbitmq-server.service.d/limits.conf]/ensure: defined content as \u0027{md5}91d370d2c5a1af171c9d5b5985fca733\u0027^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/Exec[rabbitmq-systemd-reload]: Triggered \u0027refresh\u0027 from 1 events^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[/etc/security/limits.d/rabbitmq-server.conf]/ensure: defined content as \u0027{md5}1030abc4db405b5f2969643e99bc7435\u0027^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/Rabbitmq_erlang_cookie[/var/lib/rabbitmq/.erlang.cookie]/content: The rabbitmq erlang cookie was changed^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[rabbitmq.config]/content: content changed \u0027{md5}c8e444b74c6294006936abdaea55a079\u0027 to \u0027{md5}255dc472d547fbdd92c29f5e83e52c3a\u0027^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[rabbitmq.config]/owner: owner changed \u0027rabbitmq\u0027 to \u0027root\u0027^[[0m\n^[[mNotice: /Stage[main]/Rabbitmq::Config/File[rabbitmq.config]/group: group changed \u0027rabbitmq\u0027 to \u0027root\u0027^[[0m\n\n\n\n[1] https://github.com/openstack/tripleo-heat-templates/blob/6b8c34b27a324120f6945f7873f479d37ba2e516/puppet/services/pacemaker/rabbitmq.yaml#L39\n[2] https://github.com/puppetlabs/puppetlabs-rabbitmq/blob/63fcde4f2fed5342d78cda7dd72c1592003a8d17/manifests/init.pp#L252","commit_id":"a535b85af37b59cb0f706cdcb214e32bdac25401"},{"author":{"_account_id":18575,"name":"Saravanan KR","email":"krsacme@gmail.com","username":"saravanankr"},"change_message_id":"533b42380a59db0241697b1b97d9052bef11dc56","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    if $stack_action \u003d\u003d \u0027UPDATE\u0027 {"},{"line_number":110,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":111,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":112,"context_line":"      rabbitmq_user { $rabbitmq_user :"},{"line_number":113,"context_line":"        password \u003d\u003e $rabbitmq_pass,"},{"line_number":114,"context_line":"        provider \u003d\u003e \u0027rabbitmqctl\u0027,"},{"line_number":115,"context_line":"        admin    \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":7,"id":"ba5201f7_19d9eb83","line":112,"in_reply_to":"ba5201f7_a9918348","updated":"2017-01-11 06:02:35.000000000","message":"Thanks Emilien for the direction, I will look in to the puppetlabs-rabbitmq, to proceed with this change. I will come back to you for support.","commit_id":"a535b85af37b59cb0f706cdcb214e32bdac25401"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"f9d0ca85bcc93acc06007691499c0f01ebd0d109","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    if $stack_action \u003d\u003d \u0027UPDATE\u0027 {"},{"line_number":110,"context_line":"      # Required for changing password on update scenario. Password will be changed only when"},{"line_number":111,"context_line":"      # called explicity, if the rabbitmq service is already running."},{"line_number":112,"context_line":"      rabbitmq_user { $rabbitmq_user :"},{"line_number":113,"context_line":"        password \u003d\u003e $rabbitmq_pass,"},{"line_number":114,"context_line":"        provider \u003d\u003e \u0027rabbitmqctl\u0027,"},{"line_number":115,"context_line":"        admin    \u003d\u003e true,"}],"source_content_type":"text/x-puppet","patch_set":7,"id":"7a3c09a3_c52839e5","line":112,"in_reply_to":"ba5201f7_b1f3819e","updated":"2017-01-16 22:17:51.000000000","message":"So I think the point that Emilien is trying to make is that this interface should be exposed in the upstream module and documented there. So if you took this bit of code, made it a class in puppet-rabbitmq, it becomes an include here and could be done via THT or something. What\u0027s the reasoning to only define this when it\u0027s an update? Shouldn\u0027t we be defining it this always?","commit_id":"a535b85af37b59cb0f706cdcb214e32bdac25401"}]}
