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
Bare-metal Linux VServer preparation script for BOA container #980
Comments
|
As we started discussion in #972 I was wondering on virtualization techniques. Debian was supporting linux-vserver but now it is deprecated,
There are, let's say, three main virtualization techniques (or approaches based on needs):
Linux VServer belongs to the third group which is probably the best for most use cases as that group presents the least overhead (in range from 1% to 3%). There are several operating system level virtualization implementations:
OpenVZ required custom kernel and today is directly supported on CentOS. Linux VServer was supported on Debian before Wheezy. Docker is supposed to be used only for one process so it is not suited well for complete BOA stack. Based on similarity between Linux VServer and LXC (which seem like more modern, current approach to virtualization), is there some specific reason not to go with LXC? |
|
LXC is more complex to use, and got into kernel not because it is better or more modern than Linux VServer. It happened because of politics, better personal connections, etc. All that stuff which is always a warning sign for us. That is why we prefer Linux VServer, which is actively maintained despite being replaced upstream with LXC. |
|
Also, LXC is supported by Canonical Ltd. and we don't like that fact, either. Plus, it is still largely a work in progress: https://linuxcontainers.org |
|
Hello, I am to understand then that BOA officially recommends linux-verser, which has been deprecated by debian in jessie? IS it being actively maintained on github - is that the place you suggest we take it from? |
|
@EdNett -- We don't care what Debian mainstream kernel offers. If you are interested in VServer kernel details, please check: http://linux-vserver.org/Frequently_Asked_Questions That said, don't ask us for help in installing it on your own. You should definitely not try this if you are not fluent in custom kernel management, broken grub config repair, broken machines recovery etc. Otherwise you can screw up things royally, and it is better to wait until installing VServer will be supported by BOA tools. |
|
New installer has been added: https://github.com/omega8cc/boa/blob/master/docs/CLUSTER.txt#L77 It is a work in progress! For testing only, for now. |
|
I'm unlikely to use this personally (anytime soon, anyway), but it's great to see this added. Thanks! |
|
@omega8cc tested the installed last night and everything seems to have worked fine, but ... worked fine: it seems that there is no mySQL installed in the 3 vservers c1rdb0 c1rdb1 c1rdb2 c1rweb works fine with its local DB but adding an additional octopus instance did not work with error: boa info on c1rweb : https://gist.github.com/angel0d/ede19c4b4ac59943f6516aca595e4362 host is a dedicated on leaseweb with the following specs I understand this issue regards the in-vps part of the installation script. maybe #1136 or #502 would be more appropriate for feedback on the cluster part of the script ? |
|
Yeah, there are two patches we forgot to apply, sorry about that! Should be fixed today. |
|
@omega8cc is it correct to assume that deleting the vservers would allow a new or re-installing the host OS is a must ? |
|
@angel0d You don't need to re-install anything, not even the guests. Once the patches are committed, it will be enough to re-install just the ProxySQL on the web node with:
which translates to:
|
|
@omega8cc just run the script but not sure how it could help it seems to me that there is no mysql installed in the DB vservers I 'll re-try to re-install the vservers - is there a specfific log file that could help debug this further ? |
|
@angel0d We have left most of the output to be printed on screen, it doesn't log anything in this initial version. You should see errors if it couldn't install something. We have tested it many times, and |
|
@angel0d Please check twice that the IPs are correctly listed and that they can be enabled by VServer (they should be assigned to the machine already, but don't need to be active before the installation). |
Can be switched to _NOISE="-qq” to limit the noise further.
|
@angel0d Please use newer version of the script, we have reduced default noise cancellation level from |
I noticed that. will do the next install in screen so as to have all of it there for inspection
I assumed that they should be enabled and working beforehand and I have added all public and private IPs as aliases on the primary interface |
|
btw I noticed that |
|
@angel0d Please don't enable the IPs, they should be assigned, but not enabled. |
That's correct: |
|
so I removed the IP aliases after the base install on 1st vserver when it moves on with the galera setup it is not that verbose I only got the following |
|
although it installed the base system fine it seems that the c1rdb0 does not have outgoing access to the net |
|
That could be your system/network issue, I guess? |
i am trying to debug this but with no luck. What are the assumptions made for the private network ? Is it supposed to have routed public access already ? Or should the host be set up so as to act as a NAT gateway ? in my case private network is configured for a specific subnet. I see in cluster.sh maybe the prefix should be configurable as different providers/datacenters might have specific network settings ? i tried to change the above line so as to be in accordance to the private network configuration (which is 10.30.1.192/27), use the clean script and re-run |
|
The Thats said, the script was not tested with local IPs configured on interface other than Further testing and patches are welcome! |
|
The |
|
just an update: with public IPs galera install proceeds and finishes fine. I am missing one IP though in this spare machine for c1rweb so as to fully test this tried the standalone in-vps creation. it seems to install boa tools and populate a .barracuda.cnf. when running boa in-stable though in the newly created vps I noticed that it installs all PHP version. is this by design ? other than that installation went flawlessly great tools !!! |
|
@angel0d Thanks for testing this and for the feedback! We should test the installer with private IPs, obviously. Yes, it is by design to install all PHP versions, so you don't need to edit .barracuda.cnf and run another upgrade, nor to use more complicated options on command line. We should remove 5.5 from this list, though, but installing both 5.6 and 7.0 is probably a good idea, but suggestions on improvements of default configuration are always welcome! |
|
Hello, Is this supposed to be working currently in head? I tried just the first part: Example for installing Linux VServer based BOA on a dedicated machine with one IPv4 - is that all that is required, one IPv4 ? (I imagine IPv6's don't work, right?) It didn't install anything at all, just downloaded a few vserver scripts, but didn't install anything, much less barracua or octopus. I don't want to issue a full error report - as nothing happened. I just want to know are people successfully using this? Thank you. ed |
|
Yes, cluster support works in head, although there are still missing (important) parts, including running upgrades in the correct order, plus handling machine reboot situation, so the guests don't get stuck, etc. The single VPS mode should work fine, but needs more testing, so people don't get into trouble due to some edge case (machine/vendor/etc) situations. |
|
That said, bug reports related to features introduced in head, so not officially supported yet, are more than welcome! |
|
regarding the while searching for VMFAMILY there were 20+ files/scripts returned - maybe the many checks can remain but find another way to initialize VMFAMILY in a way that future install with |
|
as of January 29th the installer would fail during the $ cluster in-host server.example.com with a lot of messages like note |
|
Not sure if it should be a separate issue. I think csf is not properly install/working or I might be confusing something. iptables and csf are install only on host system right ?
|
|
@angel0d Please open a separate issue for these problems, since there will be more of this kind to fix, I suspect. |
macmladen commentedJun 12, 2016
Can you share some preparatory script that prepares bare-metal and puts up VServer to host BOA?
Also I'd be grateful if you can provide some practical tutorial (link) that could help me in the process as I was wondering how can I have BOA and Redmine, Gitlab, Mail all of which may run in their own containers (VServers).
I was looking for some solution to have Redmine and/or mail in separate containers so I wanted LXC as it seemed lightweight but then I was wondering if Docker is just toolset for LXC or does it offer more than just that.
#972
The text was updated successfully, but these errors were encountered: