)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"26e9ff209de55046074472ad7d9409a16d044df7","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"According to configured retries parameter"},{"line_number":10,"context_line":"in ironic conductor configuration passed"},{"line_number":11,"context_line":"to RPC client constructor."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I0bdfeafb31973c6b4d58a1f57b4974e50145a946"},{"line_number":14,"context_line":"Closes-Bug: 1564075"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a98d1f4_458b3cc3","line":11,"updated":"2016-09-30 22:50:47.000000000","message":"I don\u0027t understand this","commit_id":"0811e28d9f3d4ba0de0390fb5f6c6b41dbb32b81"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"1920e83b04cfd9f3e74fbb43a2549f6b31738330","unresolved":false,"context_lines":[{"line_number":14,"context_line":"that is used upon transient failures."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I0bdfeafb31973c6b4d58a1f57b4974e50145a946"},{"line_number":17,"context_line":"Closes-Bug: 1564075"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"1a430d35_10db58ed","line":17,"updated":"2017-02-07 13:00:31.000000000","message":"Sorry, I don\u0027t understand how api-related option (see the code) closes conductor-related bug.","commit_id":"09a73decdb39f2e0f43efa13df7c25b4def2128e"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"e798f42dc8a39fd54158d3ef56a9a18bea6eff5a","unresolved":false,"context_lines":[{"line_number":14,"context_line":"that is used upon transient failures."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: I0bdfeafb31973c6b4d58a1f57b4974e50145a946"},{"line_number":17,"context_line":"Closes-Bug: 1564075"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"1a430d35_c19ca45f","line":17,"in_reply_to":"1a430d35_10db58ed","updated":"2017-02-07 14:11:25.000000000","message":"Done","commit_id":"09a73decdb39f2e0f43efa13df7c25b4def2128e"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"d6d1cd369b192cb21972619678eb938644966c4f","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Retry to connect to RPC if failed"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"If Ironic API can\u0027t connect to AMQP,"},{"line_number":10,"context_line":"it won\u0027t loop to try again later."},{"line_number":11,"context_line":"According to configured retries parameter"},{"line_number":12,"context_line":"``[api]/rpc_retry_count`` RPC client is"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":17,"id":"1a430d35_688823c6","line":9,"updated":"2017-02-07 19:03:08.000000000","message":"What Yuriy means here is:\n\n1. the bug is about conductor failing to connect to AMQP, as far as I can guess from the log names and bug description (logs themselves not available anymore), which uses rpc.get_server during startup, not prc.get_client\n2. looking at the oslo messaging code, the retry count is None by default, which means retrying forever, so this patch actually constrains the retrying.","commit_id":"e9de569d8dac383cc88625aa2e8846abb8890557"}],"etc/ironic/ironic.conf.sample":[{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"193c3e60ad352e286e11a59fd1b6b7519d773bc5","unresolved":false,"context_lines":[{"line_number":1019,"context_line":"# Minimum value: 1"},{"line_number":1020,"context_line":"#soft_power_off_timeout \u003d 600"},{"line_number":1021,"context_line":""},{"line_number":1022,"context_line":"# Number of retries connecting to RPC if connection fails. The"},{"line_number":1023,"context_line":"# next options can be chosen: None or -1 to retry forever, 0"},{"line_number":1024,"context_line":"# to not retry and any positive value to retry appropriate"},{"line_number":1025,"context_line":"# number of times. For more information see oslo_messaging"}],"source_content_type":"application/octet-stream","patch_set":11,"id":"1a430d35_0a927757","line":1022,"range":{"start_line":1022,"start_character":40,"end_line":1022,"end_character":41},"updated":"2017-02-06 14:28:21.000000000","message":"nit: s/connection/the connection/\n\nQuestion: Is it just upon start-up that this could occur, or does this also enable reconnect upon transient failures?","commit_id":"9d0c1b9941683f39acb91c39221e675dca93a5d3"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bfa13f7144ec1d456c2224888b069d23245a6b81","unresolved":false,"context_lines":[{"line_number":1019,"context_line":"# Minimum value: 1"},{"line_number":1020,"context_line":"#soft_power_off_timeout \u003d 600"},{"line_number":1021,"context_line":""},{"line_number":1022,"context_line":"# Number of retries connecting to RPC if connection fails. The"},{"line_number":1023,"context_line":"# next options can be chosen: None or -1 to retry forever, 0"},{"line_number":1024,"context_line":"# to not retry and any positive value to retry appropriate"},{"line_number":1025,"context_line":"# number of times. For more information see oslo_messaging"}],"source_content_type":"application/octet-stream","patch_set":11,"id":"1a430d35_dbb83fe8","line":1022,"range":{"start_line":1022,"start_character":40,"end_line":1022,"end_character":41},"in_reply_to":"1a430d35_0a927757","updated":"2017-02-06 15:57:12.000000000","message":"- done\n- according to the source code \u0027retry\u0027 parameter is used in call methods, not just at startup https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/rpc/client.py#L167","commit_id":"9d0c1b9941683f39acb91c39221e675dca93a5d3"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"193c3e60ad352e286e11a59fd1b6b7519d773bc5","unresolved":false,"context_lines":[{"line_number":1023,"context_line":"# next options can be chosen: None or -1 to retry forever, 0"},{"line_number":1024,"context_line":"# to not retry and any positive value to retry appropriate"},{"line_number":1025,"context_line":"# number of times. For more information see oslo_messaging"},{"line_number":1026,"context_line":"# documentation (integer value)"},{"line_number":1027,"context_line":"#rpc_retry_count \u003d 1"},{"line_number":1028,"context_line":""},{"line_number":1029,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":11,"id":"1a430d35_eaa44ba7","line":1026,"range":{"start_line":1026,"start_character":15,"end_line":1026,"end_character":16},"updated":"2017-02-06 14:28:21.000000000","message":"nit: we should detail what in the documentation the reader should reference.  We convert rpc_retry_count to retry, seems to make sense to at least highlight want to look for, in the case of users who are not familiar with this part of the stack.","commit_id":"9d0c1b9941683f39acb91c39221e675dca93a5d3"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bfa13f7144ec1d456c2224888b069d23245a6b81","unresolved":false,"context_lines":[{"line_number":1023,"context_line":"# next options can be chosen: None or -1 to retry forever, 0"},{"line_number":1024,"context_line":"# to not retry and any positive value to retry appropriate"},{"line_number":1025,"context_line":"# number of times. For more information see oslo_messaging"},{"line_number":1026,"context_line":"# documentation (integer value)"},{"line_number":1027,"context_line":"#rpc_retry_count \u003d 1"},{"line_number":1028,"context_line":""},{"line_number":1029,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":11,"id":"1a430d35_bb6e13ff","line":1026,"range":{"start_line":1026,"start_character":15,"end_line":1026,"end_character":16},"in_reply_to":"1a430d35_eaa44ba7","updated":"2017-02-06 15:57:12.000000000","message":"Full reference to the client class does not fit and breaks pep8, so trying to point to the main documentation and specify what exactly to search for. Thank you, Julia!","commit_id":"9d0c1b9941683f39acb91c39221e675dca93a5d3"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a8babd911434596b7fc07df016b343254cb9c453","unresolved":false,"context_lines":[{"line_number":1039,"context_line":"# 0 to not retry and any positive value to retry appropriate"},{"line_number":1040,"context_line":"# number of times. For more information see RPCClient"},{"line_number":1041,"context_line":"# description in oslo_messaging"},{"line_number":1042,"context_line":"# documentationhttp://docs.openstack.org/developer/oslo.messaging."},{"line_number":1043,"context_line":"# (integer value)"},{"line_number":1044,"context_line":"#rpc_retry_count \u003d 1"},{"line_number":1045,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":14,"id":"1a430d35_4d09e7dc","line":1042,"updated":"2017-02-06 21:14:40.000000000","message":"there should be a space here\n\nalso, not sure if it\u0027s OK to link to external documents in a config setting.... but probably not a big deal","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"a35e53165bff7d433053bc8153b1e0e029ebad02","unresolved":false,"context_lines":[{"line_number":1039,"context_line":"# 0 to not retry and any positive value to retry appropriate"},{"line_number":1040,"context_line":"# number of times. For more information see RPCClient"},{"line_number":1041,"context_line":"# description in oslo_messaging"},{"line_number":1042,"context_line":"# documentationhttp://docs.openstack.org/developer/oslo.messaging."},{"line_number":1043,"context_line":"# (integer value)"},{"line_number":1044,"context_line":"#rpc_retry_count \u003d 1"},{"line_number":1045,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":14,"id":"1a430d35_2a28ef85","line":1042,"in_reply_to":"1a430d35_4d09e7dc","updated":"2017-02-07 08:56:01.000000000","message":"- Done\n- At previous review it was asked to clearify it","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"}],"ironic/common/exception.py":[{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"ef706c406f9b6281d5d7b72d8e04a985f3ffeff4","unresolved":false,"context_lines":[{"line_number":465,"context_line":"    _msg_fmt \u003d _(\"MSFT OCS call failed.\")"},{"line_number":466,"context_line":""},{"line_number":467,"context_line":""},{"line_number":468,"context_line":"class RPCConnectFailed(IronicException):"},{"line_number":469,"context_line":"    _msg_fmt \u003d _(\"Failed to establish connection to RPC for topic %(topic)s.\")"},{"line_number":470,"context_line":""},{"line_number":471,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"7a3c09a3_a6f06192","line":468,"updated":"2017-01-17 18:50:11.000000000","message":"Why do we add this? It\u0027s not used anywhere","commit_id":"5288c6032910b800470930bd9ff8cd4dc56b2c41"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"437b57c500e10214112d5fe53c2fac4745629999","unresolved":false,"context_lines":[{"line_number":465,"context_line":"    _msg_fmt \u003d _(\"MSFT OCS call failed.\")"},{"line_number":466,"context_line":""},{"line_number":467,"context_line":""},{"line_number":468,"context_line":"class RPCConnectFailed(IronicException):"},{"line_number":469,"context_line":"    _msg_fmt \u003d _(\"Failed to establish connection to RPC for topic %(topic)s.\")"},{"line_number":470,"context_line":""},{"line_number":471,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_2525f9aa","line":468,"in_reply_to":"7a3c09a3_a6f06192","updated":"2017-01-19 08:41:22.000000000","message":"Done","commit_id":"5288c6032910b800470930bd9ff8cd4dc56b2c41"}],"ironic/conductor/rpcapi.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f7a79b7292bc4c679a2877d27c709bad410bf7bf","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"3a98d1f4_86bf59fa","updated":"2016-09-29 18:52:20.000000000","message":"The primary usage of rpcapi module is client module for API service. Usage on the conductor is limited, only in some drivers methods.","commit_id":"1ac1bb36f83d33cc198d826a574361aa70a1028d"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f7a79b7292bc4c679a2877d27c709bad410bf7bf","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        serializer \u003d objects_base.IronicObjectSerializer()"},{"line_number":104,"context_line":"        attempts \u003d 1 + CONF.conductor.rpc_retry_count"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"        for attempt in range(1, attempts + 1):"},{"line_number":107,"context_line":"            try:"},{"line_number":108,"context_line":"                self.client \u003d rpc.get_client(target,"},{"line_number":109,"context_line":"                                             version_cap\u003dself.RPC_API_VERSION,"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a98d1f4_0121739f","line":106,"updated":"2016-09-29 18:52:20.000000000","message":"Please use \"retrying\" for goals like this.","commit_id":"1ac1bb36f83d33cc198d826a574361aa70a1028d"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"f7a79b7292bc4c679a2877d27c709bad410bf7bf","unresolved":false,"context_lines":[{"line_number":108,"context_line":"                self.client \u003d rpc.get_client(target,"},{"line_number":109,"context_line":"                                             version_cap\u003dself.RPC_API_VERSION,"},{"line_number":110,"context_line":"                                             serializer\u003dserializer)"},{"line_number":111,"context_line":"            except exception.IronicException as e:"},{"line_number":112,"context_line":"                if attempt \u003d\u003d attempts:"},{"line_number":113,"context_line":"                    LOG.exception(\"Failed to start RPC service: %s\", e)"},{"line_number":114,"context_line":"                    raise exception.IronicException(topic\u003dself.topic)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a98d1f4_066fc9c5","line":111,"updated":"2016-09-29 18:52:20.000000000","message":"In oslo messaging documentation I not found any exception that rpc client constructor raises. Retrying is supported there. But guaranteed that it does not raise IronicException.\nhttps://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/rpc/client.py#L223","commit_id":"1ac1bb36f83d33cc198d826a574361aa70a1028d"}],"ironic/conf/api.py":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"9adda838f8e9c4e17d4c526346183f4a933e2f52","unresolved":false,"context_lines":[{"line_number":57,"context_line":"               default\u003d300,"},{"line_number":58,"context_line":"               deprecated_group\u003d\u0027agent\u0027, deprecated_name\u003d\u0027heartbeat_timeout\u0027,"},{"line_number":59,"context_line":"               help\u003d_(\u0027Maximum interval (in seconds) for agent heartbeats.\u0027)),"},{"line_number":60,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":61,"context_line":"               default\u003d1,"},{"line_number":62,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if the connection \u0027"},{"line_number":63,"context_line":"                      \u0027fails. The following options can be chosen: \u0027"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a430d35_17a2534b","line":60,"range":{"start_line":60,"start_character":16,"end_line":60,"end_character":31},"updated":"2017-02-08 01:21:28.000000000","message":"Should this option be moved to conductor group? As from  https://bugs.launchpad.net/ironic/+bug/1564075 seems conductor fails to retry.","commit_id":"e9de569d8dac383cc88625aa2e8846abb8890557"},{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"9adda838f8e9c4e17d4c526346183f4a933e2f52","unresolved":false,"context_lines":[{"line_number":61,"context_line":"               default\u003d1,"},{"line_number":62,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if the connection \u0027"},{"line_number":63,"context_line":"                      \u0027fails. The following options can be chosen: \u0027"},{"line_number":64,"context_line":"                      \u0027None or -1 to retry forever, 0 to not retry and any \u0027"},{"line_number":65,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":66,"context_line":"                      \u0027For more information see RPCClient description in \u0027"},{"line_number":67,"context_line":"                      \u0027oslo_messaging documentation.\u0027)),"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a430d35_f7b30798","line":64,"range":{"start_line":64,"start_character":23,"end_line":64,"end_character":33},"updated":"2017-02-08 01:21:28.000000000","message":"Just curious to know what will happen if some weird number is given other than say -3? I don\u0027t see any choices. \nI feel so, there should be a limit on positive count as well, but its just my opinion. What if someone put 500 as the value?","commit_id":"e9de569d8dac383cc88625aa2e8846abb8890557"}],"ironic/conf/conductor.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"816665f1fbd039f57c976776b7f32125f2f3b857","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                      \u0027the node will be put in the \"clean failed\" provision \u0027"},{"line_number":131,"context_line":"                      \u0027state. Set to 0 to disable timeout.\u0027)),"},{"line_number":132,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":133,"context_line":"               default\u003d0,"},{"line_number":134,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":135,"context_line":"                      \u0027connection fails\u0027))"},{"line_number":136,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a98d1f4_655acaf3","line":133,"updated":"2016-10-03 14:25:55.000000000","message":"I think we should set it to non-zero by default, it seems that the other services do retry it","commit_id":"1f9aed029f283ec52546b05d2125cc29158f7ddb"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"34ce55f5bb6b7f998af63f3037cfbee225cb1a93","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                      \u0027the node will be put in the \"clean failed\" provision \u0027"},{"line_number":131,"context_line":"                      \u0027state. Set to 0 to disable timeout.\u0027)),"},{"line_number":132,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":133,"context_line":"               default\u003d0,"},{"line_number":134,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":135,"context_line":"                      \u0027connection fails\u0027))"},{"line_number":136,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a98d1f4_85619607","line":133,"in_reply_to":"3a98d1f4_655acaf3","updated":"2016-10-03 14:36:31.000000000","message":"Done","commit_id":"1f9aed029f283ec52546b05d2125cc29158f7ddb"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"ef706c406f9b6281d5d7b72d8e04a985f3ffeff4","unresolved":false,"context_lines":[{"line_number":136,"context_line":"               min\u003d1,"},{"line_number":137,"context_line":"               help\u003d_(\u0027Timeout (in seconds) of soft reboot and soft power \u0027"},{"line_number":138,"context_line":"                      \u0027off operation. This value always has to be positive.\u0027)),"},{"line_number":139,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":140,"context_line":"               default\u003d1,"},{"line_number":141,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":142,"context_line":"                      \u0027connection fails\u0027))"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a3c09a3_66faf976","line":139,"updated":"2017-01-17 18:50:11.000000000","message":"Please regenerate conf sample.","commit_id":"5288c6032910b800470930bd9ff8cd4dc56b2c41"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"437b57c500e10214112d5fe53c2fac4745629999","unresolved":false,"context_lines":[{"line_number":136,"context_line":"               min\u003d1,"},{"line_number":137,"context_line":"               help\u003d_(\u0027Timeout (in seconds) of soft reboot and soft power \u0027"},{"line_number":138,"context_line":"                      \u0027off operation. This value always has to be positive.\u0027)),"},{"line_number":139,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":140,"context_line":"               default\u003d1,"},{"line_number":141,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":142,"context_line":"                      \u0027connection fails\u0027))"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_2a178652","line":139,"in_reply_to":"7a3c09a3_66faf976","updated":"2017-01-19 08:41:22.000000000","message":"Done","commit_id":"5288c6032910b800470930bd9ff8cd4dc56b2c41"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"636046d36323e1afdae237babdb8c727319e3572","unresolved":false,"context_lines":[{"line_number":137,"context_line":"               help\u003d_(\u0027Timeout (in seconds) of soft reboot and soft power \u0027"},{"line_number":138,"context_line":"                      \u0027off operation. This value always has to be positive.\u0027)),"},{"line_number":139,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":140,"context_line":"               default\u003d1,"},{"line_number":141,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":142,"context_line":"                      \u0027connection fails\u0027))"},{"line_number":143,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":9,"id":"5a3905b3_db3b369b","line":140,"updated":"2017-01-19 09:05:19.000000000","message":"Looking at the oslo_messaging code, it can be \u003c0, this means that it will retry forever. Might be good to mention this here.","commit_id":"a2d1ee80767529bce3c78873ccd2560a6532450a"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"895a5fccce301737be5598885d96c7ea15748225","unresolved":false,"context_lines":[{"line_number":137,"context_line":"               help\u003d_(\u0027Timeout (in seconds) of soft reboot and soft power \u0027"},{"line_number":138,"context_line":"                      \u0027off operation. This value always has to be positive.\u0027)),"},{"line_number":139,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":140,"context_line":"               default\u003d1,"},{"line_number":141,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":142,"context_line":"                      \u0027connection fails\u0027))"},{"line_number":143,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":9,"id":"5a3905b3_70233806","line":140,"in_reply_to":"5a3905b3_db3b369b","updated":"2017-01-19 12:08:05.000000000","message":"Thanks, updated help message and release note to clearify things","commit_id":"a2d1ee80767529bce3c78873ccd2560a6532450a"},{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"54eb1241f89bd71e0525fec2427d4f3df6fd2669","unresolved":false,"context_lines":[{"line_number":137,"context_line":"               help\u003d_(\u0027Timeout (in seconds) of soft reboot and soft power \u0027"},{"line_number":138,"context_line":"                      \u0027off operation. This value always has to be positive.\u0027)),"},{"line_number":139,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":140,"context_line":"               default\u003d1,"},{"line_number":141,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":142,"context_line":"                      \u0027connection fails. The next options can be chosen: \u0027"},{"line_number":143,"context_line":"                      \u0027None or -1 to retry forever, 0 to not retry and any \u0027"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a430d35_4f1bbb1b","line":140,"range":{"start_line":140,"start_character":15,"end_line":140,"end_character":24},"updated":"2017-02-06 10:23:57.000000000","message":"On what basis the default value 1 is chosen?","commit_id":"9d0c1b9941683f39acb91c39221e675dca93a5d3"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"193c3e60ad352e286e11a59fd1b6b7519d773bc5","unresolved":false,"context_lines":[{"line_number":137,"context_line":"               help\u003d_(\u0027Timeout (in seconds) of soft reboot and soft power \u0027"},{"line_number":138,"context_line":"                      \u0027off operation. This value always has to be positive.\u0027)),"},{"line_number":139,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":140,"context_line":"               default\u003d1,"},{"line_number":141,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":142,"context_line":"                      \u0027connection fails. The next options can be chosen: \u0027"},{"line_number":143,"context_line":"                      \u0027None or -1 to retry forever, 0 to not retry and any \u0027"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a430d35_ea27eb0f","line":140,"range":{"start_line":140,"start_character":15,"end_line":140,"end_character":24},"in_reply_to":"1a430d35_4f1bbb1b","updated":"2017-02-06 14:28:21.000000000","message":"I suspect it is just to retry once.  It is sub-optimal to ship a default that results in hard RPC interaction failure if ironic starts before RPC transport is up and running.  That being said, I also think it would to possibly indicate what this value means in terms of retries.  What does a retry mean for oslo messaging.  Perhaps that is better suited for oslo_messaging documentation, but at the same time referring to the underlying library documentation is not friendly to an operator who is not an expert at running ironic.","commit_id":"9d0c1b9941683f39acb91c39221e675dca93a5d3"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"bfa13f7144ec1d456c2224888b069d23245a6b81","unresolved":false,"context_lines":[{"line_number":137,"context_line":"               help\u003d_(\u0027Timeout (in seconds) of soft reboot and soft power \u0027"},{"line_number":138,"context_line":"                      \u0027off operation. This value always has to be positive.\u0027)),"},{"line_number":139,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":140,"context_line":"               default\u003d1,"},{"line_number":141,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if \u0027"},{"line_number":142,"context_line":"                      \u0027connection fails. The next options can be chosen: \u0027"},{"line_number":143,"context_line":"                      \u0027None or -1 to retry forever, 0 to not retry and any \u0027"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a430d35_f63b52cf","line":140,"range":{"start_line":140,"start_character":15,"end_line":140,"end_character":24},"in_reply_to":"1a430d35_ea27eb0f","updated":"2017-02-06 15:57:12.000000000","message":"Yes, you are right.\nTried to describe it in help message as mush as it can be clear in the next patch","commit_id":"9d0c1b9941683f39acb91c39221e675dca93a5d3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"695e1e10741c9795919bb79c0134cfe2ad9c45c7","unresolved":false,"context_lines":[{"line_number":154,"context_line":"                      \u0027None or -1 to retry forever, 0 to not retry and any \u0027"},{"line_number":155,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":156,"context_line":"                      \u0027For more information see RPCClient description in \u0027"},{"line_number":157,"context_line":"                      \u0027oslo_messaging documentation\u0027"},{"line_number":158,"context_line":"                      \u0027http://docs.openstack.org/developer/oslo.messaging .\u0027))"},{"line_number":159,"context_line":"]"},{"line_number":160,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_564b46b0","line":157,"range":{"start_line":157,"start_character":38,"end_line":157,"end_character":51},"updated":"2017-02-06 15:48:02.000000000","message":"Missing space at the end of line.","commit_id":"78612df02048cefa197dc00d47f00a37b2fcf4a2"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"b4791cf354fe3c033c5b1c0ed07448a5141db2e5","unresolved":false,"context_lines":[{"line_number":154,"context_line":"                      \u0027None or -1 to retry forever, 0 to not retry and any \u0027"},{"line_number":155,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":156,"context_line":"                      \u0027For more information see RPCClient description in \u0027"},{"line_number":157,"context_line":"                      \u0027oslo_messaging documentation\u0027"},{"line_number":158,"context_line":"                      \u0027http://docs.openstack.org/developer/oslo.messaging .\u0027))"},{"line_number":159,"context_line":"]"},{"line_number":160,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_211d960f","line":157,"range":{"start_line":157,"start_character":38,"end_line":157,"end_character":51},"in_reply_to":"1a430d35_564b46b0","updated":"2017-02-06 15:57:42.000000000","message":"Done","commit_id":"78612df02048cefa197dc00d47f00a37b2fcf4a2"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"695e1e10741c9795919bb79c0134cfe2ad9c45c7","unresolved":false,"context_lines":[{"line_number":155,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":156,"context_line":"                      \u0027For more information see RPCClient description in \u0027"},{"line_number":157,"context_line":"                      \u0027oslo_messaging documentation\u0027"},{"line_number":158,"context_line":"                      \u0027http://docs.openstack.org/developer/oslo.messaging .\u0027))"},{"line_number":159,"context_line":"]"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_96cbee1d","line":158,"updated":"2017-02-06 15:48:02.000000000","message":"nit - trailing comma please :)","commit_id":"78612df02048cefa197dc00d47f00a37b2fcf4a2"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"b4791cf354fe3c033c5b1c0ed07448a5141db2e5","unresolved":false,"context_lines":[{"line_number":155,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":156,"context_line":"                      \u0027For more information see RPCClient description in \u0027"},{"line_number":157,"context_line":"                      \u0027oslo_messaging documentation\u0027"},{"line_number":158,"context_line":"                      \u0027http://docs.openstack.org/developer/oslo.messaging .\u0027))"},{"line_number":159,"context_line":"]"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"1a430d35_61179eed","line":158,"in_reply_to":"1a430d35_96cbee1d","updated":"2017-02-06 15:57:42.000000000","message":"Done","commit_id":"78612df02048cefa197dc00d47f00a37b2fcf4a2"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6f86a6bc87ff5952d500040db44d39e88c17f86d","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":151,"context_line":"               default\u003d1,"},{"line_number":152,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if the connection \u0027"},{"line_number":153,"context_line":"                      \u0027fails. The next options can be chosen: \u0027"},{"line_number":154,"context_line":"                      \u0027None or -1 to retry forever, 0 to not retry and any \u0027"},{"line_number":155,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":156,"context_line":"                      \u0027For more information see RPCClient description in \u0027"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_3ac5b45a","line":153,"updated":"2017-02-06 18:17:03.000000000","message":"s/next/following/","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"a35e53165bff7d433053bc8153b1e0e029ebad02","unresolved":false,"context_lines":[{"line_number":150,"context_line":"    cfg.IntOpt(\u0027rpc_retry_count\u0027,"},{"line_number":151,"context_line":"               default\u003d1,"},{"line_number":152,"context_line":"               help\u003d_(\u0027Number of retries connecting to RPC if the connection \u0027"},{"line_number":153,"context_line":"                      \u0027fails. The next options can be chosen: \u0027"},{"line_number":154,"context_line":"                      \u0027None or -1 to retry forever, 0 to not retry and any \u0027"},{"line_number":155,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":156,"context_line":"                      \u0027For more information see RPCClient description in \u0027"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_ea9187f2","line":153,"in_reply_to":"1a430d35_3ac5b45a","updated":"2017-02-07 08:56:01.000000000","message":"Done","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6f86a6bc87ff5952d500040db44d39e88c17f86d","unresolved":false,"context_lines":[{"line_number":155,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":156,"context_line":"                      \u0027For more information see RPCClient description in \u0027"},{"line_number":157,"context_line":"                      \u0027oslo_messaging documentation \u0027"},{"line_number":158,"context_line":"                      \u0027http://docs.openstack.org/developer/oslo.messaging.\u0027))"},{"line_number":159,"context_line":"]"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_5aa280af","line":158,"updated":"2017-02-06 18:17:03.000000000","message":"I\u0027m not sure we should refer operators in the developer documentation. I also suspect they know what \"retry\" means ;)","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"a35e53165bff7d433053bc8153b1e0e029ebad02","unresolved":false,"context_lines":[{"line_number":155,"context_line":"                      \u0027positive value to retry appropriate number of times. \u0027"},{"line_number":156,"context_line":"                      \u0027For more information see RPCClient description in \u0027"},{"line_number":157,"context_line":"                      \u0027oslo_messaging documentation \u0027"},{"line_number":158,"context_line":"                      \u0027http://docs.openstack.org/developer/oslo.messaging.\u0027))"},{"line_number":159,"context_line":"]"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_8a01e36c","line":158,"in_reply_to":"1a430d35_5aa280af","updated":"2017-02-07 08:56:01.000000000","message":"As it is present in release notes, it may be not put here. In previous reviews it was asked to clearify it.... Well, I will remove the reference here :)","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"051890fbd3562bf9aa8d0294d99626bb89f13227","unresolved":false,"context_lines":[{"line_number":160,"context_line":""},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"def register_opts(conf):"},{"line_number":163,"context_line":"    conf.register_opts(opts, group\u003d\u0027conductor\u0027)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_cf24ddc6","line":163,"updated":"2017-02-07 07:40:48.000000000","message":"I\u0027m confused that this option added to \"conductor\" group. Ironic REST API service(s) use RPC API via RPC client for communication with conductor(s), it\u0027s not conductor service related.","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"a35e53165bff7d433053bc8153b1e0e029ebad02","unresolved":false,"context_lines":[{"line_number":160,"context_line":""},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"def register_opts(conf):"},{"line_number":163,"context_line":"    conf.register_opts(opts, group\u003d\u0027conductor\u0027)"}],"source_content_type":"text/x-python","patch_set":14,"id":"1a430d35_8ab723f4","line":163,"in_reply_to":"1a430d35_cf24ddc6","updated":"2017-02-07 08:56:01.000000000","message":"ok, at first glance as rpc api is instantiated in the conductor package, one may think that it is related, but better, may be to move it to api config, because is instantiated at api side","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"}],"ironic/tests/unit/common/test_rpc.py":[{"author":{"_account_id":19593,"name":"Anup Navare","email":"anup.d.navare@intel.com","username":"anup"},"change_message_id":"9adda838f8e9c4e17d4c526346183f4a933e2f52","unresolved":false,"context_lines":[{"line_number":135,"context_line":"    @mock.patch.object(rpc, \u0027RequestContextSerializer\u0027, autospec\u003dTrue)"},{"line_number":136,"context_line":"    @mock.patch.object(messaging, \u0027Target\u0027, autospec\u003dTrue)"},{"line_number":137,"context_line":"    @mock.patch.object(messaging, \u0027get_transport\u0027, autospec\u003dTrue)"},{"line_number":138,"context_line":"    def test_get_client(self, mock_transport, mock_target, mock_serializer,"},{"line_number":139,"context_line":"                        mock_rpc):"},{"line_number":140,"context_line":"        messaging.RPCClient(mock_transport,"},{"line_number":141,"context_line":"                            mock_target,"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a430d35_777f17ab","line":138,"updated":"2017-02-08 01:21:28.000000000","message":"Would be good to add test for wrong value given to rpc_retry_count?","commit_id":"e9de569d8dac383cc88625aa2e8846abb8890557"}],"releasenotes/notes/retry-connect-to-rpc-2723f5ad42e4f1a8.yaml":[{"author":{"_account_id":14943,"name":"Caio Oliveira","email":"caiobo@lsd.ufcg.edu.br","username":"caiobo"},"change_message_id":"b0d3ec0e2085355885c931e60f727f9fc9ab6136","unresolved":false,"context_lines":[{"line_number":1,"context_line":"fixes:"},{"line_number":2,"context_line":"  - Added new configuration option"},{"line_number":3,"context_line":"    ``[conductor]/rpc_retry_count`` to"},{"line_number":4,"context_line":"    implement the ability to retry"},{"line_number":5,"context_line":"    connecting to RPC."},{"line_number":6,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3a98d1f4_88199824","line":5,"range":{"start_line":4,"start_character":29,"end_line":5,"end_character":22},"updated":"2016-10-03 22:23:46.000000000","message":"It would be easier to understand if you mention the Ironic Conductor here too, not just in the commit message.","commit_id":"c0ac4d4afd1e4042482b331ffa2d3c2348a08d7b"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"91b4d5381ce81352cc3094d71798d69c519b4a02","unresolved":false,"context_lines":[{"line_number":1,"context_line":"fixes:"},{"line_number":2,"context_line":"  - Added new configuration option"},{"line_number":3,"context_line":"    ``[conductor]/rpc_retry_count`` to"},{"line_number":4,"context_line":"    implement the ability to retry"},{"line_number":5,"context_line":"    connecting to RPC."},{"line_number":6,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3a98d1f4_ae7bb5f3","line":5,"range":{"start_line":4,"start_character":29,"end_line":5,"end_character":22},"in_reply_to":"3a98d1f4_88199824","updated":"2016-10-04 14:02:30.000000000","message":"Done","commit_id":"c0ac4d4afd1e4042482b331ffa2d3c2348a08d7b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"636046d36323e1afdae237babdb8c727319e3572","unresolved":false,"context_lines":[{"line_number":1,"context_line":"fixes:"},{"line_number":2,"context_line":"  - Added new configuration option"},{"line_number":3,"context_line":"    ``[conductor]/rpc_retry_count`` to"},{"line_number":4,"context_line":"    specify the number of retries when"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"5a3905b3_60ffef34","line":1,"updated":"2017-01-19 09:05:19.000000000","message":"The fix is that you will retry on connection failure. This paragraph belongs more to upgrade section.","commit_id":"a2d1ee80767529bce3c78873ccd2560a6532450a"},{"author":{"_account_id":22724,"name":"Galyna Zholtkevych","email":"galynazholtkevych1991@gmail.com","username":"gzholtkevych"},"change_message_id":"895a5fccce301737be5598885d96c7ea15748225","unresolved":false,"context_lines":[{"line_number":1,"context_line":"fixes:"},{"line_number":2,"context_line":"  - Added new configuration option"},{"line_number":3,"context_line":"    ``[conductor]/rpc_retry_count`` to"},{"line_number":4,"context_line":"    specify the number of retries when"}],"source_content_type":"text/x-yaml","patch_set":9,"id":"5a3905b3_2417b1a4","line":1,"in_reply_to":"5a3905b3_60ffef34","updated":"2017-01-19 12:08:05.000000000","message":"Done","commit_id":"a2d1ee80767529bce3c78873ccd2560a6532450a"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"6f86a6bc87ff5952d500040db44d39e88c17f86d","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    ``[conductor]/rpc_retry_count`` to specify"},{"line_number":5,"context_line":"    the number of retries when connecting to RPC."},{"line_number":6,"context_line":"    For detailed information see RPCClient section"},{"line_number":7,"context_line":"    in oslo_messaging docs."},{"line_number":8,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a430d35_1acab86d","line":7,"updated":"2017-02-06 18:17:03.000000000","message":"nit: do we need to mention that after this change we retry once?","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"},{"author":{"_account_id":13295,"name":"Mario Villaplana","email":"mario.villaplana@gmail.com","username":"mariojv"},"change_message_id":"a8babd911434596b7fc07df016b343254cb9c453","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    ``[conductor]/rpc_retry_count`` to specify"},{"line_number":5,"context_line":"    the number of retries when connecting to RPC."},{"line_number":6,"context_line":"    For detailed information see RPCClient section"},{"line_number":7,"context_line":"    in oslo_messaging docs."},{"line_number":8,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":14,"id":"1a430d35_4d30079f","line":7,"in_reply_to":"1a430d35_1acab86d","updated":"2017-02-06 21:14:40.000000000","message":"Yes, I think so. This changes the existing behavior of RPC connections.","commit_id":"0c3436c33d6c06a648a2c4993c844861e47ef405"}]}
