arkime / aws-aio

Apache License 2.0
8 stars 3 forks source link

Added --config-version to the config-update command #145

Closed chelma closed 8 months ago

chelma commented 8 months ago

Description

Tasks

Testing

(.venv) chelma@3c22fba4e266 aws-aio % ./manage_arkime.py config-list --cluster-name MyCluster --viewer --deployed
2023-12-21 05:43:10 - Debug-level logs save to file: /Users/chelma/workspace/Arkime/aws-aio/manage_arkime/manage_arkime.log
2023-12-21 05:43:10 - Using AWS Credential Profile: None
2023-12-21 05:43:10 - Using AWS Region: default from AWS Config settings
2023-12-21 05:43:10 - Retrieving config details...
2023-12-21 05:43:11 - Config Details:
{
    "current": {
        "s3": {
            "bucket": "arkimeconfig-XXXXXXXXXXXX-us-east-2-mycluster",
            "key": "viewer/5/archive.zip"
        },
        "version": {
            "aws_aio_version": "1",
            "config_version": "5",
            "md5_version": "60b50c3ebdd8b02641d5d412f46519a3",
            "source_version": "v0.1.1-62-gd833c35",
            "time_utc": "2023-09-22 18:44:02"
        }
    },
    "previous": {
        "s3": {
            "bucket": "arkimeconfig-XXXXXXXXXXXX-us-east-2-mycluster",
            "key": "viewer/6/archive.zip"
        },
        "version": {
            "aws_aio_version": "1",
            "config_version": "6",
            "md5_version": "1a3e8232c093b419d590c0709d523759",
            "source_version": "v0.1.1-62-gd833c35",
            "time_utc": "2023-09-22 18:58:36"
        }
    }
}

(.venv) chelma@3c22fba4e266 aws-aio % ./manage_arkime.py config-update --cluster-name MyCluster --viewer --config-version 6
2023-12-21 05:43:39 - Debug-level logs save to file: /Users/chelma/workspace/Arkime/aws-aio/manage_arkime/manage_arkime.log
2023-12-21 05:43:39 - Using AWS Credential Profile: None
2023-12-21 05:43:39 - Using AWS Region: default from AWS Config settings
2023-12-21 05:43:40 - Updating Arkime config for Capture Nodes, if necessary...
2023-12-21 05:43:40 - Skipping Capture Nodes due to user parameters supplied
2023-12-21 05:43:40 - Updating Arkime config for Viewer Nodes, if necessary...
2023-12-21 05:43:40 - Turning Viewer configuration at /Users/chelma/workspace/Arkime/aws-aio/config-MyCluster-XXXXXXXXXXXX-us-east-2/viewer into archive at /Users/chelma/workspace/Arkime/aws-aio/config-MyCluster-XXXXXXXXXXXX-us-east-2/viewer.zip
2023-12-21 05:43:41 - Pulling existing configuration details from Param Store at: /arkime/clusters/MyCluster/viewer-config-details
2023-12-21 05:43:41 - Updating config details in Param Store at: /arkime/clusters/MyCluster/viewer-config-details
2023-12-21 05:43:42 - Bouncing ECS Service MyCluster-ViewerNodes-ServiceD69D759B-48FYEW0I3LsB to pick up the new Arkime config...
2023-12-21 05:43:43 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:43:59 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:44:15 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:44:31 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:44:46 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:45:02 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:45:18 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:45:34 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:45:50 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:46:05 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:46:21 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:46:37 - ECS Service MyCluster-ViewerNodes-ServiceD69D759B-48FYEW0I3LsB bounced successfully

