Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otsuka752/b8d114927970cf59847b0b9b35b70810 to your computer and use it in GitHub Desktop.
Save otsuka752/b8d114927970cf59847b0b9b35b70810 to your computer and use it in GitHub Desktop.
$ aws route53 create-hosted-zone --name tcpreplay.jp. --caller-reference test
An error occurred (DelegationSetNotAvailable) when calling the CreateHostedZone operation: We encountered an error creating delegation set for your hosted zone. Please contact: awsdns-hostmaster@amazon.com
$ aws --debug route53 create-hosted-zone --name tcpreplay.jp. --caller-reference test
2019-01-10 20:01:50,672 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.15.83 Python/2.7.14 Linux/4.14.33-51.34.amzn1.x86_64 botocore/1.10.82
2019-01-10 20:01:50,672 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['--debug', 'route53', 'create-hosted-zone', '--name', 'tcpreplay.jp.', '--caller-reference', 'test']
2019-01-10 20:01:50,673 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x7f2e92100668>
2019-01-10 20:01:50,673 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,673 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x7f2e9aabf758>
2019-01-10 20:01:50,673 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,673 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x7f2e8bd72de8>
2019-01-10 20:01:50,673 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,674 - MainThread - botocore.session - DEBUG - Loading variable credentials_file from defaults.
2019-01-10 20:01:50,674 - MainThread - botocore.session - DEBUG - Loading variable config_file from defaults.
2019-01-10 20:01:50,674 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,674 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_timeout from defaults.
2019-01-10 20:01:50,674 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,674 - MainThread - botocore.session - DEBUG - Loading variable metadata_service_num_attempts from defaults.
2019-01-10 20:01:50,676 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,676 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x7f2e8b558410>
2019-01-10 20:01:50,676 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,676 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,677 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
2019-01-10 20:01:50,678 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python2.7/dist-packages/botocore/data/route53/2013-04-01/service-2.json
2019-01-10 20:01:50,700 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.route53: calling handler <function register_retries_for_service at 0x7f2e8cfb8230>
2019-01-10 20:01:50,701 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: route53
2019-01-10 20:01:50,703 - MainThread - botocore.hooks - DEBUG - Event building-command-table.route53: calling handler <function add_waiters at 0x7f2e9208ede8>
2019-01-10 20:01:50,706 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python2.7/dist-packages/botocore/data/route53/2013-04-01/waiters-2.json
2019-01-10 20:01:50,707 - MainThread - awscli.clidriver - DEBUG - OrderedDict([(u'name', <awscli.arguments.CLIArgument object at 0x7f2e8ad14190>), (u'vpc', <awscli.arguments.CLIArgument object at 0x7f2e8ad141d0>), (u'caller-reference', <awscli.arguments.CLIArgument object at 0x7f2e8ad14210>), (u'hosted-zone-config', <awscli.arguments.CLIArgument object at 0x7f2e8ad14250>), (u'delegation-set-id', <awscli.arguments.CLIArgument object at 0x7f2e8ad14290>)])
2019-01-10 20:01:50,708 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.route53.create-hosted-zone: calling handler <function add_streaming_output_arg at 0x7f2e9208e230>
2019-01-10 20:01:50,708 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.route53.create-hosted-zone: calling handler <function add_cli_input_json at 0x7f2e8bd7b9b0>
2019-01-10 20:01:50,708 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.route53.create-hosted-zone: calling handler <function unify_paging_params at 0x7f2e8b46c668>
2019-01-10 20:01:50,711 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python2.7/dist-packages/botocore/data/route53/2013-04-01/paginators-1.json
2019-01-10 20:01:50,712 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.route53.create-hosted-zone: calling handler <function add_generate_skeleton at 0x7f2e8b4d1f50>
2019-01-10 20:01:50,712 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.route53.create-hosted-zone: calling handler <bound method CliInputJSONArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x7f2e8ad142d0>>
2019-01-10 20:01:50,712 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.route53.create-hosted-zone: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7f2e8ad14490>>
2019-01-10 20:01:50,713 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.route53.create-hosted-zone.name: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f2e8b0dc790>
2019-01-10 20:01:50,714 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.route53.create-hosted-zone: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f2e8bdcf950>
2019-01-10 20:01:50,714 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'tcpreplay.jp.' for parameter "name": u'tcpreplay.jp.'
2019-01-10 20:01:50,714 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.route53.create-hosted-zone.vpc: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f2e8b0dc790>
2019-01-10 20:01:50,714 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.route53.create-hosted-zone.caller-reference: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f2e8b0dc790>
2019-01-10 20:01:50,714 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.route53.create-hosted-zone: calling handler <awscli.argprocess.ParamShorthandParser object at 0x7f2e8bdcf950>
2019-01-10 20:01:50,714 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'test' for parameter "caller_reference": u'test'
2019-01-10 20:01:50,715 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.route53.create-hosted-zone.hosted-zone-config: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f2e8b0dc790>
2019-01-10 20:01:50,715 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.route53.create-hosted-zone.delegation-set-id: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f2e8b0dc790>
2019-01-10 20:01:50,715 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.route53.create-hosted-zone.cli-input-json: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f2e8b0dc790>
2019-01-10 20:01:50,715 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.route53.create-hosted-zone.generate-cli-skeleton: calling handler <awscli.paramfile.URIArgumentHandler object at 0x7f2e8b0dc790>
2019-01-10 20:01:50,715 - MainThread - botocore.hooks - DEBUG - Event calling-command.route53.create-hosted-zone: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x7f2e8ad142d0>>
2019-01-10 20:01:50,715 - MainThread - botocore.hooks - DEBUG - Event calling-command.route53.create-hosted-zone: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x7f2e8ad14490>>
2019-01-10 20:01:50,716 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,716 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,716 - MainThread - botocore.session - DEBUG - Loading variable region from config file with value 'eu-west-1'.
2019-01-10 20:01:50,716 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,716 - MainThread - botocore.session - DEBUG - Loading variable ca_bundle from defaults.
2019-01-10 20:01:50,716 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,716 - MainThread - botocore.session - DEBUG - Loading variable api_versions from defaults.
2019-01-10 20:01:50,717 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env
2019-01-10 20:01:50,717 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role
2019-01-10 20:01:50,717 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file
2019-01-10 20:01:50,717 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials
2019-01-10 20:01:50,718 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python2.7/dist-packages/botocore/data/endpoints.json
2019-01-10 20:01:50,738 - MainThread - botocore.session - DEBUG - Loading variable profile from defaults.
2019-01-10 20:01:50,738 - MainThread - botocore.hooks - DEBUG - Event choose-service-name: calling handler <function handle_service_name_alias at 0x7f2e8cfb49b0>
2019-01-10 20:01:50,740 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.route53: calling handler <function add_generate_presigned_url at 0x7f2e8cfed050>
2019-01-10 20:01:50,741 - MainThread - botocore.regions - DEBUG - Using partition endpoint for route53, eu-west-1: aws-global
2019-01-10 20:01:50,741 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None
2019-01-10 20:01:50,745 - MainThread - botocore.endpoint - DEBUG - Setting route53 timeout as (60, 60)
2019-01-10 20:01:50,746 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: route53
2019-01-10 20:01:50,746 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.route53.CreateHostedZone: calling handler <function fix_route53_ids at 0x7f2e8cfb8b18>
2019-01-10 20:01:50,747 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.route53.CreateHostedZone: calling handler <function generate_idempotent_uuid at 0x7f2e8cfb4c08>
2019-01-10 20:01:50,747 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=CreateHostedZone) (verify_ssl=True) with params: {'body': '<CreateHostedZoneRequest xmlns="https://route53.amazonaws.com/doc/2013-04-01/"><CallerReference>test</CallerReference><Name>tcpreplay.jp.</Name></CreateHostedZoneRequest>', 'url': u'https://route53.amazonaws.com/2013-04-01/hostedzone', 'headers': {'User-Agent': 'aws-cli/1.15.83 Python/2.7.14 Linux/4.14.33-51.34.amzn1.x86_64 botocore/1.10.82'}, 'context': {'auth_type': None, 'client_region': u'aws-global', 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x7f2e8ab6e9d0>}, 'query_string': {}, 'url_path': u'/2013-04-01/hostedzone', 'method': u'POST'}
2019-01-10 20:01:50,747 - MainThread - botocore.hooks - DEBUG - Event request-created.route53.CreateHostedZone: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x7f2e8ab6e950>>
2019-01-10 20:01:50,747 - MainThread - botocore.hooks - DEBUG - Event choose-signer.route53.CreateHostedZone: calling handler <function set_operation_specific_signer at 0x7f2e8cfb4b18>
2019-01-10 20:01:50,748 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.
2019-01-10 20:01:50,748 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
POST
/2013-04-01/hostedzone
host:route53.amazonaws.com
x-amz-date:20190110T200150Z
host;x-amz-date
24cdeeca65573a4d78921e5e87ebe975196ee45ae16e392d7ec8d6d5eef07082
2019-01-10 20:01:50,748 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20190110T200150Z
20190110/us-east-1/route53/aws4_request
cb6e622d0cc5db5c958bb92c441b7cf33783cd6eb3aa2d78eaebd2affb06c12d
2019-01-10 20:01:50,748 - MainThread - botocore.auth - DEBUG - Signature:
8240d6d683adfb3417ede3f0c9afde86e71760cc17f079f64e99dc138788ec93
2019-01-10 20:01:50,750 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>
2019-01-10 20:01:50,751 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): route53.amazonaws.com
2019-01-10 20:01:51,330 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "POST /2013-04-01/hostedzone HTTP/1.1" 400 371
2019-01-10 20:01:51,332 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-requestid': '91bbf6a8-1512-11e9-b8e1-6927c728939c', 'content-length': '371', 'connection': 'close', 'x-amzn-actiontrace': 'amzn1.tr.91e6b0a7-1512-11e9-b9e4-0af642a20200.-1.XGkT5@.r@D9C0', 'date': 'Thu, 10 Jan 2019 20:01:50 GMT', 'content-type': 'text/xml'}
2019-01-10 20:01:51,332 - MainThread - botocore.parsers - DEBUG - Response body:
<?xml version="1.0"?>
<ErrorResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/"><Error><Type>Sender</Type><Code>DelegationSetNotAvailable</Code><Message>We encountered an error creating delegation set for your hosted zone. Please contact: awsdns-hostmaster@amazon.com</Message></Error><RequestId>91bbf6a8-1512-11e9-b8e1-6927c728939c</RequestId></ErrorResponse>
2019-01-10 20:01:51,333 - MainThread - botocore.hooks - DEBUG - Event needs-retry.route53.CreateHostedZone: calling handler <botocore.retryhandler.RetryHandler object at 0x7f2e8ad9ad50>
2019-01-10 20:01:51,333 - MainThread - botocore.retryhandler - DEBUG - No retry needed.
2019-01-10 20:01:51,336 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 208, in main
return command_table[parsed_args.command](remaining, parsed_args)
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 345, in __call__
return command_table[parsed_args.operation](remaining, parsed_globals)
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 517, in __call__
call_parameters, parsed_globals)
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 637, in invoke
client, operation_name, parameters, parsed_globals)
File "/usr/lib/python2.7/dist-packages/awscli/clidriver.py", line 649, in _make_client_call
**parameters)
File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 314, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 612, in _make_api_call
raise error_class(parsed_response, operation_name)
DelegationSetNotAvailable: An error occurred (DelegationSetNotAvailable) when calling the CreateHostedZone operation: We encountered an error creating delegation set for your hosted zone. Please contact: awsdns-hostmaster@amazon.com
2019-01-10 20:01:51,337 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255
An error occurred (DelegationSetNotAvailable) when calling the CreateHostedZone operation: We encountered an error creating delegation set for your hosted zone. Please contact: awsdns-hostmaster@amazon.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment