)]}'
{"doc/source/cells.rst":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":334,"context_line":"up Cells V2. It is assumed that you have followed all other install steps for"},{"line_number":335,"context_line":"Nova and are setting up Cells V2 specifically at this point."},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"Fresh Install"},{"line_number":338,"context_line":"-------------"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"You are installing Nova for the first time and have no compute hosts in the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_d45e9711","line":337,"updated":"2017-02-02 02:23:58.000000000","message":"How much of this is going to be a duplication of what we have above for the first time setup?","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"3fd407d6c53a44ff6967d37d973af4f2458468eb","unresolved":false,"context_lines":[{"line_number":334,"context_line":"up Cells V2. It is assumed that you have followed all other install steps for"},{"line_number":335,"context_line":"Nova and are setting up Cells V2 specifically at this point."},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"Fresh Install"},{"line_number":338,"context_line":"-------------"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"You are installing Nova for the first time and have no compute hosts in the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_349efb07","line":337,"in_reply_to":"3a461143_d45e9711","updated":"2017-02-02 02:49:52.000000000","message":"I thought about that but was thinking there\u0027s probably benefit in having a rollup section, \"putting it all together\", short list of steps (based on the conversations we\u0027ve had with operators). Something they can refer to quickly to refresh if they need to.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":340,"context_line":"You are installing Nova for the first time and have no compute hosts in the"},{"line_number":341,"context_line":"database yet. This will set up a single cell Nova deployment."},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"1. Create a database for cell0 with a name based on the name of your Nova"},{"line_number":344,"context_line":"database: \u003cNova database name\u003e_cell0. If your Nova database is named ``nova``,"},{"line_number":345,"context_line":"then your cell0 database should be named ``nova_cell0``. See step 2 to"},{"line_number":346,"context_line":"determine how you will name the cell0 database. If you will pass the database"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_7467a3ea","line":343,"updated":"2017-02-02 02:23:58.000000000","message":"If you want these blocks to format properly (indented) I think the words have to all line up with \u0027Create\u0027.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"3fd407d6c53a44ff6967d37d973af4f2458468eb","unresolved":false,"context_lines":[{"line_number":340,"context_line":"You are installing Nova for the first time and have no compute hosts in the"},{"line_number":341,"context_line":"database yet. This will set up a single cell Nova deployment."},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"1. Create a database for cell0 with a name based on the name of your Nova"},{"line_number":344,"context_line":"database: \u003cNova database name\u003e_cell0. If your Nova database is named ``nova``,"},{"line_number":345,"context_line":"then your cell0 database should be named ``nova_cell0``. See step 2 to"},{"line_number":346,"context_line":"determine how you will name the cell0 database. If you will pass the database"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_54a3874f","line":343,"in_reply_to":"3a461143_7467a3ea","updated":"2017-02-02 02:49:52.000000000","message":"Ah, thanks.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":342,"context_line":""},{"line_number":343,"context_line":"1. Create a database for cell0 with a name based on the name of your Nova"},{"line_number":344,"context_line":"database: \u003cNova database name\u003e_cell0. If your Nova database is named ``nova``,"},{"line_number":345,"context_line":"then your cell0 database should be named ``nova_cell0``. See step 2 to"},{"line_number":346,"context_line":"determine how you will name the cell0 database. If you will pass the database"},{"line_number":347,"context_line":"connection url on the command line, you can name it whatever you want. If you"},{"line_number":348,"context_line":"will not pass the database connection url on the command line, the name will be"},{"line_number":349,"context_line":"based on the existing Nova database connection url."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_14ed7f25","line":346,"range":{"start_line":345,"start_character":57,"end_line":346,"end_character":47},"updated":"2017-02-02 02:23:58.000000000","message":"But did you just tell me what to name it?","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"3fd407d6c53a44ff6967d37d973af4f2458468eb","unresolved":false,"context_lines":[{"line_number":342,"context_line":""},{"line_number":343,"context_line":"1. Create a database for cell0 with a name based on the name of your Nova"},{"line_number":344,"context_line":"database: \u003cNova database name\u003e_cell0. If your Nova database is named ``nova``,"},{"line_number":345,"context_line":"then your cell0 database should be named ``nova_cell0``. See step 2 to"},{"line_number":346,"context_line":"determine how you will name the cell0 database. If you will pass the database"},{"line_number":347,"context_line":"connection url on the command line, you can name it whatever you want. If you"},{"line_number":348,"context_line":"will not pass the database connection url on the command line, the name will be"},{"line_number":349,"context_line":"based on the existing Nova database connection url."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_9485efae","line":346,"range":{"start_line":345,"start_character":57,"end_line":346,"end_character":47},"in_reply_to":"3a461143_14ed7f25","updated":"2017-02-02 02:49:52.000000000","message":"Yeah, I guess all of the explanation should come before telling to name it.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":343,"context_line":"1. Create a database for cell0 with a name based on the name of your Nova"},{"line_number":344,"context_line":"database: \u003cNova database name\u003e_cell0. If your Nova database is named ``nova``,"},{"line_number":345,"context_line":"then your cell0 database should be named ``nova_cell0``. See step 2 to"},{"line_number":346,"context_line":"determine how you will name the cell0 database. If you will pass the database"},{"line_number":347,"context_line":"connection url on the command line, you can name it whatever you want. If you"},{"line_number":348,"context_line":"will not pass the database connection url on the command line, the name will be"},{"line_number":349,"context_line":"based on the existing Nova database connection url."},{"line_number":350,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_94d96f86","line":347,"range":{"start_line":346,"start_character":48,"end_line":347,"end_character":70},"updated":"2017-02-02 02:23:58.000000000","message":"Again, you already told me to name it \u003cnova database name\u003e_cell0.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":348,"context_line":"will not pass the database connection url on the command line, the name will be"},{"line_number":349,"context_line":"based on the existing Nova database connection url."},{"line_number":350,"context_line":""},{"line_number":351,"context_line":"2. Run the ``map_cell0`` command to create and map cell0: ``nova-manage cell_v2"},{"line_number":352,"context_line":"map_cell0 --database_connection \u003cdatabase connection url\u003e``. The database"},{"line_number":353,"context_line":"connection url is created based on the ``[database]/connection`` setting in the"},{"line_number":354,"context_line":"Nova configuration file if not specified on the command line."},{"line_number":355,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_3440bb07","line":352,"range":{"start_line":351,"start_character":56,"end_line":352,"end_character":59},"updated":"2017-02-02 02:23:58.000000000","message":"Maybe put this into a code block like:\n\nmap cell0::\n\n  ``nova-manage cell_v2 map_cell0 ...``\n\nThe database ....","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"3fd407d6c53a44ff6967d37d973af4f2458468eb","unresolved":false,"context_lines":[{"line_number":348,"context_line":"will not pass the database connection url on the command line, the name will be"},{"line_number":349,"context_line":"based on the existing Nova database connection url."},{"line_number":350,"context_line":""},{"line_number":351,"context_line":"2. Run the ``map_cell0`` command to create and map cell0: ``nova-manage cell_v2"},{"line_number":352,"context_line":"map_cell0 --database_connection \u003cdatabase connection url\u003e``. The database"},{"line_number":353,"context_line":"connection url is created based on the ``[database]/connection`` setting in the"},{"line_number":354,"context_line":"Nova configuration file if not specified on the command line."},{"line_number":355,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_b492ebf4","line":352,"range":{"start_line":351,"start_character":56,"end_line":352,"end_character":59},"in_reply_to":"3a461143_3440bb07","updated":"2017-02-02 02:49:52.000000000","message":"Yeah, it would be easier to read that way (after I looked at the finished formatting from the docs job).","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":361,"context_line":"``[database]/connection`` setting in the Nova configuration file if not"},{"line_number":362,"context_line":"specified on the command line."},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"4. Now you are ready to finish your deployment. After deployment is finished"},{"line_number":365,"context_line":"and you have compute hosts in the database, run the ``discover_hosts`` command"},{"line_number":366,"context_line":"to map compute hosts to the single cell:"},{"line_number":367,"context_line":"``nova-manage cell_v2 discover_hosts``. The command will search for compute"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_d468578a","line":364,"range":{"start_line":364,"start_character":3,"end_line":364,"end_character":46},"updated":"2017-02-02 02:23:58.000000000","message":"Nope, you didn\u0027t tell me to run ``nova-manage db sync`` to sync the cell0 database.\n\nSee: https://review.openstack.org/#/c/427392/","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"3fd407d6c53a44ff6967d37d973af4f2458468eb","unresolved":false,"context_lines":[{"line_number":361,"context_line":"``[database]/connection`` setting in the Nova configuration file if not"},{"line_number":362,"context_line":"specified on the command line."},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"4. Now you are ready to finish your deployment. After deployment is finished"},{"line_number":365,"context_line":"and you have compute hosts in the database, run the ``discover_hosts`` command"},{"line_number":366,"context_line":"to map compute hosts to the single cell:"},{"line_number":367,"context_line":"``nova-manage cell_v2 discover_hosts``. The command will search for compute"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_34b51b7e","line":364,"range":{"start_line":364,"start_character":3,"end_line":364,"end_character":46},"in_reply_to":"3a461143_d468578a","updated":"2017-02-02 02:49:52.000000000","message":"Urgh, right. I got caught up in how simple_cell_setup does the sync.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":362,"context_line":"specified on the command line."},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"4. Now you are ready to finish your deployment. After deployment is finished"},{"line_number":365,"context_line":"and you have compute hosts in the database, run the ``discover_hosts`` command"},{"line_number":366,"context_line":"to map compute hosts to the single cell:"},{"line_number":367,"context_line":"``nova-manage cell_v2 discover_hosts``. The command will search for compute"},{"line_number":368,"context_line":"hosts in the database of the cell you created in step 3 and map them to the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_5413870d","line":365,"updated":"2017-02-02 02:23:58.000000000","message":"With this new periodic task in the scheduler:\n\nhttps://review.openstack.org/#/c/426826/\n\nDan and I have already talked about needing to get something in the cells v2 setup docs (here or above) about making a note of this being an option for automatically discovering hosts so you don\u0027t have to run discover_hosts all the time, which would be particularly useful in an Ironic deployment.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"3fd407d6c53a44ff6967d37d973af4f2458468eb","unresolved":false,"context_lines":[{"line_number":362,"context_line":"specified on the command line."},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"4. Now you are ready to finish your deployment. After deployment is finished"},{"line_number":365,"context_line":"and you have compute hosts in the database, run the ``discover_hosts`` command"},{"line_number":366,"context_line":"to map compute hosts to the single cell:"},{"line_number":367,"context_line":"``nova-manage cell_v2 discover_hosts``. The command will search for compute"},{"line_number":368,"context_line":"hosts in the database of the cell you created in step 3 and map them to the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_34435b6e","line":365,"in_reply_to":"3a461143_5413870d","updated":"2017-02-02 02:49:52.000000000","message":"Okay, that defaults to disabled. So I can explain here that another way is to set [scheduler]/discover_hosts_in_cells_interval to an interval in seconds.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":378,"context_line":"database: \u003cNova database name\u003e_cell0. If your Nova database is named ``nova``,"},{"line_number":379,"context_line":"then your cell0 database should be named ``nova_cell0``."},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"2. Run the ``simple_cell_setup`` command to create and map cell0, create and"},{"line_number":382,"context_line":"map the single cell, and map existing compute hosts and instances to the single"},{"line_number":383,"context_line":"cell: ``nova-manage cell_v2 simple_cell_setup --transport-url \u003ctransport url"},{"line_number":384,"context_line":"for message queue\u003e``. The transport url is taken from the"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_f4b8f3ea","line":381,"range":{"start_line":381,"start_character":13,"end_line":381,"end_character":30},"updated":"2017-02-02 02:23:58.000000000","message":"Details are fuzzy, but a couple of weeks ago we were talking about getting away from using simple_cell_setup since it has become less simple based on what steps you do everything in, like TripleO (deploying computes before controller, etc). So this is probably fine for now, and it\u0027s what we do in grenade:\n\nhttps://github.com/openstack-dev/grenade/blob/master/projects/60_nova/from-newton/upgrade-nova#L18","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"3898577f0c1cda71fd959cec8c737a9405a88d5d","unresolved":false,"context_lines":[{"line_number":386,"context_line":"specified on the command line. The database connection url is taken from the"},{"line_number":387,"context_line":"``[database]/connection`` setting in the Nova configuration file."},{"line_number":388,"context_line":""},{"line_number":389,"context_line":".. note:: In Newton, the ``simple_cell_setup`` command expects the name of the"},{"line_number":390,"context_line":"          cell0 database to be based on the name of the Nova API database:"},{"line_number":391,"context_line":"          \u003cNova API database name\u003e_cell0 and the database connection url is"},{"line_number":392,"context_line":"          taken from the ``[api_database]/connection`` setting in the Nova"},{"line_number":393,"context_line":"          configuration file."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_d49bf770","line":393,"range":{"start_line":389,"start_character":0,"end_line":393,"end_character":29},"updated":"2017-02-02 02:23:58.000000000","message":"So we know what this means, but someone new to this doesn\u0027t. Should this be a warning instead of a note? Should it come earlier in the steps, like before you\u0027ve told me to create the cell0 database and told me to name it based on the non-api db name, i.e. nova_cell0? Or should this mention that if you\u0027re doing this on Newton, to pass --database_connection to simple_cell_setup?","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"3fd407d6c53a44ff6967d37d973af4f2458468eb","unresolved":false,"context_lines":[{"line_number":386,"context_line":"specified on the command line. The database connection url is taken from the"},{"line_number":387,"context_line":"``[database]/connection`` setting in the Nova configuration file."},{"line_number":388,"context_line":""},{"line_number":389,"context_line":".. note:: In Newton, the ``simple_cell_setup`` command expects the name of the"},{"line_number":390,"context_line":"          cell0 database to be based on the name of the Nova API database:"},{"line_number":391,"context_line":"          \u003cNova API database name\u003e_cell0 and the database connection url is"},{"line_number":392,"context_line":"          taken from the ``[api_database]/connection`` setting in the Nova"},{"line_number":393,"context_line":"          configuration file."}],"source_content_type":"text/x-rst","patch_set":1,"id":"3a461143_f4163357","line":393,"range":{"start_line":389,"start_character":0,"end_line":393,"end_character":29},"in_reply_to":"3a461143_d49bf770","updated":"2017-02-02 02:49:52.000000000","message":"Maybe it should be a warning and be right after step 1. simple_cell_setup doesn\u0027t have the --database_connection option, unfortunately. Maybe it\u0027s not worth mentioning simple_cell_setup because of all the if/thens.","commit_id":"75a84e8d70a750faa03e76536dfff01ac2c5f8be"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"b091d1a70cc841cab57fa76531d4d7156ace4781","unresolved":false,"context_lines":[{"line_number":345,"context_line":"~~~~~~~~~~~~~"},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"You are installing Nova for the first time and have no compute hosts in the"},{"line_number":348,"context_line":"database yet. This will set up a single cell Nova deployment."},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"1. Create a database for cell0. If you are going to pass the database"},{"line_number":351,"context_line":"   connection url on the command line in step 2, you can name the cell0"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_527e36e5","line":348,"updated":"2017-02-03 17:37:15.000000000","message":"If this is for a non-upgrade scenario, shouldn\u0027t we either list the steps for getting the api database created and sync\u0027d, or mention that you have to have done that?\n\nAbove you say \"have followed all other steps\" so maybe just the latter is enough, but I think that someone that doesn\u0027t fully understand this process probably won\u0027t know at which point in the process this applies to.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b8e31e8ab7578ccead0043a99f55e5140d9c9bf2","unresolved":false,"context_lines":[{"line_number":345,"context_line":"~~~~~~~~~~~~~"},{"line_number":346,"context_line":""},{"line_number":347,"context_line":"You are installing Nova for the first time and have no compute hosts in the"},{"line_number":348,"context_line":"database yet. This will set up a single cell Nova deployment."},{"line_number":349,"context_line":""},{"line_number":350,"context_line":"1. Create a database for cell0. If you are going to pass the database"},{"line_number":351,"context_line":"   connection url on the command line in step 2, you can name the cell0"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_b8957941","line":348,"in_reply_to":"1a430d35_527e36e5","updated":"2017-02-03 18:17:02.000000000","message":"Yeah, that\u0027s a fair point. Even for an upgrade, the API database needs to be synced first, I think? Maybe doesn\u0027t \"need\" to.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"999124992cfc3495739fd825e59503f33b16d02b","unresolved":false,"context_lines":[{"line_number":364,"context_line":"   ``[database]/connection`` setting in the Nova configuration file if not"},{"line_number":365,"context_line":"   specified on the command line."},{"line_number":366,"context_line":""},{"line_number":367,"context_line":"3. Run ``nova-manage db sync`` to populate the cell0 database with a schema."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"4. Run the ``create_cell`` command to create the single cell::"},{"line_number":370,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_06d80253","line":367,"updated":"2017-02-03 11:38:01.000000000","message":"Nit: its really tempting to explain this reads the database_connection inserted by the above map_cell0 command. That was surprising to me.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"80479564f7902c17b480e9b00140b4af3928eaa6","unresolved":false,"context_lines":[{"line_number":364,"context_line":"   ``[database]/connection`` setting in the Nova configuration file if not"},{"line_number":365,"context_line":"   specified on the command line."},{"line_number":366,"context_line":""},{"line_number":367,"context_line":"3. Run ``nova-manage db sync`` to populate the cell0 database with a schema."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"4. Run the ``create_cell`` command to create the single cell::"},{"line_number":370,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_756de131","line":367,"in_reply_to":"1a430d35_06d80253","updated":"2017-02-03 15:51:51.000000000","message":"Sure, I can add that. Better to explain it fully I think.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"b091d1a70cc841cab57fa76531d4d7156ace4781","unresolved":false,"context_lines":[{"line_number":366,"context_line":""},{"line_number":367,"context_line":"3. Run ``nova-manage db sync`` to populate the cell0 database with a schema."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"4. Run the ``create_cell`` command to create the single cell::"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"     nova-manage cell_v2 create_cell --name \u003cname\u003e --transport-url"},{"line_number":372,"context_line":"     \u003ctransport url for message queue\u003e --database_connection \u003cdatabase"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_12e3cea4","line":369,"updated":"2017-02-03 17:37:15.000000000","message":"Can you add \"...for your hosts\" to the end? Or maybe say \"to create the first cell which will actually contain compute hosts\"?","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b8e31e8ab7578ccead0043a99f55e5140d9c9bf2","unresolved":false,"context_lines":[{"line_number":366,"context_line":""},{"line_number":367,"context_line":"3. Run ``nova-manage db sync`` to populate the cell0 database with a schema."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"4. Run the ``create_cell`` command to create the single cell::"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"     nova-manage cell_v2 create_cell --name \u003cname\u003e --transport-url"},{"line_number":372,"context_line":"     \u003ctransport url for message queue\u003e --database_connection \u003cdatabase"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_588d7530","line":369,"in_reply_to":"1a430d35_12e3cea4","updated":"2017-02-03 18:17:02.000000000","message":"Done","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"b091d1a70cc841cab57fa76531d4d7156ace4781","unresolved":false,"context_lines":[{"line_number":376,"context_line":"   the Nova configuration file if not specified on the command line. The"},{"line_number":377,"context_line":"   database url is taken from the ``[database]/connection`` setting in the Nova"},{"line_number":378,"context_line":"   configuration file if not specified on the command line."},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"5. Now you are ready to finish your deployment. After deployment is finished"},{"line_number":381,"context_line":"   and you have compute hosts in the database, run the ``discover_hosts``"},{"line_number":382,"context_line":"   command to map compute hosts to the single cell::"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_524f1692","line":379,"updated":"2017-02-03 17:37:15.000000000","message":"Maybe put step 5 here, and say \"Now configure and start your computes\"\n\nIt\u0027s implied in step 5 (would be step 6) below, but I think it might be too implicit of a \"you should have stopped at 4 and done a bunch of stuff before returning here for this step\" sort of thing for people that don\u0027t understand the implications.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b8e31e8ab7578ccead0043a99f55e5140d9c9bf2","unresolved":false,"context_lines":[{"line_number":376,"context_line":"   the Nova configuration file if not specified on the command line. The"},{"line_number":377,"context_line":"   database url is taken from the ``[database]/connection`` setting in the Nova"},{"line_number":378,"context_line":"   configuration file if not specified on the command line."},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"5. Now you are ready to finish your deployment. After deployment is finished"},{"line_number":381,"context_line":"   and you have compute hosts in the database, run the ``discover_hosts``"},{"line_number":382,"context_line":"   command to map compute hosts to the single cell::"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_388fc924","line":379,"in_reply_to":"1a430d35_524f1692","updated":"2017-02-03 18:17:02.000000000","message":"Done","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"b091d1a70cc841cab57fa76531d4d7156ace4781","unresolved":false,"context_lines":[{"line_number":397,"context_line":""},{"line_number":398,"context_line":"1. Create a database for cell0 with a name based on the name of your Nova"},{"line_number":399,"context_line":"   database: \u003cNova database name\u003e_cell0. If your Nova database is named"},{"line_number":400,"context_line":"   ``nova``, then your cell0 database should be named ``nova_cell0``."},{"line_number":401,"context_line":""},{"line_number":402,"context_line":".. warning:: In Newton, the ``simple_cell_setup`` command expects the name of"},{"line_number":403,"context_line":"             the cell0 database to be based on the name of the Nova API"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_950ec832","line":400,"updated":"2017-02-03 17:37:15.000000000","message":"They already had to have this for newton didn\u0027t they? I might be losing track of the timing. If we do need this, I think you should specifically call out the releases this applies to, as this will not apply to an upgrade process from O-\u003eP.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b8e31e8ab7578ccead0043a99f55e5140d9c9bf2","unresolved":false,"context_lines":[{"line_number":397,"context_line":""},{"line_number":398,"context_line":"1. Create a database for cell0 with a name based on the name of your Nova"},{"line_number":399,"context_line":"   database: \u003cNova database name\u003e_cell0. If your Nova database is named"},{"line_number":400,"context_line":"   ``nova``, then your cell0 database should be named ``nova_cell0``."},{"line_number":401,"context_line":""},{"line_number":402,"context_line":".. warning:: In Newton, the ``simple_cell_setup`` command expects the name of"},{"line_number":403,"context_line":"             the cell0 database to be based on the name of the Nova API"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_d8f5e583","line":400,"in_reply_to":"1a430d35_950ec832","updated":"2017-02-03 18:17:02.000000000","message":"I thought ocata is the first time the cell0 database is required? They could have done it optionally in newton though, so maybe this should say, \"If you don\u0027t already have a cell0 database, ...\"","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"1d5cb25f3afb15de7ff82824acd395ade334f58c","unresolved":false,"context_lines":[{"line_number":397,"context_line":""},{"line_number":398,"context_line":"1. Create a database for cell0 with a name based on the name of your Nova"},{"line_number":399,"context_line":"   database: \u003cNova database name\u003e_cell0. If your Nova database is named"},{"line_number":400,"context_line":"   ``nova``, then your cell0 database should be named ``nova_cell0``."},{"line_number":401,"context_line":""},{"line_number":402,"context_line":".. warning:: In Newton, the ``simple_cell_setup`` command expects the name of"},{"line_number":403,"context_line":"             the cell0 database to be based on the name of the Nova API"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_d8d885f2","line":400,"in_reply_to":"1a430d35_d8f5e583","updated":"2017-02-03 18:19:04.000000000","message":"Might be, but either way, I\u0027d call out the release whatever it is. We\u0027ll forget to change this for pike and then it\u0027ll be wrong.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"999124992cfc3495739fd825e59503f33b16d02b","unresolved":false,"context_lines":[{"line_number":416,"context_line":"   the Nova configuration file if not specified on the command line. The"},{"line_number":417,"context_line":"   database connection url will be generated based on the"},{"line_number":418,"context_line":"   ``[database]/connection`` setting in the Nova configuration file."},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"References"},{"line_number":421,"context_line":"~~~~~~~~~~"},{"line_number":422,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_11991a6f","line":419,"updated":"2017-02-03 11:38:01.000000000","message":"Do we want to add a note about adding hosts and needing to call discover_hosts again, or did we land the patch to fix that up already?","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"80479564f7902c17b480e9b00140b4af3928eaa6","unresolved":false,"context_lines":[{"line_number":416,"context_line":"   the Nova configuration file if not specified on the command line. The"},{"line_number":417,"context_line":"   database connection url will be generated based on the"},{"line_number":418,"context_line":"   ``[database]/connection`` setting in the Nova configuration file."},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"References"},{"line_number":421,"context_line":"~~~~~~~~~~"},{"line_number":422,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_b54e69bf","line":419,"in_reply_to":"1a430d35_11991a6f","updated":"2017-02-03 15:51:51.000000000","message":"Also a good idea. We did land the periodic discover_hosts patch but you have to enable it in the nova.conf, so this should explain those options.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"b091d1a70cc841cab57fa76531d4d7156ace4781","unresolved":false,"context_lines":[{"line_number":416,"context_line":"   the Nova configuration file if not specified on the command line. The"},{"line_number":417,"context_line":"   database connection url will be generated based on the"},{"line_number":418,"context_line":"   ``[database]/connection`` setting in the Nova configuration file."},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"References"},{"line_number":421,"context_line":"~~~~~~~~~~"},{"line_number":422,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_d53770e1","line":419,"in_reply_to":"1a430d35_b54e69bf","updated":"2017-02-03 17:37:15.000000000","message":"The simple_cell_setup will discover hosts right? Are you talking about if, after the upgrade, I add more hosts?\n\nIf so, that applies to general running and not the upgrades, so I think it would be strange to have that here.","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b8e31e8ab7578ccead0043a99f55e5140d9c9bf2","unresolved":false,"context_lines":[{"line_number":416,"context_line":"   the Nova configuration file if not specified on the command line. The"},{"line_number":417,"context_line":"   database connection url will be generated based on the"},{"line_number":418,"context_line":"   ``[database]/connection`` setting in the Nova configuration file."},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"References"},{"line_number":421,"context_line":"~~~~~~~~~~"},{"line_number":422,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1a430d35_780cf194","line":419,"in_reply_to":"1a430d35_d53770e1","updated":"2017-02-03 18:17:02.000000000","message":"Yeah, simple_cell_setup discovers hosts. And yes, talking about the need to discover_hosts when new hosts are added (or otherwise using the periodic task).\n\nYeah ... I guess maybe that\u0027s why I didn\u0027t mention it here. I dunno, maybe I could say \"Remember to discover_hosts when you add new hosts or use the periodic task ...\"","commit_id":"d4c0da83482d1f487495b2dbdd6896c9167c3273"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"9ce36e2ab3f6e891c389cad3292d69aa9b0a4f0a","unresolved":false,"context_lines":[{"line_number":362,"context_line":""},{"line_number":363,"context_line":"3. Run the ``map_cell0`` command to create and map cell0::"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"     nova-manage cell_v2 map_cell0 --database_connection \u003cdatabase connection"},{"line_number":366,"context_line":"     url\u003e"},{"line_number":367,"context_line":""},{"line_number":368,"context_line":"   The database connection url is generated based on the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_7a7d7ce6","line":365,"updated":"2017-02-06 18:34:06.000000000","message":"Could put this in ``code`` blocks.","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b86b48950f2a1000602e9ce30a03a8279e4fa950","unresolved":false,"context_lines":[{"line_number":362,"context_line":""},{"line_number":363,"context_line":"3. Run the ``map_cell0`` command to create and map cell0::"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"     nova-manage cell_v2 map_cell0 --database_connection \u003cdatabase connection"},{"line_number":366,"context_line":"     url\u003e"},{"line_number":367,"context_line":""},{"line_number":368,"context_line":"   The database connection url is generated based on the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_8e3a84e5","line":365,"in_reply_to":"1a430d35_7a7d7ce6","updated":"2017-02-08 18:43:58.000000000","message":"Okay. I thought the :: block made it like ``code`` already.","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"9ce36e2ab3f6e891c389cad3292d69aa9b0a4f0a","unresolved":false,"context_lines":[{"line_number":363,"context_line":"3. Run the ``map_cell0`` command to create and map cell0::"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"     nova-manage cell_v2 map_cell0 --database_connection \u003cdatabase connection"},{"line_number":366,"context_line":"     url\u003e"},{"line_number":367,"context_line":""},{"line_number":368,"context_line":"   The database connection url is generated based on the"},{"line_number":369,"context_line":"   ``[database]/connection`` setting in the Nova configuration file if not"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_fa224c00","line":366,"updated":"2017-02-06 18:34:06.000000000","message":"You don\u0027t need to wrap this and it renders that way which looks weird:\n\nhttp://docs-draft.openstack.org/81/427981/3/check/gate-nova-docs-ubuntu-xenial/5bfdae9//doc/build/html/cells.html#fresh-install","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b86b48950f2a1000602e9ce30a03a8279e4fa950","unresolved":false,"context_lines":[{"line_number":363,"context_line":"3. Run the ``map_cell0`` command to create and map cell0::"},{"line_number":364,"context_line":""},{"line_number":365,"context_line":"     nova-manage cell_v2 map_cell0 --database_connection \u003cdatabase connection"},{"line_number":366,"context_line":"     url\u003e"},{"line_number":367,"context_line":""},{"line_number":368,"context_line":"   The database connection url is generated based on the"},{"line_number":369,"context_line":"   ``[database]/connection`` setting in the Nova configuration file if not"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_ae3d80de","line":366,"in_reply_to":"1a430d35_fa224c00","updated":"2017-02-08 18:43:58.000000000","message":"Done","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"9ce36e2ab3f6e891c389cad3292d69aa9b0a4f0a","unresolved":false,"context_lines":[{"line_number":376,"context_line":"5. Run the ``create_cell`` command to create the single cell which will contain"},{"line_number":377,"context_line":"   your compute hosts::"},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"     nova-manage cell_v2 create_cell --name \u003cname\u003e --transport-url"},{"line_number":380,"context_line":"     \u003ctransport url for message queue\u003e --database_connection \u003cdatabase"},{"line_number":381,"context_line":"     connection url\u003e"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"   The transport url is taken from the ``[DEFAULT]/transport_url`` setting in"},{"line_number":384,"context_line":"   the Nova configuration file if not specified on the command line. The"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_7af2dc70","line":381,"range":{"start_line":379,"start_character":5,"end_line":381,"end_character":20},"updated":"2017-02-06 18:34:06.000000000","message":"nit: instead of wrapping I\u0027d use \\ like you would in a bash script, but that\u0027s very minor.","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b86b48950f2a1000602e9ce30a03a8279e4fa950","unresolved":false,"context_lines":[{"line_number":376,"context_line":"5. Run the ``create_cell`` command to create the single cell which will contain"},{"line_number":377,"context_line":"   your compute hosts::"},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"     nova-manage cell_v2 create_cell --name \u003cname\u003e --transport-url"},{"line_number":380,"context_line":"     \u003ctransport url for message queue\u003e --database_connection \u003cdatabase"},{"line_number":381,"context_line":"     connection url\u003e"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"   The transport url is taken from the ``[DEFAULT]/transport_url`` setting in"},{"line_number":384,"context_line":"   the Nova configuration file if not specified on the command line. The"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_ce280c9d","line":381,"range":{"start_line":379,"start_character":5,"end_line":381,"end_character":20},"in_reply_to":"1a430d35_7af2dc70","updated":"2017-02-08 18:43:58.000000000","message":"Done","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":23811,"name":"Oliver Walsh","email":"owalsh@redhat.com","username":"owalsh"},"change_message_id":"a33134782b857336fea258b8364552e7254f03bf","unresolved":false,"context_lines":[{"line_number":387,"context_line":""},{"line_number":388,"context_line":"6. Configure and start your compute hosts."},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"7. Run the ``discover_hosts`` command to map compute hosts to the single cell::"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"     nova-manage cell_v2 discover_hosts"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_7e1bc61b","line":390,"updated":"2017-02-06 11:12:12.000000000","message":"maybe should mention running \u0027nova hypervisor-list\u0027 to check the hosts exists in the DB before running discovery","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b86b48950f2a1000602e9ce30a03a8279e4fa950","unresolved":false,"context_lines":[{"line_number":387,"context_line":""},{"line_number":388,"context_line":"6. Configure and start your compute hosts."},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"7. Run the ``discover_hosts`` command to map compute hosts to the single cell::"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"     nova-manage cell_v2 discover_hosts"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_d1a6edac","line":390,"in_reply_to":"1a430d35_1a9558dd","updated":"2017-02-08 18:43:58.000000000","message":"It looks like the compute hosts should be all added by the time service.start() returns [1]. And service.start() is called and waited on in oslo.service eventually through service.serve(), which is in nova/cmd/compute.py.\n\n[1] https://github.com/openstack/nova/blob/ecc8de8/nova/service.py#L162","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b86b48950f2a1000602e9ce30a03a8279e4fa950","unresolved":false,"context_lines":[{"line_number":387,"context_line":""},{"line_number":388,"context_line":"6. Configure and start your compute hosts."},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"7. Run the ``discover_hosts`` command to map compute hosts to the single cell::"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"     nova-manage cell_v2 discover_hosts"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_910b857c","line":390,"in_reply_to":"1a430d35_7e1bc61b","updated":"2017-02-08 18:43:58.000000000","message":"Done","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"9ce36e2ab3f6e891c389cad3292d69aa9b0a4f0a","unresolved":false,"context_lines":[{"line_number":387,"context_line":""},{"line_number":388,"context_line":"6. Configure and start your compute hosts."},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"7. Run the ``discover_hosts`` command to map compute hosts to the single cell::"},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"     nova-manage cell_v2 discover_hosts"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_1a9558dd","line":390,"in_reply_to":"1a430d35_7e1bc61b","updated":"2017-02-06 18:34:06.000000000","message":"Yeah, I was going to say something about step 6. I would have to check, but does the resource tracker create the compute_nodes table record before init_host completes and the service is considered \u0027started\u0027? If so, then running discover_hosts should be OK at this point.\n\nIt looks like the pre_start_hook() method is what calls the resource tracker which is what would create the compute nodes.\n\nSo I\u0027m not totally sure here, i.e. if someone is scripting this, will they map the compute_nodes if they call discover_hosts immediately after starting the nova-compute services?","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"9ce36e2ab3f6e891c389cad3292d69aa9b0a4f0a","unresolved":false,"context_lines":[{"line_number":392,"context_line":"     nova-manage cell_v2 discover_hosts"},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"   The command will search for compute hosts in the database of the cell you"},{"line_number":395,"context_line":"   created in step 5 and map them to the cell. You can also configure a"},{"line_number":396,"context_line":"   periodic task to have Nova discover new hosts automatically by setting"},{"line_number":397,"context_line":"   the ``[scheduler]/discover_hosts_in_cells_interval`` to a time interval in"},{"line_number":398,"context_line":"   seconds."},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"Upgrade (minimal)"},{"line_number":401,"context_line":"~~~~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_3a2cd4aa","line":398,"range":{"start_line":395,"start_character":47,"end_line":398,"end_character":11},"updated":"2017-02-06 18:34:06.000000000","message":"Do we want to point out that this is only used in the nova-scheduler service? Since that might be on a separate node. Maybe I\u0027m over-thinking this though which gets it away from the simple nature we\u0027re going for.","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"b86b48950f2a1000602e9ce30a03a8279e4fa950","unresolved":false,"context_lines":[{"line_number":392,"context_line":"     nova-manage cell_v2 discover_hosts"},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"   The command will search for compute hosts in the database of the cell you"},{"line_number":395,"context_line":"   created in step 5 and map them to the cell. You can also configure a"},{"line_number":396,"context_line":"   periodic task to have Nova discover new hosts automatically by setting"},{"line_number":397,"context_line":"   the ``[scheduler]/discover_hosts_in_cells_interval`` to a time interval in"},{"line_number":398,"context_line":"   seconds."},{"line_number":399,"context_line":""},{"line_number":400,"context_line":"Upgrade (minimal)"},{"line_number":401,"context_line":"~~~~~~~~~~~~~~~~~"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1a430d35_717ff9df","line":398,"range":{"start_line":395,"start_character":47,"end_line":398,"end_character":11},"in_reply_to":"1a430d35_3a2cd4aa","updated":"2017-02-08 18:43:58.000000000","message":"I realized I probably should have mentioned that after I re-read it later. I thought maybe [scheduler] is indication enough, but it can\u0027t hurt to call it out.","commit_id":"dd198d11f8d7a5211d5e8ff27d6dacdb54056a43"}]}
