----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/66980/#review202557 -----------------------------------------------------------
Ship it! Ship It! - David McLaughlin On May 7, 2018, 5:07 a.m., Jing Chen wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/66980/ > ----------------------------------------------------------- > > (Updated May 7, 2018, 5:07 a.m.) > > > Review request for Aurora, Renan DelValle and Stephan Erb. > > > Bugs: AURORA-1906 > https://issues.apache.org/jira/browse/AURORA-1906 > > > Repository: aurora > > > Description > ------- > > aurora update info command should print out update metadata > * Metadata is represented as a list of key value pair > > > Diffs > ----- > > src/main/python/apache/aurora/client/cli/update.py > 7abc5d1f124025e1dcd87acc1b767b4920c5a268 > src/test/python/apache/aurora/client/cli/test_supdate.py > a3bb5b931cf790d1bbbce7b2d26ce8b7363107ae > > > Diff: https://reviews.apache.org/r/66980/diff/1/ > > > Testing > ------- > > ./pants test src/test/python/apache/aurora/client/cli:cli > > For example, > > JSON output: > ``` > { > "status": "ROLLED_FORWARD", > "started": 1525654336187, > "update_events": [ > { > "status": "ROLLING_FORWARD", > "timestampMs": 1525654336187 > }, > { > "status": "ROLLED_FORWARD", > "timestampMs": 1525654384329 > } > ], > "job": "devcluster/www-data/devel/hello_world", > "last_modified": "2018-05-07T00:53:04", > "updateId": "b88218c4-43ee-42e6-b688-325ce181d9ee", > "instance_update_events": [ > { > "action": "INSTANCE_UPDATING", > "instance": 0, > "timestamp": 1525654336206 > }, > { > "action": "INSTANCE_UPDATED", > "instance": 0, > "timestamp": 1525654384329 > } > ], > "metadata": [ > { > "org.apache.aurora.client.update_id": > "57bf7161-23eb-4e8a-9d7f-099910a8d9ae" > } > ] > } > ``` > > > Normal output: > ``` > Job: devcluster/www-data/devel/hello_world, UpdateID: > b88218c4-43ee-42e6-b688-325ce181d9ee > Started 2018-05-07T00:52:16, last activity: 2018-05-07T00:53:04 > Current status: ROLLED_FORWARD > Update events: > Status: ROLLING_FORWARD at 2018-05-07T00:52:16 > Status: ROLLED_FORWARD at 2018-05-07T00:53:04 > Instance events: > Instance 0 at 2018-05-07T00:52:16: INSTANCE_UPDATING > Instance 0 at 2018-05-07T00:53:04: INSTANCE_UPDATED > Metadata: > org.apache.aurora.client.update_id: 57bf7161-23eb-4e8a-9d7f-099910a8d9ae > ``` > > > Thanks, > > Jing Chen > >