-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Incompatible API version with plugin. Plugin version: 2, Ours: 4 #16077
Comments
Hi @scshitole! Sorry for the problems here. The plugin protocol has change a couple times between 0.8 and 0.10. It looks like you're using a plugin binary that was built for version 0.8, which is therefore not compatible with Terraform 0.10. I assume the provider you're referring to here is your own terraform-provider-bigip repository. I notice that it has a version of Terraform from the 0.8.0 series in the If you need to support both versions during a transition, you can make use of Terraform 0.10's provider versioning capability by naming your new binary (for example) provider "bigip" {
version = "0.3.0"
# ...
} |
Hi Martin,
Thanks I did that
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build -o
terraform-provider-bigip_v0.8.0
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ ls
~ launch_bigip.f5bigipmstbt10G launch_bigip.provision
LICENSE
*bigip* launch_bigip.fasthttp launch_bigip.route
main.go
CHANGES.md launch_bigip.fastL4 launch_bigip.selfipvlan
Makefile
crash.log launch_bigip.httpcompression launch_bigip.snmp
README.md
iapp.json launch_bigip.iapp launch_bigip.snmptraps
statefile
launch_bigip.asm1 launch_bigip.iapp2 launch_bigip.syslog
*terraform-provider-bigip_v0.8.0*
launch_bigip.back launch_bigip.lic
launch_bigip.tcp-lan-profile *terraform-provider-f5_v0.8.0*
launch_bigip.back1 launch_bigip.master
launch_bigip_tcp_wan_profile *vendor*
launch_bigip.datagroup launch_bigip.ntpdns launch_bigip.tf
zoo.json
launch_bigip.dns launch_bigip.oneConnect launch_bigip.vlan
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ rm
terraform-provider-f5_v0.8.0
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform plan
*Plugin reinitialization required. Please run "terraform init".*
Reason: Could not satisfy plugin requirements.
Plugins are external binaries that Terraform uses to access and manipulate
resources. The configuration provided requires plugins which can't be
located,
don't satisfy the version constraints, or are otherwise incompatible.
1 error(s) occurred:
* provider.bigip: new or changed plugin executable
Terraform automatically discovers provider requirements from your
configuration, including providers used in child modules. To see the
requirements and constraints from each module, run "terraform providers".
error satisfying plugin requirements
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform init
*Initializing provider plugins...*
The following providers do not have any version constraints in
configuration,
so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain
breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.
* provider.bigip: version = "~> 0.8"
*Terraform has been successfully initialized!*
You may now begin working with Terraform. Try running "terraform plan" to
see
any changes that are required for your infrastructure. All Terraform
commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget,
other
commands will detect it and remind you to do so if necessary.
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform plan
Error asking for user input: 1 error(s) occurred:
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
added
provider "bigip" {
version = "~> 0.8"
address = "10.192.74.73"
username = "admin"
password = "admin"
}
resource "bigip_datagroup" "datagroup1" {
name = "dgx8"
type = "string"
records {
name = "xyx.f5.com"
data = "pool100"
}
}
…On Tue, Sep 12, 2017 at 4:29 PM, Martin Atkins ***@***.***> wrote:
Hi @scshitole <https://github.com/scshitole>! Sorry for the problems here.
The plugin protocol has change a couple times between 0.8 and 0.10. It
looks like you're using a plugin binary that was built for version 0.8,
which is therefore not compatible with Terraform 0.10.
I assume the provider you're referring to here is your own
terraform-provider-bigip
<https://github.com/scshitole/terraform-provider-bigip> repository. I
notice that it has a version of Terraform from the 0.8.0 series in the
vendor directory. If you upgrade this vendored version to current master
or to one of the 0.10 release tags and then rebuild the plugin I think this
error will go away.
If you need to support both versions during a transition, you can make use
of Terraform 0.10's provider versioning
<https://www.terraform.io/docs/configuration/providers.html#provider-versions>
capability by naming your new binary (for example)
terraform-provider-bigip_v0.3.0 , which will make it invisible to
Terraform 0.8.1 (it doesn't understand that newer naming scheme). You can
then request the *new* version in configurations where you're using 0.10,
like this:
provider "bigip" {
version = "0.3.0"
# ...
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANN1yF4sJzJa2W5-OWORLyqUBVVyLStQks5shxPqgaJpZM4PVIY0>
.
|
Hi @scshitole, Unfortunately that's a bit hard to read since it seems the GitHub email gateway had some trouble with the formatting 😖 but I see where you rebuilt the plugin executable and then when you ran First I want to clarify that in the naming scheme I didn't see in your log a command to upgrade the vendored version of
If this works, To confirm that Terraform is selecting the expected build of the plugin, you can run
If you see the "found provider" log line under one of the other |
It says command not found
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cd bigip/
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/bigip
<http://github.com/terraform-provider-bigip/bigip>*$ govendor fetch
github.com/hashicorp/terraform
govendor: command not found
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/bigip
<http://github.com/terraform-provider-bigip/bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/bigip
<http://github.com/terraform-provider-bigip/bigip>*$ go vendor fetch
github.com/hashicorp/terraform
go: unknown subcommand "vendor"
Run 'go help' for usage.
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/bigip
<http://github.com/terraform-provider-bigip/bigip>*$
…On Wed, Sep 13, 2017 at 11:47 AM, Martin Atkins ***@***.***> wrote:
Hi @scshitole <https://github.com/scshitole>,
Unfortunately that's a bit hard to read since it seems the GitHub email
gateway had some trouble with the formatting 😖 but I see where you
rebuilt the plugin executable and then when you ran terraform plan again
(after re-initialization) you got the same error as before.
First I want to clarify that in the naming scheme
terraform-provider-bigip_v0.3.0 I suggested, the v0.3.0 was intended to
be the *provider* version, rather than a *Terraform* version. I picked
0.3.0 because the changelog in your repository showed 0.2.0 as being the
latest, but you can choose any number you wish as long as it matches what
you specify in your Terraform configuration.
I didn't see in your log a command to upgrade the vendored version of
github.com/hashicorp/terraform; perhaps you did this before the go build
command and didn't show it in the log, but in case not here's a govendor
command to update this:
$ govendor fetch github.com/hashicorp/terraform
If this works, git status should show changes to the files in vendor/
github.com/hashicorp/terraform, and *in particular* you should see const
Version = "0.10.5" in the file vendor/github.com/hashicorp/
terraform/terraform/version.go, indicating that the correct version was
selected by govendor.
To confirm that Terraform is selecting the expected build of the plugin,
you can run TF_LOG=debug terraform plan and you should see, near the top
of the log, lines like this:
2017/09/13 11:42:23 [DEBUG] checking for provider in "."
2017/09/13 11:42:23 [DEBUG] found provider "terraform-provider-bigip_v0.8.0"
2017/09/13 11:42:23 [DEBUG] found valid plugin: "bigip"
2017/09/13 11:42:23 [DEBUG] checking for provider in "/home/scs/dev/src/github.com/terraform-provider-bigip"
2017/09/13 11:42:23 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
If you see the "found provider" log line under one of the *other* checkign
for provider in ... lines then that suggests that there is another copy
of the plugin on your system that is being used instead of the one in the
current directory. If you see this, please share these relevant lines from
the log so I can see what Terraform is looking for and finding.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANN1yObs8vXMcKkUNNUacaJoiqg872Iiks5siCMvgaJpZM4PVIY0>
.
|
Hi Martin,
Here is the go build status
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go build
graph_walk_context.go:8:2: cannot find package "github.com/hashicorp/errwrap"
in any of:
/usr/local/go/src/github.com/hashicorp/errwrap (from $GOROOT)
/home/scs/go/src/github.com/hashicorp/errwrap (from $GOPATH)
context.go:10:2: cannot find package "github.com/hashicorp/go-multierror"
in any of:
/usr/local/go/src/github.com/hashicorp/go-multierror (from $GOROOT)
/home/scs/go/src/github.com/hashicorp/go-multierror (from $GOPATH)
state.go:18:2: cannot find package "github.com/hashicorp/go-version" in any
of:
/usr/local/go/src/github.com/hashicorp/go-version (from $GOROOT)
/home/scs/go/src/github.com/hashicorp/go-version (from $GOPATH)
context.go:11:2: cannot find package "github.com/hashicorp/hcl" in any of:
/usr/local/go/src/github.com/hashicorp/hcl (from $GOROOT)
/home/scs/go/src/github.com/hashicorp/hcl (from $GOPATH)
interpolate.go:13:2: cannot find package "github.com/hashicorp/hil" in any
of:
/usr/local/go/src/github.com/hashicorp/hil (from $GOROOT)
/home/scs/go/src/github.com/hashicorp/hil (from $GOPATH)
interpolate.go:14:2: cannot find package "github.com/hashicorp/hil/ast" in
any of:
/usr/local/go/src/github.com/hashicorp/hil/ast (from $GOROOT)
/home/scs/go/src/github.com/hashicorp/hil/ast (from $GOPATH)
diff.go:13:2: cannot find package "github.com/mitchellh/copystructure" in
any of:
/usr/local/go/src/github.com/mitchellh/copystructure (from $GOROOT)
/home/scs/go/src/github.com/mitchellh/copystructure (from $GOPATH)
resource.go:12:2: cannot find package "github.com/mitchellh/reflectwalk" in
any of:
/usr/local/go/src/github.com/mitchellh/reflectwalk (from $GOROOT)
/home/scs/go/src/github.com/mitchellh/reflectwalk (from $GOPATH)
state.go:21:2: cannot find package "github.com/satori/go.uuid" in any of:
/usr/local/go/src/github.com/satori/go.uuid (from $GOROOT)
/home/scs/go/src/github.com/satori/go.uuid (from $GOPATH)
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/errwrap
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/go-multierror
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/go-version
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/hcl
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/hil/ast
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/mitchellh/copystructure
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/mitchellh/reflectwalk
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/satori/go.uuid
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go build
/home/scs/go/src/github.com/hashicorp/hil/convert.go:8:2: cannot find
package "github.com/mitchellh/mapstructure" in any of:
/usr/local/go/src/github.com/mitchellh/mapstructure (from $GOROOT)
/home/scs/go/src/github.com/mitchellh/mapstructure (from $GOPATH)
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/mitchellh/mapstructure
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go build
# _/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
./context.go:385:38: undefined: experiment.X_legacyGraph
./context.go:470:38: undefined: experiment.X_legacyGraph
./eval_context_builtin.go:291:28: cannot use vs (type map[string]"
github.com/hashicorp/hil/ast".Variable) as type map[string]"
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/ast".Variable
in argument to cfg.Interpolate
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go build
# _/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
./context.go:385:38: undefined: experiment.X_legacyGraph
./context.go:470:38: undefined: experiment.X_legacyGraph
./eval_context_builtin.go:291:28: cannot use vs (type map[string]"
github.com/hashicorp/hil/ast".Variable) as type map[string]"
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hil/ast".Variable
in argument to cfg.Interpolate
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
…On Wed, Sep 13, 2017 at 11:47 AM, Martin Atkins ***@***.***> wrote:
Hi @scshitole <https://github.com/scshitole>,
Unfortunately that's a bit hard to read since it seems the GitHub email
gateway had some trouble with the formatting 😖 but I see where you
rebuilt the plugin executable and then when you ran terraform plan again
(after re-initialization) you got the same error as before.
First I want to clarify that in the naming scheme
terraform-provider-bigip_v0.3.0 I suggested, the v0.3.0 was intended to
be the *provider* version, rather than a *Terraform* version. I picked
0.3.0 because the changelog in your repository showed 0.2.0 as being the
latest, but you can choose any number you wish as long as it matches what
you specify in your Terraform configuration.
I didn't see in your log a command to upgrade the vendored version of
github.com/hashicorp/terraform; perhaps you did this before the go build
command and didn't show it in the log, but in case not here's a govendor
command to update this:
$ govendor fetch github.com/hashicorp/terraform
If this works, git status should show changes to the files in vendor/
github.com/hashicorp/terraform, and *in particular* you should see const
Version = "0.10.5" in the file vendor/github.com/hashicorp/
terraform/terraform/version.go, indicating that the correct version was
selected by govendor.
To confirm that Terraform is selecting the expected build of the plugin,
you can run TF_LOG=debug terraform plan and you should see, near the top
of the log, lines like this:
2017/09/13 11:42:23 [DEBUG] checking for provider in "."
2017/09/13 11:42:23 [DEBUG] found provider "terraform-provider-bigip_v0.8.0"
2017/09/13 11:42:23 [DEBUG] found valid plugin: "bigip"
2017/09/13 11:42:23 [DEBUG] checking for provider in "/home/scs/dev/src/github.com/terraform-provider-bigip"
2017/09/13 11:42:23 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
If you see the "found provider" log line under one of the *other* checkign
for provider in ... lines then that suggests that there is another copy
of the plugin on your system that is being used instead of the one in the
current directory. If you see this, please share these relevant lines from
the log so I can see what Terraform is looking for and finding.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANN1yObs8vXMcKkUNNUacaJoiqg872Iiks5siCMvgaJpZM4PVIY0>
.
|
Hi @scshitole, You can install
|
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get -u
github.com/kardianos/govendor
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ govendor fetch
github.com/hashicorp/terraform
govendor: command not found
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/scs/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
…On Wed, Sep 13, 2017 at 4:04 PM, Martin Atkins ***@***.***> wrote:
Hi @scshitole <https://github.com/scshitole>,
You can install govendor with this command:
go get -u github.com/kardianos/govendor
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANN1yAsg889ld_F2tfKKWJEFw1SRmTpGks5siF-FgaJpZM4PVIY0>
.
|
Hi Martin,
I build the terraform in the vendor directory
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/errwrap
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/go-multierror
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/go-version
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/hcl
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/hil/ast
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/config
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/config/module*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/dag
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/flatmap
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/helper/experiment
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get
go install: no install location for directory /home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
outside GOPATH
For more details see: 'go help gopath'
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/helper/hilmapstructure
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$ go get github.com/hashicorp/terraform/helper/shadow
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/mitchellh/copystructure
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/mitchellh/reflectwalk
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/satori/go.uuid
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go build
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
cd
*scs@scs*:*~*$ cd dev/src/github.com/terraform-provider-bigip/
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ ls
~ launch_bigip.datagroup launch_bigip.lic
launch_bigip.snmptraps Makefile
*bigip* launch_bigip.dns launch_bigip.master
launch_bigip.syslog README.md
CHANGES.md launch_bigip.f5bigipmstbt10G launch_bigip.ntpdns
launch_bigip.tcp-lan-profile statefile
crash.log launch_bigip.fasthttp launch_bigip.oneConnect
launch_bigip_tcp_wan_profile *terraform-provider-bigip_v0.3.0*
iapp.json launch_bigip.fastL4 launch_bigip.provision
launch_bigip.tf *vendor*
launch_bigip.asm1 launch_bigip.httpcompression launch_bigip.route
launch_bigip.vlan
zoo.json
launch_bigip.back launch_bigip.iapp launch_bigip.selfipvlan
LICENSE
launch_bigip.back1 launch_bigip.iapp2 launch_bigip.snmp
main.go
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build
main.go:5:2: cannot find package "github.com/terraform-provider-bigip/bigip"
in any of:
/usr/local/go/src/github.com/terraform-provider-bigip/bigip (from $GOROOT)
/home/scs/dev/src/src/github.com/terraform-provider-bigip/bigip (from
$GOPATH)
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ export GOPATH=$HOME/dev/src
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build
main.go:5:2: cannot find package "github.com/terraform-provider-bigip/bigip"
in any of:
/usr/local/go/src/github.com/terraform-provider-bigip/bigip (from $GOROOT)
/home/scs/dev/src/src/github.com/terraform-provider-bigip/bigip (from
$GOPATH)
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ export GOPATH=$HOME/dev
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cat launch_bigip.tf
provider "bigip" {
version = "~> 0.3"
address = "10.192.74.73"
username = "admin"
password = "admin"
}
resource "bigip_datagroup" "datagroup1" {
name = "dgx8"
type = "string"
records {
name = "xyx.f5.com"
data = "pool100"
}
}
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ TF_LOG=debug terraform plan
2017/09/14 13:23:24 [INFO] Terraform version: 0.10.4
10df48e
2017/09/14 13:23:24 [INFO] Go runtime version: go1.9
2017/09/14 13:23:24 [INFO] CLI args: []string{"/usr/local/bin/terraform",
"plan"}
2017/09/14 13:23:24 [DEBUG] Attempting to open CLI config file:
/home/scs/.terraformrc
2017/09/14 13:23:24 [DEBUG] File doesn't exist, but doesn't need to.
Ignoring.
2017/09/14 13:23:24 [INFO] CLI command args: []string{"plan"}
2017/09/14 13:23:24 [INFO] command: empty terraform config, returning nil
2017/09/14 13:23:24 [DEBUG] command: no data state file found for backend
config
2017/09/14 13:23:24 [DEBUG] New state was assigned lineage
"f6d4fd7c-aab9-4f5a-82f6-7a933f63e014"
2017/09/14 13:23:24 [INFO] command: backend initialized: <nil>
2017/09/14 13:23:24 [DEBUG] checking for provider in "."
2017/09/14 13:23:24 [WARNING] found legacy provider
"terraform-provider-bigip"
2017/09/14 13:23:24 [DEBUG] found provider "terraform-provider-bigip_v0.3.0"
2017/09/14 13:23:24 [DEBUG] checking for provider in "/usr/local/bin"
2017/09/14 13:23:24 [DEBUG] checking for provider in
".terraform/plugins/linux_amd64"
2017/09/14 13:23:24 [DEBUG] found valid plugin: "bigip"
2017/09/14 13:23:24 [DEBUG] found valid plugin: "bigip"
2017/09/14 13:23:24 [DEBUG] checking for provisioner in "."
2017/09/14 13:23:24 [DEBUG] checking for provisioner in "/usr/local/bin"
2017/09/14 13:23:24 [DEBUG] checking for provisioner in
".terraform/plugins/linux_amd64"
2017/09/14 13:23:24 [INFO] command: backend <nil> is not enhanced, wrapping
in local
2017/09/14 13:23:24 [INFO] backend/local: starting Plan operation
2017/09/14 13:23:24 [DEBUG] New state was assigned lineage
"80df9667-3acd-4db5-afc4-963716d15085"
2017/09/14 13:23:26 [INFO] terraform: building graph: GraphTypeInput
2017/09/14 13:23:26 [DEBUG] Resource state not found for
"bigip_datagroup.datagroup1": bigip_datagroup.datagroup1
2017/09/14 13:23:26 [DEBUG] ReferenceTransformer:
"bigip_datagroup.datagroup1" references: []
2017/09/14 13:23:26 [DEBUG] ReferenceTransformer: "provider.bigip"
references: []
2017/09/14 13:23:26 [TRACE] Graph after step
*terraform.ReferenceTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
provider.bigip - *terraform.NodeApplyableProvider
provider.bigip - *terraform.NodeApplyableProvider
2017/09/14 13:23:26 [DEBUG] Starting graph walk: walkInput
2017-09-14T13:23:26.732-0700 [DEBUG] plugin: starting plugin:
path=/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0
args=[/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0]
2017-09-14T13:23:26.733-0700 [DEBUG] plugin: waiting for RPC address:
path=/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0
2017-09-14T13:23:26.749-0700 [DEBUG]
plugin.terraform-provider-bigip_v0.3.0: 2017/09/14 13:23:26 [DEBUG] plugin:
plugin address: unix /tmp/plugin489008280
2017/09/14 13:23:26 [ERROR] root: eval: *terraform.EvalInitProvider, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 13:23:26 [ERROR] root: eval: *terraform.EvalSequence, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 13:23:26 [TRACE] [walkInput] Exiting eval tree: provider.bigip
2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
"bigip_datagroup.datagroup1"
2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
"meta.count-boundary (count boundary fixup)"
2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
"provider.bigip (close)"
2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking "root"
2017/09/14 13:23:26 [DEBUG] plugin: waiting for all plugin processes to
complete...
Error asking for user input: 1 error(s) occurred:
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
2017-09-14T13:23:26.750-0700 [DEBUG] plugin: plugin process exited:
path=/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
…On Wed, Sep 13, 2017 at 4:32 PM, Sanjay Shitole ***@***.***> wrote:
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get -u
github.com/kardianos/govendor
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ govendor fetch
github.com/hashicorp/terraform
govendor: command not found
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/scs/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
On Wed, Sep 13, 2017 at 4:04 PM, Martin Atkins ***@***.***>
wrote:
> Hi @scshitole <https://github.com/scshitole>,
>
> You can install govendor with this command:
>
> go get -u github.com/kardianos/govendor
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#16077 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ANN1yAsg889ld_F2tfKKWJEFw1SRmTpGks5siF-FgaJpZM4PVIY0>
> .
>
|
here I was able to do govendor fetch, I did build for vendor as well as for provider, also updated the version in .TF file, here are the logs
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
|
More logs I see Legacy provider is being used in log below
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cat launch_bigip.tf
provider "bigip" {
version = "~> 0.3"
address = "10.192.74.73"
username = "admin"
password = "admin"
}
resource "bigip_datagroup" "datagroup1" {
name = "dgx8"
type = "string"
records {
name = "xyx.f5.com"
data = "pool100"
}
}
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ vi launch_bigip.tf
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform plan
Error asking for user input: 1 error(s) occurred:
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cd /vendor/
github.com/hashicorp/terraform/terraform
…-bash: cd: /vendor/github.com/hashicorp/terraform/terraform: No such file
or directory
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cd vendor/
github.com/hashicorp/terraform/terraform
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
govendor fetch github.com/hashicorp/terraform
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
cd ../../../../
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor
<http://github.com/terraform-provider-bigip/vendor>*$ cd ..
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cd vendor/
github.com/hashicorp/terraform/terraform
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go build
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
cd ../../../../
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor
<http://github.com/terraform-provider-bigip/vendor>*$ cd ..
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ TF_LOG=debug terraform plan
2017/09/14 15:25:38 [INFO] Terraform version: 0.10.4
10df48e
2017/09/14 15:25:38 [INFO] Go runtime version: go1.9
2017/09/14 15:25:38 [INFO] CLI args: []string{"/usr/local/bin/terraform",
"plan"}
2017/09/14 15:25:38 [DEBUG] Attempting to open CLI config file:
/home/scs/.terraformrc
2017/09/14 15:25:38 [DEBUG] File doesn't exist, but doesn't need to.
Ignoring.
2017/09/14 15:25:38 [INFO] CLI command args: []string{"plan"}
2017/09/14 15:25:38 [INFO] command: empty terraform config, returning nil
2017/09/14 15:25:38 [DEBUG] command: no data state file found for backend
config
2017/09/14 15:25:38 [DEBUG] New state was assigned lineage
"e8e3772b-3dfb-477f-a7a4-9f6121dbb82d"
2017/09/14 15:25:38 [INFO] command: backend initialized: <nil>
2017/09/14 15:25:38 [DEBUG] checking for provider in "."
2017/09/14 15:25:38 [WARNING] found legacy provider
"terraform-provider-bigip"
2017/09/14 15:25:38 [DEBUG] found provider "terraform-provider-bigip_v0.3.0"
2017/09/14 15:25:38 [DEBUG] checking for provider in "/usr/local/bin"
2017/09/14 15:25:38 [DEBUG] checking for provider in
".terraform/plugins/linux_amd64"
2017/09/14 15:25:38 [DEBUG] found valid plugin: "bigip"
2017/09/14 15:25:38 [DEBUG] found valid plugin: "bigip"
2017/09/14 15:25:38 [DEBUG] checking for provisioner in "."
2017/09/14 15:25:38 [DEBUG] checking for provisioner in "/usr/local/bin"
2017/09/14 15:25:38 [DEBUG] checking for provisioner in
".terraform/plugins/linux_amd64"
2017/09/14 15:25:38 [INFO] command: backend <nil> is not enhanced, wrapping
in local
2017/09/14 15:25:38 [INFO] backend/local: starting Plan operation
2017/09/14 15:25:38 [DEBUG] New state was assigned lineage
"6deb1c0f-8954-435c-af04-4703dead5cba"
2017/09/14 15:25:38 [INFO] terraform: building graph: GraphTypeInput
2017/09/14 15:25:38 [DEBUG] Resource state not found for
"bigip_datagroup.datagroup1": bigip_datagroup.datagroup1
2017/09/14 15:25:38 [TRACE] Graph after step
*terraform.AttachStateTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
2017/09/14 15:25:38 [TRACE] Graph after step
*terraform.RootVariableTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
nsitiveReductionTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
provider.bigip - *terraform.NodeApplyableProvider
meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
provider.bigip - *terraform.NodeApplyableProvider
provider.bigip (close) - *terraform.graphNodeCloseProvider
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
root - terraform.graphNodeRoot
meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
provider.bigip (close) - *terraform.graphNodeCloseProvider
2017/09/14 15:25:38 [DEBUG] Starting graph walk: walkInput
2017-09-14T15:25:38.480-0700 [DEBUG] plugin: waiting for RPC address:
path=/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0
Error asking for user input: 1 error(s) occurred:
2017/09/14 15:25:38 [ERROR] root: eval: *terraform.EvalInitProvider, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 15:25:38 [ERROR] root: eval: *terraform.EvalSequence, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 15:25:38 [TRACE] [walkInput] Exiting eval tree: provider.bigip
2017/09/14 15:25:38 [TRACE] dag/walk: upstream errored, not walking
"bigip_datagroup.datagroup1"
2017/09/14 15:25:38 [TRACE] dag/walk: upstream errored, not walking
"meta.count-boundary (count boundary fixup)"
2017/09/14 15:25:38 [TRACE] dag/walk: upstream errored, not walking
"provider.bigip (close)"
2017/09/14 15:25:38 [TRACE] dag/walk: upstream errored, not walking "root"
2017/09/14 15:25:38 [DEBUG] plugin: waiting for all plugin processes to
complete...
2017-09-14T15:25:38.486-0700 [DEBUG]
plugin.terraform-provider-bigip_v0.3.0: 2017/09/14 15:25:38 [DEBUG] plugin:
plugin address: unix /tmp/plugin732847778
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
2017-09-14T15:25:38.487-0700 [DEBUG] plugin: plugin process exited:
path=/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
On Thu, Sep 14, 2017 at 1:23 PM, Sanjay Shitole ***@***.***> wrote:
Hi Martin,
I build the terraform in the vendor directory
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/errwrap
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/go-multierror
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/go-version
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/hcl
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/hil/ast
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/config
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/dag
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/flatmap
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/helper/experiment
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get
go install: no install location for directory /home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/hashicorp/
terraform/terraform outside GOPATH
For more details see: 'go help gopath'
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/hashicorp/terraform/helper/hilmapstructure
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$ go get github.com/hashicorp/terraform/helper/shadow
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/mitchellh/copystructure
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/mitchellh/reflectwalk
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go get github.com/satori/go.uuid
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go build
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
cd
***@***.****:*~*$ cd dev/src/github.com/terraform-provider-bigip/
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ ls
~ launch_bigip.datagroup launch_bigip.lic
launch_bigip.snmptraps Makefile
*bigip* launch_bigip.dns launch_bigip.master
launch_bigip.syslog README.md
CHANGES.md launch_bigip.f5bigipmstbt10G launch_bigip.ntpdns
launch_bigip.tcp-lan-profile statefile
crash.log launch_bigip.fasthttp launch_bigip.oneConnect
launch_bigip_tcp_wan_profile *terraform-provider-bigip_v0.3.0*
iapp.json launch_bigip.fastL4 launch_bigip.provision
launch_bigip.tf *vendor*
launch_bigip.asm1 launch_bigip.httpcompression launch_bigip.route
launch_bigip.vlan zoo.json
launch_bigip.back launch_bigip.iapp launch_bigip.selfipvlan
LICENSE
launch_bigip.back1 launch_bigip.iapp2 launch_bigip.snmp
main.go
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build
main.go:5:2: cannot find package "github.com/terraform-
provider-bigip/bigip" in any of:
/usr/local/go/src/github.com/terraform-provider-bigip/bigip (from $GOROOT)
/home/scs/dev/src/src/github.com/terraform-provider-bigip/bigip (from
$GOPATH)
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ export GOPATH=$HOME/dev/src
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build
main.go:5:2: cannot find package "github.com/terraform-
provider-bigip/bigip" in any of:
/usr/local/go/src/github.com/terraform-provider-bigip/bigip (from $GOROOT)
/home/scs/dev/src/src/github.com/terraform-provider-bigip/bigip (from
$GOPATH)
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ export GOPATH=$HOME/dev
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cat launch_bigip.tf
provider "bigip" {
version = "~> 0.3"
address = "10.192.74.73"
username = "admin"
password = "admin"
}
resource "bigip_datagroup" "datagroup1" {
name = "dgx8"
type = "string"
records {
name = "xyx.f5.com"
data = "pool100"
}
}
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ TF_LOG=debug terraform plan
2017/09/14 13:23:24 [INFO] Terraform version: 0.10.4
10df48e
2017/09/14 13:23:24 [INFO] Go runtime version: go1.9
2017/09/14 13:23:24 [INFO] CLI args: []string{"/usr/local/bin/terraform",
"plan"}
2017/09/14 13:23:24 [DEBUG] Attempting to open CLI config file:
/home/scs/.terraformrc
2017/09/14 13:23:24 [DEBUG] File doesn't exist, but doesn't need to.
Ignoring.
2017/09/14 13:23:24 [INFO] CLI command args: []string{"plan"}
2017/09/14 13:23:24 [INFO] command: empty terraform config, returning nil
2017/09/14 13:23:24 [DEBUG] command: no data state file found for backend
config
2017/09/14 13:23:24 [DEBUG] New state was assigned lineage
"f6d4fd7c-aab9-4f5a-82f6-7a933f63e014"
2017/09/14 13:23:24 [INFO] command: backend initialized: <nil>
2017/09/14 13:23:24 [DEBUG] checking for provider in "."
2017/09/14 13:23:24 [WARNING] found legacy provider
"terraform-provider-bigip"
2017/09/14 13:23:24 [DEBUG] found provider "terraform-provider-bigip_v0.
3.0"
2017/09/14 13:23:24 [DEBUG] checking for provider in "/usr/local/bin"
2017/09/14 13:23:24 [DEBUG] checking for provider in
".terraform/plugins/linux_amd64"
2017/09/14 13:23:24 [DEBUG] found valid plugin: "bigip"
2017/09/14 13:23:24 [DEBUG] found valid plugin: "bigip"
2017/09/14 13:23:24 [DEBUG] checking for provisioner in "."
2017/09/14 13:23:24 [DEBUG] checking for provisioner in "/usr/local/bin"
2017/09/14 13:23:24 [DEBUG] checking for provisioner in
".terraform/plugins/linux_amd64"
2017/09/14 13:23:24 [INFO] command: backend <nil> is not enhanced,
wrapping in local
2017/09/14 13:23:24 [INFO] backend/local: starting Plan operation
2017/09/14 13:23:24 [DEBUG] New state was assigned lineage
"80df9667-3acd-4db5-afc4-963716d15085"
2017/09/14 13:23:26 [INFO] terraform: building graph: GraphTypeInput
2017/09/14 13:23:26 [DEBUG] Resource state not found for
"bigip_datagroup.datagroup1": bigip_datagroup.datagroup1
2017/09/14 13:23:26 [DEBUG] ReferenceTransformer:
"bigip_datagroup.datagroup1" references: []
2017/09/14 13:23:26 [DEBUG] ReferenceTransformer: "provider.bigip"
references: []
2017/09/14 13:23:26 [TRACE] Graph after step *terraform.
ReferenceTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
provider.bigip - *terraform.NodeApplyableProvider
provider.bigip - *terraform.NodeApplyableProvider
2017/09/14 13:23:26 [DEBUG] Starting graph walk: walkInput
2017-09-14T13:23:26.732-0700 [DEBUG] plugin: starting plugin:
path=/home/scs/dev/src/github.com/terraform-provider-bigip/
terraform-provider-bigip_v0.3.0 args=[/home/scs/dev/src/github
.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0]
2017-09-14T13:23:26.733-0700 [DEBUG] plugin: waiting for RPC address:
path=/home/scs/dev/src/github.com/terraform-provider-bigip/
terraform-provider-bigip_v0.3.0
2017-09-14T13:23:26.749-0700 [DEBUG] plugin.terraform-provider-bigip_v0.3.0:
2017/09/14 13:23:26 [DEBUG] plugin: plugin address: unix
/tmp/plugin489008280
2017/09/14 13:23:26 [ERROR] root: eval: *terraform.EvalInitProvider, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 13:23:26 [ERROR] root: eval: *terraform.EvalSequence, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 13:23:26 [TRACE] [walkInput] Exiting eval tree: provider.bigip
2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
"bigip_datagroup.datagroup1"
2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
"meta.count-boundary (count boundary fixup)"
2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
"provider.bigip (close)"
2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking "root"
2017/09/14 13:23:26 [DEBUG] plugin: waiting for all plugin processes to
complete...
Error asking for user input: 1 error(s) occurred:
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
2017-09-14T13:23:26.750-0700 [DEBUG] plugin: plugin process exited:
path=/home/scs/dev/src/github.com/terraform-provider-bigip/
terraform-provider-bigip_v0.3.0
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
On Wed, Sep 13, 2017 at 4:32 PM, Sanjay Shitole ***@***.***>
wrote:
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ go get -u
> github.com/kardianos/govendor
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ govendor fetch
> github.com/hashicorp/terraform
>
> govendor: command not found
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ go env
>
> GOARCH="amd64"
>
> GOBIN=""
>
> GOEXE=""
>
> GOHOSTARCH="amd64"
>
> GOHOSTOS="linux"
>
> GOOS="linux"
>
> GOPATH="/home/scs/go"
>
> GORACE=""
>
> GOROOT="/usr/local/go"
>
> GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
>
> GCCGO="gccgo"
>
> CC="gcc"
>
> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
>
> CXX="g++"
>
> CGO_ENABLED="1"
>
> CGO_CFLAGS="-g -O2"
>
> CGO_CPPFLAGS=""
>
> CGO_CXXFLAGS="-g -O2"
>
> CGO_FFLAGS="-g -O2"
>
> CGO_LDFLAGS="-g -O2"
>
> PKG_CONFIG="pkg-config"
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$
>
> On Wed, Sep 13, 2017 at 4:04 PM, Martin Atkins ***@***.***>
> wrote:
>
>> Hi @scshitole <https://github.com/scshitole>,
>>
>> You can install govendor with this command:
>>
>> go get -u github.com/kardianos/govendor
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#16077 (comment)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/ANN1yAsg889ld_F2tfKKWJEFw1SRmTpGks5siF-FgaJpZM4PVIY0>
>> .
>>
>
>
|
Sorry remove the legacy binary and tried again no luck
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ rm terraform-provider-bigip
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform plan
Error asking for user input: 1 error(s) occurred:
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ TF_LOG=debug terraform plan
2017/09/14 15:31:47 [INFO] Terraform version: 0.10.4
10df48e
2017/09/14 15:31:47 [INFO] Go runtime version: go1.9
2017/09/14 15:31:47 [INFO] CLI args: []string{"/usr/local/bin/terraform",
"plan"}
2017/09/14 15:31:47 [DEBUG] Attempting to open CLI config file:
/home/scs/.terraformrc
2017/09/14 15:31:47 [DEBUG] File doesn't exist, but doesn't need to.
Ignoring.
2017/09/14 15:31:47 [INFO] CLI command args: []string{"plan"}
2017/09/14 15:31:47 [INFO] command: empty terraform config, returning nil
2017/09/14 15:31:47 [DEBUG] command: no data state file found for backend
config
2017/09/14 15:31:47 [DEBUG] New state was assigned lineage
"f683dda8-cf75-470f-858f-36546ea547b4"
2017/09/14 15:31:47 [INFO] command: backend initialized: <nil>
2017/09/14 15:31:47 [DEBUG] checking for provider in "."
2017/09/14 15:31:47 [DEBUG] found provider "terraform-provider-bigip_v0.3.0"
2017/09/14 15:31:47 [DEBUG] checking for provider in "/usr/local/bin"
2017/09/14 15:31:47 [DEBUG] checking for provider in
".terraform/plugins/linux_amd64"
2017/09/14 15:31:47 [DEBUG] found valid plugin: "bigip"
2017/09/14 15:31:47 [DEBUG] checking for provisioner in "."
2017/09/14 15:31:47 [DEBUG] checking for provisioner in "/usr/local/bin"
2017/09/14 15:31:47 [DEBUG] checking for provisioner in
".terraform/plugins/linux_amd64"
2017/09/14 15:31:47 [INFO] command: backend <nil> is not enhanced, wrapping
in local
2017/09/14 15:31:47 [INFO] backend/local: starting Plan operation
2017/09/14 15:31:47 [DEBUG] New state was assigned lineage
"09cf0d24-ab88-4e3d-9835-89ae7f84b54e"
2017/09/14 15:31:47 [INFO] terraform: building graph: GraphTypeInput
2017/09/14 15:31:47 [DEBUG] Resource state not found for
"bigip_datagroup.datagroup1": bigip_datagroup.datagroup1
2017/09/14 15:31:47 [TRACE] Graph after step
*terraform.AttachStateTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
2017/09/14 15:31:47 [TRACE] Graph after step
*terraform.RootVariableTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
2017/09/14 15:31:47 [DEBUG] Starting graph walk: walkInput
2017-09-14T15:31:47.366-0700 [DEBUG] plugin: starting plugin:
path=/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0
args=[/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0]
2017-09-14T15:31:47.367-0700 [DEBUG] plugin: waiting for RPC address:
path=/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0
2017-09-14T15:31:47.372-0700 [DEBUG]
plugin.terraform-provider-bigip_v0.3.0: 2017/09/14 15:31:47 [DEBUG] plugin:
plugin address: unix /tmp/plugin313507342
2017/09/14 15:31:47 [ERROR] root: eval: *terraform.EvalInitProvider, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 15:31:47 [ERROR] root: eval: *terraform.EvalSequence, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 15:31:47 [TRACE] [walkInput] Exiting eval tree: provider.bigip
2017/09/14 15:31:47 [TRACE] dag/walk: upstream errored, not walking
"bigip_datagroup.datagroup1"
2017/09/14 15:31:47 [TRACE] dag/walk: upstream errored, not walking
"meta.count-boundary (count boundary fixup)"
2017/09/14 15:31:47 [TRACE] dag/walk: upstream errored, not walking
"provider.bigip (close)"
2017/09/14 15:31:47 [TRACE] dag/walk: upstream errored, not walking "root"
2017/09/14 15:31:47 [DEBUG] plugin: waiting for all plugin processes to
complete...
Error asking for user input: 1 error(s) occurred:
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
2017-09-14T15:31:47.373-0700 [DEBUG] plugin: plugin process exited:
path=/home/scs/dev/src/
github.com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
…On Thu, Sep 14, 2017 at 3:30 PM, Sanjay Shitole ***@***.***> wrote:
More logs I see Legacy provider is being used in log below
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cat launch_bigip.tf
provider "bigip" {
version = "~> 0.3"
address = "10.192.74.73"
username = "admin"
password = "admin"
}
resource "bigip_datagroup" "datagroup1" {
name = "dgx8"
type = "string"
records {
name = "xyx.f5.com"
data = "pool100"
}
}
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ vi launch_bigip.tf
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform plan
Error asking for user input: 1 error(s) occurred:
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cd /vendor/
github.com/hashicorp/terraform/terraform
-bash: cd: /vendor/github.com/hashicorp/terraform/terraform: No such file
or directory
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cd vendor/
github.com/hashicorp/terraform/terraform
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
govendor fetch github.com/hashicorp/terraform
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
cd ../../../../
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor
<http://github.com/terraform-provider-bigip/vendor>*$ cd ..
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cd vendor/
github.com/hashicorp/terraform/terraform
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
go build
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
cd ../../../../
***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor
<http://github.com/terraform-provider-bigip/vendor>*$ cd ..
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go build
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ TF_LOG=debug terraform plan
2017/09/14 15:25:38 [INFO] Terraform version: 0.10.4
10df48e
2017/09/14 15:25:38 [INFO] Go runtime version: go1.9
2017/09/14 15:25:38 [INFO] CLI args: []string{"/usr/local/bin/terraform",
"plan"}
2017/09/14 15:25:38 [DEBUG] Attempting to open CLI config file:
/home/scs/.terraformrc
2017/09/14 15:25:38 [DEBUG] File doesn't exist, but doesn't need to.
Ignoring.
2017/09/14 15:25:38 [INFO] CLI command args: []string{"plan"}
2017/09/14 15:25:38 [INFO] command: empty terraform config, returning nil
2017/09/14 15:25:38 [DEBUG] command: no data state file found for backend
config
2017/09/14 15:25:38 [DEBUG] New state was assigned lineage
"e8e3772b-3dfb-477f-a7a4-9f6121dbb82d"
2017/09/14 15:25:38 [INFO] command: backend initialized: <nil>
2017/09/14 15:25:38 [DEBUG] checking for provider in "."
2017/09/14 15:25:38 [WARNING] found legacy provider
"terraform-provider-bigip"
2017/09/14 15:25:38 [DEBUG] found provider "terraform-provider-bigip_v0.
3.0"
2017/09/14 15:25:38 [DEBUG] checking for provider in "/usr/local/bin"
2017/09/14 15:25:38 [DEBUG] checking for provider in
".terraform/plugins/linux_amd64"
2017/09/14 15:25:38 [DEBUG] found valid plugin: "bigip"
2017/09/14 15:25:38 [DEBUG] found valid plugin: "bigip"
2017/09/14 15:25:38 [DEBUG] checking for provisioner in "."
2017/09/14 15:25:38 [DEBUG] checking for provisioner in "/usr/local/bin"
2017/09/14 15:25:38 [DEBUG] checking for provisioner in
".terraform/plugins/linux_amd64"
2017/09/14 15:25:38 [INFO] command: backend <nil> is not enhanced,
wrapping in local
2017/09/14 15:25:38 [INFO] backend/local: starting Plan operation
2017/09/14 15:25:38 [DEBUG] New state was assigned lineage
"6deb1c0f-8954-435c-af04-4703dead5cba"
2017/09/14 15:25:38 [INFO] terraform: building graph: GraphTypeInput
2017/09/14 15:25:38 [DEBUG] Resource state not found for
"bigip_datagroup.datagroup1": bigip_datagroup.datagroup1
2017/09/14 15:25:38 [TRACE] Graph after step *terraform.
AttachStateTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
2017/09/14 15:25:38 [TRACE] Graph after step *terraform.
RootVariableTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
nsitiveReductionTransformer:
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
provider.bigip - *terraform.NodeApplyableProvider
meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
provider.bigip - *terraform.NodeApplyableProvider
provider.bigip (close) - *terraform.graphNodeCloseProvider
bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
root - terraform.graphNodeRoot
meta.count-boundary (count boundary fixup) -
*terraform.NodeCountBoundary
provider.bigip (close) - *terraform.graphNodeCloseProvider
2017/09/14 15:25:38 [DEBUG] Starting graph walk: walkInput
2017-09-14T15:25:38.480-0700 [DEBUG] plugin: waiting for RPC address:
path=/home/scs/dev/src/github.com/terraform-provider-bigip/
terraform-provider-bigip_v0.3.0
Error asking for user input: 1 error(s) occurred:
2017/09/14 15:25:38 [ERROR] root: eval: *terraform.EvalInitProvider, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 15:25:38 [ERROR] root: eval: *terraform.EvalSequence, err:
Incompatible API version with plugin. Plugin version: 2, Ours: 4
2017/09/14 15:25:38 [TRACE] [walkInput] Exiting eval tree: provider.bigip
2017/09/14 15:25:38 [TRACE] dag/walk: upstream errored, not walking
"bigip_datagroup.datagroup1"
2017/09/14 15:25:38 [TRACE] dag/walk: upstream errored, not walking
"meta.count-boundary (count boundary fixup)"
2017/09/14 15:25:38 [TRACE] dag/walk: upstream errored, not walking
"provider.bigip (close)"
2017/09/14 15:25:38 [TRACE] dag/walk: upstream errored, not walking "root"
2017/09/14 15:25:38 [DEBUG] plugin: waiting for all plugin processes to
complete...
2017-09-14T15:25:38.486-0700 [DEBUG] plugin.terraform-provider-bigip_v0.3.0:
2017/09/14 15:25:38 [DEBUG] plugin: plugin address: unix
/tmp/plugin732847778
* provider.bigip: Incompatible API version with plugin. Plugin version: 2,
Ours: 4
2017-09-14T15:25:38.487-0700 [DEBUG] plugin: plugin process exited:
path=/home/scs/dev/src/github.com/terraform-provider-bigip/
terraform-provider-bigip_v0.3.0
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
***@***.****:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
On Thu, Sep 14, 2017 at 1:23 PM, Sanjay Shitole ***@***.***>
wrote:
> Hi Martin,
> I build the terraform in the vendor directory
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/errwrap
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/go-multierror
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/go-version
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/hcl
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/hil/ast
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/terraform/config
>
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/terraform/dag
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/terraform/flatmap
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/terraform/helper/experiment
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get
>
> go install: no install location for directory /home/scs/dev/src/
> github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terrafor
> m/terraform outside GOPATH
>
> For more details see: 'go help gopath'
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/hashicorp/terraform/helper/hilmapstructure
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $ go get github.com/hashicorp/terraform/helper/shadow
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/mitchellh/copystructure
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/mitchellh/reflectwalk
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go get github.com/satori/go.uuid
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> go build
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*
> $
>
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
> <http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
> cd
>
> ***@***.****:*~*$ cd dev/src/github.com/terraform-provider-bigip/
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ ls
>
> ~ launch_bigip.datagroup launch_bigip.lic
> launch_bigip.snmptraps Makefile
>
> *bigip* launch_bigip.dns launch_bigip.master
> launch_bigip.syslog README.md
>
> CHANGES.md launch_bigip.f5bigipmstbt10G launch_bigip.ntpdns
> launch_bigip.tcp-lan-profile statefile
>
> crash.log launch_bigip.fasthttp launch_bigip.oneConnect
> launch_bigip_tcp_wan_profile *terraform-provider-bigip_v0.3.0*
>
> iapp.json launch_bigip.fastL4 launch_bigip.provision
> launch_bigip.tf *vendor*
>
> launch_bigip.asm1 launch_bigip.httpcompression launch_bigip.route
> launch_bigip.vlan zoo.json
>
> launch_bigip.back launch_bigip.iapp launch_bigip.selfipvlan
> LICENSE
>
> launch_bigip.back1 launch_bigip.iapp2 launch_bigip.snmp
> main.go
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ go build
>
> main.go:5:2: cannot find package "github.com/terraform-provider
> -bigip/bigip" in any of:
>
> /usr/local/go/src/github.com/terraform-provider-bigip/bigip (from
> $GOROOT)
>
> /home/scs/dev/src/src/github.com/terraform-provider-bigip/bigip (from
> $GOPATH)
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ export
> GOPATH=$HOME/dev/src
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ go build
>
> main.go:5:2: cannot find package "github.com/terraform-provider
> -bigip/bigip" in any of:
>
> /usr/local/go/src/github.com/terraform-provider-bigip/bigip (from
> $GOROOT)
>
> /home/scs/dev/src/src/github.com/terraform-provider-bigip/bigip (from
> $GOPATH)
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ export GOPATH=$HOME/dev
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ go build
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ cat launch_bigip.tf
>
> provider "bigip" {
>
> version = "~> 0.3"
>
> address = "10.192.74.73"
>
> username = "admin"
>
> password = "admin"
>
> }
>
>
> resource "bigip_datagroup" "datagroup1" {
>
> name = "dgx8"
>
> type = "string"
>
> records {
>
> name = "xyx.f5.com"
>
> data = "pool100"
>
> }
>
> }
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$ TF_LOG=debug terraform
> plan
>
> 2017/09/14 13:23:24 [INFO] Terraform version: 0.10.4
> 10df48e
>
> 2017/09/14 13:23:24 [INFO] Go runtime version: go1.9
>
> 2017/09/14 13:23:24 [INFO] CLI args: []string{"/usr/local/bin/terraform",
> "plan"}
>
> 2017/09/14 13:23:24 [DEBUG] Attempting to open CLI config file:
> /home/scs/.terraformrc
>
> 2017/09/14 13:23:24 [DEBUG] File doesn't exist, but doesn't need to.
> Ignoring.
>
> 2017/09/14 13:23:24 [INFO] CLI command args: []string{"plan"}
>
> 2017/09/14 13:23:24 [INFO] command: empty terraform config, returning nil
>
> 2017/09/14 13:23:24 [DEBUG] command: no data state file found for backend
> config
>
> 2017/09/14 13:23:24 [DEBUG] New state was assigned lineage
> "f6d4fd7c-aab9-4f5a-82f6-7a933f63e014"
>
> 2017/09/14 13:23:24 [INFO] command: backend initialized: <nil>
>
> 2017/09/14 13:23:24 [DEBUG] checking for provider in "."
>
> 2017/09/14 13:23:24 [WARNING] found legacy provider
> "terraform-provider-bigip"
>
> 2017/09/14 13:23:24 [DEBUG] found provider "terraform-provider-bigip_v0.3
> .0"
>
> 2017/09/14 13:23:24 [DEBUG] checking for provider in "/usr/local/bin"
>
> 2017/09/14 13:23:24 [DEBUG] checking for provider in
> ".terraform/plugins/linux_amd64"
>
> 2017/09/14 13:23:24 [DEBUG] found valid plugin: "bigip"
>
> 2017/09/14 13:23:24 [DEBUG] found valid plugin: "bigip"
>
> 2017/09/14 13:23:24 [DEBUG] checking for provisioner in "."
>
> 2017/09/14 13:23:24 [DEBUG] checking for provisioner in "/usr/local/bin"
>
> 2017/09/14 13:23:24 [DEBUG] checking for provisioner in
> ".terraform/plugins/linux_amd64"
>
> 2017/09/14 13:23:24 [INFO] command: backend <nil> is not enhanced,
> wrapping in local
>
> 2017/09/14 13:23:24 [INFO] backend/local: starting Plan operation
>
> 2017/09/14 13:23:24 [DEBUG] New state was assigned lineage
> "80df9667-3acd-4db5-afc4-963716d15085"
>
> 2017/09/14 13:23:26 [INFO] terraform: building graph: GraphTypeInput
>
> 2017/09/14 13:23:26 [DEBUG] Resource state not found for
> "bigip_datagroup.datagroup1": bigip_datagroup.datagroup1
>
> 2017/09/14 13:23:26 [DEBUG] ReferenceTransformer:
> "bigip_datagroup.datagroup1" references: []
>
> 2017/09/14 13:23:26 [DEBUG] ReferenceTransformer: "provider.bigip"
> references: []
>
> 2017/09/14 13:23:26 [TRACE] Graph after step
> *terraform.ReferenceTransformer:
>
>
> bigip_datagroup.datagroup1 - *terraform.NodeAbstractResource
>
> provider.bigip - *terraform.NodeApplyableProvider
>
> provider.bigip - *terraform.NodeApplyableProvider
>
> 2017/09/14 13:23:26 [DEBUG] Starting graph walk: walkInput
>
> 2017-09-14T13:23:26.732-0700 [DEBUG] plugin: starting plugin:
> path=/home/scs/dev/src/github.com/terraform-provider-bigip/t
> erraform-provider-bigip_v0.3.0 args=[/home/scs/dev/src/github
> .com/terraform-provider-bigip/terraform-provider-bigip_v0.3.0]
>
> 2017-09-14T13:23:26.733-0700 [DEBUG] plugin: waiting for RPC address:
> path=/home/scs/dev/src/github.com/terraform-provider-bigip/t
> erraform-provider-bigip_v0.3.0
>
> 2017-09-14T13:23:26.749-0700 [DEBUG] plugin.terraform-provider-bigip_v0.3.0:
> 2017/09/14 13:23:26 [DEBUG] plugin: plugin address: unix
> /tmp/plugin489008280
>
> 2017/09/14 13:23:26 [ERROR] root: eval: *terraform.EvalInitProvider, err:
> Incompatible API version with plugin. Plugin version: 2, Ours: 4
>
> 2017/09/14 13:23:26 [ERROR] root: eval: *terraform.EvalSequence, err:
> Incompatible API version with plugin. Plugin version: 2, Ours: 4
>
> 2017/09/14 13:23:26 [TRACE] [walkInput] Exiting eval tree: provider.bigip
>
> 2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
> "bigip_datagroup.datagroup1"
>
> 2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
> "meta.count-boundary (count boundary fixup)"
>
> 2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking
> "provider.bigip (close)"
>
> 2017/09/14 13:23:26 [TRACE] dag/walk: upstream errored, not walking "root"
>
> 2017/09/14 13:23:26 [DEBUG] plugin: waiting for all plugin processes to
> complete...
>
> Error asking for user input: 1 error(s) occurred:
>
>
> * provider.bigip: Incompatible API version with plugin. Plugin version:
> 2, Ours: 4
>
> 2017-09-14T13:23:26.750-0700 [DEBUG] plugin: plugin process exited:
> path=/home/scs/dev/src/github.com/terraform-provider-bigip/t
> erraform-provider-bigip_v0.3.0
>
> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
> <http://github.com/terraform-provider-bigip>*$
>
> On Wed, Sep 13, 2017 at 4:32 PM, Sanjay Shitole ***@***.***>
> wrote:
>
>> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
>> <http://github.com/terraform-provider-bigip>*$
>>
>> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
>> <http://github.com/terraform-provider-bigip>*$ go get -u
>> github.com/kardianos/govendor
>>
>> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
>> <http://github.com/terraform-provider-bigip>*$ govendor fetch
>> github.com/hashicorp/terraform
>>
>> govendor: command not found
>>
>> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
>> <http://github.com/terraform-provider-bigip>*$ go env
>>
>> GOARCH="amd64"
>>
>> GOBIN=""
>>
>> GOEXE=""
>>
>> GOHOSTARCH="amd64"
>>
>> GOHOSTOS="linux"
>>
>> GOOS="linux"
>>
>> GOPATH="/home/scs/go"
>>
>> GORACE=""
>>
>> GOROOT="/usr/local/go"
>>
>> GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
>>
>> GCCGO="gccgo"
>>
>> CC="gcc"
>>
>> GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
>>
>> CXX="g++"
>>
>> CGO_ENABLED="1"
>>
>> CGO_CFLAGS="-g -O2"
>>
>> CGO_CPPFLAGS=""
>>
>> CGO_CXXFLAGS="-g -O2"
>>
>> CGO_FFLAGS="-g -O2"
>>
>> CGO_LDFLAGS="-g -O2"
>>
>> PKG_CONFIG="pkg-config"
>>
>> ***@***.****:*~/dev/src/github.com/terraform-provider-bigip
>> <http://github.com/terraform-provider-bigip>*$
>>
>> On Wed, Sep 13, 2017 at 4:04 PM, Martin Atkins ***@***.***
>> > wrote:
>>
>>> Hi @scshitole <https://github.com/scshitole>,
>>>
>>> You can install govendor with this command:
>>>
>>> go get -u github.com/kardianos/govendor
>>>
>>> —
>>> You are receiving this because you were mentioned.
>>> Reply to this email directly, view it on GitHub
>>> <#16077 (comment)>,
>>> or mute the thread
>>> <https://github.com/notifications/unsubscribe-auth/ANN1yAsg889ld_F2tfKKWJEFw1SRmTpGks5siF-FgaJpZM4PVIY0>
>>> .
>>>
>>
>>
>
|
Hi again, @scshitole. I'm sorry this isn't working out. I'm not sure what to suggest if you're still seeing this after upgrading the vendor directory to the latest version. If you can commit and push the changes to the |
Thanks Martin,
I just uploaded to a new repo at
https://github.com/scshitole/terraform-f5-10.4
…On Thu, Sep 14, 2017 at 3:56 PM, Martin Atkins ***@***.***> wrote:
Hi again, @scshitole <https://github.com/scshitole>.
I'm sorry this isn't working out. I'm not sure what to suggest if you're
still seeing this after upgrading the vendor directory to the latest
version. If you can commit and push the changes to the vendor directory
after upgrading Terraform (feel free to use a new branch, if you'd rather
not update master), maybe I can pull from your repository and reproduce
your situation on my development environment and investigate further.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANN1yFOf-HReHt2Is-xSflO7XhC5Qvqyks5sia8ngaJpZM4PVIY0>
.
|
Hi @scshitole! Thanks for sharing that. In the |
After cloning your repository and moving it to
After this I had a binary |
I was able to upgrade it to 10.6 but now the error changed when I do
terraform plan
*scs@scs*:*~*$ cd dev/src/github.com/terraform-provider-bigip/
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ export GOPATH=$HOME/dev
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ govendor fetch
github.com/hashicorp/terraform/...
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ govendor fetch
github.com/hashicorp/go-plugin/...
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ git add vendor
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go install .
vendor/github.com/hashicorp/terraform/config/providers.go:3:8: cannot find
package "github.com/blang/semver" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/blang/semver (vendor
tree)
/usr/local/go/src/github.com/blang/semver (from $GOROOT)
/home/scs/dev/src/github.com/blang/semver (from $GOPATH)
vendor/github.com/hashicorp/terraform/plugin/discovery/get.go:16:2: cannot
find package "github.com/hashicorp/go-cleanhttp" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/hashicorp/go-cleanhttp
(vendor tree)
/usr/local/go/src/github.com/hashicorp/go-cleanhttp (from $GOROOT)
/home/scs/dev/src/github.com/hashicorp/go-cleanhttp (from $GOPATH)
vendor/github.com/hashicorp/terraform/plugin/client.go:7:2: cannot find
package "github.com/hashicorp/go-hclog" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/hashicorp/go-hclog
(vendor tree)
/usr/local/go/src/github.com/hashicorp/go-hclog (from $GOROOT)
/home/scs/dev/src/github.com/hashicorp/go-hclog (from $GOPATH)
vendor/github.com/hashicorp/terraform/plugin/discovery/get.go:19:2: cannot
find package "github.com/mitchellh/cli" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/mitchellh/cli (vendor
tree)
/usr/local/go/src/github.com/mitchellh/cli (from $GOROOT)
/home/scs/dev/src/github.com/mitchellh/cli (from $GOPATH)
vendor/github.com/hashicorp/go-plugin/testing.go:8:2: cannot find package "
github.com/mitchellh/go-testing-interface" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/mitchellh/go-testing-interface
(vendor tree)
/usr/local/go/src/github.com/mitchellh/go-testing-interface (from $GOROOT)
/home/scs/dev/src/github.com/mitchellh/go-testing-interface (from $GOPATH)
vendor/github.com/hashicorp/terraform/config/config_terraform.go:8:2:
cannot find package "github.com/mitchellh/hashstructure" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/github.com/mitchellh/hashstructure
(vendor tree)
/usr/local/go/src/github.com/mitchellh/hashstructure (from $GOROOT)
/home/scs/dev/src/github.com/mitchellh/hashstructure (from $GOPATH)
vendor/github.com/hashicorp/terraform/config/interpolate_funcs.go:30:2:
cannot find package "golang.org/x/crypto/bcrypt" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/golang.org/x/crypto/bcrypt
(vendor tree)
/usr/local/go/src/golang.org/x/crypto/bcrypt (from $GOROOT)
/home/scs/dev/src/golang.org/x/crypto/bcrypt (from $GOPATH)
vendor/github.com/hashicorp/terraform/plugin/discovery/signature.go:8:2:
cannot find package "golang.org/x/crypto/openpgp" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/golang.org/x/crypto/openpgp
(vendor tree)
/usr/local/go/src/golang.org/x/crypto/openpgp (from $GOROOT)
/home/scs/dev/src/golang.org/x/crypto/openpgp (from $GOPATH)
vendor/github.com/hashicorp/go-plugin/grpc_client.go:6:2: cannot find
package "golang.org/x/net/context" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/golang.org/x/net/context (vendor
tree)
/usr/local/go/src/golang.org/x/net/context (from $GOROOT)
/home/scs/dev/src/golang.org/x/net/context (from $GOPATH)
vendor/github.com/hashicorp/terraform/plugin/discovery/get.go:14:2: cannot
find package "golang.org/x/net/html" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/golang.org/x/net/html (vendor
tree)
/usr/local/go/src/golang.org/x/net/html (from $GOROOT)
/home/scs/dev/src/golang.org/x/net/html (from $GOPATH)
vendor/github.com/hashicorp/go-plugin/grpc_client.go:7:2: cannot find
package "google.golang.org/grpc" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/google.golang.org/grpc (vendor
tree)
/usr/local/go/src/google.golang.org/grpc (from $GOROOT)
/home/scs/dev/src/google.golang.org/grpc (from $GOPATH)
vendor/github.com/hashicorp/go-plugin/grpc_client.go:8:2: cannot find
package "google.golang.org/grpc/credentials" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/google.golang.org/grpc/credentials
(vendor tree)
/usr/local/go/src/google.golang.org/grpc/credentials (from $GOROOT)
/home/scs/dev/src/google.golang.org/grpc/credentials (from $GOPATH)
vendor/github.com/hashicorp/go-plugin/grpc_server.go:13:2: cannot find
package "google.golang.org/grpc/health" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/google.golang.org/grpc/health
(vendor tree)
/usr/local/go/src/google.golang.org/grpc/health (from $GOROOT)
/home/scs/dev/src/google.golang.org/grpc/health (from $GOPATH)
vendor/github.com/hashicorp/go-plugin/grpc_client.go:9:2: cannot find
package "google.golang.org/grpc/health/grpc_health_v1" in any of:
/home/scs/dev/src/
github.com/terraform-provider-bigip/vendor/google.golang.org/grpc/health/grpc_health_v1
(vendor tree)
/usr/local/go/src/google.golang.org/grpc/health/grpc_health_v1 (from
$GOROOT)
/home/scs/dev/src/google.golang.org/grpc/health/grpc_health_v1 (from
$GOPATH)
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
github.com/blang/semver
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
github.com/hashicorp/go-cleanhttp"
^C
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
github.com/hashicorp/go-cleanhttp
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
github.com/hashicorp/go-hclog
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
github.com/mitchellh/cli
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
github.com/mitchellh/go-testing-interface
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
github.com/mitchellh/hashstructure
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
golang.org/x/crypto/bcrypt
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
google.golang.org/grpc/credentials
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
google.golang.org/grpc/health
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go get
google.golang.org/grpc/health/grpc_health_v1
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ go install .
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ cd vendor/
github.com/hashicorp/terraform/terraform/
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform
<http://github.com/terraform-provider-bigip/vendor/github.com/hashicorp/terraform/terraform>*$
cat version.go
package terraform
import (
"fmt"
"github.com/hashicorp/go-version"
)
// The main version number that is being run at the moment.
const Version = "0.10.6"
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform plan
1 error(s) occurred:
* provider.bigip: Internal validation of the provider failed! This is
always a bug
with the provider itself, and not a user issue. Please report
this bug:
13 error(s) occurred:
* resource bigip_snmp: sysContact: Field name may only contain lowercase
alphanumeric characters & underscores.
* resource bigip_fasthttp_profile: connpoolMinSize: Field name may only
contain lowercase alphanumeric characters & underscores.
* resource bigip_fastl4_profile: defaultsFrom: Field name may only contain
lowercase alphanumeric characters & underscores.
* resource bigip_license: deviceAddress: Field name may only contain
lowercase alphanumeric characters & underscores.
* resource bigip_ltm_provision: cpuRatio: Field name may only contain
lowercase alphanumeric characters & underscores.
* resource bigip_ltm_policy: httpReferer: Field name may only contain
lowercase alphanumeric characters & underscores.
* resource bigip_ltm_dns: nameServers: Field name may only contain
lowercase alphanumeric characters & underscores.
* resource bigip_syslog: authPrivFrom: Field name may only contain
lowercase alphanumeric characters & underscores.
* resource bigip_snmp_traps: authPasswordEncrypted: Field name may only
contain lowercase alphanumeric characters & underscores.
* resource bigip_httpcompress_profile: uriExclude: Field name may only
contain lowercase alphanumeric characters & underscores.
* resource bigip_license_f5bigmstbt10G: deviceAddress: Field name may only
contain lowercase alphanumeric characters & underscores.
* resource bigip_ltm_oneconnect: idleTimeoutOverride: Field name may only
contain lowercase alphanumeric characters & underscores.
* resource bigip_tcp_profile: keepAliveInterval: Field name may only
contain lowercase alphanumeric characters & underscores.
*scs@scs*:*~/dev/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
…On Thu, Sep 14, 2017 at 4:38 PM, Martin Atkins ***@***.***> wrote:
After cloning your repository and moving it to $GOPATH/src/github.com/
terraform-provider-bigip (to match your import paths) I ran the following
commands:
$ govendor fetch github.com/hashicorp/terraform/...
$ govendor fetch github.com/hashicorp/go-plugin/...
$ git add vendor
$ git commit -m "Upgrade vendored Terraform to 0.10"
$ go install .
After this I had a binary $GOPATH/bin/terraform-provider-bigip that was
built against Terraform 0.10. Hopefully the same works for you! (I put mine
at that path because I have $GOPATH/bin/terraform; you may need to place
your file in a different location, such as the current working directory,
depending on how you have installed Terraform.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANN1yNVrfl2Unyjkq88dO6I-kDOWuR65ks5sibj_gaJpZM4PVIY0>
.
|
Hi @scshitole, This error is coming from some internal checks that the In particular, it seems like this provider was using "camel-case" names for fields, which is not correct style... Terraform resources should always have underscore-separated names. Unfortunately I think the only way to get past these errors is to change the names to match usual convention, though of course that will be a breaking change for any configurations already using these resources. @radeksimko (since you have dealt with most of the work to comply with these conventions) is there anything @scshitole can do here to migrate gracefully to underscore-separated names, without breaking existing states, etc? |
Thanks Martin,
But these I cannot change as these are part of the API for F5 BIG IP. For
example below is the error message terraform gives when I am trying to do
terraform plan
resource bigip_ltm_dns: nameServers: Field name may only contain lowercase
alphanumeric characters & underscores.
and below is the F5 BIG_IP device Fields when did a GET
/mgmt/tm/sys/dns
*description* /Common/DNS1
*nameServers* 8.8.8.8
*numberOfDots* 2
*search* f5.com
…On Fri, Sep 15, 2017 at 9:01 AM, Martin Atkins ***@***.***> wrote:
Hi @scshitole <https://github.com/scshitole>,
This error is coming from some internal checks that the helper/schema
library does to ensure that providers comply with the usual Terraform
provider naming conventions. These validation checks became more
sophisticated at some point between 0.8 and 0.10.
In particular, it seems like this provider was using "camel-case" names
for fields, which is not correct style... Terraform resources should always
have underscore-separated names.
Unfortunately I think the only way to get past *these* errors is to
change the names to match usual convention, though of course that will be a
breaking change for any configurations already using these resources.
@radeksimko <https://github.com/radeksimko> (since you have dealt with
most of the work to comply with these conventions) is there anything
@scshitole <https://github.com/scshitole> can do here to migrate
gracefully to underscore-separated names, without breaking existing states,
etc?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANN1yMlvcrroMnxyJjbUXqtfDgY-X1S2ks5sip9RgaJpZM4PVIY0>
.
|
Yes, the validation intentionally excludes
I'm not sure what do you mean by "cannot change" 🤔 The schema doesn't need to have field names matching the fields in the API? in fact it usually doesn't. |
Thanks Redek & Martin, I think I just need to update couple of resources, I
will make those changes and let you guys know.
…On Fri, Sep 15, 2017 at 2:00 PM, Radek Simko ***@***.***> wrote:
is there anything @scshitole <https://github.com/scshitole> can do here
to migrate gracefully to underscore-separated names, without breaking
existing states, etc?
Yes, the validation intentionally excludes Deprecated & Removed fields,
so these can be gradually phased out. Sorry for the inconvenience, but the
overall intention is to bring some uniformity to all provider codebases, so
that folks familiar with one provider can more easily read & understand
another one and review & contribute without much confusion. Unifying naming
convention is a first step towards that direction. I ran tests across all
our internal 69 providers and there was only a handful of fields which
needed changing to comply with this. Unfortunately we have no easy way to
track 3rd party providers (like F5) and see how it affects them, but these
schema validations are in fact one way of communicating conventions.
But these I cannot change as these are part of the API for F5 BIG IP.
I'm not sure what do you mean by "cannot change" 🤔 The schema doesn't
need to have field names matching the fields in the API? in fact it usually
doesn't.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16077 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANN1yMuSe5begEjPQ_XkxBcj9Rai04J1ks5siuVjgaJpZM4PVIY0>
.
|
The issue is resolved I changed the "fields" for all the resources and I
was able to apply the .TF
*scs@scs*:*~/work/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform apply
*bigip_ltm_provision.provision-afm: Refreshing state... (ID: /Common/afm)*
*bigip_ltm_pool.pool: Refreshing state... (ID: /Common/terraform-pool)*
*bigip_ltm_vlan.vlan2: Refreshing state... (ID: /Common/external)*
*bigip_ltm_ntp.ntp1: Refreshing state... (ID: /Common/NTP1)*
*bigip_ltm_monitor.monitor: Refreshing state... (ID:
/Common/terraform_monitor)*
*bigip_ltm_selfip.selfip2: Refreshing state... (ID: /Common/externalselfIP)*
*bigip_ltm_virtual_server.http: Refreshing state... (ID:
/Common/terraform_vs_http)*
*bigip_ltm_virtual_server.http: Modifying... (ID:
/Common/terraform_vs_http)*
pool: "terraform-pool" => "/Common/terraform-pool"
*bigip_ltm_provision.provision-afm: Modifying... (ID: /Common/afm)*
full_path: "" => "afm"
level: "" => "nominal"
name: "" => "/Common/afm"
*bigip_ltm_provision.provision-afm: Modifications complete after 0s (ID:
/Common/afm)*
*bigip_ltm_virtual_server.http: Modifications complete after 0s (ID:
/Common/terraform_vs_http)*
*bigip_ltm_vlan.vlan1: Creating...*
interfaces.#: "0" => "1"
interfaces.0.name: "" => "1.2"
interfaces.0.tagged: "" => "false"
name: "" => "/Common/internal"
tag: "" => "101"
*bigip_ltm_dns.dns1: Creating...*
description: "" => "/Common/DNS1"
name_servers.#: "0" => "1"
name_servers.3817307869: "" => "8.8.8.8"
numberof_dots: "" => "2"
search.#: "0" => "1"
search.3719609835: "" => "f5.com"
*bigip_ltm_vlan.vlan1: Creation complete after 0s (ID: /Common/internal)*
*bigip_ltm_dns.dns1: Creation complete after 0s (ID: /Common/DNS1)*
*bigip_ltm_selfip.selfip1: Creating...*
ip: "" => "11.1.1.1/24"
name: "" => "/Common/internalselfIP"
vlan: "" => "/Common/internal"
*bigip_ltm_selfip.selfip1: Creation complete after 0s (ID:
/Common/internalselfIP)*
*Apply complete! Resources: 3 added, 2 changed, 0 destroyed.*
*scs@scs*:*~/work/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$ terraform version
Terraform v0.10.6-dev
*scs@scs*:*~/work/src/github.com/terraform-provider-bigip
<http://github.com/terraform-provider-bigip>*$
…On Fri, Sep 15, 2017 at 3:03 PM, Sanjay Shitole ***@***.***> wrote:
Thanks Redek & Martin, I think I just need to update couple of resources,
I will make those changes and let you guys know.
On Fri, Sep 15, 2017 at 2:00 PM, Radek Simko ***@***.***>
wrote:
> is there anything @scshitole <https://github.com/scshitole> can do here
> to migrate gracefully to underscore-separated names, without breaking
> existing states, etc?
>
> Yes, the validation intentionally excludes Deprecated & Removed fields,
> so these can be gradually phased out. Sorry for the inconvenience, but the
> overall intention is to bring some uniformity to all provider codebases, so
> that folks familiar with one provider can more easily read & understand
> another one and review & contribute without much confusion. Unifying naming
> convention is a first step towards that direction. I ran tests across all
> our internal 69 providers and there was only a handful of fields which
> needed changing to comply with this. Unfortunately we have no easy way to
> track 3rd party providers (like F5) and see how it affects them, but these
> schema validations are in fact one way of communicating conventions.
>
> But these I cannot change as these are part of the API for F5 BIG IP.
>
> I'm not sure what do you mean by "cannot change" 🤔 The schema doesn't
> need to have field names matching the fields in the API? in fact it usually
> doesn't.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#16077 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ANN1yMuSe5begEjPQ_XkxBcj9Rai04J1ks5siuVjgaJpZM4PVIY0>
> .
>
|
In glad it worked, @scshitole! Sorry for all the hurdles. It sounds like you have what you need now, so I'm going to close this. |
Thanks Martin for the support to narrow down the problem
…Sent from my iPhone
On Sep 16, 2017, at 7:34 PM, Martin Atkins ***@***.***> wrote:
In glad it worked, @scshitole!
Sorry for all the hurdles. It sounds like you have what you need now, so I'm going to close this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I was using terraform 0.8.1
shitole$ terraform version
Terraform v0.8.1
Your version of Terraform is out of date! The latest version
is 0.10.4. You can update by downloading from www.terraform.io
SJC-ML-SHITOLE:~ shitole$
Setup a new test environment with terraform 0.10 on ubuntu
terraform plan
Error asking for user input: 1 error(s) occurred:
scs@scs:~/dev/src/github.com/terraform-provider-bigip$
scs@scs:~/dev/src/github.com/terraform-provider-bigip$ terraform version
Terraform v0.10.4
scs@scs:~/dev/src/github.com/terraform-provider-bigip$
The text was updated successfully, but these errors were encountered: