NixOS / nixops-aws

GNU Lesser General Public License v3.0
52 stars 38 forks source link

Route53RecordSet pointing at an elasticIP address fails to be created #117

Closed glittershark closed 4 years ago

glittershark commented 4 years ago

It's trying to create it with the default placeholder it seems, before acquiring the information about the elastic IP:

  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/bin/.nixops-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/__main__.py", line 710, in main
    args.op(args)
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/script_defs.py", line 617, in op_deploy
    depl.deploy(
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/deployment.py", line 1479, in deploy
    self.run_with_notify("deploy", lambda: self._deploy(**kwargs))
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/deployment.py", line 1468, in run_with_notify
    f()
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/deployment.py", line 1479, in <lambda>
    self.run_with_notify("deploy", lambda: self._deploy(**kwargs))
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/deployment.py", line 1382, in _deploy
    nixops.parallel.run_tasks(
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/parallel.py", line 106, in run_tasks
    raise list(exceptions.values())[0]
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/parallel.py", line 70, in thread_fun
    work_result = (worker_fun(t), None, t.name)
  File "/nix/store/ibrq7sad1rr53gprdppnxkcxgbqgjvgv-python3.8-nixops-2.0.0/lib/python3.8/site-packages/nixops/deployment.py", line 1336, in worker
    r.create(
  File "/nix/store/kykfqdf2vndygkmwdzqwa3qxmyk3bmsg-python3.8-nixops-aws-1.0/lib/python3.8/site-packages/nixops_aws/resources/route53_recordset.py", line 249, in create
    self.route53_retry(
  File "/nix/store/kykfqdf2vndygkmwdzqwa3qxmyk3bmsg-python3.8-nixops-aws-1.0/lib/python3.8/site-packages/nixops_aws/resources/route53_recordset.py", line 342, in route53_retry
    return nixops_aws.ec2_utils.retry(
  File "/nix/store/kykfqdf2vndygkmwdzqwa3qxmyk3bmsg-python3.8-nixops-aws-1.0/lib/python3.8/site-packages/nixops_aws/ec2_utils.py", line 199, in retry
    raise e
  File "/nix/store/kykfqdf2vndygkmwdzqwa3qxmyk3bmsg-python3.8-nixops-aws-1.0/lib/python3.8/site-packages/nixops_aws/ec2_utils.py", line 196, in retry
    return f()
  File "/nix/store/kykfqdf2vndygkmwdzqwa3qxmyk3bmsg-python3.8-nixops-aws-1.0/lib/python3.8/site-packages/nixops_aws/resources/route53_recordset.py", line 250, in <lambda>
    lambda: client.change_resource_record_sets(
  File "/nix/store/36rbbxdj1690xsp0jvmv6rmilr560qrm-python3.8-botocore-1.17.60/lib/python3.8/site-packages/botocore/client.py", line 337, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/nix/store/36rbbxdj1690xsp0jvmv6rmilr560qrm-python3.8-botocore-1.17.60/lib/python3.8/site-packages/botocore/client.py", line 656, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidChangeBatch: An error occurred (InvalidChangeBatch) when calling the ChangeResourceRecordSets operation: [Invalid Resource Record: FATAL problem: ARRDATAIllegalIPv4Address (Value is not a valid IPv4 address) encountered with '_UNKNOWN_ELASTIC_IP_']