boto / botocore

The low-level, core functionality of boto3 and the AWS CLI.
Apache License 2.0
1.49k stars 1.09k forks source link

The 'appstream' waiters will always time out because they wait for invalid states #2059

Closed GoneWacko closed 1 year ago

GoneWacko commented 4 years ago

Describe the bug The FleetStarted and FleetStopped waiters for the 'appstream' service wait for the appstream fleet(s) to reach the 'ACTIVE' and 'INACTIVE' states, respectively. However, fleets never reach these states; instead, the states the waiters should be polling for are 'RUNNING' and 'STOPPED'.

Botocore version: botocore-1.16.16

Steps to reproduce E.g. with boto3 (though I believe the issue to be in botocore), and given a running AppStream 2.0 fleet called 'SomeFleetName':

import boto3
waiter = boto3.client('appstream').get_waiter('fleet_stopped')
# This waiter will time out, even when the SomeFleetName fleet has reached the Stopped state many minutes ago.
waiter.wait(Names=['SomeFleetName'])

Expected behavior The FleetStopped waiter should wait for the fleet to reach the 'STOPPED' state, not 'INACTIVE' The FleetStarted waiter should wait for 'RUNNING' rather than 'ACTIVE'. Other failure states should probably be modified as well (e.g. the 'PENDING_ACTIVATE' state should be 'STARTING' instead).

Debug logs Probably of limited use, but as can be seen from this log, the waiter continues to poll the DescribeFleets operation even though the fleet has reached the desired STOPPED state:

>>> import botocore
>>> import botocore.session
>>> botocore.session.Session().set_debug_logger('')
>>> import boto3
>>> waiter = boto3.client('appstream', region_name='eu-central-1').get_waiter('fleet_stopped')
2020-05-25 17:41:53,630 - botocore.hooks - DEBUG - Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2020-05-25 17:41:53,637 - botocore.hooks - DEBUG - Changing event name from before-call.apigateway to before-call.api-gateway
2020-05-25 17:41:53,638 - botocore.hooks - DEBUG - Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2020-05-25 17:41:53,641 - botocore.hooks - DEBUG - Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2020-05-25 17:41:53,641 - botocore.hooks - DEBUG - Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2020-05-25 17:41:53,642 - botocore.hooks - DEBUG - Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2020-05-25 17:41:53,643 - botocore.hooks - DEBUG - Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
2020-05-25 17:41:53,648 - botocore.hooks - DEBUG - Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2020-05-25 17:41:53,649 - botocore.hooks - DEBUG - Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
2020-05-25 17:41:53,649 - botocore.hooks - DEBUG - Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2020-05-25 17:41:53,649 - botocore.hooks - DEBUG - Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
2020-05-25 17:41:53,660 - botocore.credentials - DEBUG - Looking for credentials via: env
2020-05-25 17:41:53,660 - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2020-05-25 17:41:53,660 - botocore.credentials - DEBUG - Looking for credentials via: assume-role-with-web-identity
2020-05-25 17:41:53,660 - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2020-05-25 17:41:53,660 - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2020-05-25 17:41:53,661 - botocore.loaders - DEBUG - Loading JSON file: /home/stijn/.local/lib/python3.8/site-packages/botocore/data/endpoints.json
2020-05-25 17:41:53,665 - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x7fc3980ceaf0>
2020-05-25 17:41:53,669 - botocore.loaders - DEBUG - Loading JSON file: /home/stijn/.local/lib/python3.8/site-packages/botocore/data/appstream/2016-12-01/service-2.json
2020-05-25 17:41:53,671 - botocore.hooks - DEBUG - Event creating-client-class.appstream: calling handler <function add_generate_presigned_url at 0x7fc39811d9d0>
2020-05-25 17:41:53,673 - botocore.endpoint - DEBUG - Setting appstream2 timeout as (60, 60)
2020-05-25 17:41:53,673 - botocore.loaders - DEBUG - Loading JSON file: /home/stijn/.local/lib/python3.8/site-packages/botocore/data/_retry.json
2020-05-25 17:41:53,673 - botocore.client - DEBUG - Registering retry handlers for service: appstream
2020-05-25 17:41:53,677 - botocore.loaders - DEBUG - Loading JSON file: /home/stijn/.local/lib/python3.8/site-packages/botocore/data/appstream/2016-12-01/waiters-2.json
>>> waiter.wait(Names=['testfleet-od'])
2020-05-25 17:42:10,000 - botocore.hooks - DEBUG - Event before-parameter-build.appstream.DescribeFleets: calling handler <function generate_idempotent_uuid at 0x7fc3980f2f70>
2020-05-25 17:42:10,000 - botocore.hooks - DEBUG - Event before-call.appstream.DescribeFleets: calling handler <function inject_api_version_header_if_needed at 0x7fc3980fba60>
2020-05-25 17:42:10,000 - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeFleets) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'PhotonAdminProxyService.DescribeFleets', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.13.16 Python/3.8.3 Linux/5.6.0-1-amd64 Botocore/1.16.16'}, 'body': b'{"Names": ["testfleet-od"]}', 'url': 'https://appstream2.eu-central-1.amazonaws.com/', 'context': {'client_region': 'eu-central-1', 'client_config': <botocore.config.Config object at 0x7fc397d64f70>, 'has_streaming_input': False, 'auth_type': None}}
2020-05-25 17:42:10,001 - botocore.hooks - DEBUG - Event request-created.appstream.DescribeFleets: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fc397d64d90>>
2020-05-25 17:42:10,001 - botocore.hooks - DEBUG - Event choose-signer.appstream.DescribeFleets: calling handler <function set_operation_specific_signer at 0x7fc3980f2e50>
2020-05-25 17:42:10,002 - botocore.auth - DEBUG - Calculating signature using v4 auth.
2020-05-25 17:42:10,002 - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:appstream2.eu-central-1.amazonaws.com
x-amz-date:20200525T154210Z
x-amz-security-token: [snipped for readability]
x-amz-target:PhotonAdminProxyService.DescribeFleets

