Megan Marsh
6a201211a9
fix polling issues in azure
...
adds a configurable timeout to the shared image gallery publisher
2019-08-01 11:18:03 -07:00
Mason, Elliot
ee484f2dd9
Updated public gcp cloud images
2019-07-31 11:38:35 -05:00
Megan Marsh
f97df6721e
Merge pull request #7927 from hashicorp/fix_googlecompute_crash_7921
...
code changed recently so that sometimes the conf is nil.
2019-07-30 09:55:09 -07:00
Megan Marsh
7c93a5c51e
code changed recently so that sometimes the conf is nil.
2019-07-29 13:19:43 -07:00
Megan Marsh
b42701380c
add test for nil case
2019-07-29 12:11:59 -07:00
DanHam
088151e51d
Type assertion safety - fix panic when key cannot be retrieved from statebag
2019-07-28 10:44:24 +01:00
Thomas Meckel
822b72bd14
Added force_delete_snapshot configuration item and the corresponding checks
2019-07-26 12:34:28 +02:00
Thomas Meckel
e7583de847
StepCreateSnapshot.Run() will stop and create an error if the virtual machine is still running
...
Removed left over code from StepCreateSnapshot.Cleanup()
2019-07-26 12:34:27 +02:00
Thomas Meckel
d9b8623f64
StepShutdown now always waits for the shutdown of the virtual machine to complete, not only if a shutdown command is specified
2019-07-26 12:34:27 +02:00
Thomas Meckel
b873876670
Added test TestSnapshot_EnsureParents
...
No using asserts NotNil and Nil
2019-07-26 12:34:27 +02:00
Thomas Meckel
6fd0b3e83e
Fixed a bug in ParseSnapshotData
...
Added fuction GetSnapshots
2019-07-26 12:34:26 +02:00
Thomas Meckel
225a140055
Applied correct source format (got fmt) to builder\virtualbox\common\driver_mock.go
2019-07-26 12:34:26 +02:00
Thomas Meckel
51e5ae69db
Corrected method signatures in builder\virtualbox\common\driver_mock.go
2019-07-26 12:34:26 +02:00
Thomas Meckel
ab6a163ff2
Added missing newline at end of builder\virtualbox\common\driver_mock.go
2019-07-26 12:34:25 +02:00
Thomas Meckel
e9b5332e99
Added missing functions to builder\virtualbox\common\driver_mock.go
2019-07-26 12:34:25 +02:00
Thomas Meckel
fd5a2db58f
Removed commented (obsolete) code from builder\virtualbox\common\driver_4_2.go
2019-07-26 12:34:25 +02:00
Thomas Meckel
7d3c84e5f9
Changed VirtualBox VM builder according to current builder interface
2019-07-26 12:29:48 +02:00
Thomas Meckel
2ef911f6f0
Fixed bugs in snapshot and builder code
2019-07-26 12:29:47 +02:00
Thomas Meckel
ebd2780e5d
implemented first unit tests for snapshot.go
2019-07-26 12:29:46 +02:00
Thomas Meckel
f1f7c4e10c
* added function ParseSnapshotData to parse a string representation of a VBox snapshot tree
...
* fixed bugs
2019-07-26 12:29:46 +02:00
Thomas Meckel
45e2095ae3
Moved parsing of tree string representation to new function in snapshot.go
2019-07-26 12:29:45 +02:00
Thomas Meckel
092e32fe9e
First version of reworked snapshot implementation
2019-07-26 12:29:45 +02:00
Thomas Meckel
a6074894f1
Defined struct and first function for enhanced snapshot handling
2019-07-26 12:29:45 +02:00
Thomas Meckel
d3202497ae
First working version of virtualbox/vm builder
2019-07-26 12:29:44 +02:00
Thomas Meckel
2a531f8ad6
Merged changes from local branch
2019-07-26 12:29:44 +02:00
mingsheng.su
66f142adf1
update docs
2019-07-26 17:27:58 +08:00
mingsheng.su
59c8911cd5
update api about stop instance
2019-07-26 17:03:57 +08:00
Megan Marsh
d21f4eb888
Merge pull request #7908 from muesli/typo-fixes
...
Fixed various typos
2019-07-25 12:21:20 -07:00
Megan Marsh
3d22535742
Merge pull request #7884 from jprorama/fix-7171
...
[WIP] Fix #7171 : select instance network on which to assign floating ip
2019-07-25 11:57:24 -07:00
Megan Marsh
166f1de5fd
Merge pull request #7887 from xunleii/f-scaleway-autoremove-volume
...
Allow removing volume after image creation for Scaleway builder
2019-07-25 11:56:23 -07:00
Christian Muehlhaeuser
216afbaa8b
Fixed various typos
...
Just a bunch of nit-picky typo fixes.
2019-07-25 06:49:51 +02:00
Megan Marsh
140785f088
make sure we create the temp dir explicitly when we are setting up the config dir in docker. Otherwise, we create it with root later on and it causes permissions failures.
2019-07-24 16:51:38 -07:00
Alexandre NICOLAIE
6835a12cb3
fix: fix typo in comment
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-07-24 21:19:53 +02:00
Megan Marsh
54a7b4f377
update comments and docs
2019-07-22 11:54:42 -07:00
y-kuno
6305c555df
Add openstack image min_disk option
2019-07-22 11:44:34 -07:00
Alexandre NICOLAIE
b010442e07
fix: delete volume only after snapshot step
...
Signed-off-by: Alexandre NICOLAIE <alexandre.nicolaie@gmail.com>
2019-07-21 10:42:34 +02:00
Alexandre NICOLAIE
39b8c0ecca
feat: add 'remove volume' step to scaleway
...
Signed-off-by: Alexandre NICOLAIE <alexandre.nicolaie@gmail.com>
2019-07-18 23:19:48 +02:00
Megan Marsh
975ee377b2
Merge pull request #7792 from psinghal20/issue-7721
...
set openstack image metadata with use_blockstorage_volume
2019-07-18 11:58:01 -07:00
Marin Salinas
e634caee0a
remove chroot acc test
2019-07-18 12:07:08 -05:00
Megan Marsh
e10b9fb708
fix ssh interface conflict
2019-07-18 09:47:15 -07:00
Marin Salinas
1424f1b564
fix: remove AWS references and unnecessary code
2019-07-18 09:39:08 -07:00
Marin Salinas
73cd148e80
refactor: change ebs_volume to bsu_volumeattribute in bsuvolume builder
2019-07-18 09:39:08 -07:00
Marin Salinas
7e23f14d4e
fix: chroot builder
2019-07-18 09:39:08 -07:00
Marin Salinas
1b7c56f73d
fix: change bad artifact validation in bsu builder
2019-07-18 09:39:08 -07:00
Marin Salinas
03f8b2ceb5
fix: change GlobalPermission to false in order to prevent public image creation
2019-07-18 09:39:08 -07:00
Marin Salinas
dc0db4b322
fix: change osc builder to be passed a context for cancellation and remove conflicts
2019-07-18 09:39:08 -07:00
Marin Salinas
2337703be6
fix: add missing secret key in http client configuration
2019-07-18 09:39:08 -07:00
Marin Salinas
ed2d2b9058
refactor: clean duplicate files with aws chroot builder
2019-07-18 09:39:08 -07:00
Marin Salinas
488535118d
refactor: change validation when bsu is set
2019-07-18 09:39:08 -07:00
Marin Salinas
6820806436
refactor: add err check in create tags
2019-07-18 09:39:08 -07:00
Marin Salinas
17ee7b8163
fix: add missing secret key in http client configuration
2019-07-18 09:39:08 -07:00
Marin Salinas
f28c3877e3
refactor: remove unused attributes
2019-07-18 09:39:08 -07:00
Marin Salinas
590bef0969
chore: fix bad comments
2019-07-18 09:39:08 -07:00
Marin Salinas
04534d87ac
chore: change templateCleanOMIName to templateCleanResourceName function
...
:
2019-07-18 09:39:08 -07:00
Marin Salinas
1811b3af52
chore: remove unused buildBlockDevice function
2019-07-18 09:39:08 -07:00
Marin Salinas
4b52816935
fix: go modules conflicts
2019-07-18 09:39:08 -07:00
Marin Salinas
35c7c6163c
refactor: remove unnecessary fields and add default values
2019-07-18 09:39:08 -07:00
Marin Salinas
810e30e8e1
refactor: fix symlink issue on ubuntu
2019-07-18 09:39:08 -07:00
Marin Salinas
27528aeb68
test: fix test error in block_device
2019-07-18 09:39:08 -07:00
Marin Salinas
80dadaf3f1
feature: add bsuvolume builder and acceptance test
2019-07-18 09:39:08 -07:00
Marin Salinas
c9b8bc6b54
fix: typo in bsusurrogate acc test
2019-07-18 09:39:08 -07:00
Marin Salinas
8b8eb70e19
feature: add create tags to volume
2019-07-18 09:39:08 -07:00
Marin Salinas
db2832d80c
fix: change name of dirs
2019-07-18 09:39:08 -07:00
Marin Salinas
683431afa2
fix acceptance test configuration
2019-07-18 09:39:08 -07:00
Marin Salinas
571ef828e6
fix: remove pointer when vm is getting
2019-07-18 09:39:08 -07:00
Marin Salinas
cf1fdfef00
fix: add missing keys when artifact is destroying
2019-07-18 09:39:08 -07:00
Marin Salinas
8a6faf1ad3
feature: add create tags for vm and volume
2019-07-18 09:39:08 -07:00
Marin Salinas
ff0336965b
feature: add create tags function
2019-07-18 09:39:08 -07:00
Marin Salinas
987b4148e1
fix: remove pointer when gets vm from the state
2019-07-18 09:39:08 -07:00
Marin Salinas
9d6c4a8e5b
feature: add remaining steps and and create artifact in chroot builder
2019-07-18 09:39:08 -07:00
Marin Salinas
70d2ff3d8a
feature: add create omi step in chroot builder
2019-07-18 09:39:08 -07:00
Marin Salinas
6843b64331
feature: add eartly cleanup and snapshot steps in chroot builder
2019-07-18 09:39:08 -07:00
Marin Salinas
352972a33d
feature: add chroot provision step in chroot builder
2019-07-18 09:39:08 -07:00
Marin Salinas
31367ff768
feature: add copy files step in chroot builder
2019-07-18 09:39:08 -07:00
Marin Salinas
07b1580003
feature: add mount extra step in chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
b3d165e864
feature: add post mount commands step in chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
6e6bdc4f42
feature: add mount device step in chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
00ab0097de
feature: add pre mount commands step for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
0f51ab5c08
feature: add early unflock step for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
b3310f65a6
feature: add link volume step for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
f1e5dafc71
fix: convert volume size to Gib before volume creation
2019-07-18 09:39:07 -07:00
Marin Salinas
b246bf7329
wip: add create_volume step in chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
b7f8c6ad9d
feature: add prepare device for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
bf2d66c4e6
feature: add file lock step for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
66cf27fe31
feature: add step check root device step in chrrot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
bc907f0fd0
feature: add vm info step
2019-07-18 09:39:07 -07:00
Marin Salinas
a3b0c28bb6
test: add acceptance basic test for outscale chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
e8ef12e41c
test: fix unit test in block device security group and build info
2019-07-18 09:39:07 -07:00
Marin Salinas
2f87427fd4
feature: add chroot build prepare function implementation
2019-07-18 09:39:07 -07:00
Marin Salinas
0d5ce8b9b9
feature: add chroot build cancel function implementation
2019-07-18 09:39:07 -07:00
Marin Salinas
30d5b1f7c2
feature: add chroot builder configuration
2019-07-18 09:39:07 -07:00
Marin Salinas
0c47ee55e6
feature: add chroot builder structure
2019-07-18 09:39:07 -07:00
Marin Salinas
6e6e518095
fix: change image id on bsu acceptance test
2019-07-18 09:39:07 -07:00
Marin Salinas
52621a3dd2
chore: remove unencrypted work in log when image is creating
2019-07-18 09:39:07 -07:00
Marin Salinas
a4966d9823
add ExpectedRunDevice constant
2019-07-18 09:39:07 -07:00
Marin Salinas
c4e69d3169
wip: add bsu plugin acc testing
2019-07-18 09:39:07 -07:00
Marin Salinas
4779b028f1
feature: bsu, run implementation add artifact
2019-07-18 09:39:07 -07:00
Marin Salinas
972dcc2b25
feature: bsu, run implementation add steps after createOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
83c9a3d4c8
feature: bsu, run implementation add createOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
4847e79b8d
feature: bsu, run implementation add steps before createOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
1c8e9a7dd8
feature: bsu, run implementation add step prevalidate
2019-07-18 09:39:07 -07:00
Marin Salinas
4c04df26fd
feature: bsu, cancel function implementation
2019-07-18 09:39:07 -07:00
Marin Salinas
85d601dd81
feature: bsu, prepare function and test
2019-07-18 09:39:07 -07:00
Marin Salinas
91bdf5c212
feature: bsu, builder structure and test
2019-07-18 09:39:07 -07:00
Marin Salinas
d2d794f6dc
fix: undefined variable correction
2019-07-18 09:39:07 -07:00
Marin Salinas
996ee89397
change amis to omis in artifact
2019-07-18 09:39:07 -07:00
Marin Salinas
ae444a3250
fix: change the debugKeyPath name in osc bsusurrogate builder
2019-07-18 09:39:07 -07:00
Marin Salinas
1c69d55a1f
feature: bsusurrogate, run implementation add artifact
2019-07-18 09:39:07 -07:00
Marin Salinas
3bcebc1af6
feature: bsusurrogate, add CreateTags step
2019-07-18 09:39:07 -07:00
Marin Salinas
2c4b2b8657
feature: bsusurrogate, add StepUpdateOMIAttributes step
2019-07-18 09:39:07 -07:00
Marin Salinas
b46636a39b
feature: bsusurrogate, add RegisterOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
9c63f4cd92
feature: bsusurrogate, add DeregisterOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
871df8be85
feature: bsusurrogate, add StepUpdateBSUBackedVm and StepSnapshotVolumes step
2019-07-18 09:39:07 -07:00
Marin Salinas
09b899bb84
fix: change name to keypair key path file
2019-07-18 09:39:07 -07:00
Marin Salinas
52962f2355
feature: bsusurrogate, add stop bsu backed vm step
2019-07-18 09:39:07 -07:00
Marin Salinas
3ed7c7ff33
feature: bsusurrogate, add provision and cleanup temp keys step
2019-07-18 09:39:07 -07:00
Marin Salinas
957bdae441
feature: bsusurrogate, add clean connect step
2019-07-18 09:39:07 -07:00
Marin Salinas
b0c4784b96
feature: bsusurrogate, add clean get password step
2019-07-18 09:39:07 -07:00
Marin Salinas
1df7f15f53
fix: namming in step keypair
2019-07-18 09:39:07 -07:00
Marin Salinas
7ef09bba13
feature: bsusurrogate, add clean volumes and run source vm step
2019-07-18 09:39:07 -07:00
Marin Salinas
5ef3e81234
feature: bsusurrogate, add security group step
2019-07-18 09:39:07 -07:00
Marin Salinas
cef9a4b9fd
feature: bsusurrogate, add network info step
2019-07-18 09:39:07 -07:00
Marin Salinas
c24ee2c9ca
feature: bsusurrogate, add keypair step
2019-07-18 09:39:07 -07:00
Marin Salinas
e4405a0c02
feature: bsusurrogate, add Source network Info step
2019-07-18 09:39:07 -07:00
Marin Salinas
fdd3b594b9
fix: add function to validate if image name exists
2019-07-18 09:39:07 -07:00
Marin Salinas
33d1671e4c
feature: bsusurrogate, add Source OMI Info step
2019-07-18 09:39:07 -07:00
Marin Salinas
3d8b0e5228
fix: change logs in omi config
2019-07-18 09:39:07 -07:00
Marin Salinas
1281f28f6d
add prevalidate step
2019-07-18 09:39:07 -07:00
Marin Salinas
de973fba0e
chore: add Bsusurrogate Run function skeleton
2019-07-18 09:39:07 -07:00
Marin Salinas
ca8ab3b5b0
feature: implement Prepare function in bsusurrogate builder
2019-07-18 09:39:07 -07:00
Marin Salinas
24d1d886f8
feature: add root volume run tags config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
837aada415
feature: add root block device config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
f6372e8ac6
feature: add omi config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
bb848366b6
feature: add block devices config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
be36a2159e
feature: add run config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
1c3939fcd3
add access config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
c1fc2801ef
add access_config struct and test
2019-07-18 09:39:07 -07:00
Marin Salinas
c29816f496
chore: add bsusurrogate builder structure
2019-07-18 09:39:07 -07:00
Megan Marsh
e658a50880
refactored step_ami_region_copy to fix bugs and clarify assumptions; added more tests for that step.
...
fix race condition caused by variable declaration outside of loop
2019-07-18 09:39:06 -07:00
Megan Marsh
42f7cbc30b
add code to deduplicate the region list, and to make sure that the original region's kms key id is in the map.
2019-07-18 09:39:06 -07:00
John-Paul Robinson
038e9f316c
Clean patch formatting with make fmt
2019-07-17 17:10:52 -05:00
John-Paul Robinson
5fe9f3980d
Fix #7171 : select instance network on which to assign floating ip
...
Add config parameter instance_floating_ip_net to control
floating ip assignment for a multi-homed instances. This ensures
the floating ip can be correctly assigned to the instance port
that is connected to the preferred network for floating ip assignment.
This avoids the default first-returned selection method which may
choose a network to which floating ip's can't be assigned,
e.g. because that network is not reachable from the floating ip
network.
2019-07-17 17:00:28 -05:00
Megan Marsh
6b1a407e2a
Merge pull request #7870 from hashicorp/fix_7673
...
Fix bugs in region encryption, copy, skipping logic
2019-07-17 14:07:37 -07:00
Megan Marsh
54d2ad5028
refactored step_ami_region_copy to fix bugs and clarify assumptions; added more tests for that step.
...
fix race condition caused by variable declaration outside of loop
2019-07-17 11:30:20 -07:00
Megan Marsh
2d02ea209d
Merge pull request #7836 from 70k10/vncpassword
...
QEMU builder - implement VNC password functionality
2019-07-16 16:37:49 -07:00
Jayson Cofell
7f5fd4851e
QEMU: Remove QMPEnable and depend upon VNC password usage for QMP enablement.
2019-07-16 08:56:22 -06:00
Vladislav Rassokhin
991cf22504
Prevent endless reading of closed file in vmware plugin
2019-07-16 16:02:57 +03:00
Megan Marsh
39a4da4d07
add code to deduplicate the region list, and to make sure that the original region's kms key id is in the map.
2019-07-11 16:56:40 -07:00
Jayson Cofell
4b0a7b0af7
Fix QEMU fmt miss
2019-07-10 13:12:31 -06:00
Jayson Cofell
f1ad385669
Change QMP socket test to join with filepath
2019-07-10 12:55:44 -06:00