sighupio / furyctl

furyctl is the KFD (Kubernetes Fury Distribution) lifecycle manager
https://sighup.io
Apache License 2.0
33 stars 4 forks source link

Random errors #280

Open g-iannelli opened 1 year ago

g-iannelli commented 1 year ago
 AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY furyctl-ng create cluster -c barebone.eu-west-1.yml --distro-location 'git::git@github.com:sighupio/fury-distribution.git?depth=1&ref=feature/furyctl-next'
INFO Downloading distribution...
INFO Validating configuration file...
INFO Downloading dependencies...
INFO Validating dependencies...
INFO Creating cluster...
INFO Running infrastructure phase...
INFO Creating cloud resources, this could take a while...
INFO Connecting to VPN, you will be asked for your SUDO password...
Password:
INFO Running kubernetes phase...
INFO Creating cloud resources, this could take a while...
INFO Storing cluster config...
INFO Running distribution phase
INFO Checking that the cluster is reachable...
ERRO error while creating cluster: error while executing distribution phase: error running terraform plan: error running terraform plan: ~/.furyctl/bin/terraform/0.15.4/terraform ~/.furyctl/bin/terraform/0.15.4/terraform plan -no-color -out plan/terraform.plan: command failed - exit status 1
out:
Warning: Argument is deprecated

  with module.velero.aws_s3_bucket.backup_bucket,
  on ../../vendor/modules/dr/modules/aws-velero/s3.tf line 7, in resource "aws_s3_bucket" "backup_bucket":
   7: resource "aws_s3_bucket" "backup_bucket" {

Use the aws_s3_bucket_versioning resource instead

(and 2 more similar warnings elsewhere)

err:
Error: Unrecognized remote plugin message:

This usually means that the plugin is either invalid or simply
needs to be recompiled to support the latest protocol.
g-iannelli commented 1 year ago
AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY furyctl-ng create cluster -c barebone.eu-west-1.yml --distro-location 'git::git@github.com:sighupio/fury-distribution.git?depth=1&ref=feature/furyctl-next'
INFO Downloading distribution...
INFO Validating configuration file...
INFO Downloading dependencies...
INFO Validating dependencies...
INFO Creating cluster...
INFO Running infrastructure phase...
INFO Creating cloud resources, this could take a while...
INFO Connecting to VPN, you will be asked for your SUDO password...
Password:
INFO Running kubernetes phase...
INFO Creating cloud resources, this could take a while...
INFO Storing cluster config...
INFO Running distribution phase
INFO Checking that the cluster is reachable...
ERRO error while creating cluster: error while executing distribution phase: error running terraform plan: error running terraform plan: ~/.furyctl/bin/terraform/0.15.4/terraform ~/.furyctl/bin/terraform/0.15.4/terraform plan -no-color -out plan/terraform.plan: command failed - exit status 1
out:
err:
Error: Could not load plugin

Plugin reinitialization required. Please run "terraform init".

Plugins are external binaries that Terraform uses to access and manipulate
resources. The configuration provided requires plugins which can't be
located,
don't satisfy the version constraints, or are otherwise incompatible.

Terraform automatically discovers provider requirements from your
configuration, including providers used in child modules. To see the
requirements and constraints, run "terraform providers".

failed to instantiate provider "registry.terraform.io/hashicorp/aws" to
obtain schema: Unrecognized remote plugin message:

This usually means that the plugin is either invalid or simply
needs to be recompiled to support the latest protocol.
g-iannelli commented 1 year ago
AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY furyctl-ng create cluster -c barebone.eu-west-1.yml --distro-location 'git::git@github.com:sighupio/fury-distribution.git?depth=1&ref=feature/furyctl-next'
INFO Downloading distribution...
INFO Validating configuration file...
INFO Downloading dependencies...
INFO Validating dependencies...
INFO Creating cluster...
INFO Running infrastructure phase...
INFO Creating cloud resources, this could take a while...
INFO Connecting to VPN, you will be asked for your SUDO password...
Password:
INFO Running kubernetes phase...
INFO Creating cloud resources, this could take a while...
INFO Storing cluster config...
INFO Running distribution phase
INFO Checking that the cluster is reachable...
ERRO error while creating cluster: error while executing distribution phase: error running terraform plan: error running terraform plan: ~/.furyctl/bin/terraform/0.15.4/terraform ~/.furyctl/bin/terraform/0.15.4/terraform plan -no-color -out plan/terraform.plan: command failed - exit status 1
out:
err:
Error: Unrecognized remote plugin message:

This usually means that the plugin is either invalid or simply
needs to be recompiled to support the latest protocol.
g-iannelli commented 1 year ago

VPN doesn't start automatically

AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY furyctl-ng create cluster -c barebone.eu-west-1.yml --distro-location 'git::git@github.com:sighupio/fury-distribution.git?depth=1&ref=feature/furyctl-next'
INFO Downloading distribution...
INFO Validating configuration file...
INFO Downloading dependencies...
INFO Validating dependencies...
INFO Creating cluster...
INFO Running infrastructure phase...
INFO Creating cloud resources, this could take a while...
INFO Connecting to VPN, you will be asked for your SUDO password...
INFO Running kubernetes phase...
ERRO error while creating cluster: error while executing kubernetes phase: error running terraform plan: error running terraform plan: /Users/giuseppe.iannelli/.furyctl/bin/terraform/0.15.4/terraform /Users/giuseppe.iannelli/.furyctl/bin/terraform/0.15.4/terraform plan -no-color -out plan/terraform.plan: command failed - exit status 1
out: module.fury.aws_key_pair.nodes: Refreshing state... [id=eks-barebone-20230221094140583600000005]
module.fury.aws_security_group.node_pool[1]: Refreshing state... [id=sg-0cfde4466e6c0c9e5]
module.fury.aws_security_group.node_pool[0]: Refreshing state... [id=sg-0774475d5739d4e70]
module.fury.module.cluster.aws_cloudwatch_log_group.this[0]: Refreshing state... [id=/aws/eks/eks-barebone/cluster]
module.fury.aws_security_group.nodes: Refreshing state... [id=sg-041b8c2d9b1c751ea]
module.fury.aws_security_group.node_pool[2]: Refreshing state... [id=sg-0db014575411d0a2c]
module.fury.module.cluster.aws_security_group.cluster[0]: Refreshing state... [id=sg-0e9962f7e3bc60143]
module.fury.module.cluster.aws_security_group.workers[0]: Refreshing state... [id=sg-09c7a74658a7d8c1a]
module.fury.module.cluster.aws_iam_policy.cluster_elb_sl_role_creation[0]: Refreshing state... [id=arn:aws:iam::492816857163:policy/eks-barebone/eks-barebone-elb-sl-role-creation20230221094140580200000002]
module.fury.module.cluster.aws_iam_role.cluster[0]: Refreshing state... [id=eks-barebone20230221094140579800000001]
module.fury.aws_security_group_rule.ssh_from_dmz_to_nodes: Refreshing state... [id=sgrule-3873890689]
module.fury.module.cluster.aws_security_group_rule.cluster_egress_internet[0]: Refreshing state... [id=sgrule-1369344684]
module.fury.module.cluster.aws_security_group_rule.cluster_https_worker_ingress[0]: Refreshing state... [id=sgrule-1372953517]
module.fury.module.cluster.aws_security_group_rule.workers_ingress_self[0]: Refreshing state... [id=sgrule-647036305]
module.fury.module.cluster.aws_security_group_rule.workers_ingress_cluster_https[0]: Refreshing state... [id=sgrule-3075849522]
module.fury.module.cluster.aws_security_group_rule.workers_egress_internet[0]: Refreshing state... [id=sgrule-2233867777]
module.fury.module.cluster.aws_security_group_rule.workers_ingress_cluster[0]: Refreshing state... [id=sgrule-4219013709]
module.fury.module.cluster.aws_iam_role_policy_attachment.cluster_AmazonEKSServicePolicy[0]: Refreshing state... [id=eks-barebone20230221094140579800000001-20230221094143725200000007]
module.fury.module.cluster.aws_iam_role_policy_attachment.cluster_AmazonEKSClusterPolicy[0]: Refreshing state... [id=eks-barebone20230221094140579800000001-20230221094143733600000008]
module.fury.module.cluster.aws_iam_role_policy_attachment.cluster_elb_sl_role_creation[0]: Refreshing state... [id=eks-barebone20230221094140579800000001-20230221094143743500000009]
module.fury.module.cluster.aws_iam_role_policy_attachment.cluster_AmazonEKSVPCResourceControllerPolicy[0]: Refreshing state... [id=eks-barebone20230221094140579800000001-2023022109414376540000000a]
module.fury.module.cluster.aws_eks_cluster.this[0]: Refreshing state... [id=eks-barebone]
module.fury.module.cluster.aws_iam_openid_connect_provider.oidc_provider[0]: Refreshing state... [id=arn:aws:iam::492816857163:oidc-provider/oidc.eks.eu-west-1.amazonaws.com/id/2A7C6BA76282203703C89846EB8B828D]
module.fury.module.cluster.aws_security_group_rule.cluster_private_access[0]: Refreshing state... [id=sgrule-2812174351]
module.fury.module.cluster.aws_iam_role.workers[0]: Refreshing state... [id=eks-barebone2023022109512646810000000b]
module.fury.module.cluster.aws_iam_role_policy_attachment.workers_AmazonEC2ContainerRegistryReadOnly[0]: Refreshing state... [id=eks-barebone2023022109512646810000000b-20230221095129703800000011]
module.fury.module.cluster.aws_iam_role_policy_attachment.workers_AmazonEKSWorkerNodePolicy[0]: Refreshing state... [id=eks-barebone2023022109512646810000000b-2023022109512967290000000f]
module.fury.module.cluster.aws_iam_instance_profile.workers_launch_template[2]: Refreshing state... [id=eks-barebone2023022109512905920000000e]
module.fury.module.cluster.aws_iam_instance_profile.workers_launch_template[0]: Refreshing state... [id=eks-barebone2023022109512905910000000d]
module.fury.module.cluster.aws_iam_role_policy_attachment.workers_AmazonEKS_CNI_Policy[0]: Refreshing state... [id=eks-barebone2023022109512646810000000b-20230221095129683000000010]
module.fury.module.cluster.aws_iam_instance_profile.workers_launch_template[1]: Refreshing state... [id=eks-barebone2023022109512905910000000c]
module.fury.module.cluster.aws_launch_template.workers_launch_template[2]: Refreshing state... [id=lt-075a6970033efc379]
module.fury.module.cluster.aws_launch_template.workers_launch_template[0]: Refreshing state... [id=lt-050740a15b44b2cbc]
module.fury.module.cluster.aws_launch_template.workers_launch_template[1]: Refreshing state... [id=lt-0cfbe09dfc4c9c7b9]
module.fury.module.cluster.aws_autoscaling_group.workers_launch_template[2]: Refreshing state... [id=eks-barebone-default2023022109513300270000001a]
module.fury.module.cluster.aws_autoscaling_group.workers_launch_template[0]: Refreshing state... [id=eks-barebone-infra20230221095133002600000018]
module.fury.module.cluster.aws_autoscaling_group.workers_launch_template[1]: Refreshing state... [id=eks-barebone-ingress20230221095133002700000019]

Warning: Experimental feature "module_variable_optional_attrs" is active

  on main.tf line 8, in terraform:
   8:   experiments     = [module_variable_optional_attrs]

Experimental features are subject to breaking changes in future minor or
patch releases, based on feedback.

If you have feedback on the design of this feature, please open a GitHub
issue to discuss it.

(and one more similar warning elsewhere)

err:
Error: Error making request: Get "https://2A7C6BA76282203703C89846EB8B828D.gr7.eu-west-1.eks.amazonaws.com/healthz": dial tcp 10.10.3.222:443: connect: operation timed out

  with module.fury.module.cluster.data.http.wait_for_cluster[0],
  on .terraform/modules/fury.cluster/cluster.tf line 68, in data "http" "wait_for_cluster":
  68: data "http" "wait_for_cluster" {
g-iannelli commented 1 year ago
AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY furyctl-ng create cluster -c barebone.eu-west-1.yml --distro-location 'git::git@github.com:sighupio/fury-distribution.git?depth=1&ref=feature/furyctl-next'
INFO Downloading distribution...
INFO Validating configuration file...
INFO Downloading dependencies...
INFO Validating dependencies...
INFO Creating cluster...
INFO Running infrastructure phase...
INFO Creating cloud resources, this could take a while...
INFO Connecting to VPN, you will be asked for your SUDO password...
Password:
INFO Running kubernetes phase...
INFO Creating cloud resources, this could take a while...
INFO Storing cluster config...
INFO Running distribution phase
INFO Checking that the cluster is reachable...
ERRO error while creating cluster: error while executing distribution phase: error running terraform plan: error running terraform plan: /Users/giuseppe.iannelli/.furyctl/bin/terraform/0.15.4/terraform /Users/giuseppe.iannelli/.furyctl/bin/terraform/0.15.4/terraform plan -no-color -out plan/terraform.plan: command failed - exit status 1
out:
err:
Error: Could not load plugin

Plugin reinitialization required. Please run "terraform init".

Plugins are external binaries that Terraform uses to access and manipulate
resources. The configuration provided requires plugins which can't be
located,
don't satisfy the version constraints, or are otherwise incompatible.

Terraform automatically discovers provider requirements from your
configuration, including providers used in child modules. To see the
requirements and constraints, run "terraform providers".

failed to retrieve schema from provider
"registry.terraform.io/hashicorp/aws": Request cancelled: The
plugin.(*GRPCProvider).GetProviderSchema request was cancelled.
g-iannelli commented 1 year ago
AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY furyctl-ng create cluster -c barebone.eu-west-1.yml --distro-location 'git::git@github.com:sighupio/fury-distribution.git?depth=1&ref=feature/furyctl-next'
INFO Downloading distribution...
INFO Validating configuration file...
INFO Downloading dependencies...
INFO Validating dependencies...
INFO Creating cluster...
INFO Running infrastructure phase...
INFO Creating cloud resources, this could take a while...
INFO Connecting to VPN, you will be asked for your SUDO password...
Password:
INFO Running kubernetes phase...
INFO Creating cloud resources, this could take a while...
INFO Storing cluster config...
INFO Running distribution phase
INFO Checking that the cluster is reachable...
INFO Creating cloud resources, this could take a while...
ERRO error while creating cluster: error while executing distribution phase: cannot create cloud resources: cannot create cloud resources: ~/.furyctl/bin/terraform/0.15.4/terraform ~/.furyctl/bin/terraform/0.15.4/terraform apply -no-color -json plan/terraform.plan: command failed - exit status 1
out: {"@level":"info","@message":"Terraform 0.15.4","@module":"terraform.ui","@timestamp":"2023-02-21T15:19:07.178945+01:00","terraform":"0.15.4","type":"version","ui":"0.1.0"}
{"@level":"error","@message":"Error: Could not load plugin","@module":"terraform.ui","@timestamp":"2023-02-21T15:19:10.255269+01:00","diagnostic":{"severity":"error","summary":"Could not load plugin","detail":"\nPlugin reinitialization required. Please run \"terraform init\".\n\nPlugins are external binaries that Terraform uses to access and manipulate\nresources. The configuration provided requires plugins which can't be located,\ndon't satisfy the version constraints, or are otherwise incompatible.\n\nTerraform automatically discovers provider requirements from your\nconfiguration, including providers used in child modules. To see the\nrequirements and constraints, run \"terraform providers\".\n\nfailed to instantiate provider \"registry.terraform.io/hashicorp/aws\" to obtain schema: Unrecognized remote plugin message: \n\nThis usually means that the plugin is either invalid or simply\nneeds to be recompiled to support the latest protocol.\n"},"type":"diagnostic"}