Joe Topjian
504407c1cb
provider/openstack: Block Device Tests and Docs ( #10830 )
...
This commit adds some basic tests for block device functionality. It also
expands the existing block device documentation as well references the
new "volume attach" resources for further block storage functionality.
2016-12-19 10:29:37 +00:00
Joe Topjian
7843a5c6e6
provider/openstack: Handle Volume Creation Errors ( #10821 )
...
This commit makes the openstack_blockstorage_volume resources better able
to handle volume creation errors upon resource creation. The cause of this
change is because there could be some storage backend error that happens
during storage provisioning that won't manifest in an "err" but will set
the volume's status to "error". We now check for a status of "error" and
propagate the error up the stack.
2016-12-18 22:38:55 +00:00
Joe Topjian
fd40eb3421
provider/openstack: More Import and Region Fixes ( #10662 )
...
This has a few more import and region fixes from #10509
2016-12-12 09:14:38 +00:00
Joe Topjian
1c9853ec1b
provider/openstack: Fix Ordering of Port Allowed Address Pairs ( #10250 )
...
This commit changes allowed_address_pairs from a TypeList to a TypeSet
allowing for arbitrary ordering. This solves the issue where a user
specifies an address pair one way and OpenStack returns a different
order.
2016-12-05 15:36:37 +00:00
Joe Topjian
b2f9a3a6fd
provider/openstack: Detect Region for Importing Resources ( #10509 )
...
* provider/openstack: Detect Region for Importing Resources
This commit changes the way the OpenStack region is detected and set.
Any time a region is required, the region attribute will first be
checked. Next, the OS_REGION_NAME environment variable will be checked.
While schema.EnvDefaultFunc handles this same situation, it is not
applicable when importing resources.
* provider/openstack: No longer ignore region in importing tests
* provider/openstack: Network and Subnet Import Fixes
This commit fixes the OpenStack Network and Subnet resources so that
importing of those resources is successful.
2016-12-04 14:24:07 +00:00
Joe Topjian
1aff30dd5e
Merge pull request #10260 from jtopjian/openstack-compute-volume-attach
...
provider/openstack: openstack_compute_volume_attach_v2 resource
2016-11-22 20:43:59 -07:00
Joe Topjian
d16ba26495
Merge pull request #10259 from jtopjian/openstack-blockstorage-volume-attach
...
provider/openstack: openstack_blockstorage_volume_attach_v2 resource
2016-11-22 09:28:31 -07:00
Joe Topjian
4cc46937e8
provider/openstack: blockstorage volume attach code review updates
2016-11-22 15:27:23 +00:00
Joe Topjian
74189c5211
provider/openstack: Add Swauth/Swift Authentication
...
This commit adds the ability to authenticate with Swauth/Swift. This can
be used in Swift-only environments that do not have a Keystone service
for authentication.
2016-11-22 04:26:06 +00:00
Joe Topjian
24d7ada0e4
provider/openstack: openstack_compute_volume_attach_v2 resource
...
This commit adds the openstack_compute_volume_attach_v2 resource. This
resource enables a volume to be attached to an instance by using the
OpenStack Compute (Nova) v2 volumeattach API.
2016-11-20 21:22:07 +00:00
Joe Topjian
672d4d20d7
provider/openstack: openstack_blockstorage_volume_attach_v2 resource
...
This commit adds the openstack_blockstorage_volume_attach_v2 resource. This
resource enables a volume to be attached to an instance by using the OpenStack
Block Storage (Cinder) v2 API.
2016-11-20 21:19:11 +00:00
Gavin Williams
b0981566ec
provider/openstack: Add 'value_specs' option to 'openstack_fw_firewall_v1' resource
...
Refactor to use common 'types.go' and 'MapValueSpecs' function.
Website docs updated to reflect changes.
2016-11-05 10:17:33 +00:00
Gavin Williams
d3b2c15a2c
provider/openstack: Add 'value_specs' option to 'openstack_fw_policy_v1' resource
...
Refactor to use common 'types.go' and 'MapValueSpecs' function.
Website docs updated to reflect additions
2016-11-04 19:06:25 +00:00
Gavin Williams
e3246bc63e
provider/openstack: Add 'value_specs' option to 'openstack_fw_rule_v1' resource.
...
Refactor to use common 'types.go' and 'MapValueSpecs' function.
Website docs updated.
2016-11-04 07:19:50 +00:00
Joe Topjian
41adcb8388
Merge pull request #9832 from fatmcgav/openstack_fw_firewall_v1_admin_state_up_default
...
provider/openstack: resource_openstack_fw_firewall_v1 'admin_state_up' should default to 'true'
2016-11-03 19:35:10 -06:00
Gavin Williams
ea9cc43578
provider/openstack: resource_openstack_fw_firewall_v1 'admin_state_up' should default to 'true'
2016-11-03 12:15:04 +00:00
Gavin Williams
53eea2121e
provider/openstack: Don't default 'shared' value, instead only set if specified.
...
Documentation updated to reflect removal of default value.
Fixes #9829
2016-11-03 11:21:39 +00:00
Joe Topjian
266b5ab598
provider/openstack: Openstack Provider Updates ( #9725 )
...
* provider/openstack: Adding Identity v3 compatible environment variables
* provider/openstack: Adding missing environment variables
* provider/openstack: line spacing for provider options
* provider/openstack: Making password sensitive
* provider/openstack: Adding descriptions to provider options
* provider/openstack: Clean up provider documentation
* provider/openstack: clean up EndpointType check
2016-11-01 13:16:39 +00:00
Joe Topjian
b269b417b0
provider/openstack: LoadBalancer v2 VIP Port ID ( #9727 )
...
This commit adds vip_port_id as an exported attribute to the
lb_loadbalancer_v2 resource.
2016-11-01 10:25:18 +00:00
Joe Topjian
a946eb4d91
Merge pull request #9617 from jtopjian/openstack-fwaas-proto-any
...
provider/openstack: Allow any protocol in openstack_fw_rule_v1
2016-10-26 12:56:11 -06:00
Gavin Williams
7438bbd7fe
provider/openstack: Add ValueSpecs option to 'openstack_compute_keypair_v2' resource,
...
refactor to use common types.go and 'MapValueSpecs'
2016-10-26 07:50:35 +01:00
Joe Topjian
d7bd40100c
provider/openstack: Allow any protocol in openstack_fw_rule_v1
...
This commit allows a protocol of "any" to be used in the firewall
rule resource, which will allow any protocol.
2016-10-26 02:14:08 +00:00
Joe Topjian
3929792ebc
Merge pull request #9552 from fatmcgav/openstack_networking_floatingip_add_value_specs
...
provider/openstack: Add 'value_specs' option to 'openstack_networking…
2016-10-25 19:35:38 -06:00
Gavin Williams
60ddc06b3d
provider/openstack: Add 'value_specs' option to 'openstack_networking_floatingip_v2' resource,
...
refactor into common types.go and use new 'MapValueSpecs' function.
Added supporting documentation.
2016-10-24 16:05:35 +01:00
Gavin Williams
b31b044785
provider/openstack: Add value_specs option to openstack_networking_port_v2.
...
Refactored to use common types.go
Add supporting documentation
2016-10-24 16:04:00 +01:00
Joe Topjian
17b1787ec2
provider/openstack: gophercloud migration: fixing dhcp and gateway configuration
2016-10-23 02:38:29 +00:00
Joe Topjian
1c6b69e342
provider/openstack: gophercloud migration: Make PortID a *string
2016-10-23 02:38:29 +00:00
Joe Topjian
0253dbe51b
provider/openstack: gophercloud migration: Accounting for 409 errors with LBaaSV2
2016-10-23 02:38:29 +00:00
Joe Topjian
1fce3ed9fd
provider/openstack: gophercloud migration: Fixing persistence update in lbaasv1
2016-10-23 02:38:28 +00:00
Joe Topjian
fbcd8f105b
provider/openstack: gophercloud migration: boot from volume updates
2016-10-23 02:38:28 +00:00
Joe Topjian
ea4209c61c
provider/openstack: gophercloud migration: Account for subnets and networks still in use
2016-10-23 02:38:28 +00:00
Joe Topjian
394c26c6cc
provider/openstack: gophercloud migration: Account for router interface still being in use
2016-10-23 02:38:27 +00:00
Joe Topjian
7df2a66623
provider/openstack: gophercloud migration: Allow Firewall v1 Policy to cleanly delete
2016-10-23 02:38:27 +00:00
Joe Topjian
c3679d6c2d
provider/openstack: gophercloud migration: Fixing subnet test
2016-10-23 02:38:27 +00:00
Joe Topjian
ed0fe74d59
provider/openstack: gophercloud migration: Making GatewayIP computed
2016-10-23 02:38:27 +00:00
Joe Topjian
520b3dda82
provider/openstack: gophercloud migration: Spelling correction
2016-10-23 02:38:26 +00:00
Gavin Williams
28466f50a5
provider/openstack: gophercloud migration: Only set 'gateway_ip' to "" if 'no_gateway' == true.
2016-10-23 02:38:26 +00:00
Gavin Williams
8405a9f118
provider/openstack: gophercloud migration: Update openstack_networking_subnet_v2 to correctly handle Gateway IP
2016-10-23 02:38:26 +00:00
Gavin Williams
9c856a8f6f
provider/openstack: gophercloud migration: Removed unused import from types.go
2016-10-23 02:38:26 +00:00
Gavin Williams
e7ef8bb647
provider/openstack: gophercloud migration: Ordering tweak in types.go - Now alphabetical :)
2016-10-23 02:38:25 +00:00
Gavin Williams
bfab530410
provider/openstack: gophercloud migration: Migrate NetworkCreateOpts to types.go
2016-10-23 02:38:25 +00:00
Gavin Williams
58c3c4ef8e
provider/openstack: gophercloud migration: Migrate RouterCreateOpts to types.go
2016-10-23 02:38:25 +00:00
Gavin Williams
56cc232956
provider/openstack: gophercloud migration: Refactor existing resources to use 'MapValueSpecs' function
2016-10-23 02:38:24 +00:00
Gavin Williams
ffd5370213
provider/openstack: gophercloud migration: Add a 'MapValueSpecs' function which can be used to convert
...
'value_specs' resource data to a map.
2016-10-23 02:38:24 +00:00
Gavin Williams
796e076313
provider/openstack: gophercloud migration: Use 'value_specs' from constructed body, and range over asserted type
2016-10-23 02:38:24 +00:00
Gavin Williams
1eab2121ad
provider/openstack: gophercloud migration: Add a BuildRequest function, and refactor types 'SubnetCreateMap' function to use
2016-10-23 02:38:24 +00:00
Gavin Williams
edf80d2ae1
provider/openstack: gophercloud migration: Use 'log.Printf' rather than 'log.Println'.
2016-10-23 02:38:23 +00:00
Gavin Williams
a823370a48
provider/openstack: gophercloud migration: Fix handling of Neutron networking when managing instances.
2016-10-23 02:38:23 +00:00
Joe Topjian
e36c3e5946
provider/openstack: gophercloud migration: Continued removal of APIKey
2016-10-23 02:38:23 +00:00
Joe Topjian
d4722aedc1
provider/openstack: gophercloud migration: initial work on types.go
2016-10-23 02:38:22 +00:00
Joe Topjian
27b86ac220
provider/openstack: gophercloud migration: metadata update
2016-10-23 02:38:22 +00:00
Joe Topjian
8371d20cf0
provider/openstack: gophercloud migration: router interface error response
2016-10-23 02:38:22 +00:00
Joe Topjian
8f21117fb7
provider/openstack: gophercloud migration: fwaas policy response error handling
2016-10-23 02:38:22 +00:00
Joe Topjian
c11a4ef214
provider/openstack: gophercloud migration: updating error responses
2016-10-23 02:38:22 +00:00
Joe Topjian
9ffef951c5
provider/openstack: gophercloud migration: objectstorage
2016-10-23 02:38:21 +00:00
Joe Topjian
d5bf0197a7
provider/openstack: gophercloud migration: networking subnet
2016-10-23 02:38:21 +00:00
Joe Topjian
f2ba380794
provider/openstack: gophercloud migration: networking secgroup
2016-10-23 02:38:21 +00:00
Joe Topjian
2f957e24fe
provider/openstack: gophercloud migration: networking router
2016-10-23 02:38:20 +00:00
Joe Topjian
53bb3187fc
provider/openstack: gophercloud migration: networking port
2016-10-23 02:38:20 +00:00
Joe Topjian
68c4956ff2
provider/openstack: gophercloud migration: networking network
2016-10-23 02:38:20 +00:00
Joe Topjian
cc86b91d37
provider/openstack: gophercloud migration: networking floatingip
2016-10-23 02:38:20 +00:00
Joe Topjian
d04cfb1ab5
provider/openstack: gophercloud migration: lbaas v2
2016-10-23 02:38:19 +00:00
Joe Topjian
e2526002ff
provider/openstack: gophercloud migration: lbaas v1
2016-10-23 02:38:19 +00:00
Joe Topjian
a1d76c8d07
provider/openstack: gophercloud migration: fwaas
2016-10-23 02:38:19 +00:00
Joe Topjian
8b6c3a1bbc
provider/openstack: gophercloud migration: compute servergroup
2016-10-23 02:38:19 +00:00
Joe Topjian
b9f7d119b8
provider/openstack: gophercloud migration: compute secgroup
2016-10-23 02:38:18 +00:00
Joe Topjian
50855b3992
provider/openstack: gophercloud migration: compute keypair
2016-10-23 02:38:18 +00:00
Joe Topjian
a33256706c
provider/openstack: gophercloud migration: compute instance
2016-10-23 02:38:18 +00:00
Joe Topjian
c8aee9118f
provider/openstack: gophercloud migration: compute floatingip
2016-10-23 02:38:17 +00:00
Joe Topjian
bb8c5cea2d
provider/openstack: gophercloud migration: blockstorage
2016-10-23 02:38:17 +00:00
Joe Topjian
e677eaac6b
provider/openstack: gophercloud migration: util
2016-10-23 02:38:17 +00:00
Joe Topjian
74f990ff5c
provider/openstack: gophercloud migration: Removing APIKey Attribute
...
gophercloud/gophercloud no longer supports the APIKey authentication
attribute. Removal of this attribute may impact users who were using
the Terraform OpenStack provider in with vendor-modified clouds.
2016-10-23 02:38:17 +00:00
Jean-François Pucheu
c084b7d522
Correct Proxy setting for openstack provider: issue 8735
2016-09-20 20:53:56 +02:00
Joe Topjian
49bda267c9
Merge pull request #8172 from jtopjian/openstack-volumeattach-fix
...
provider/openstack: Volume Attachment and Detachment Fixes
2016-08-24 09:36:23 -06:00
Joe Topjian
beee89c521
provider/openstack: Fix Volume Attachment Detection in Instances
...
This commit is changing the `volumes` block from being computed to non-computed.
This change makes the Terraform configuration the source of truth about volumes
attached to the instance and therefore is able to correctly detect when a user
detaches a volume during an update.
One thing to be aware of is that if a user attached a volume out of band of an
instance controlled by Terraform, that volume will be detached upon the next
apply. The best thing to do is add a `volume` entry in the instance's
configuration of any volumes that were attached out of band.
This commit also explicitly detaches volumes from an instance before the
instance terminates. Most Block Storage volume drivers account for this
scenario internally, but there are a few that don't. This change is to support
those that don't.
In addition, when volumes are read by the instance, volumes configured in the
Terraform configuration are the source of truth. Previously, a call was being
made to OpenStack to provide the list of attached volumes.
It also adds a few new tests and fixes existing tests for various volume
attach-related scenarios.
2016-08-24 15:21:59 +00:00
Joe Topjian
a41ae4b9ac
provider/openstack: docs and tests for allowed_address_pairs
2016-08-23 02:13:37 +00:00
Joe Topjian
9e4fc09365
Merge pull request #8257 from FedericoCeratto/allowed_address_pairs
...
provider/openstack: Add allowed_address_pairs
2016-08-22 20:06:33 -06:00
Federico Ceratto
5bc8736dc8
Add allowed_address_pairs
...
Original code from Rob Wilson <roobert@gmail.com>
2016-08-18 16:23:01 +01:00
Joe Topjian
9a324f1399
Merge pull request #8181 from fatmcgav/openstack_add_valuespec_subnet_v2_provider
...
provieder/openstack: Add 'value_specs' support for openstack_networki…
2016-08-16 13:25:59 -06:00
Gavin Williams
ee56f1d075
provieder/openstack: Add 'value_specs' support for openstack_networking_subnet_v2 provider.
...
Updated provider documentation to support.
2016-08-15 08:28:37 +01:00
Gruendler, Daniel (415)
698000eb84
Fix typo in OpenStack LBaaSv2 pool resource
2016-08-14 20:56:53 +02:00
Joe Topjian
a254aeaf9c
Merge pull request #8155 from fatmcgav/openstack_network_add_value_specs
...
provider/openstack: Add support for 'value_specs' param on 'openstack_networking_network_v2' provider.
2016-08-13 12:45:22 -06:00
Gavin Williams
90efe68ce3
provider/openstack: Add support for 'value_specs' param on 'openstack_networking_network_v2' provider.
...
This can be used to pass additional custom values to the netowrk
resource upon creation.
2016-08-12 09:14:38 +01:00
Joe Topjian
38f0e62430
Merge pull request #8070 from fatmcgav/openstack_router_update_external_gw
...
provider/openstack: Add support for updating the External GW assigned to a Neutron router
2016-08-10 09:03:52 -06:00
Joe Topjian
1c09918191
provider/openstack: Fixing acc test for external gw update
2016-08-10 15:54:31 +01:00
Gavin Williams
b9eaa23f60
Add support for updating the External Gateway assigned to a Neutron router.
...
Added a simple acceptance test, but doesn't work.
2016-08-10 15:54:31 +01:00
Giovanni Paolo Gibilisco
ba42737e26
add acceptance test for issue #8040
2016-08-10 12:35:53 +02:00
Joe Topjian
30273faf20
Merge pull request #7649 from jtopjian/openstack-boot-volume-fix
...
provider/openstack: Fixing boot volume interference
2016-07-20 08:23:09 -06:00
Joe Topjian
411ad21fd8
provider/openstack: Fixing boot volume interference
...
This commit fixes the situation where instances with both a
bootable volume and attached block storage volumes were reporting
an inconsistent state.
2016-07-15 15:29:44 +00:00
Joe Topjian
f7da261294
provider/openstack: Support Import of OpenStack LBaaS V1 Resources ( #7660 )
2016-07-15 09:49:31 +01:00
Joe Topjian
bc5a8b827f
provider/openstack: Support Import of OpenStack Networking Resources ( #7661 )
...
Router-based resources are not included. They will be added later.
2016-07-15 09:47:11 +01:00
dkalleg
72660750fd
Setting admin_state_up default to true
...
This is to be inline with OpenStack defaulting admin_state_up to true.
2016-07-12 18:08:16 -07:00
Joe Topjian
8b80d05103
provider/openstack: Support Import of OpenStack Block Storage Volumes ( #7347 )
2016-07-12 09:13:52 +01:00
Joe Topjian
480542d2ab
provider/openstack: Support Import openstack_compute_keypair_v2 ( #7346 )
2016-07-03 16:39:20 +01:00
Joe Topjian
713c0daa52
provider/openstack: Support Import openstack_compute_floatingip_v2 ( #7348 )
2016-07-03 16:38:38 +01:00
Joe Topjian
0466520626
provider/openstack: Support Import openstack_compute_servergroup_v2 ( #7349 )
2016-07-03 16:38:21 +01:00
Joe Topjian
c1e4d297f3
provider/openstack: Support Import openstack_compute_secgroup_v2 ( #7350 )
2016-07-03 16:37:58 +01:00
Joe Topjian
8d8becdfdb
provider/openstack: Support Import of OpenStack FWaaS Resources ( #7471 )
2016-07-03 16:37:35 +01:00
Joe Topjian
bc6be73c1d
provider/openstack: Fix Security Group EOF Error
...
When applying or removing 2+ security groups from an instance, an EOF
error will be triggered even though the action was successful. This
patch accounts for and ignores the EOF error. It also adds a test
case.
Security Group and Port documentation are also updated in this
commit.
2016-07-02 14:18:04 +00:00
Joe Topjian
4ca5c948b6
provider/openstack: Deprecate openstack_lb_pool_v1 member attribute
...
This commit marks the "member" attribute of the
openstack_lb_pool_v1 resource as being deprecated. Users should begin
migrating to the openstack_lb_member_v1 resource.
2016-06-30 02:12:15 +00:00