content-type;host;x-amz-date;x-amz-security-token;x-amz-target
1177438064bc14b1c97d2f16a1f6bb6ad7bcbff1d4eb472bdc7e1b744f84db05
2020-05-25 17:42:10,003 - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20200525T154210Z
20200525/eu-central-1/appstream/aws4_request
d8c7e01b7f9bf0aa3ede3cbea4e4d5cee84b511c83c09ac8c933a25e0a1bc2f9
2020-05-25 17:42:10,003 - botocore.auth - DEBUG - Signature:
24835570d446e6e42adca4a6e352febe3f146f7b3d47029b7c9b670bbcb865bc
2020-05-25 17:42:10,003 - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://appstream2.eu-central-1.amazonaws.com/, headers={'X-Amz-Target': b'PhotonAdminProxyService.DescribeFleets', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'Boto3/1.13.16 Python/3.8.3 Linux/5.6.0-1-amd64 Botocore/1.16.16', 'X-Amz-Date': b'20200525T154210Z', 'X-Amz-Security-Token': b'[snipped for readability]', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIA5RNDTUBK6FW6276L/20200525/eu-central-1/appstream/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=24835570d446e6e42adca4a6e352febe3f146f7b3d47029b7c9b670bbcb865bc', 'Content-Length': '27'}>
2020-05-25 17:42:10,004 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): appstream2.eu-central-1.amazonaws.com:443
2020-05-25 17:42:10,116 - urllib3.connectionpool - DEBUG - https://appstream2.eu-central-1.amazonaws.com:443 "POST / HTTP/1.1" 200 758
2020-05-25 17:42:10,117 - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': '295211ce-249b-4986-b956-b0bae585036e', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '758', 'Date': 'Mon, 25 May 2020 15:42:10 GMT'}
2020-05-25 17:42:10,117 - botocore.parsers - DEBUG - Response body:
b'{"Fleets":[{"Arn":"arn:aws:appstream:eu-central-1:1111111111111:fleet/testfleet-od","ComputeCapacityStatus":{"Available":1,"Desired":1,"InUse":0,"Reserved":0,"Running":1},"CreatedTime":1.590395603645E9,"DisconnectTimeoutInSeconds":900,"DisplayName":"testfleet-od","EnableDefaultInternetAccess":true,"FleetErrors":[],"FleetType":"ON_DEMAND","IdleDisconnectTimeoutInSeconds":900,"ImageArn":"arn:aws:appstream:eu-central-1::image/Amazon-AppStream2-Sample-Image-02-04-2019","ImageName":"Amazon-AppStream2-Sample-Image-02-04-2019","InstanceType":"stream.standard.medium","MaxUserDurationInSeconds":57600,"Name":"testfleet-od","State":"RUNNING","StreamView":"APP","VpcConfig":{"SecurityGroupIds":["sg-871fdee0"],"SubnetIds":["subnet-b005f2fc","subnet-c76d8dbb"]}}]}'
2020-05-25 17:42:10,118 - botocore.hooks - DEBUG - Event needs-retry.appstream.DescribeFleets: calling handler <botocore.retryhandler.RetryHandler object at 0x7fc397d0a940>
2020-05-25 17:42:10,118 - botocore.retryhandler - DEBUG - No retry needed.

[ ... snip more requests like these while the fleet is being stopped ...]

2020-05-25 17:43:40,408 - botocore.hooks - DEBUG - Event before-parameter-build.appstream.DescribeFleets: calling handler <function generate_idempotent_uuid at 0x7fc3980f2f70>
2020-05-25 17:43:40,408 - botocore.hooks - DEBUG - Event before-call.appstream.DescribeFleets: calling handler <function inject_api_version_header_if_needed at 0x7fc3980fba60>
2020-05-25 17:43:40,409 - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeFleets) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'PhotonAdminProxyService.DescribeFleets', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.13.16 Python/3.8.3 Linux/5.6.0-1-amd64 Botocore/1.16.16'}, 'body': b'{"Names": ["testfleet-od"]}', 'url': 'https://appstream2.eu-central-1.amazonaws.com/', 'context': {'client_region': 'eu-central-1', 'client_config': <botocore.config.Config object at 0x7fc397d64f70>, 'has_streaming_input': False, 'auth_type': None}}
2020-05-25 17:43:40,409 - botocore.hooks - DEBUG - Event request-created.appstream.DescribeFleets: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fc397d64d90>>
2020-05-25 17:43:40,409 - botocore.hooks - DEBUG - Event choose-signer.appstream.DescribeFleets: calling handler <function set_operation_specific_signer at 0x7fc3980f2e50>
2020-05-25 17:43:40,410 - botocore.auth - DEBUG - Calculating signature using v4 auth.
2020-05-25 17:43:40,410 - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:appstream2.eu-central-1.amazonaws.com
x-amz-date:20200525T154340Z
x-amz-security-token:[snipped for readability]
x-amz-target:PhotonAdminProxyService.DescribeFleets

content-type;host;x-amz-date;x-amz-security-token;x-amz-target
1177438064bc14b1c97d2f16a1f6bb6ad7bcbff1d4eb472bdc7e1b744f84db05
2020-05-25 17:43:40,410 - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20200525T154340Z
20200525/eu-central-1/appstream/aws4_request
1800bae0dbb254cfa60628fd5ae43ca2a53198e15ebf0b6fd538a7ccfa9ee58e
2020-05-25 17:43:40,410 - botocore.auth - DEBUG - Signature:
f2c242d4327271227ac813efe95b391f1be7cf519b75cff457e185cd623f2b2a
2020-05-25 17:43:40,410 - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://appstream2.eu-central-1.amazonaws.com/, headers={'X-Amz-Target': b'PhotonAdminProxyService.DescribeFleets', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'Boto3/1.13.16 Python/3.8.3 Linux/5.6.0-1-amd64 Botocore/1.16.16', 'X-Amz-Date': b'20200525T154340Z', 'X-Amz-Security-Token': b[snipped for readability]', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIA5RNDTUBK6FW6276L/20200525/eu-central-1/appstream/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=f2c242d4327271227ac813efe95b391f1be7cf519b75cff457e185cd623f2b2a', 'Content-Length': '27'}>
2020-05-25 17:43:40,411 - urllib3.connectionpool - DEBUG - Resetting dropped connection: appstream2.eu-central-1.amazonaws.com
2020-05-25 17:43:40,511 - urllib3.connectionpool - DEBUG - https://appstream2.eu-central-1.amazonaws.com:443 "POST / HTTP/1.1" 200 759
2020-05-25 17:43:40,511 - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': '94b4da78-cbce-4dd0-a972-28385ac1bdf3', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '759', 'Date': 'Mon, 25 May 2020 15:43:40 GMT'}
2020-05-25 17:43:40,511 - botocore.parsers - DEBUG - Response body:
b'{"Fleets":[{"Arn":"arn:aws:appstream:eu-central-1:1111111111111:fleet/testfleet-od","ComputeCapacityStatus":{"Available":1,"Desired":1,"InUse":0,"Reserved":0,"Running":1},"CreatedTime":1.590395603645E9,"DisconnectTimeoutInSeconds":900,"DisplayName":"testfleet-od","EnableDefaultInternetAccess":true,"FleetErrors":[],"FleetType":"ON_DEMAND","IdleDisconnectTimeoutInSeconds":900,"ImageArn":"arn:aws:appstream:eu-central-1::image/Amazon-AppStream2-Sample-Image-02-04-2019","ImageName":"Amazon-AppStream2-Sample-Image-02-04-2019","InstanceType":"stream.standard.medium","MaxUserDurationInSeconds":57600,"Name":"testfleet-od","State":"STOPPING","StreamView":"APP","VpcConfig":{"SecurityGroupIds":["sg-871fdee0"],"SubnetIds":["subnet-b005f2fc","subnet-c76d8dbb"]}}]}'
2020-05-25 17:43:40,512 - botocore.hooks - DEBUG - Event needs-retry.appstream.DescribeFleets: calling handler <botocore.retryhandler.RetryHandler object at 0x7fc397d0a940>
2020-05-25 17:43:40,512 - botocore.retryhandler - DEBUG - No retry needed.

2020-05-25 17:44:10,524 - botocore.hooks - DEBUG - Event before-parameter-build.appstream.DescribeFleets: calling handler <function generate_idempotent_uuid at 0x7fc3980f2f70>
2020-05-25 17:44:10,525 - botocore.hooks - DEBUG - Event before-call.appstream.DescribeFleets: calling handler <function inject_api_version_header_if_needed at 0x7fc3980fba60>
2020-05-25 17:44:10,525 - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeFleets) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'PhotonAdminProxyService.DescribeFleets', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.13.16 Python/3.8.3 Linux/5.6.0-1-amd64 Botocore/1.16.16'}, 'body': b'{"Names": ["testfleet-od"]}', 'url': 'https://appstream2.eu-central-1.amazonaws.com/', 'context': {'client_region': 'eu-central-1', 'client_config': <botocore.config.Config object at 0x7fc397d64f70>, 'has_streaming_input': False, 'auth_type': None}}
2020-05-25 17:44:10,525 - botocore.hooks - DEBUG - Event request-created.appstream.DescribeFleets: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fc397d64d90>>
2020-05-25 17:44:10,526 - botocore.hooks - DEBUG - Event choose-signer.appstream.DescribeFleets: calling handler <function set_operation_specific_signer at 0x7fc3980f2e50>
2020-05-25 17:44:10,526 - botocore.auth - DEBUG - Calculating signature using v4 auth.
2020-05-25 17:44:10,526 - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:appstream2.eu-central-1.amazonaws.com
x-amz-date:20200525T154410Z
x-amz-security-token:[snipped for readability]
x-amz-target:PhotonAdminProxyService.DescribeFleets

