Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Feature/guest ip #24

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

Copy link
Contributor

@ringods ringods left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mborodin can you also add docs for the new datasource? You can add it in this folder:

https://github.com/ringods/terraform-provider-xenserver/tree/master/website/docs/d

If you don't have that folder, please rebase from master.

@mborodin
Copy link
Contributor Author

@ringods done

@ringods
Copy link
Contributor

ringods commented Jan 22, 2018

@mborodin can you rebase from master? I fixed the .travis.yml file to not set up the golang cookie for pull requests.

@zzzuzik
Copy link

zzzuzik commented Mar 3, 2018

could this be merged please?

@dot1q
Copy link

dot1q commented Mar 15, 2018

I have noticed that the startup_delay isn't working and when

data "xenserver_vm_networks" "new_interfaces" {
  vm_uuid = "${xenserver_vm.vm1.id}"
  startup_delay = 80
}

executes before the VM has fully booted up and the tools have connected, which breaks the execution

The following error is returned

* data.xenserver_vm_networks.new_interfaces: data.xenserver_vm_networks.new_interfaces: API Error: HANDLE_INVALID VM_guest_metrics OpaqueRef:NULL

@ringods
Copy link
Contributor

ringods commented Mar 22, 2018

@mborodin I have finally found the time to review this PR. I am not so fond of the datasource name vm_guest_metrics. I know that the XAPI has different objects for:

But from a Terraform viewpoint, I rather would like to know all of this info from a single datasource xenserver_vm, with the same info also offered by the resource xenserver_vm.

What's your idea on renaming the datasource?

Also, could you rebase from master one last time? I merged a few other PRs last weekend.

@debovema
Copy link

debovema commented Jun 6, 2018

@mborodin @ringods : any update on this one ?

@ringods
Copy link
Contributor

ringods commented Jun 14, 2018

@debovema I was still trying to discuss the datasource/resource naming with @mborodin. I would like to stick to creation of resources on the Terraform side. This pull request also exposes metrics which should be more for a monitoring tool, less for the terraform provider.

@debovema
Copy link

I agree, IP address of VM should be available as an attribute of the VM resource instead of only as a datasource. Otherwise it is not possible to use these IPs correctly in a count meta-parameter of other resources.

I submitted #38 which is the same as this one (#24) but rebased from master. You can ignore it if it is not needed.

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

Successfully merging this pull request may close these issues.

5 participants