This commit adds an ability to use ssh public key authentication for
the Fuel master node by uploading your ssh public key to it. The path
to the public key file can be provided in the 'config.sh' file.
Closes-Bug: #1579123
Change-Id: I93560126940457518fc4385c0518ab00c0cac01a
To differ envs one from another I need name of isofile in fuel-master
VM description.
Closes-Bug: #1579104
Change-Id: I93560126940457518fc4385c0518ab00d4b3dead
This commit adds check for the file 'dumpkeys.cache' because it
should be exist in the main directory and in some cases it can't
be recreated. Also, this commit contains some enchancements for
all other checks and for the functions/*.sh modules.
Change-Id: Iaa55921709e0575e924af042f4322b759847d097
Closes-Bug: #1547019
This commit include changes:
* using the VirtualBox scripts the Fuel master node now always
booted with kernel option 'wait_for_external_config=yes' to
provide the same deployment functionality as in the 'fuel-qa'.
* settings for the kernel command line moved to the top config
file, because the settings wich could be edited should be placed
there.
* because of configuration task moved to the correct place there
is no need to parse 'bootstrap_admin_node.log' and always follow
the changes in the 'fuel-library', so all parsing logic removed
from the scripts. This also simplifies networking changes and
there is no need to patch the files on the fly and restart
docker containers if they used.
* variable 'vm_master_nat_gateway' removed from the 'config.sh'
and from the 'enable_outbound_network_for_product_vm' because
gateway should be set from the DHCP lease.
* the sysconfig configuration files on the fuel master node now
configured the right way. the backup files for configuration
files are created. also added some comments for changes in the
scripts.
* now the default routing on the fuel master node correctly
configured without creating the second default route. also
ZeroConf route creation and NetworkManager now switched off
to correct work of the network service.
* the 'resolv.conf', 'dnsmasq.upstream' and 'astute.yaml' now
correctly modified and could contain up to three DNS nameservers.
* added support for the new dockerless 9.0 Fuel.
Implements blueprint: get-rid-docker-containers
Change-Id: I8f32fb8105d0781938757fa13d5dcbbacbf9c845
Closes-Bug: #1544241
Partial-Bug: #1323365
This commit adds forgotten kernel name back to boot Fuel
using VirtualBox scripts with skipfuelmenu="yes" set.
Change-Id: I58e21558024c3974dab8af6cefa141bf270fb065
Closes-Bug: #1537897
Closes-Bug: #1487047
Related-Bug: #1525967
The support to deploy on a remote machine is broke the
default behaviour on the Windows OS, so now it always
needs to set the $PATH manually before using the scripts.
Also, the new functionality didn't work on the remote
Windows machine because the scripts change the $PATH on
the local system only.
This commit adds some more checks and fixes the local
$PATH setup. It didn't check remote system requirements
so deploy on a remote machine still have some problems.
Added several messages in the scripts.
Also this commit contain increased timeouts to fix
failures during network interfaces add/change operations
on some Windows systems.
Change-Id: If5dadc1ece3931f42eac423aae4d7016d45c2040
Closes-Bug: #1534129
Partial-Bug: #1491925
This commit adds enchantments and proper support for Windows 7/8/10:
* more verbose messages.
* by default all network interfaces will be removed.
* some code cleanup and regexp fixes.
* added sleeps for some network operations.
* proper support for windows full filenames.
Change-Id: Ic56f8d114bdaf83dd12b76dd6cc46eaa8d74da52
Closes-Bug: #1524558
Closes-Bug: #1496042
VirtualBox scripts rely on various utilities to function. To validate
the environment, virtualbox/prepare-environment.sh checks if all these
utilities are available to the shell. However, some of the checks
(namely xxd and ssh) were missing. This change should fix this by
aborting the prepare step in case if these utilities are not found.
Change-Id: Ic49c11054345964c9785e9c4c791ea33dba4791c
Partial-Bug: 1525967
ROM firmware is optional now and should be used only by user choice.
It should be named as 'FirmwareName.isarom' placed under 'drivers/' directory.
In the same directory placed an example firmware and some information.
Change-Id: I5841deacacacf39c9c654828c44a869ef996044b
Depends-On: Id1f0d9e32487bcd902940311ed8d8bef4129fdaf
Doc-Impact: ops-guide
Closes-Bug: 1528186
Closes-Bug: 1527474
This is the new open source boot firmware for VirtualBox default
Ethernet controller (Intel Corporation 82540EM Gigabit Ethernet
Controller [8086:100e]) set by virtualbox scripts.
This is the leading open source network boot firmware, which
provides a full PXE implementation enhanced with additional features
such as boot from a web server via HTTP which now used by the
Fuel 8.0.
Change-Id: I0b9a3f6f80ba88eb5e7f7db75834f65916af6f66
Depends-On: I26b62414e1cc0193c75f954ed7ed76570a4bf2f6
Doc-Impact: ops-guide
Closes-Bug: 1527474
Master node needs an outbound internet connection to download repository
metadata during admin node bootstrap process. We need to wait until it
starts building docker containers, then enable the connection and wait
until the bootstrap process completes.
Partial-Bug: 1525967
Change-Id: I0ca296cb5f727d2b6a5708355956c30e4ccf283b
We have a "skipfuelmenu" variable in virtualbox scripts, which allows to
skip "fuelmenu" step during the installation procedure. This option is
enabled by default.
Currently, we have a hardcoded variable $boot_line, which contains scan
codes, passed by VirtualBox into isolinux on an emulated keyboard.
We should generate these scancodes from a user specified line instead of
hardcoding them.
Partial-Bug: 1525967
Change-Id: Ia2419b5e2eaa4b30cd2876112d7c080abbebcba5
Set VirtualBox directory to PATH in clean.sh.
Call interfaces deletion from clean.sh.
Closes-Bug: #1493275
Change-Id: I9d3a62997e22210129418cdab603f4f43ace510e
Use virtualbox built-in keyboardputscancode instead of using
ssh to master node and kill fuelmenu.
Change-Id: Ie3a12b7ca54e4c606f4c88145cc3cbad5822480a
Closes-bug: #1501796
VRDE option makes VMs accessible via RDP.
Fix vboxmanage to run via execute decorator.
Closes-Bug: #1498889
Change-Id: I93560126940457518fc4385c0518ab00d4b3d800
It is useful in case if there is 2 machines:
the main that has limited resources and used only for development and
the second, that has enough resources to use it for deployment.
enable feature VRDP for virtual machine
Change-Id: Ib34a188311cc04250d29e685bf5b9f12ac2aeb05
Closes-Bug: #1491925
The scripts work without any firewall tuning on the user's computers.
The Fuel master node is forwarding the public network through
the existing NAT interface.
Change-Id: I2962bccb39828da4ff011889f990a67d89322ca3
Closes-Bug: #1288135
Adds NAT features to the slaves in the VirtualBox scripts, now
for Linux and OS X (Yosemite) systems:
* It requires the sudo password (giving explantions on the reasons)
* For OS X, it backups the original pf.conf before setting the NAT
using pfctl, and does some cleanups
* For Linux, inserts the masquerade rule in the nat chain
Change-Id: Id37cb55241682f530a7e5378cadd556cccc1db90
Closes-Bug: #1442988
The "which" command is replaced with the "type" command. The free
memory check error on the host has been fixed.
Change-Id: I2cb8d143616372b649d51b9543160d40e5f2f510
Closes-Bug: #1415685
The delay allows to increase time for obtaining a boot image by
fuel-slave nodes and decreasing CPU load on fuel-master node.
Change-Id: I1da48a2374c4d4f0783b12bb9f736e54098fcb41
Closes-Bug: #1401851
Fixed relative paths when are invoked other vbox scripts.
If we have another config.sh which is located on a different path
in the variable PATH, we have an error.
Change-Id: I1dfadebac4f76d18f85ca396a202d3550948042d
Closes-Bug: #1393557
The regression has been introduced in 7c98912. procps is unavailable
on OS X and the script already reflects that by using sysctl directly.
On the vast majority of Linux distributions both tools are provided
either by procps or busybox.
Change-Id: I222beab7083399b7bf74c9560391da8aa65b7348
Closes-Bug: 1394141
Puppet apply for Fuel Master deployment runs with
--detailed-exitcodes in order to capture any failures
and fails if any resource fails to apply, including
docker containers.
Cleaned up some obsolete lines about hiera and astute.yaml.
Fixed automated environment deployment scripts to detect
failed deployments and fail as well.
Change-Id: I29238a27f1335d63a6c82274a6dab9b25e1ecf0a
Related-Bug: #1390129
Added check for procps in prepare-environment
Available memory check moved to separate action
Added requirements section in README
Fixed top and free check in Cygwin
Change-Id: I2e700602fe7bb81464975521023f4693462b4379
Closes-Bug: #1373655
For each slave node you can specify count of CPU,
but if you don't, then will be used default parameter
Change-Id: I8a580a1985e1bcb7b5e8f1806cd938afe4e0307e
1.split prepare-environment.sh into 3 actions. 2. add VBoxManage path to
PATH. 3. create_vm() function able to create VMs with different OS types
Implements blueprint virtualbox-scripts-enhancements
Change-Id: I4d34ba3f39af8becbbe8dc700d57dd5ea8cce0ee
Added check for /sbin/ifconfig existence under Linux/MacOS
Added check for ipconfig under Windows/Cygwin
Change-Id: I81ec63d5141ece93fd0119d63f1c2ee430a4b1c8
Closes-Bug: #1265902
Added support for Cygwin.
Increased default disk and memory sizes for compatibility with Heat.
Added checks for non-installed Cygwin components.
Default NIC type changed to faster AMD PCnet FAST III.
Added check on network settings application.
Added trick to increase network configuration stability under Windows.
Changed hard-coded interface addition part to automatic loop.
Removed extra whitespaces.
Changed Fuel Web to Mirantis OpenStack
Rebased to latest commit.
Closes-Bug: #1252314
Change-Id: I466ebec87506eade5164de7d27d73f10dbbea0d9