content-type;host;x-amz-date;x-amz-security-token;x-amz-target
1177438064bc14b1c97d2f16a1f6bb6ad7bcbff1d4eb472bdc7e1b744f84db05
2020-05-25 17:44:10,526 - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20200525T154410Z
20200525/eu-central-1/appstream/aws4_request
6949f736c736f12c456c996dc15d6ae4f1898dcb54028b76f16e606459efc762
2020-05-25 17:44:10,527 - botocore.auth - DEBUG - Signature:
61896477c7c720ae17ee08cb569b0d2c8cb714f520198324ed8cbd1e51ceb6b1
2020-05-25 17:44:10,527 - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://appstream2.eu-central-1.amazonaws.com/, headers={'X-Amz-Target': b'PhotonAdminProxyService.DescribeFleets', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'Boto3/1.13.16 Python/3.8.3 Linux/5.6.0-1-amd64 Botocore/1.16.16', 'X-Amz-Date': b'20200525T154410Z', 'X-Amz-Security-Token': b'[snipped for readability]', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIA5RNDTUBK6FW6276L/20200525/eu-central-1/appstream/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=61896477c7c720ae17ee08cb569b0d2c8cb714f520198324ed8cbd1e51ceb6b1', 'Content-Length': '27'}>
2020-05-25 17:44:10,528 - urllib3.connectionpool - DEBUG - Resetting dropped connection: appstream2.eu-central-1.amazonaws.com
2020-05-25 17:44:10,626 - urllib3.connectionpool - DEBUG - https://appstream2.eu-central-1.amazonaws.com:443 "POST / HTTP/1.1" 200 758
2020-05-25 17:44:10,626 - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': '62c712ff-8f38-4cce-96f4-f8a547845da7', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '758', 'Date': 'Mon, 25 May 2020 15:44:10 GMT'}
2020-05-25 17:44:10,627 - botocore.parsers - DEBUG - Response body:
b'{"Fleets":[{"Arn":"arn:aws:appstream:eu-central-1:1111111111111:fleet/testfleet-od","ComputeCapacityStatus":{"Available":0,"Desired":1,"InUse":0,"Reserved":0,"Running":0},"CreatedTime":1.590395603645E9,"DisconnectTimeoutInSeconds":900,"DisplayName":"testfleet-od","EnableDefaultInternetAccess":true,"FleetErrors":[],"FleetType":"ON_DEMAND","IdleDisconnectTimeoutInSeconds":900,"ImageArn":"arn:aws:appstream:eu-central-1::image/Amazon-AppStream2-Sample-Image-02-04-2019","ImageName":"Amazon-AppStream2-Sample-Image-02-04-2019","InstanceType":"stream.standard.medium","MaxUserDurationInSeconds":57600,"Name":"testfleet-od","State":"STOPPED","StreamView":"APP","VpcConfig":{"SecurityGroupIds":["sg-871fdee0"],"SubnetIds":["subnet-b005f2fc","subnet-c76d8dbb"]}}]}'
2020-05-25 17:44:10,627 - botocore.hooks - DEBUG - Event needs-retry.appstream.DescribeFleets: calling handler <botocore.retryhandler.RetryHandler object at 0x7fc397d0a940>
2020-05-25 17:44:10,627 - botocore.retryhandler - DEBUG - No retry needed.

2020-05-25 17:44:40,654 - botocore.hooks - DEBUG - Event before-parameter-build.appstream.DescribeFleets: calling handler <function generate_idempotent_uuid at 0x7fc3980f2f70>
2020-05-25 17:44:40,654 - botocore.hooks - DEBUG - Event before-call.appstream.DescribeFleets: calling handler <function inject_api_version_header_if_needed at 0x7fc3980fba60>
2020-05-25 17:44:40,654 - botocore.endpoint - DEBUG - Making request for OperationModel(name=DescribeFleets) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'PhotonAdminProxyService.DescribeFleets', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.13.16 Python/3.8.3 Linux/5.6.0-1-amd64 Botocore/1.16.16'}, 'body': b'{"Names": ["testfleet-od"]}', 'url': 'https://appstream2.eu-central-1.amazonaws.com/', 'context': {'client_region': 'eu-central-1', 'client_config': <botocore.config.Config object at 0x7fc397d64f70>, 'has_streaming_input': False, 'auth_type': None}}
2020-05-25 17:44:40,655 - botocore.hooks - DEBUG - Event request-created.appstream.DescribeFleets: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7fc397d64d90>>
2020-05-25 17:44:40,655 - botocore.hooks - DEBUG - Event choose-signer.appstream.DescribeFleets: calling handler <function set_operation_specific_signer at 0x7fc3980f2e50>
2020-05-25 17:44:40,656 - botocore.auth - DEBUG - Calculating signature using v4 auth.
2020-05-25 17:44:40,656 - botocore.auth - DEBUG - CanonicalRequest:
POST
/

