sighupio / furyctl

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

Kill `openvpn` connection after the furyctl phase execution #242

Closed g-iannelli closed 1 year ago

g-iannelli commented 1 year ago

Everytime I run the furyctl create cluster a new openvpn process has been executed generating the following error:

ERRO error while creating cluster: error while executing kubernetes 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: module.fury.aws_key_pair.nodes: Refreshing state... [id=eks-barebone-20230214111229413100000001]
module.fury.aws_security_group.node_pool[1]: Refreshing state... [id=sg-0d88dee0d95d0d1b0]
module.fury.module.cluster.aws_security_group.workers[0]: Refreshing state... [id=sg-0a168ca9101b5b225]
module.fury.aws_security_group.node_pool[0]: Refreshing state... [id=sg-090d9ea7d8351094d]
module.fury.aws_security_group.nodes: Refreshing state... [id=sg-0efc1a264ddfba28d]
module.fury.module.cluster.aws_security_group.cluster[0]: Refreshing state... [id=sg-0da2d6e95dff0e69e]
module.fury.module.cluster.aws_cloudwatch_log_group.this[0]: Refreshing state... [id=/aws/eks/eks-barebone/cluster]
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-creation20230214111229430000000004]
module.fury.module.cluster.aws_iam_role.cluster[0]: Refreshing state... [id=eks-barebone20230214111229430900000006]
module.fury.aws_security_group_rule.ssh_from_dmz_to_nodes: Refreshing state... [id=sgrule-1126590477]
module.fury.module.cluster.aws_security_group_rule.workers_egress_internet[0]: Refreshing state... [id=sgrule-368586279]
module.fury.module.cluster.aws_security_group_rule.workers_ingress_self[0]: Refreshing state... [id=sgrule-918507075]
module.fury.module.cluster.aws_security_group_rule.workers_ingress_cluster_https[0]: Refreshing state... [id=sgrule-3961982856]
module.fury.module.cluster.aws_security_group_rule.cluster_https_worker_ingress[0]: Refreshing state... [id=sgrule-897061069]
module.fury.module.cluster.aws_security_group_rule.workers_ingress_cluster[0]: Refreshing state... [id=sgrule-3005491141]
module.fury.module.cluster.aws_security_group_rule.cluster_egress_internet[0]: Refreshing state... [id=sgrule-3507664358]
module.fury.module.cluster.aws_iam_role_policy_attachment.cluster_AmazonEKSVPCResourceControllerPolicy[0]: Refreshing state... [id=eks-barebone20230214111229430900000006-20230214111232574200000008]
module.fury.module.cluster.aws_iam_role_policy_attachment.cluster_elb_sl_role_creation[0]: Refreshing state... [id=eks-barebone20230214111229430900000006-20230214111232544300000007]
module.fury.module.cluster.aws_iam_role_policy_attachment.cluster_AmazonEKSClusterPolicy[0]: Refreshing state... [id=eks-barebone20230214111229430900000006-20230214111232595400000009]
module.fury.module.cluster.aws_iam_role_policy_attachment.cluster_AmazonEKSServicePolicy[0]: Refreshing state... [id=eks-barebone20230214111229430900000006-2023021411123262980000000a]
module.fury.module.cluster.aws_eks_cluster.this[0]: Refreshing state... [id=eks-barebone]
module.fury.module.cluster.aws_security_group_rule.cluster_private_access[0]: Refreshing state... [id=sgrule-2884614443]
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/8FEE114531158BECE58DA37889FFA369]
module.fury.module.cluster.aws_iam_role.workers[0]: Refreshing state... [id=eks-barebone2023021411221300380000000b]
module.fury.module.cluster.aws_iam_role_policy_attachment.workers_AmazonEKSWorkerNodePolicy[0]: Refreshing state... [id=eks-barebone2023021411221300380000000b-20230214112216111700000010]
module.fury.module.cluster.aws_iam_role_policy_attachment.workers_AmazonEKS_CNI_Policy[0]: Refreshing state... [id=eks-barebone2023021411221300380000000b-2023021411221611160000000f]
module.fury.module.cluster.aws_iam_instance_profile.workers_launch_template[0]: Refreshing state... [id=eks-barebone2023021411221549190000000d]
module.fury.module.cluster.aws_iam_instance_profile.workers_launch_template[1]: Refreshing state... [id=eks-barebone2023021411221549150000000c]
module.fury.module.cluster.aws_iam_role_policy_attachment.workers_AmazonEC2ContainerRegistryReadOnly[0]: Refreshing state... [id=eks-barebone2023021411221300380000000b-2023021411221607960000000e]
module.fury.module.cluster.aws_launch_template.workers_launch_template[1]: Refreshing state... [id=lt-08f89a36e8db0f739]
module.fury.module.cluster.aws_launch_template.workers_launch_template[0]: Refreshing state... [id=lt-04aea35c65f82efc6]
module.fury.module.cluster.aws_autoscaling_group.workers_launch_template[0]: Refreshing state... [id=eks-barebone-infra20230214112219201800000015]
module.fury.module.cluster.aws_autoscaling_group.workers_launch_template[1]: Refreshing state... [id=eks-barebone-ingress20230214112219201800000016]

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://8FEE114531158BECE58DA37889FFA369.gr7.eu-west-1.eks.amazonaws.com/healthz": dial tcp: lookup 8FEE114531158BECE58DA37889FFA369.gr7.eu-west-1.eks.amazonaws.com on 192.168.254.3:53: server misbehaving

  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" {
ralgozino commented 1 year ago

Relates to:

ralgozino commented 1 year ago

closing in favour of #163