cloudfoundry / bosh-alicloud-cpi-release

BOSH Alibaba CPI
Apache License 2.0
32 stars 20 forks source link

CPI cannot handle "prepaid" ECS instances #56

Closed benjaminguttmann-avtq closed 3 years ago

benjaminguttmann-avtq commented 5 years ago

Hi,

at the moment it is possible to configure the cloud-config in such a way that so-called subscription instances get created but it is not possible to stop these instances again via the CPI. At the moment it is necessary to transform subscription VMs into 'pay-as-you-go' instances manually via the GUI before they can be deleted. Maybe it is possible to add an automation for this to the CPI.

Thank you.

xiaozhu36 commented 3 years ago

@benjaminguttmann-avtq The CPI has supported to create 'PrePaid' Ecs instance by setting charge_type = "PrePaid", charge_period and charge_period_unit. Please check it.

benjaminguttmann-avtq commented 3 years ago

Hi @xiaozhu36 , my issue was not about not being able to create those instances. That was working fine for me, but I had problems stopping those PrePaid instances via the CPI. But if that is fixed now I am fine with closing it.