Commit Graph

942 Commits

Author SHA1 Message Date
Michal Sylwester
ecea549e7f Be tolerant about drivers not supporting listing snapshots 2017-01-30 17:04:46 +01:00
Dmitry Vasilets
c065c1e6e5 test1 2017-01-16 16:40:23 +01:00
Dmitry Vasilets
8e9ae020f1 Merge pull request #723 from knumskull/issue-722
fix issue #722
2017-01-13 14:49:16 +01:00
Steffen Froemer
e3181e10b6 fix issue #722 2017-01-13 13:29:06 +01:00
Dmitry Vasilets
2fe3ede420 Merge pull request #721 from galkindmitrii/master
virtual sound card support
2017-01-12 20:04:36 +01:00
Dmitry Galkin
1248dc43e9 sound_type set to nil if UNSET_VALUE. 2017-01-12 19:58:42 +01:00
Liam Campbell
2f091b1cdc patch to include virtual sound card support 2017-01-12 18:31:44 +01:00
Dmitry Vasilets
cb25d70d7a Merge pull request #720 from knumskull/vagrant-libvirt-smartcard
adding support for smartcard device
2017-01-12 09:56:59 +01:00
Steffen Froemer
639fb240b8 adding support for smartcard device 2017-01-12 09:31:12 +01:00
Dmitry Vasilets
74a5857341 Merge pull request #717 from knumskull/watchdog-support
adding watchdog device support
2017-01-10 13:24:44 +01:00
Steffen Froemer
93cc6fba20 adding watchdog device support
fixed spec file

updated spec file

fixed spec tests
2017-01-10 00:59:40 +01:00
Gerben Meijer
d93fe5b18f Bump QA test version in README 2017-01-09 15:48:38 +01:00
Gerben Meijer
2337c35972 version 0.0.37 2017-01-09 15:47:31 +01:00
Gerben Meijer
75d9a9764d Merge pull request #712 from infernix/qabuildstatus
Update README with QA status table
2016-12-20 14:23:42 +01:00
Gerben Meijer
41762ea66a Update README with QA status table 2016-12-20 14:22:34 +01:00
Dmitry Vasilets
3ec5b24a7a Merge pull request #708 from michalskalski/autostart_networks
Autostart of libvirt networks
2016-12-16 13:27:54 +01:00
Michal Skalski
04b34f8c13 Autostart of libvirt networks
Add option for defining autostart behaviour for mgmt network.
Take into account 'autostart' value for private networks.
Fixes #615
2016-12-16 12:21:30 +01:00
Dmitry Vasilets
f5659c735f Merge pull request #707 from michalskalski/pxe-improvments
Make mgmt network detachable from no box VMs
2016-12-14 20:22:18 +01:00
Michal Skalski
8ef6df014d Make mgmt network detachable from no box VMs
Pxe nodes are not provisioned, mgmt network is not required for them.
Provide new domain option 'mgmt_attach' which one can use to remove mgmt
interface from VM. Default behaviour is not changed.
Also take into account bridge interfaces when set boot order, to support
scenario when we would like to use vagrant VM to pxe boot physical nodes
in existing network.
2016-12-13 21:43:59 +01:00
Dmitry Vasilets
6c5680ab17 Merge pull request #705 from Alveel/readme-fix
Don't run pacman -Sy, simply install with -S instead.
2016-12-09 16:37:41 +01:00
Alwyn Kik
b8286923f9 Don't run pacman -Sy, simply install with -S instead. 2016-12-09 15:26:06 +01:00
dima
8dfe8d5260 add some ipv6 support between vms 2016-12-07 00:40:44 +01:00
dima
c1898be3d6 rubocop 2016-12-06 23:20:29 +01:00
dima
b92b02b6d6 add ability for test pxe in private network 2016-12-06 19:45:27 +01:00
dima
981ca18b5e amazing rubocop -a autofix 2016-12-06 16:59:28 +01:00
Dmitry Vasilets
d6000307d6 Merge pull request #701 from evgeni/add-data-to-box
add a way to inject data into the Vagrantfile
2016-12-05 11:33:28 +01:00
Evgeni Golov
c1d103348d add a way to inject data into the Vagrantfile
for example, I have to set a few settings for my box:

    % cat Vagrantfile.add
      config.vm.provider :libvirt do |libvirt|
        libvirt.nic_model_type = "e1000"
        libvirt.disk_bus = "sata"
      end

      config.vm.guest = :tinycore
    % create_box.sh my.qcow2 my.box Vagrantfile.add
2016-12-01 14:09:39 +01:00
Gerben Meijer
4caf672829 Merge pull request #700 from evgeni/create-box-help
catch -h/--help passed to create_box.sh and output usage
2016-12-01 13:06:56 +01:00
Evgeni Golov
7bc4cdcba0 catch -h/--help passed to create_box.sh and output usage
instead of passing it to readlink, confisung the user with strange
output
2016-12-01 12:42:55 +01:00
Gerben Meijer
cdb0848db5 Merge pull request #698 from infernix/master
Add coveralls badge
2016-11-27 02:20:09 +01:00
Gerben Meijer
cf9b77cb07 Add coveralls badge 2016-11-27 02:08:08 +01:00
Gerben Meijer
ae47fa946e Merge pull request #697 from infernix/master
Enable coveralls.io
2016-11-27 00:19:04 +01:00
Gerben Meijer
4837d3a72a Enable coveralls in spec_helper 2016-11-26 23:57:17 +01:00
Gerben Meijer
1c8b94e029 Add coveralls to Gemfile 2016-11-26 23:57:07 +01:00
Gerben Meijer
4de8bc457f Add coveralls.yml 2016-11-26 23:57:00 +01:00
Gerben Meijer
4d40f4e873 Merge pull request #696 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2016-11-26 12:39:39 +01:00
The Gitter Badger
8cf1ff609b Add Gitter badge 2016-11-26 11:38:02 +00:00
Dmitry Vasilets
a894dc0cbf Merge pull request #694 from electrofelix/fix-storage-config-blocks
Fix storage config blocks
2016-11-25 20:48:09 +01:00
Darragh Bailey
46e0d09ce6 Fix separate storage config blocks device assignment
Move device assignment for CDROM's and disk storage to occur during
finalize, to ensure that storage config blocks are merged before
assigning devices.

This ensures that defining multiple storage config blocks within the
same or different Vagrantfiles that are merged, works as expected to
create multiple separate storage devices without needing to explicitly
define the dev name.

Fixes #655
2016-11-25 17:14:54 +00:00
Darragh Bailey
4af944f9d6 Merge CDROM storage config blocks 2016-11-25 17:14:54 +00:00
Darragh Bailey
286bdf25b8 Basic spec tests for config
Some simple spec tests to ensure validate and finalize work, which also
includes some tests showing that merging is not functioning as needed
for disks/cdroms both in cdroms not being merged across configs and
device ids are not handled correctly for merged configs.
2016-11-25 17:14:54 +00:00
Darragh Bailey
26744c97ab Merge pull request #691 from electrofelix/domain-template-spec
Spec test for domain template to verify rendering
2016-11-25 17:04:23 +00:00
Gerben Meijer
c0f1b231c8 Merge pull request #693 from infernix/master
Update docs for ipv6 settings. Fixes #685
2016-11-25 17:00:11 +01:00
Darragh Bailey
81a35c9f14 Spec test for domain template to verify rendering
Add basic spec tests for the domain template to test rendering through
simple wrapping of a config object to provide values for class instance
variables used by the template as it mostly mirrors those required.
2016-11-25 15:59:44 +00:00
Gerben Meijer
eaaf946c71 Update docs for ipv6 settings. Fixes #685 2016-11-25 16:59:35 +01:00
Dmitry Vasilets
255146ec41 Merge pull request #677 from knumskull/vagrant-libvirt-redirdev
patch for include support of redirector devices
2016-11-02 21:02:26 +01:00
Dmitry Vasilets
0db148dcbe Merge pull request #686 from epienbroek/nfs_ip
Use /sbin/ip when there is no 'ip' command in any of the default PATHs
2016-11-02 18:25:12 +01:00
Erik van Pienbroek
c9123269f6 Use /sbin/ip when there is no 'ip' command in any of the default PATHs
While configuring NFS an attempt is done to find
out all guest IP addresses using the 'ip' tool.
On various distros like Fedora 25, RHEL6 and RHEL 7
this tool is located in /sbin folder which is not
in the default PATH. This can result in errors like:

 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::ShareFolders:0x007fc8689b14b8>
