-
Notifications
You must be signed in to change notification settings - Fork 676
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
VM Host Failure - Available Policy Development #3604
VM Host Failure - Available Policy Development #3604
Conversation
4c3c202
to
7b279b7
Compare
4c124fe
to
02ec11b
Compare
isInstanceStatusRunning = "running" | ||
isInstanceStatusFailed = "failed" | ||
isInstanceAvailablePolicyHostFailure = "availability_policy_host_failure" | ||
isInstanceHostFailure = "host_failure" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where are we using this isInstanceHostFailure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -158,6 +160,13 @@ func ResourceIBMISInstance() *schema.Resource { | |||
), | |||
|
|||
Schema: map[string]*schema.Schema{ | |||
isInstanceAvailablePolicyHostFailure: { | |||
Type: schema.TypeString, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it be both optional and computed..
When user provisions a VM without any availability_policy_host_failure what is the value set in computed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is set with teh default value from the API, which is "restart"
Type: schema.TypeString, | ||
Optional: true, | ||
ForceNew: true, | ||
Computed: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you run one scenario create a template using old binary and then use this new binary and run Terraform plan and check if plan is showing any diff (both for instance, template you do this testing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TF plan says No changes. Infrastructure is up-to-date.
@@ -338,7 +339,7 @@ Review the argument references that you can specify for your resource. | |||
|
|||
## Attribute reference | |||
In addition to all argument reference list, you can access the following attribute reference after your resource is created. | |||
|
|||
- `availability_policy_host_failure` - (String) The availability policy to use for this virtual server instance. The action to perform if the compute host experiences a failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
availability_policy_host_failure is a argument no need to be presen in Attribute Refrence
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
02ec11b
to
277cb24
Compare
277cb24
to
22fd6e4
Compare
|
Hi @dprosper , i checked with the latest release 1.40.0-beta0 and i could see |
Hello @deepaksibm yes I do see it and it is working in the beta, the question is production release and docs. should docs be updated when it is not available in the production release? There is no indication in the docs that I can tell that this is a beta feature I think the docs should reflect that it is a new flag accepted in the beta only There is a delay between the production and the docs release and I don't think there should be. |
Hi @dprosper VM Host is GA. and this release 1.40.0-beta0 is not for supporting Beta features but it is a pre-release version for GA features going to be available in this month's Terraform provider release. |
Output from acceptance testing: