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

CoreOS image does not support cloud-init in alicoud ECS #394

Open
willstudy opened this issue Feb 11, 2018 · 10 comments
Open

CoreOS image does not support cloud-init in alicoud ECS #394

willstudy opened this issue Feb 11, 2018 · 10 comments

Comments

@willstudy
Copy link

terraform version

Terraform v0.11.3
+ provider.alicloud v1.7.2

alicoud ECS configuration for terraform

alicloud_instance.k8s_etcd: Creating...
  availability_zone:          "" => "<computed>"
  host_name:                  "" => "etcd-01"
  image_id:                   "" => "coreos_1465_8_0_64_30G_alibase_20171024.vhd"
  instance_charge_type:       "" => "PostPaid"
  instance_name:              "" => "k8s_etcd"
  instance_type:              "" => "ecs.n4.small"
  internet_charge_type:       "" => "PayByBandwidth"
  internet_max_bandwidth_in:  "" => "<computed>"
  internet_max_bandwidth_out: "" => "5"
  io_optimized:               "" => "optimized"
  key_name:                   "" => "lecury"
  password:                   "<sensitive>" => "<sensitive>"
  private_ip:                 "" => "<computed>"
  public_ip:                  "" => "<computed>"
  security_groups.#:          "" => "1"
  security_groups.825841843:  "" => "sg-2ze1h16wf9kiubqbnaf5"
  spot_price_limit:           "" => "0.07"
  spot_strategy:              "" => "SpotWithPriceLimit"
  status:                     "" => "<computed>"
  subnet_id:                  "" => "<computed>"
  system_disk_category:       "" => "cloud_efficiency"
  system_disk_size:           "" => "<computed>"
  user_data:                  "" => "#cloud-config\n\ncoreos:\n  etcd2:\n    advertise-client-urls: https://$private_ipv4:2379 # multi-region and multi-cloud deployments need to use $public_ipv4\n    listen-client-urls: https://0.0.0.0:2379\n    client-cert-auth: true\n    trusted-ca-file: /etc/kubernetes/ssl/ca.pem\n    cert-file: /etc/kubernetes/ssl/etcd.pem\n    key-file: /etc/kubernetes/ssl/etcd-key.pem\n  units:\n    - name: etcd2.service\n      command: start\n\n"
  vswitch_id:                 "" => "vsw-2zewc5vo7ebyfg76765xw"

when apply, failed with

Error: Error applying plan:

1 error(s) occurred:

* alicloud_instance.k8s_etcd: 1 error(s) occurred:

* alicloud_instance.k8s_etcd: Error creating Aliyun ecs instance: &common.Error{ErrorResponse:common.ErrorResponse{Response:common.Response{RequestId:"D5DAFDA8-4624-44DB-A484-E095162C54EC"}, HostId:"ecs-cn-hangzhou.aliyuncs.com", Code:"ImageNotSupportCloudInit", Message:"The specified image does not support cloud-init."}, StatusCode:400}

CoreOS image does not support cloud-init... Why ?

@willstudy
Copy link
Author

@xiaozhu36 Hi, Why CoreOS images does not support cloud-init ?

@xiaozhu36
Copy link
Collaborator

Hi @willstudy I am sorry for late reply. At present, CoreOS image does not support cloud-init results from CoreOS image internal without python and compilation tools chain.

@willstudy
Copy link
Author

OK, thank you.

@ivories
Copy link

ivories commented Mar 4, 2018

@xiaozhu36 When will it be supported?

@xiaozhu36
Copy link
Collaborator

Hi @ivories I am sorry and I don't know that. Maybe you can create a new ticket to alicloud to get correct time. Or tell me your specified requirement and I use it to promote the related developing team to do it.

@ivories
Copy link

ivories commented Mar 5, 2018

@xiaozhu36 We want to automatically create coreos-k8s based on terraform, such as https://github.com/kubernetes-digitalocean-terraform/kubernetes-digitalocean-terraform.

Or can you provide us with other solutions?

@ivories
Copy link

ivories commented Mar 11, 2018

@xiaozhu36 @xiaozhu36 @xiaozhu36 hello!Anybody at home?

@xiaozhu36
Copy link
Collaborator

xiaozhu36 commented Mar 12, 2018

Hi @ivories I am sorry to tell you. I have pushed your requirement to related developing team, but it may not be fixed in the short term. You may use other OS or develop a function that is similar with cloud-init.

@ivories
Copy link

ivories commented Mar 12, 2018

@xiaozhu36 ok,thank you for you reply. I will try other way to slove it.

@lookstar
Copy link

lookstar commented Jun 1, 2018

Hi there, I sincerely hope that Aliyun could provide such functionality. We do want to establish k8s on Aliyun with CoreOS, as this OS is already the de facto default OS for k8s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants