-
Notifications
You must be signed in to change notification settings - Fork 90
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
Test VM: updated base box (centos/7), cookbooks and packages #513
Conversation
0b78bc4
to
e0f4604
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we merged the informix mode changes with the other PR I guess we should rebase to remove them from this one?
@@ -1,6 +1,8 @@ | |||
include_recipe "dbfit_test::diskspace" | |||
include_recipe "dbfit_test::firewalld" | |||
include_recipe 'firewalld::disable' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is disabling firewall useful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need the firewall active on the guest?
Actually on this box it's disabled by default. On the old one it was turned on.
@@ -1,6 +1,8 @@ | |||
include_recipe "dbfit_test::diskspace" | |||
include_recipe "dbfit_test::firewalld" | |||
include_recipe 'firewalld::disable' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to be consistent on quotations: '
vs "
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot.
e0f4604
to
7e9876f
Compare
Actually regarding the I could turn off this service as well (with https://supermarket.chef.io/cookbooks/iptables). What do you think? |
OK, let's disable the firewalls. In general it depends if VM network interfaces are exposed to external world (depends how the VM box is configured). |
So... I managed to arrange a cloud box on https://zrh.cloudsigma.com to try the VM setup for a few days :-) I'm getting the following error on
|
@@ -13,15 +13,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |||
# Add another disk. | |||
if ARGV[0] == "up" && !File.exist?(file_to_disk) | |||
vb.customize ['createhd', '--filename', file_to_disk, '--size', 10 * 1024] | |||
vb.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |||
vb.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me it happens that the controller name is IDE
(not IDE Controller
). I'm using VirtualBox 5.1.8
.
That's strange. Let me double check I'm up to date with VB. |
Isn't that ultimately governed by the host's firewall? |
That indeed depends on VBox version - controller name is |
That's nasty. But this ticket is ancient. Have you tried with both recent VB versions? |
Versions were 5.1.8 and 5.0.28. |
I'm actually on actually 5.0.25 for VB. I might have installed from a public repo earlier instead of installing the download that I'd got. So we could perhaps add our own disk controller to avoid name variations in VB versions. Can you try the latest commit? I think it might need a better name though. |
I switched to VB 5.0.10 - there are some bugs when running newer versions of VB inside KVM virtual machine... The last commit is a great idea 👍 Looks like it would be compatible with the different VB versions. I just tested it - looks working fine with |
This is weird. Today, the additional disk now appears as May be the device names are unpredictable with different controller types. |
Hmm, I also had some issue with the device name but I thought it was due to running |
Port and device numbers maybe have some influence: Another interesting question is - which is the controller of the disk which already exists in the vm box? |
I'll try playing with these. |
The base box comes up with "IDE Controller" on my VB version. Do you mean port/device numbers? There's nothing visible in the VB UI. |
But I can try these options: http://www.virtualbox.org/manual/ch08.html#vboxmanage-storageattach |
Once upon a time IDE controllers used to lead to I guess the way to deal with that is to exploit |
Here is an idea: if the new controller is of the same type as the existing one ( |
That unfortunately fails (there can be only one IDE controller):
|
I tried that too. |
I'll try adding a SCSI controller. |
config.newdisk.size 4000 # size in MB
config.newdisk.path file_to_disk Within plugin there is an access to the VM internals. |
Well, regardless of the controller type, the additional disk seems to now consistently appear at What was the exact device name issue you observed? |
The old one has been moved, is a bit older and and has some issues. The new box is effectively 7.2.1511 now. * change vm.box from chef/centos-7.1 * update diskspace recipe: since the volume group name is different
@MMatten, I'm going to tidy up the commit history in the PR and then I'll force-push. |
f5b5f17
to
22f2674
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MMatten, hopefully we're ready to merge this. Do you think there is anything more to add?
* Limit mysql recipe dependency to version < 8.0 (it's some mess with it).
* disable firewalls to allow host access to guest FitNesse server * disable selinux to deal with the needs of some packages like mysql
lvm cookbook already handles setting up the gem automatically. Such use of chef_gem is reported as deprecated since Chef 12
* Bump up version to 9.6 (settings in Vagrantfile since latest versions are still not in upstream) * Go back to upstream postgresql cookbook
22f2674
to
904ced7
Compare
One thing I noticed is that the vagrant-librarian-chef plugin is not maintained any more. I gave a quick experiment with the berkshelf alternative but for some reason it results in pulling different (lower) versions for some cookbooks. So far |
Nothing else to add. I've tested with everything apart from Teradata and Netezza and as those are nit gusted in our VM I'm guessing no issues there. |
Great :-) Thank you @MMatten! I have some progress with the librarian-chef -> bershelf migration but it will be a subject of separate PR. |
Update Vagrant VB base box, cookbook versions and packages versions where appropriate:
TODO:
swap
cookbook to upstream (instead of dbfit fork)resolves #510