Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing block to stopfuryctl process when applying terraform resource #291

Open
g-iannelli opened this issue Feb 21, 2023 · 1 comment
Open
Labels
bug Something isn't working furyctl-ng size/S

Comments

@g-iannelli
Copy link
Contributor

There is no block to stop furyctl process with ctrl + D when applying terraform resource.
This behaviour can lead to inconsistent state.

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::[email protected]: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...
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...
^C
~/Workspace/fury-getting-started/barebone

tail ~/.furyctl.log
{"@level":"info","@message":"module.cluster_autoscaler_iam_role.module.cluster_autoscaler_iam_assumable_role.aws_iam_role_policy_attachment.custom[0]: Creation complete after 0s [id=eks-barebone-cluster-autoscaler-20230221173640092000000003]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:40.253544+01:00","hook":{"resource":{"addr":"module.cluster_autoscaler_iam_role.module.cluster_autoscaler_iam_assumable_role.aws_iam_role_policy_attachment.custom[0]","module":"module.cluster_autoscaler_iam_role.module.cluster_autoscaler_iam_assumable_role","resource":"aws_iam_role_policy_attachment.custom[0]","implied_provider":"aws","resource_type":"aws_iam_role_policy_attachment","resource_name":"custom","resource_key":0},"action":"create","id_key":"id","id_value":"eks-barebone-cluster-autoscaler-20230221173640092000000003","elapsed_seconds":0},"type":"apply_complete"}
{"@level":"info","@message":"module.load_balancer_controller_iam_role.module.aws_lb_controller_iam_assumable_role.aws_iam_role_policy_attachment.custom[0]: Creation complete after 0s [id=eks-barebone-aws-lb-controller-20230221173640183900000004]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:40.344277+01:00","hook":{"resource":{"addr":"module.load_balancer_controller_iam_role.module.aws_lb_controller_iam_assumable_role.aws_iam_role_policy_attachment.custom[0]","module":"module.load_balancer_controller_iam_role.module.aws_lb_controller_iam_assumable_role","resource":"aws_iam_role_policy_attachment.custom[0]","implied_provider":"aws","resource_type":"aws_iam_role_policy_attachment","resource_name":"custom","resource_key":0},"action":"create","id_key":"id","id_value":"eks-barebone-aws-lb-controller-20230221173640183900000004","elapsed_seconds":0},"type":"apply_complete"}
{"@level":"info","@message":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role.aws_iam_role.this[0]: Creation complete after 0s [id=eks-barebone-aws-ebs-csi-driver]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:40.442891+01:00","hook":{"resource":{"addr":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role.aws_iam_role.this[0]","module":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role","resource":"aws_iam_role.this[0]","implied_provider":"aws","resource_type":"aws_iam_role","resource_name":"this","resource_key":0},"action":"create","id_key":"id","id_value":"eks-barebone-aws-ebs-csi-driver","elapsed_seconds":0},"type":"apply_complete"}
{"@level":"info","@message":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role.aws_iam_role_policy_attachment.custom[0]: Creating...","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:40.444576+01:00","hook":{"resource":{"addr":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role.aws_iam_role_policy_attachment.custom[0]","module":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role","resource":"aws_iam_role_policy_attachment.custom[0]","implied_provider":"aws","resource_type":"aws_iam_role_policy_attachment","resource_name":"custom","resource_key":0},"action":"create"},"type":"apply_start"}
{"@level":"info","@message":"module.external_dns.module.external_dns_public_iam_assumable_role.aws_iam_role.this[0]: Creation complete after 1s [id=eks-barebone-e-dns-public]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:40.553703+01:00","hook":{"resource":{"addr":"module.external_dns.module.external_dns_public_iam_assumable_role.aws_iam_role.this[0]","module":"module.external_dns.module.external_dns_public_iam_assumable_role","resource":"aws_iam_role.this[0]","implied_provider":"aws","resource_type":"aws_iam_role","resource_name":"this","resource_key":0},"action":"create","id_key":"id","id_value":"eks-barebone-e-dns-public","elapsed_seconds":1},"type":"apply_complete"}
{"@level":"info","@message":"module.velero.aws_iam_role.velero_backup[0]: Creation complete after 1s [id=furyctl-eks-barebone-wezmvdhr-velero-backup]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:40.569739+01:00","hook":{"resource":{"addr":"module.velero.aws_iam_role.velero_backup[0]","module":"module.velero","resource":"aws_iam_role.velero_backup[0]","implied_provider":"aws","resource_type":"aws_iam_role","resource_name":"velero_backup","resource_key":0},"action":"create","id_key":"id","id_value":"furyctl-eks-barebone-wezmvdhr-velero-backup","elapsed_seconds":1},"type":"apply_complete"}
{"@level":"info","@message":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role.aws_iam_role_policy_attachment.custom[0]: Creation complete after 1s [id=eks-barebone-aws-ebs-csi-driver-20230221173640642100000005]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:40.802311+01:00","hook":{"resource":{"addr":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role.aws_iam_role_policy_attachment.custom[0]","module":"module.ebs_csi_driver_iam_role.module.aws_ebs_csi_driver_iam_assumable_role","resource":"aws_iam_role_policy_attachment.custom[0]","implied_provider":"aws","resource_type":"aws_iam_role_policy_attachment","resource_name":"custom","resource_key":0},"action":"create","id_key":"id","id_value":"eks-barebone-aws-ebs-csi-driver-20230221173640642100000005","elapsed_seconds":1},"type":"apply_complete"}
{"@level":"info","@message":"module.velero.aws_s3_bucket.backup_bucket: Creation complete after 2s [id=furyctl-eks-barebone-wezmvdhr]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:41.169362+01:00","hook":{"resource":{"addr":"module.velero.aws_s3_bucket.backup_bucket","module":"module.velero","resource":"aws_s3_bucket.backup_bucket","implied_provider":"aws","resource_type":"aws_s3_bucket","resource_name":"backup_bucket","resource_key":null},"action":"create","id_key":"id","id_value":"furyctl-eks-barebone-wezmvdhr","elapsed_seconds":2},"type":"apply_complete"}
{"@level":"info","@message":"module.velero.aws_iam_policy.velero_backup: Creating...","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:41.172774+01:00","hook":{"resource":{"addr":"module.velero.aws_iam_policy.velero_backup","module":"module.velero","resource":"aws_iam_policy.velero_backup","implied_provider":"aws","resource_type":"aws_iam_policy","resource_name":"velero_backup","resource_key":null},"action":"create"},"type":"apply_start"}
{"@level":"info","@message":"module.velero.aws_iam_policy.velero_backup: Creation complete after 1s [id=arn:aws:iam::492816857163:policy/furyctl-eks-barebone-wezmvdhr-velero-backup]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:41.704514+01:00","hook":{"resource":{"addr":"module.velero.aws_iam_policy.velero_backup","module":"module.velero","resource":"aws_iam_policy.velero_backup","implied_provider":"aws","resource_type":"aws_iam_policy",
"resource_name":"velero_backup","resource_key":null},"action":"create","id_key":"id","id_value":"arn:aws:iam::492816857163:policy/furyctl-eks-barebone-wezmvdhr-velero-backup","elapsed_seconds":1},"type":"apply_complete"}
{"@level":"info","@message":"module.velero.aws_iam_role_policy_attachment.velero_backup[0]: Creating...","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:41.706784+01:00","hook":{"resource":{"addr":"module.velero.aws_iam_role_policy_attachment.velero_backup[0]","module":"module.velero","resource":"aws_iam_role_policy_attachment.velero_backup[0]","implied_provider":"aws","resource_type":"aws_iam_role_policy_attachment","resource_name":"velero_backup","resource_key":0},"action":"create"},"type":"apply_start"}
{"@level":"info","@message":"module.velero.aws_iam_role_policy_attachment.velero_backup[0]: Creation complete after 0s [id=furyctl-eks-barebone-wezmvdhr-velero-backup-20230221173641897800000006]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:42.061309+01:00","hook":{"resource":{"addr":"module.velero.aws_iam_role_policy_attachment.velero_backup[0]","module":"module.velero","resource":"aws_iam_role_policy_attachment.velero_backup[0]","implied_provider":"aws","resource_type":"aws_iam_role_policy_attachment","resource_name":"velero_backup","resource_key":0},"action":"create","id_key":"id","id_value":"furyctl-eks-barebone-wezmvdhr-velero-backup-20230221173641897800000006","elapsed_seconds":0},"type":"apply_complete"}
{"@level":"info","@message":"aws_route53_zone.private: Still creating... [10s elapsed]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:48.743711+01:00","hook":{"resource":{"addr":"aws_route53_zone.private","module":"","resource":"aws_route53_zone.private","implied_provider":"aws","resource_type":"aws_route53_zone","resource_name":"private","resource_key":null},"action":"create","elapsed_seconds":10},"type":"apply_progress"}
{"@level":"info","@message":"aws_route53_zone.public: Still creating... [10s elapsed]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:48.743792+01:00","hook":{"resource":{"addr":"aws_route53_zone.public","module":"","resource":"aws_route53_zone.public","implied_provider":"aws","resource_type":"aws_route53_zone","resource_name":"public","resource_key":null},"action":"create","elapsed_seconds":10},"type":"apply_progress"}
{"@level":"info","@message":"aws_route53_zone.public: Still creating... [20s elapsed]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:58.745958+01:00","hook":{"resource":{"addr":"aws_route53_zone.public","module":"","resource":"aws_route53_zone.public","implied_provider":"aws","resource_type":"aws_route53_zone","resource_name":"public","resource_key":null},"action":"create","elapsed_seconds":20},"type":"apply_progress"}
{"@level":"info","@message":"aws_route53_zone.private: Still creating... [20s elapsed]","@module":"terraform.ui","@timestamp":"2023-02-21T18:36:58.746278+01:00","hook":{"resource":{"addr":"aws_route53_zone.private","module":"","resource":"aws_route53_zone.private","implied_provider":"aws","resource_type":"aws_route53_zone","resource_name":"private","resource_key":null},"action":"create","elapsed_seconds":20},"type":"apply_progress"}

@g-iannelli g-iannelli added bug Something isn't working furyctl-ng labels Feb 21, 2023
@g-iannelli g-iannelli changed the title Nothing block furyctl interrupt when applying terraform resource Nothing block to stopfuryctl process when applying terraform resource Feb 21, 2023
@omissis omissis added the size/S label Feb 28, 2023
@Al-Pragliola
Copy link
Contributor

Al-Pragliola commented May 30, 2023

We should check if this issue is still valid after the rework of the timeout @omissis @alessiodionisi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working furyctl-ng size/S
Projects
None yet
Development

No branches or pull requests

3 participants