)]}'
{"devstack/lib/ironic":[{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"aec80699d28a3c5a5c641ecab61e0cef44b77fd2","unresolved":false,"context_lines":[{"line_number":1793,"context_line":"            adjusted_disk\u003d$(($ironic_node_disk - $ironic_ephemeral_disk))"},{"line_number":1794,"context_line":"            openstack flavor create --ephemeral $ironic_ephemeral_disk --ram $ironic_node_ram --disk $adjusted_disk --vcpus $ironic_node_cpu baremetal"},{"line_number":1795,"context_line":"            if [[ \"$IRONIC_USE_RESOURCE_CLASSES\" \u003d\u003d \"True\" ]]; then"},{"line_number":1796,"context_line":"                openstack flavor set baremetal --property \"resources:CUSTOM_BAREMETAL\"\u003d\"1\""},{"line_number":1797,"context_line":"                openstack flavor set baremetal --property \"resources:DISK_GB\"\u003d\"0\""},{"line_number":1798,"context_line":"                openstack flavor set baremetal --property \"resources:MEMORY_MB\"\u003d\"0\""},{"line_number":1799,"context_line":"                openstack flavor set baremetal --property \"resources:VCPU\"\u003d\"0\""}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"1f1a1f67_34bb8ec5","line":1796,"updated":"2017-07-18 15:57:49.000000000","message":"So, you\u0027re going to run into an ordering thing here. You will want to create the CUSTOM_BAREMETAL resource class in the placement API before running this.\n\nNormally, if an Ironic installation has had its nodes\u0027 resource_class attribute set to CUSTOM_BAREMETAL, then the nova-compute worker (via the Ironic virt driver) will have seen that CUSTOM_BAREMETAL resource class and auto-created it in the placement API. However, here, the nova-compute has not yet been started so that auto-creation hasn\u0027t happened.\n\nTo create the CUSTOM_BAREMETAL resource class in the placement API, do the equivelent of this (taken from Gibi\u0027s script tests):\n\n #! /bin/bash\n source openrc admin admin\n \n echo \u0027get a token\u0027\n TOKEN\u003d`openstack token issue -f value -c id`\n\n echo \u0027create the custom resource class\u0027\n RES_CLASS\u003d\u0027CUSTOM_BAREMETAL\u0027\n \n curl -s -X PUT \\\n -H \"Accept: application/json\" \\\n -H \"Content-Type: application/json\" \\\n -H \"OpenStack-API-Version: placement latest\" \\\n -H \"x-auth-token: $TOKEN\" \\\nhttp://localhost/placement/resource_classes/$RES_CLASS \\\n| python -m json.tool","commit_id":"545fade1604d2a16aab6a3c41e189ba914c5c40f"},{"author":{"_account_id":7,"name":"Jay Pipes","email":"jaypipes@gmail.com","username":"jaypipes"},"change_message_id":"421f5bcf6fbc5902976a51955561af095676091a","unresolved":false,"context_lines":[{"line_number":1798,"context_line":"                openstack flavor set baremetal --property \"resources:MEMORY_MB\"\u003d\"0\""},{"line_number":1799,"context_line":"                openstack flavor set baremetal --property \"resources:VCPU\"\u003d\"0\""},{"line_number":1800,"context_line":"            else"},{"line_number":1801,"context_line":"                openstack flavor set baremetal --property \"cpu_arch\"\u003d\"$ironic_node_arch\""},{"line_number":1802,"context_line":"            fi"},{"line_number":1803,"context_line":""},{"line_number":1804,"context_line":"            if [[ \"$IRONIC_BOOT_MODE\" \u003d\u003d \"uefi\" ]]; then"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"3f1d235d_9abb10e4","line":1801,"updated":"2017-07-11 15:12:13.000000000","message":"FYI, there\u0027s no reason to leave this *off* when using custom resource classes. Leaving it off is no harm, no foul, but it\u0027s not required. CPU architecture is a qualitative thing (trait), not a quantitative thing like resource classes.","commit_id":"545fade1604d2a16aab6a3c41e189ba914c5c40f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fc79f4fa0a995f7b8d5c3b9fe6b0f00d6cad811c","unresolved":false,"context_lines":[{"line_number":1814,"context_line":"            --driver $IRONIC_DEPLOY_DRIVER \\"},{"line_number":1815,"context_line":"            --name $node_name \\"},{"line_number":1816,"context_line":"            --resource-class $IRONIC_DEFAULT_RESOURCE_CLASS \\"},{"line_number":1817,"context_line":"            --property cpu_arch\u003d$ironic_node_arch \\"},{"line_number":1818,"context_line":"            $node_capabilities \\"},{"line_number":1819,"context_line":"            $node_options \\"},{"line_number":1820,"context_line":"            -f value -c uuid)"}],"source_content_type":"application/x-shellscript","patch_set":13,"id":"9f436f4f_bf59155b","line":1817,"updated":"2017-08-10 12:39:33.000000000","message":"not sure why do we still set the cpu_arch.","commit_id":"34a5eb2f65a8e4e778e45de2f4c5dcd54466f42b"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"fc79f4fa0a995f7b8d5c3b9fe6b0f00d6cad811c","unresolved":false,"context_lines":[{"line_number":1907,"context_line":"            start_nova_compute"},{"line_number":1908,"context_line":"        else"},{"line_number":1909,"context_line":"            # NOTE(vsaienko) we enrolling IRONIC_VM_COUNT on each node."},{"line_number":1910,"context_line":"            total_nodes\u003d$(( total_nodes * 2 ))"},{"line_number":1911,"context_line":"        fi"},{"line_number":1912,"context_line":"        wait_for_nova_resources \"count\" $total_nodes"},{"line_number":1913,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":13,"id":"9f436f4f_82ff1a00","line":1910,"updated":"2017-08-10 12:39:33.000000000","message":"are we ok with waiting only on this one?","commit_id":"34a5eb2f65a8e4e778e45de2f4c5dcd54466f42b"},{"author":{"_account_id":13636,"name":"aarefiev","display_name":"Anton","email":"arefyevanton@gmail.com","username":"aarefiev"},"change_message_id":"aee59597c49ee36d58018d76cbe1564b4faa2c24","unresolved":false,"context_lines":[{"line_number":1819,"context_line":"            --driver $IRONIC_DEPLOY_DRIVER \\"},{"line_number":1820,"context_line":"            --name $node_name \\"},{"line_number":1821,"context_line":"            --resource-class $IRONIC_DEFAULT_RESOURCE_CLASS \\"},{"line_number":1822,"context_line":"            --property cpus\u003d$ironic_node_cpu\\"},{"line_number":1823,"context_line":"            --property memory_mb\u003d$ironic_node_ram\\"},{"line_number":1824,"context_line":"            --property local_gb\u003d$ironic_node_disk\\"},{"line_number":1825,"context_line":"            --property cpu_arch\u003d$ironic_node_arch \\"},{"line_number":1826,"context_line":"            $node_capabilities \\"},{"line_number":1827,"context_line":"            $node_options \\"}],"source_content_type":"application/x-shellscript","patch_set":15,"id":"9f436f4f_495a574f","side":"PARENT","line":1824,"range":{"start_line":1822,"start_character":0,"end_line":1824,"end_character":50},"updated":"2017-08-11 11:18:20.000000000","message":"why did you remove mandatory properties, how it would work with empty inventory?","commit_id":"1e6bf0f5c0166c7d5c2d6301ac6b434f58ccc127"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"98a1844807ffd89937ec5f556162668e865072e3","unresolved":false,"context_lines":[{"line_number":1819,"context_line":"            --driver $IRONIC_DEPLOY_DRIVER \\"},{"line_number":1820,"context_line":"            --name $node_name \\"},{"line_number":1821,"context_line":"            --resource-class $IRONIC_DEFAULT_RESOURCE_CLASS \\"},{"line_number":1822,"context_line":"            --property cpus\u003d$ironic_node_cpu\\"},{"line_number":1823,"context_line":"            --property memory_mb\u003d$ironic_node_ram\\"},{"line_number":1824,"context_line":"            --property local_gb\u003d$ironic_node_disk\\"},{"line_number":1825,"context_line":"            --property cpu_arch\u003d$ironic_node_arch \\"},{"line_number":1826,"context_line":"            $node_capabilities \\"},{"line_number":1827,"context_line":"            $node_options \\"}],"source_content_type":"application/x-shellscript","patch_set":15,"id":"9f436f4f_640e6233","side":"PARENT","line":1824,"range":{"start_line":1822,"start_character":0,"end_line":1824,"end_character":50},"in_reply_to":"9f436f4f_495a574f","updated":"2017-08-11 11:20:40.000000000","message":"they are not mandatory any more, that\u0027s the point of the whole resource classes work","commit_id":"1e6bf0f5c0166c7d5c2d6301ac6b434f58ccc127"},{"author":{"_account_id":11297,"name":"Nisha Agarwal","email":"agarwalnisha1980@gmail.com","username":"Nisha"},"change_message_id":"b073098d79da325462daa100ed3635f530fefb90","unresolved":false,"context_lines":[{"line_number":1903,"context_line":"            _clean_ncpu_failure"},{"line_number":1904,"context_line":"            start_nova_compute"},{"line_number":1905,"context_line":"        else"},{"line_number":1906,"context_line":"            # NOTE(vsaienko) we enrolling IRONIC_VM_COUNT on each node. So on subnode"},{"line_number":1907,"context_line":"            # we expect to have 2 x total_cpus"},{"line_number":1908,"context_line":"            total_nodes\u003d$(( total_nodes * 2 ))"},{"line_number":1909,"context_line":"            total_cpus\u003d$(( total_cpus * 2 ))"},{"line_number":1910,"context_line":"        fi"}],"source_content_type":"application/x-shellscript","patch_set":15,"id":"9f436f4f_a4032a73","side":"PARENT","line":1907,"range":{"start_line":1906,"start_character":29,"end_line":1907,"end_character":45},"updated":"2017-08-11 11:36:00.000000000","message":"in this comment IRONIC_VM_COUNT and total cpu count looks related. Not sure if just removing cpu count is ok?","commit_id":"1e6bf0f5c0166c7d5c2d6301ac6b434f58ccc127"},{"author":{"_account_id":11297,"name":"Nisha Agarwal","email":"agarwalnisha1980@gmail.com","username":"Nisha"},"change_message_id":"b073098d79da325462daa100ed3635f530fefb90","unresolved":false,"context_lines":[{"line_number":1890,"context_line":"            if [[ \"$IRONIC_USE_RESOURCE_CLASSES\" \u003d\u003d \"True\" ]]; then"},{"line_number":1891,"context_line":"                local resource_class\u003d${IRONIC_DEFAULT_RESOURCE_CLASS^^}"},{"line_number":1892,"context_line":"                openstack flavor set baremetal --property \"resources:CUSTOM_$resource_class\"\u003d\"1\""},{"line_number":1893,"context_line":"                openstack flavor set baremetal --property \"resources:DISK_GB\"\u003d\"0\""},{"line_number":1894,"context_line":"                openstack flavor set baremetal --property \"resources:MEMORY_MB\"\u003d\"0\""},{"line_number":1895,"context_line":"                openstack flavor set baremetal --property \"resources:VCPU\"\u003d\"0\""},{"line_number":1896,"context_line":"            fi"}],"source_content_type":"application/x-shellscript","patch_set":15,"id":"9f436f4f_c4abce86","line":1893,"range":{"start_line":1893,"start_character":59,"end_line":1893,"end_character":76},"updated":"2017-08-11 11:36:00.000000000","message":"Ironic doesnt understand standard resource classes of Nova, then why we have set them here?","commit_id":"24696cac0ae013fdf712ec4a0a280c7450ca3509"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"77b9b0d7e8d84a22e9797f738c0ec1dd4d365805","unresolved":false,"context_lines":[{"line_number":1890,"context_line":"            if [[ \"$IRONIC_USE_RESOURCE_CLASSES\" \u003d\u003d \"True\" ]]; then"},{"line_number":1891,"context_line":"                local resource_class\u003d${IRONIC_DEFAULT_RESOURCE_CLASS^^}"},{"line_number":1892,"context_line":"                openstack flavor set baremetal --property \"resources:CUSTOM_$resource_class\"\u003d\"1\""},{"line_number":1893,"context_line":"                openstack flavor set baremetal --property \"resources:DISK_GB\"\u003d\"0\""},{"line_number":1894,"context_line":"                openstack flavor set baremetal --property \"resources:MEMORY_MB\"\u003d\"0\""},{"line_number":1895,"context_line":"                openstack flavor set baremetal --property \"resources:VCPU\"\u003d\"0\""},{"line_number":1896,"context_line":"            fi"}],"source_content_type":"application/x-shellscript","patch_set":15,"id":"9f436f4f_8404a64b","line":1893,"range":{"start_line":1893,"start_character":59,"end_line":1893,"end_character":76},"in_reply_to":"9f436f4f_c4abce86","updated":"2017-08-11 11:37:54.000000000","message":"So that the flavor does not require them - see https://specs.openstack.org/openstack/nova-specs/specs/pike/approved/custom-resource-classes-in-flavors.html for explanation (I should probably add some comments here)","commit_id":"24696cac0ae013fdf712ec4a0a280c7450ca3509"},{"author":{"_account_id":11297,"name":"Nisha Agarwal","email":"agarwalnisha1980@gmail.com","username":"Nisha"},"change_message_id":"b073098d79da325462daa100ed3635f530fefb90","unresolved":false,"context_lines":[{"line_number":1891,"context_line":"                local resource_class\u003d${IRONIC_DEFAULT_RESOURCE_CLASS^^}"},{"line_number":1892,"context_line":"                openstack flavor set baremetal --property \"resources:CUSTOM_$resource_class\"\u003d\"1\""},{"line_number":1893,"context_line":"                openstack flavor set baremetal --property \"resources:DISK_GB\"\u003d\"0\""},{"line_number":1894,"context_line":"                openstack flavor set baremetal --property \"resources:MEMORY_MB\"\u003d\"0\""},{"line_number":1895,"context_line":"                openstack flavor set baremetal --property \"resources:VCPU\"\u003d\"0\""},{"line_number":1896,"context_line":"            fi"},{"line_number":1897,"context_line":""}],"source_content_type":"application/x-shellscript","patch_set":15,"id":"9f436f4f_6479c22d","line":1894,"range":{"start_line":1894,"start_character":59,"end_line":1894,"end_character":78},"updated":"2017-08-11 11:36:00.000000000","message":"ditto","commit_id":"24696cac0ae013fdf712ec4a0a280c7450ca3509"},{"author":{"_account_id":11297,"name":"Nisha Agarwal","email":"agarwalnisha1980@gmail.com","username":"Nisha"},"change_message_id":"b073098d79da325462daa100ed3635f530fefb90","unresolved":false,"context_lines":[{"line_number":1892,"context_line":"                openstack flavor set baremetal --property \"resources:CUSTOM_$resource_class\"\u003d\"1\""},{"line_number":1893,"context_line":"                openstack flavor set baremetal --property \"resources:DISK_GB\"\u003d\"0\""},{"line_number":1894,"context_line":"                openstack flavor set baremetal --property \"resources:MEMORY_MB\"\u003d\"0\""},{"line_number":1895,"context_line":"                openstack flavor set baremetal --property \"resources:VCPU\"\u003d\"0\""},{"line_number":1896,"context_line":"            fi"},{"line_number":1897,"context_line":""},{"line_number":1898,"context_line":"            openstack flavor set baremetal --property \"cpu_arch\"\u003d\"$ironic_node_arch\""}],"source_content_type":"application/x-shellscript","patch_set":15,"id":"9f436f4f_0490b642","line":1895,"range":{"start_line":1895,"start_character":59,"end_line":1895,"end_character":73},"updated":"2017-08-11 11:36:00.000000000","message":"ditto","commit_id":"24696cac0ae013fdf712ec4a0a280c7450ca3509"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"898e83009f3c6a7b5d64b63ebb276d1d1f6f1a02","unresolved":false,"context_lines":[{"line_number":1891,"context_line":"            if [[ \"$IRONIC_USE_RESOURCE_CLASSES\" \u003d\u003d \"True\" ]]; then"},{"line_number":1892,"context_line":"                local resource_class\u003d${IRONIC_DEFAULT_RESOURCE_CLASS^^}"},{"line_number":1893,"context_line":"                openstack flavor set baremetal --property \"resources:CUSTOM_$resource_class\"\u003d\"1\""},{"line_number":1894,"context_line":"                openstack flavor set baremetal --property \"resources:DISK_GB\"\u003d\"0\""},{"line_number":1895,"context_line":"                openstack flavor set baremetal --property \"resources:MEMORY_MB\"\u003d\"0\""},{"line_number":1896,"context_line":"                openstack flavor set baremetal --property \"resources:VCPU\"\u003d\"0\""},{"line_number":1897,"context_line":"            fi"}],"source_content_type":"application/x-shellscript","patch_set":17,"id":"9f436f4f_d3f7edd2","line":1894,"range":{"start_line":1894,"start_character":79,"end_line":1894,"end_character":80},"updated":"2017-08-14 07:06:29.000000000","message":"why not set actual resource size here?","commit_id":"97cf249b8eb9ed71833a2b0e6d44729e6be80fb1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"aaf01c0f1c7aa2a9e1d85967a870d7c9238011a6","unresolved":false,"context_lines":[{"line_number":1891,"context_line":"            if [[ \"$IRONIC_USE_RESOURCE_CLASSES\" \u003d\u003d \"True\" ]]; then"},{"line_number":1892,"context_line":"                local resource_class\u003d${IRONIC_DEFAULT_RESOURCE_CLASS^^}"},{"line_number":1893,"context_line":"                openstack flavor set baremetal --property \"resources:CUSTOM_$resource_class\"\u003d\"1\""},{"line_number":1894,"context_line":"                openstack flavor set baremetal --property \"resources:DISK_GB\"\u003d\"0\""},{"line_number":1895,"context_line":"                openstack flavor set baremetal --property \"resources:MEMORY_MB\"\u003d\"0\""},{"line_number":1896,"context_line":"                openstack flavor set baremetal --property \"resources:VCPU\"\u003d\"0\""},{"line_number":1897,"context_line":"            fi"}],"source_content_type":"application/x-shellscript","patch_set":17,"id":"9f436f4f_fdca979e","line":1894,"range":{"start_line":1894,"start_character":79,"end_line":1894,"end_character":80},"in_reply_to":"9f436f4f_d3f7edd2","updated":"2017-08-15 12:30:23.000000000","message":"because this is needed to disable scheduling based on these properties. Non-zero here will stop working in Queens.","commit_id":"97cf249b8eb9ed71833a2b0e6d44729e6be80fb1"}]}
