vagrant-g5k 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d158ce0d54f8e090799534b2c550410eda599144
4
- data.tar.gz: c994af3cd0e9b61e99f5e48cb33296aace5a466c
3
+ metadata.gz: 8a9e7158fb0a28232d4f6fe3192e084eeaf108b0
4
+ data.tar.gz: 5f370230fa6be8d380b5d533a44601d5d6495d70
5
5
  SHA512:
6
- metadata.gz: 4767c62efa6f4f085314bdd9902606c280a54ba406a9eda704903bca6523544a29d229e416a76ee92a62257de1b73c5ea5059527164487b60f285e84953cc121
7
- data.tar.gz: 4668779eac6a34ad3e8441ede897693a4a8dc8472ea6bfda4d5cf7c5a72a94d522dba01ad15d38e611a40c6d9c30d26a3ec0f30b7aa46cae199c5114033a94c1
6
+ metadata.gz: c6be9badcea2c58faee6a889ee411747054c0f4b055be2203bced2af146cf2a05324cd947ab71265a92a948f6fb9c174a38f91dcefe5afdbb42974b9b06a8056
7
+ data.tar.gz: 7c8e9585c89d6db45eba4b1f56c027208f652f21c3db1553a8424dcab3a494fee3d62e6733b10269a499374a207278c1f36d5fc2d9677dcd97ed783c3f3a6618
@@ -1,3 +1,8 @@
1
+ # 0.9.8
2
+
3
+ * Fix wrong monitor socket path when OAR job is killed
4
+ [[-]](https://github.com/msimonin/vagrant-g5k/commit/eb03586257210350f237db8c22005ff877de1051)
5
+
1
6
  # 0.9.7
2
7
 
3
8
  * Fix vagrant 1.9.5 compatibility. Note that it breaks compatibility with older version of
data/README.md CHANGED
@@ -102,9 +102,28 @@ mount -t 9p -o trans=virtio hostshare /g5k -oversion=9p2000.L
102
102
 
103
103
  Virtual Machines can be booted either :
104
104
 
105
- * From a `qcow2` image stored in the frontend filesystem
105
+ * From a `qcow2` image stored in the frontend filesystem :
106
+
107
+ ```
108
+ g5k.image = {
109
+ :path => # path to the image (absolute or reltive to the user home)
110
+ :strategy => # strategy to use (see below)
111
+ }
112
+ ```
113
+
106
114
  * From a rbd image stored in one of the ceph cluster of Grid'5000.
107
115
 
116
+ ```
117
+ g5k.image = {
118
+ :pool => # ceph pool to use
119
+ :rbd => # rbd in the pool to use
120
+ :conf => # path to the ceph config file
121
+ :id => # id to use to contact ceph
122
+ :strategy => # strategy to use (see below)
123
+ }
124
+ ```
125
+
126
+
108
127
  Once the base image is chosen, you can pick one of the following strategy
109
128
  to back the disk image of the virtual machines :
110
129
 
@@ -36,7 +36,7 @@ Vagrant.configure(2) do |config|
36
36
 
37
37
  # Image backed on the frontend filesystem
38
38
  g5k.image = {
39
- :path => "/home/msimonin/public/conpaas-2.1.0-openstack-kvm.img",
39
+ :path => "/home/msimonin/public/debian-8.7-amd64-bento.qcow2",
40
40
  :backing => "snapshot"
41
41
  }
42
42
 
@@ -75,9 +75,8 @@ Vagrant.configure(2) do |config|
75
75
  # This defines a VM
76
76
  # If you want to use a local virtual machine (vbox, libvirt...)
77
77
  # add your vagrant options below as usual.
78
- (0..10).each do |i|
79
- config.vm.define "test-#{i}" do |my|
80
- my.vm.box = "dummy"
81
- end
78
+ config.vm.define "test" do |my|
79
+ my.vm.box = "dummy"
82
80
  end
81
+
83
82
  end
@@ -73,7 +73,7 @@ export TMPDIR=/tmp
73
73
  # Clean shutdown of the VM at the end of the OAR job
74
74
  clean_shutdown() {
75
75
  echo "Caught shutdown signal at $(date)"
76
- echo "system_powerdown" | nc -U /tmp/vagrant-g5k.mon
76
+ echo "system_powerdown" | nc -U /tmp/vagrant-g5k.$OAR_JOB_ID.mon
77
77
  }
78
78
 
79
79
  trap clean_shutdown 12
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module G5K
3
- VERSION = '0.9.7'
3
+ VERSION = '0.9.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-g5k
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu Simonin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-22 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iniparse
@@ -135,7 +135,6 @@ files:
135
135
  - README.md
136
136
  - Vagrantfile
137
137
  - Vagrantfile.multi
138
- - Vagrantfile.old
139
138
  - dummy.box
140
139
  - examples/gitlab/Vagrantfile
141
140
  - examples/gitlab/main.yml
@@ -182,7 +181,6 @@ files:
182
181
  - locales/en.yml
183
182
  - spec/vagrant-g5k/config_spec.rb
184
183
  - spec/vagrant-g5k/oar_spec.rb
185
- - test/Vagrantfile
186
184
  - vagrant-g5k.gemspec
187
185
  homepage: https://github.com/msimonin/vagrant-g5k
188
186
  licenses:
@@ -1,79 +0,0 @@
1
- # -*- mode: ruby -*-
2
- # vi: set ft=ruby :
3
- #
4
- # Sample Vagrantfile
5
- #
6
-
7
- # Allow to mount the home directory of G5k inside the VM
8
- $script = <<SCRIPT
9
- mkdir /g5k
10
- mount -t 9p -o trans=virtio hostshare /g5k -oversion=9p2000.L
11
- SCRIPT
12
-
13
- Vagrant.configure(2) do |config|
14
-
15
- config.vm.provider "g5k" do |g5k, override|
16
- # This is mandatory for the shared folders to work correctly
17
- override.nfs.functional = false
18
- # vagrant-g5k only supports rsync shared folders
19
- override.vm.synced_folder ".", "/vagrant", type: "rsync", disabled: false
20
-
21
- override.ssh.insert_key = false
22
-
23
- # Mount the home dir
24
- override.vm.provision "shell", inline: $script
25
- # project id must be unique accross all
26
- # your projects using vagrant-g5k to avoid conflict
27
- # on vm disks
28
- g5k.project_id = "test-vagrant-g5k"
29
-
30
- #g5k.site = "igrida"
31
- g5k.site = "rennes"
32
- g5k.username = "msimonin"
33
- g5k.gateway = "access.grid5000.fr"
34
- g5k.walltime = "01:00:00"
35
- #g5k.private_key = "your private key"
36
-
37
- # Image backed on the frontend filesystem
38
- g5k.image = {
39
- :path => "/home/msimonin/public/debian-8.7-amd64-bento.qcow2",
40
- :backing => "snapshot"
41
- }
42
-
43
- ## Bridged network : this allow VMs to communicate
44
- #g5k.net = {
45
- # :type => "bridge"
46
- #}
47
-
48
- ## Nat network : VMs will only have access to the external world
49
- ## Forwarding ports will allow you to access services hosted inside the
50
- ## VM.
51
- g5k.net = {
52
- :type => "nat",
53
- :ports => ["2222-:22"]
54
- }
55
-
56
- ## OAR selection of resource
57
- g5k.oar = "virtual != 'none'"
58
- #g5k.oar = "virtual != 'None' and network_address in ('paranoia-2.rennes.grid5000.fr')"
59
- #g5k.oar = "network_address in ('igrida12-12.irisa.fr')"
60
-
61
- ## VM size customization default values are
62
- ## cpu => -1 -> all the cpu of the reserved node
63
- ## mem => -1 -> all the mem of the reserved node
64
- ##
65
- g5k.resources = {
66
- :cpu => 1,
67
- :mem => 2048
68
- }
69
- g5k.job_container_id = "907864"
70
- end #g5k
71
-
72
- # This defines a VM
73
- # If you want to use a local virtual machine (vbox, libvirt...)
74
- # add your vagrant options below as usual.
75
- config.vm.define "test" do |my|
76
- my.vm.box = "dummy"
77
- end
78
-
79
- end
@@ -1,46 +0,0 @@
1
- # -*- mode: ruby -*-
2
- # vi: set ft=ruby :
3
- #
4
- # Sample Vagrantfile
5
- #
6
- Vagrant.configure(2) do |config|
7
-
8
- config.vm.provider "g5k" do |g5k, override|
9
- override.nfs.functional = false
10
- g5k.project_id = "test-vagrant-g5k"
11
- g5k.site = "rennes"
12
- g5k.username = "msimonin"
13
- g5k.gateway = "access.grid5000.fr"
14
- g5k.walltime = "00:10:00"
15
- g5k.image = {
16
- :path => "/home/msimonin/public/ubuntu1404-9p.qcow2",
17
- :backing => "snapshot"
18
- }
19
- g5k.net = {
20
- :type => "bridge",
21
- # :ports => ["#{2222+i}-:22"]
22
- }
23
- g5k.oar = "virtual != 'none'"
24
- g5k.resources = {
25
- :cpu => 1,
26
- :mem => 2048
27
- }
28
- end #g5k
29
-
30
- ## This define a VM.
31
- ## a g5k provider section will override top level options
32
- ## To define multiple VMs you can
33
- ## * either repeat the block
34
- ## * loop over using (1..N).each block
35
- (1..10).each do |i|
36
- config.vm.define "test-#{i}" do |my|
37
- my.vm.box = "dummy"
38
- ## Configure the shared folders between your host and the VM
39
- my.vm.synced_folder ".", "/vagrant", type: "rsync", disabled: false
40
- ## This is mandatory until #6 is fixed
41
- ## In particular this is needed for the shared folders
42
- my.ssh.insert_key = false
43
- end #vm
44
- end
45
-
46
- end