(.venv) chelma@3c22fba4e266 aws-aio % ./manage_arkime.py config-list --cluster-name MyCluster --viewer --deployed
2023-12-21 05:50:04 - Debug-level logs save to file: /Users/chelma/workspace/Arkime/aws-aio/manage_arkime/manage_arkime.log
2023-12-21 05:50:04 - Using AWS Credential Profile: None
2023-12-21 05:50:04 - Using AWS Region: default from AWS Config settings
2023-12-21 05:50:04 - Retrieving config details...
2023-12-21 05:50:05 - Config Details:
{
    "current": {
        "s3": {
            "bucket": "arkimeconfig-XXXXXXXXXXXX-us-east-2-mycluster",
            "key": "viewer/6/archive.zip"
        },
        "version": {
            "aws_aio_version": "1",
            "config_version": "6",
            "md5_version": "1a3e8232c093b419d590c0709d523759",
            "source_version": "v0.1.1-62-gd833c35",
            "time_utc": "2023-09-22 18:58:36"
        }
    },
    "previous": {
        "s3": {
            "bucket": "arkimeconfig-XXXXXXXXXXXX-us-east-2-mycluster",
            "key": "viewer/5/archive.zip"
        },
        "version": {
            "aws_aio_version": "1",
            "config_version": "5",
            "md5_version": "60b50c3ebdd8b02641d5d412f46519a3",
            "source_version": "v0.1.1-62-gd833c35",
            "time_utc": "2023-09-22 18:44:02"
        }
    }
}
(.venv) chelma@3c22fba4e266 aws-aio % ./manage_arkime.py config-update --cluster-name MyCluster --force-bounce
2023-12-21 05:53:00 - Debug-level logs save to file: /Users/chelma/workspace/Arkime/aws-aio/manage_arkime/manage_arkime.log
2023-12-21 05:53:00 - Using AWS Credential Profile: None
2023-12-21 05:53:00 - Using AWS Region: default from AWS Config settings
2023-12-21 05:53:00 - Updating Arkime config for Capture Nodes, if necessary...
2023-12-21 05:53:00 - Turning Capture configuration at /Users/chelma/workspace/Arkime/aws-aio/config-MyCluster-XXXXXXXXXXXX-us-east-2/capture into archive at /Users/chelma/workspace/Arkime/aws-aio/config-MyCluster-XXXXXXXXXXXX-us-east-2/capture.zip
2023-12-21 05:53:00 - Pulling existing configuration details from Param Store at: /arkime/clusters/MyCluster/capture-config-details
2023-12-21 05:53:01 - The local config is the same as what's currently deployed; skipping
2023-12-21 05:53:01 - Bouncing ECS Service MyCluster-CaptureNodes-ServiceD69D759B-fUGX6Dv7dyzs to pick up the new Arkime config...
2023-12-21 05:53:03 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:53:18 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:53:34 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:53:50 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:54:06 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:54:22 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:54:37 - ECS Service MyCluster-CaptureNodes-ServiceD69D759B-fUGX6Dv7dyzs bounced successfully
2023-12-21 05:54:37 - Updating Arkime config for Viewer Nodes, if necessary...
2023-12-21 05:54:37 - Turning Viewer configuration at /Users/chelma/workspace/Arkime/aws-aio/config-MyCluster-XXXXXXXXXXXX-us-east-2/viewer into archive at /Users/chelma/workspace/Arkime/aws-aio/config-MyCluster-XXXXXXXXXXXX-us-east-2/viewer.zip
2023-12-21 05:54:38 - Pulling existing configuration details from Param Store at: /arkime/clusters/MyCluster/viewer-config-details
2023-12-21 05:54:38 - The local config is the same as what's currently deployed; skipping
2023-12-21 05:54:38 - Bouncing ECS Service MyCluster-ViewerNodes-ServiceD69D759B-48FYEW0I3LsB to pick up the new Arkime config...
2023-12-21 05:54:40 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:54:55 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:55:11 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:55:27 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:55:43 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:55:59 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:56:15 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:56:31 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:56:47 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:57:02 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:57:18 - Waiting 15 more seconds for ECS service to finish bouncing...
2023-12-21 05:57:34 - ECS Service MyCluster-ViewerNodes-ServiceD69D759B-48FYEW0I3LsB bounced successfully

License

I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.