)]}'
{"specs/newton/add-transport-url-unparse.rst":[{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"559a8ff0878ca1500e33f98158d364a8e541797b","unresolved":false,"context_lines":[{"line_number":14,"context_line":"we need to extract a transport url string from a ConfigOpts object."},{"line_number":15,"context_line":"In Nova Cells v2, we have some commands operators will run to set up new"},{"line_number":16,"context_line":"cells. Each new cell record has a transport_url string to allow the parent"},{"line_number":17,"context_line":"cell to connect to child cell message queue. The operator provides a nova.conf"},{"line_number":18,"context_line":"config file to the command and the config object contains the transport url"},{"line_number":19,"context_line":"scattered among various config options. We would like to be able to call an"},{"line_number":20,"context_line":"oslo.messaging function to get the transport url as a string from the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab17558_eba6a40d","line":17,"updated":"2016-05-17 07:30:41.000000000","message":"Note that using transport_url will not works well for all drivers, especially zeromq, because the url is always zmq:// everything else is defined in the driver configuration options.","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"44792c5017749f3b8e014ebc39bc5341cebca523","unresolved":false,"context_lines":[{"line_number":14,"context_line":"we need to extract a transport url string from a ConfigOpts object."},{"line_number":15,"context_line":"In Nova Cells v2, we have some commands operators will run to set up new"},{"line_number":16,"context_line":"cells. Each new cell record has a transport_url string to allow the parent"},{"line_number":17,"context_line":"cell to connect to child cell message queue. The operator provides a nova.conf"},{"line_number":18,"context_line":"config file to the command and the config object contains the transport url"},{"line_number":19,"context_line":"scattered among various config options. We would like to be able to call an"},{"line_number":20,"context_line":"oslo.messaging function to get the transport url as a string from the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bab6814e_576d7b31","line":17,"in_reply_to":"bab6814e_1735b345","updated":"2016-05-18 07:25:04.000000000","message":"I have misreading it already support multiple hosts, so I will deprecated zeromq impl-specific options too.","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"8d9ab428398cf07ab81b30dd4777c99d0532e851","unresolved":false,"context_lines":[{"line_number":14,"context_line":"we need to extract a transport url string from a ConfigOpts object."},{"line_number":15,"context_line":"In Nova Cells v2, we have some commands operators will run to set up new"},{"line_number":16,"context_line":"cells. Each new cell record has a transport_url string to allow the parent"},{"line_number":17,"context_line":"cell to connect to child cell message queue. The operator provides a nova.conf"},{"line_number":18,"context_line":"config file to the command and the config object contains the transport url"},{"line_number":19,"context_line":"scattered among various config options. We would like to be able to call an"},{"line_number":20,"context_line":"oslo.messaging function to get the transport url as a string from the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bab6814e_b95aaa81","line":17,"in_reply_to":"bab6814e_576d7b31","updated":"2016-05-18 21:44:42.000000000","message":"Great, thanks for all your help on this","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"79a8075c7ebd7886d704af16fb3713fbe66a66af","unresolved":false,"context_lines":[{"line_number":14,"context_line":"we need to extract a transport url string from a ConfigOpts object."},{"line_number":15,"context_line":"In Nova Cells v2, we have some commands operators will run to set up new"},{"line_number":16,"context_line":"cells. Each new cell record has a transport_url string to allow the parent"},{"line_number":17,"context_line":"cell to connect to child cell message queue. The operator provides a nova.conf"},{"line_number":18,"context_line":"config file to the command and the config object contains the transport url"},{"line_number":19,"context_line":"scattered among various config options. We would like to be able to call an"},{"line_number":20,"context_line":"oslo.messaging function to get the transport url as a string from the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bab6814e_1735b345","line":17,"in_reply_to":"dab17558_817981ca","updated":"2016-05-18 07:23:07.000000000","message":"I have digged into the code to answer, and I have discovered that zeromq can read the redis host/port/password from transport_url now. But it doesn\u0027t support multiple hosts, I will fix that, so this driver will have the behavior as other.","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"85866f1b07ccb8389bb6326392e300ad6508ac8d","unresolved":false,"context_lines":[{"line_number":14,"context_line":"we need to extract a transport url string from a ConfigOpts object."},{"line_number":15,"context_line":"In Nova Cells v2, we have some commands operators will run to set up new"},{"line_number":16,"context_line":"cells. Each new cell record has a transport_url string to allow the parent"},{"line_number":17,"context_line":"cell to connect to child cell message queue. The operator provides a nova.conf"},{"line_number":18,"context_line":"config file to the command and the config object contains the transport url"},{"line_number":19,"context_line":"scattered among various config options. We would like to be able to call an"},{"line_number":20,"context_line":"oslo.messaging function to get the transport url as a string from the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab17558_817981ca","line":17,"in_reply_to":"dab17558_eba6a40d","updated":"2016-05-17 16:11:48.000000000","message":"Does that mean it\u0027s not possible to express zeromq connection information in one url in general or is it a limitation of oslo.messaging config at present? The reason I ask is because if it\u0027s the latter, deprecating the rabbit options seems to conflict with leaving zeromq options scattered. That is, there is not one consistent way to pull the connection info.\n\nOr posed as a question, shouldn\u0027t we deprecate all of the impl-specific config options at once?","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"f3237dcfef417ae21f3878044c52197e1d007d5e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  @classmethod"},{"line_number":33,"context_line":"  def unparse(cls, conf):"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"and returns a transport url string."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab17558_576680ed","line":35,"updated":"2016-05-16 15:03:51.000000000","message":"I have noticed that str() on the transport object already do that.","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"2e3ae732998b0946bf04d82ce56f9f3f8a4d4334","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  @classmethod"},{"line_number":33,"context_line":"  def unparse(cls, conf):"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"and returns a transport url string."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab17558_a62b3b81","line":35,"in_reply_to":"dab17558_12f526ec","updated":"2016-05-16 15:40:42.000000000","message":"What do you think about fixing parse instead ? Does that solve your issue ?\n\nhttps://review.openstack.org/316920","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"4e8f6802f52ae26035f1d4b94e0949deb892190e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  @classmethod"},{"line_number":33,"context_line":"  def unparse(cls, conf):"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"and returns a transport url string."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab17558_12f526ec","line":35,"in_reply_to":"dab17558_576680ed","updated":"2016-05-16 15:16:27.000000000","message":"Yes, but it does not take the transport url parameters from the ConfigOpts. It takes them as arguments to the __init__ function of TransportURL, which means in order to use str() you have to already have extracted the relevant config options from the conf","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":2813,"name":"Mehdi Abaakouk","email":"sileht@sileht.net","username":"sileht"},"change_message_id":"559a8ff0878ca1500e33f98158d364a8e541797b","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  @classmethod"},{"line_number":33,"context_line":"  def unparse(cls, conf):"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"and returns a transport url string."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab17558_5027a111","line":35,"in_reply_to":"dab17558_89bba80e","updated":"2016-05-17 07:30:41.000000000","message":"Transport_url is not an override but the real API, rabbit_XXXX are here for backward compatibility, only the kombu driver have options to defined hosts/user/password/virtualhosts other drivers use only the TransportURL.\n\nFrom my PoV, rabbit_XXXX options should just be deprecated. It\u0027s not sane and confusing to have multiple ways to configure the lib. I have proposed the deprecation here: https://review.openstack.org/317285","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"cb3e87efb1dfd994dce9a404656415b7bd42ec4d","unresolved":false,"context_lines":[{"line_number":32,"context_line":"  @classmethod"},{"line_number":33,"context_line":"  def unparse(cls, conf):"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"and returns a transport url string."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Alternatives"},{"line_number":38,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dab17558_89bba80e","line":35,"in_reply_to":"dab17558_a62b3b81","updated":"2016-05-16 15:58:13.000000000","message":"Almost! The \u0027transport_url\u0027 config option is an optional override that is usually not set in a nova.conf. In nova.conf, we instead have, for example with rabbit [1]:\n\n [DEFAULT]\n ...\n rpc_backend \u003d rabbit\n ...\n [oslo_messaging_rabbit]\n rabbit_virtual_host \u003d child_cell\n rabbit_userid \u003d stackrabbit\n rabbit_password \u003d secretrabbit\n rabbit_hosts \u003d 127.0.0.1\n ...\n\nand need a way to get the url in format:\n\n transport://user:pass@host1:port[,hostN:portN]/virtual_host\n\nfrom that.\n\n[1] http://logs.openstack.org/87/299487/6/check/gate-tempest-dsvm-cells/c0e30e4/logs/etc/nova/nova-cells.conf.txt.gz","commit_id":"c82939aa7153a67d4ebbbce38a0be234691b7047"}]}