DEBUG host: Searching for cap: nfs_installed
DEBUG host: Checking in: redhat
DEBUG host: Checking in: linux
DEBUG host: Found cap: nfs_installed in linux
 INFO host: Execute capability: nfs_installed [#<Vagrant::Environment: /var/lib/jenkins/workspace/pipeline-test_wip-TG6O6HU2IAULWKZINVXPWYUIU4APVEDUCV4TIOMW3LHGUVGFESPQ>] (redhat)
 INFO nfs: Using NFS, preparing NFS settings by reading host IP and machine IP
DEBUG ssh: Checking key permissions: /var/lib/jenkins/.vagrant.d/insecure_private_key
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: ip addr show | grep -i 'inet ' | grep -v '127.0.0.1' | tr -s ' ' | cut -d' ' -f3 | cut -d'/' -f 1 (sudo=false)
DEBUG ssh: stderr: bash: line 2: ip: command not found

DEBUG ssh: Exit status: 0
 INFO nfs: guest IPs:
 INFO nfs: host IP: 127.0.0.1 machine IP: []
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::PrepareNFSSettings:0x007fc868974b80>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::ForwardPorts:0x007fc868948b70>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::WaitTillUp:0x007fc868916120>
 INFO warden: Calling OUT action: #<VagrantPlugins::ProviderLibvirt::Action::StartDomain:0x0055a7c389c608>

and later on a fatal error occurs due to the wrong IP address being used:

 INFO guest: Execute capability: mount_nfs_folder [#<Vagrant::Machine: dev01 (VagrantPlugins::ProviderLibvirt::Provider)>, "127.0.0.1", {"/vagrant"=>{:type=>:"", :guestpath=>"/vagrant", :hostpath=>"/var/lib/jenkins/workspace/pipeline-test_rhsm_wip-TG6O6HU2IAULWKZINVXPWYUIU4APVEDUCV4TIOMW3LHGUVGFESPQ", :disabled=>false, :__vagrantfile=>true, :map_uid=>981, :map_gid=>980, :nfs_udp=>true, :nfs_version=>3, :uuid=>"519459908", :linux__nfs_options=>["rw", "no_subtree_check", "all_squash", "anonuid=981", "anongid=980", "fsid=519459908"]}, "/software"=>{:guestpath=>"/software", :hostpath=>"/home/shared/software", :disabled=>false, :__vagrantfile=>true, :map_uid=>1000, :map_gid=>1000, :nfs_udp=>true, :nfs_version=>3, :uuid=>"258980992", :linux__nfs_options=>["rw", "no_subtree_check", "all_squash", "anonuid=1000", "anongid=1000", "fsid=258980992"]}, "/yum_repos"=>{:guestpath=>"/yum_repos", :hostpath=>"/home/shared/yum_repos", :disabled=>false, :__vagrantfile=>true, :map_uid=>1000, :map_gid=>1000, :nfs_udp=>true, :nfs_version=>3, :uuid=>"1600717094", :linux__nfs_options=>["rw", "no_subtree_check", "all_squash", "anonuid=1000", "anongid=1000", "fsid=1600717094"]}}] (redhat)
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: set -e
mkdir -p /vagrant
mount -o vers=3,udp 127.0.0.1:/var/lib/jenkins/workspace/pipeline-test_wip-TG6O6HU2IAULWKZINVXPWYUIU4APVEDUCV4TIOMW3LHGUVGFESPQ /vagrant
if command -v /sbin/init && /sbin/init --version | grep upstart; then
  /sbin/initctl emit --no-wait vagrant-mounted MOUNTPOINT=/vagrant
fi
 (sudo=true)
DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: echo; printf $SSH_AUTH_SOCK (sudo=false)
DEBUG ssh: Exit status: 0
DEBUG ssh: stdout:
/tmp/ssh-IQUlPd2203/agent.2203
 INFO ssh: Setting SSH_AUTH_SOCK remotely: /tmp/ssh-IQUlPd2203/agent.2203
DEBUG ssh: stderr: mount.nfs: requested NFS version or transport protocol is not supported

DEBUG ssh: Exit status: 32
 INFO retryable: Retryable exception raised: #<Vagrant::Errors::NFSMountFailed: The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

Made the IP address detection more reliable by first
trying to find the location of the 'ip' tool using
'which' and when that fails (not in the default PATH),
then try to use '/sbin/ip'.
2016-11-02 18:02:55 +01:00
Steffen Froemer
143c21cdcf fixed conflicts 2016-11-02 08:16:00 +01:00
Steffen Froemer
fcf8dc19df Added support for redirected devices and USB filter. 2016-11-01 20:41:41 +01:00