)]}'
{"rally/task/utils.py":[{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"66abd277ccc947d5715252fc6d83bfe854eb82ab","unresolved":false,"context_lines":[{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    start \u003d time.time()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    latest_status \u003d get_status(resource, status_attr)"},{"line_number":208,"context_line":"    latest_status_update \u003d start"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"    while True:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_e641cc0c","side":"PARENT","line":207,"updated":"2015-10-14 13:22:22.000000000","message":"what about this:\n\nlatest_status \u003d None\n\nThis could make the first request happen in try-except below and keep codes not so complicated","commit_id":"96008884d793035feadb1a579035298c853adcad"},{"author":{"_account_id":13962,"name":"Victor Ryzhenkin","email":"vryzhenkin@mirantis.com","username":"vryzhenkin"},"change_message_id":"27a1e62440f9fb7a30cf457850fb7a9ca7afe9ef","unresolved":false,"context_lines":[{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    start \u003d time.time()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    latest_status \u003d get_status(resource, status_attr)"},{"line_number":208,"context_line":"    latest_status_update \u003d start"},{"line_number":209,"context_line":""},{"line_number":210,"context_line":"    while True:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_8b21f3b6","side":"PARENT","line":207,"in_reply_to":"5a2ca52d_e641cc0c","updated":"2015-10-14 17:49:16.000000000","message":"This can be true, I think.","commit_id":"96008884d793035feadb1a579035298c853adcad"},{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"ea71ebdc29e4642ec72048118d0366d61bea4c96","unresolved":false,"context_lines":[{"line_number":205,"context_line":"    start \u003d time.time()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    # If resource deleted before this code block start executing"},{"line_number":208,"context_line":"    # rally will catch a NotFound exception"},{"line_number":209,"context_line":"    try:"},{"line_number":210,"context_line":"        resource \u003d update_resource(resource)"},{"line_number":211,"context_line":"        latest_status \u003d get_status(resource, status_attr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_62095195","line":208,"range":{"start_line":208,"start_character":6,"end_line":208,"end_character":11},"updated":"2015-10-13 17:17:29.000000000","message":"it doesn\u0027t work (maybe I\u0027m wrong):\n\nthe \u0027resource\u0027 instance is passed as argument from function call, which is initialized by create api or get api. If you get status from this instance you won\u0027t got 404 error because this instance represent the moment calling create api, for example\n\n# nova scenario\u0027s boot and delete\n\nserver \u003d nova.boot(....) \n\nserver \u003d wait_for_status(...status\u003d[\"ACTIVE\"]...) # server.status \u003d active\n\nserver.delete() # server.status \u003d active\n\nwait_for_status(server.....)\n\n\n# task/utils.py\n\ndef wati_for_status(resource .... )\n\n# the first time when resource is used\n\nlatest_status \u003d get_status(resource, status_attr) # server.status \u003d active\n\nso this line won\u0027t raise 404 in theory","commit_id":"5ba62d27367d4f4669fd0dfe64d47b252ca4fdde"},{"author":{"_account_id":13962,"name":"Victor Ryzhenkin","email":"vryzhenkin@mirantis.com","username":"vryzhenkin"},"change_message_id":"b3c15cb103697122f5ccd2d2f3f6ef14e0e0d003","unresolved":false,"context_lines":[{"line_number":205,"context_line":"    start \u003d time.time()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    # If resource deleted before this code block start executing"},{"line_number":208,"context_line":"    # rally will catch a NotFound exception"},{"line_number":209,"context_line":"    try:"},{"line_number":210,"context_line":"        resource \u003d update_resource(resource)"},{"line_number":211,"context_line":"        latest_status \u003d get_status(resource, status_attr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_80fca53f","line":208,"in_reply_to":"5a2ca52d_62095195","updated":"2015-10-13 18:02:13.000000000","message":"Unfortunately, it theory. \nHere is example, where this happened. \nThis is not nova, ofc.\nhttp://logs.openstack.org/21/233721/1/check/gate-rally-dsvm-murano-task/b064ccd/","commit_id":"5ba62d27367d4f4669fd0dfe64d47b252ca4fdde"},{"author":{"_account_id":6835,"name":"Kun Huang","email":"gareth@openstacker.org","username":"academicgareth"},"change_message_id":"b8e13a20bad0488ac74b4dad6e3dee80afe61d4e","unresolved":false,"context_lines":[{"line_number":205,"context_line":"    start \u003d time.time()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    # If resource deleted before this code block start executing"},{"line_number":208,"context_line":"    # rally will catch a NotFound exception"},{"line_number":209,"context_line":"    try:"},{"line_number":210,"context_line":"        resource \u003d update_resource(resource)"},{"line_number":211,"context_line":"        latest_status \u003d get_status(resource, status_attr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_cd315f0d","line":208,"in_reply_to":"5a2ca52d_80fca53f","updated":"2015-10-14 06:50:29.000000000","message":"found that, this error happens randomly or on each time?","commit_id":"5ba62d27367d4f4669fd0dfe64d47b252ca4fdde"},{"author":{"_account_id":13962,"name":"Victor Ryzhenkin","email":"vryzhenkin@mirantis.com","username":"vryzhenkin"},"change_message_id":"350d60f3bcd34aa8ffafd0e8694fa8ee04d7e31f","unresolved":false,"context_lines":[{"line_number":205,"context_line":"    start \u003d time.time()"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    # If resource deleted before this code block start executing"},{"line_number":208,"context_line":"    # rally will catch a NotFound exception"},{"line_number":209,"context_line":"    try:"},{"line_number":210,"context_line":"        resource \u003d update_resource(resource)"},{"line_number":211,"context_line":"        latest_status \u003d get_status(resource, status_attr)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_b579c195","line":208,"in_reply_to":"5a2ca52d_cd315f0d","updated":"2015-10-14 11:58:14.000000000","message":"each time \u003d( and this one reproduced locally..","commit_id":"5ba62d27367d4f4669fd0dfe64d47b252ca4fdde"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"30b240e301738b7259ab75afed83ce00ae74e27c","unresolved":false,"context_lines":[{"line_number":207,"context_line":"    # If resource deleted before this code block start executing"},{"line_number":208,"context_line":"    # rally will catch a NotFound exception"},{"line_number":209,"context_line":"    try:"},{"line_number":210,"context_line":"        resource \u003d update_resource(resource)"},{"line_number":211,"context_line":"        latest_status \u003d get_status(resource, status_attr)"},{"line_number":212,"context_line":"        latest_status_update \u003d start"},{"line_number":213,"context_line":"    except exceptions.GetResourceNotFound:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_321730a5","line":210,"updated":"2015-10-13 15:45:33.000000000","message":"why this line is required?","commit_id":"5ba62d27367d4f4669fd0dfe64d47b252ca4fdde"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"d9294e4498766b0b9ed3bb517c5dca25fd2dcc62","unresolved":false,"context_lines":[{"line_number":207,"context_line":"    # If resource deleted before this code block start executing"},{"line_number":208,"context_line":"    # rally will catch a NotFound exception"},{"line_number":209,"context_line":"    try:"},{"line_number":210,"context_line":"        resource \u003d update_resource(resource)"},{"line_number":211,"context_line":"        latest_status \u003d get_status(resource, status_attr)"},{"line_number":212,"context_line":"        latest_status_update \u003d start"},{"line_number":213,"context_line":"    except exceptions.GetResourceNotFound:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_743e868d","line":210,"in_reply_to":"5a2ca52d_20bb5174","updated":"2015-10-15 16:22:57.000000000","message":"so and what is the difference between exactly this line  and the line of 221 which will happen as well","commit_id":"5ba62d27367d4f4669fd0dfe64d47b252ca4fdde"},{"author":{"_account_id":13962,"name":"Victor Ryzhenkin","email":"vryzhenkin@mirantis.com","username":"vryzhenkin"},"change_message_id":"b3c15cb103697122f5ccd2d2f3f6ef14e0e0d003","unresolved":false,"context_lines":[{"line_number":207,"context_line":"    # If resource deleted before this code block start executing"},{"line_number":208,"context_line":"    # rally will catch a NotFound exception"},{"line_number":209,"context_line":"    try:"},{"line_number":210,"context_line":"        resource \u003d update_resource(resource)"},{"line_number":211,"context_line":"        latest_status \u003d get_status(resource, status_attr)"},{"line_number":212,"context_line":"        latest_status_update \u003d start"},{"line_number":213,"context_line":"    except exceptions.GetResourceNotFound:"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a2ca52d_20bb5174","line":210,"in_reply_to":"5a2ca52d_321730a5","updated":"2015-10-13 18:02:13.000000000","message":"Just simple verification, that resource still exist. \nExactly this line can throw an exception GetResourceNotFound.","commit_id":"5ba62d27367d4f4669fd0dfe64d47b252ca4fdde"}]}