content-type:application/x-amz-json-1.1
host:appstream2.eu-central-1.amazonaws.com
x-amz-date:20200525T154440Z
x-amz-security-token:[snipped for readability]
x-amz-target:PhotonAdminProxyService.DescribeFleets

content-type;host;x-amz-date;x-amz-security-token;x-amz-target
1177438064bc14b1c97d2f16a1f6bb6ad7bcbff1d4eb472bdc7e1b744f84db05
2020-05-25 17:44:40,656 - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20200525T154440Z
20200525/eu-central-1/appstream/aws4_request
adb5848263cbfb547f469ab808a0e83577b4a9e9ccaf47d3142377a6873e440d
2020-05-25 17:44:40,656 - botocore.auth - DEBUG - Signature:
afbf1343db794b56d3fcdd882d8046216241bc685a1c4996e16a94062af7aa62
2020-05-25 17:44:40,656 - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://appstream2.eu-central-1.amazonaws.com/, headers={'X-Amz-Target': b'PhotonAdminProxyService.DescribeFleets', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'Boto3/1.13.16 Python/3.8.3 Linux/5.6.0-1-amd64 Botocore/1.16.16', 'X-Amz-Date': b'20200525T154440Z', 'X-Amz-Security-Token': b'[snipped for readability]', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIA5RNDTUBK6FW6276L/20200525/eu-central-1/appstream/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=afbf1343db794b56d3fcdd882d8046216241bc685a1c4996e16a94062af7aa62', 'Content-Length': '27'}>
2020-05-25 17:44:40,657 - urllib3.connectionpool - DEBUG - Resetting dropped connection: appstream2.eu-central-1.amazonaws.com
2020-05-25 17:44:40,754 - urllib3.connectionpool - DEBUG - https://appstream2.eu-central-1.amazonaws.com:443 "POST / HTTP/1.1" 200 758
2020-05-25 17:44:40,755 - botocore.parsers - DEBUG - Response headers: {'x-amzn-RequestId': 'fdaee777-1739-4d59-8b86-46e7e53702cd', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '758', 'Date': 'Mon, 25 May 2020 15:44:40 GMT'}
2020-05-25 17:44:40,755 - botocore.parsers - DEBUG - Response body:
b'{"Fleets":[{"Arn":"arn:aws:appstream:eu-central-1:1111111111111:fleet/testfleet-od","ComputeCapacityStatus":{"Available":0,"Desired":1,"InUse":0,"Reserved":0,"Running":0},"CreatedTime":1.590395603645E9,"DisconnectTimeoutInSeconds":900,"DisplayName":"testfleet-od","EnableDefaultInternetAccess":true,"FleetErrors":[],"FleetType":"ON_DEMAND","IdleDisconnectTimeoutInSeconds":900,"ImageArn":"arn:aws:appstream:eu-central-1::image/Amazon-AppStream2-Sample-Image-02-04-2019","ImageName":"Amazon-AppStream2-Sample-Image-02-04-2019","InstanceType":"stream.standard.medium","MaxUserDurationInSeconds":57600,"Name":"testfleet-od","State":"STOPPED","StreamView":"APP","VpcConfig":{"SecurityGroupIds":["sg-871fdee0"],"SubnetIds":["subnet-b005f2fc","subnet-c76d8dbb"]}}]}'
2020-05-25 17:44:40,756 - botocore.hooks - DEBUG - Event needs-retry.appstream.DescribeFleets: calling handler <botocore.retryhandler.RetryHandler object at 0x7fc397d0a940>
2020-05-25 17:44:40,756 - botocore.retryhandler - DEBUG - No retry needed.
swetashre commented 4 years ago

@GoneWacko - Thank you for your post. I am able to reproduce the issue. Marking this as bug. I will see to get this one fixed.

aycauzel commented 3 years ago

Is there any update? same situation occurs for get_waiter('fleet_started')

tim-finnigan commented 1 year ago

Hi all, thanks for your patience. Waiter models are now owned by the respective service teams, so we'll need to contact the AppStream team for feedback on this. I created a new issue for tracking this in our cross-SDK repository since waiters are shared across AWS SDKs: https://github.com/aws/aws-sdk/issues/423. Please refer to that issue for updates going forward.