Commit Graph

58 Commits

Author SHA1 Message Date
Andreas Jaeger 96a651dd10 Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I9227181bae1ac7c39f1dd714d31e9d23e8dbc969
2019-12-18 09:51:59 +01:00
Maksim Malchuk 72178d84c2 Add the serial COM1 port to the slave nodes.
Change-Id: I9a9604a884e339476ffcf810ca6525137d44a527
Closes-Bug: #1590378
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-06-08 13:49:30 +03:00
Jenkins 46f785a489 Merge "Add ssh public key to Fuel master node" 2016-05-12 10:38:21 +00:00
Vasiliy Pleshakov 904eec20f8 Add ssh public key to Fuel master node
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
2016-05-12 13:18:01 +03:00
Vasiliy Pleshakov c0d375802e Add name of ISO file to VM description
To differ envs one from another I need name of isofile in fuel-master
VM description.

Closes-Bug: #1579104
Change-Id: I93560126940457518fc4385c0518ab00d4b3dead
2016-05-07 02:04:40 +03:00
Maksim Malchuk 74374b316c Add checks for the file 'dumpkeys.cache'
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
2016-02-27 15:47:32 +03:00
Maksim Malchuk b48c7f5293 VirtualBox network fixes and the dockerless mode support
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
2016-02-15 00:13:47 +03:00
Maksim Malchuk 70502da8b7 Restore forgotten kernel name for VirtualBox
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
2016-01-25 23:53:51 +03:00
Maksim Malchuk 5cdbcc30d1 Fix PATH issue for VirtualBox on Windows
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
2016-01-22 08:22:10 +03:00
Maksim Malchuk 85e5cf4817 Proper Windows 7/8/10 support
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
2016-01-13 17:02:22 +03:00
Dmitry Bilunov 3d03ec3ee1 Update dependency checks
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
2015-12-30 13:33:50 +03:00
Maksim Malchuk a1bf0cf649 ROM firmware is optional now
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
2015-12-22 11:50:35 +03:00
Jenkins a08d3d640c Merge "Do not hardcode scancodes that change isolinux boot params" 2015-12-18 15:32:23 +00:00
Jenkins 5f0a04e7bb Merge "Fix network connectivity issues" 2015-12-18 15:09:36 +00:00
Maksim Malchuk 8436205d92 iPXE - open source boot firmware for VirtualBox
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
2015-12-18 09:36:52 +03:00
Dmitry Bilunov e61354ccd2 Fix network connectivity issues
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
2015-12-17 18:23:28 +03:00
Dmitry Bilunov 95a5cfb6f1 Do not hardcode scancodes that change isolinux boot params
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
2015-12-17 12:09:23 +03:00
Ivan Suzdal 7bbe98976d Fix mac generate for non-GNU awk.
Default awk in MacOSX has no gensub function.

Closes-Bug: #1517145

Change-Id: I7cda2e0ed6cdc29dc16ef74fd2cab7b8e3d735ea
2015-11-24 18:57:00 +00:00
Jenkins ff30d0b06a Merge "Add script to delete host-only network interfaces" 2015-11-12 16:01:27 +00:00
Kyrylo Romanenko 598cf17d8a Add script to delete host-only network interfaces
Set VirtualBox directory to PATH in clean.sh.
Call interfaces deletion from clean.sh.

Closes-Bug: #1493275
Change-Id: I9d3a62997e22210129418cdab603f4f43ace510e
2015-10-22 18:58:35 +03:00
Vasiliy Pleshakov 91d01e01ee Fix VBoxManage command call in slave-nodes-...sh
Fix VBoxManage comman call in slave-nodes-create-and-boot.sh
Related-Bug: 1498894
Change-Id: I91b0b93bf49e6025301624ed4ce7bbc64b2d2955
2015-10-19 23:55:42 +03:00
Stanislav Makar ebabd4604b Use right way to skip fuelmenu
Use virtualbox built-in keyboardputscancode instead of using
ssh to master node and kill fuelmenu.

Change-Id: Ie3a12b7ca54e4c606f4c88145cc3cbad5822480a
Closes-bug: #1501796
2015-10-05 10:18:25 +00:00
Vasiliy Pleshakov 7dc713ff28 Enable VRDE option for VMs in vbox scripts
VRDE option makes VMs accessible via RDP.
Fix vboxmanage to run via execute decorator.

Closes-Bug: #1498889
Change-Id: I93560126940457518fc4385c0518ab00d4b3d800
2015-09-24 15:03:52 +03:00
Vasiliy Pleshakov 5578b06089 Describe VM with MAC address [vbox-scripts]
Get NIC1 MAC address and write it into description field of virtualbox VM.

Closes-Bug: #1498894
Change-Id: If2fdc04c88fce222d4d3aa24a12094a4146df525
2015-09-24 11:27:47 +03:00
bgaifullin ca5a2adfcf Added support to deploy product on remote machine via ssh
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
2015-09-23 12:54:42 +03:00
Serhiy Ovsianikov 7dc55cc8f1 Fix for VBox "No Internet connection on compute nodes"
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
2015-05-14 20:20:57 +03:00
Sean M. Collins 7c062f1cba Only pass -e to pfctl if pf is disabled
Change-Id: Ie82130fc7b83fcead9ce708a62b9fe793d8c20ba
Closes-Bug: #1454691
2015-05-13 09:23:04 -04:00
Serhiy Ovsianikov 15fd4fd115 Enable Internet for slave nodes
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
2015-05-06 16:25:08 +00:00
Serhiy Ovsianikov 9737a945a6 Delete only the demo hostonly networks
Change-Id: I81b1c73d782e75e89ce76c51e0b6e9246409d80e
Closes-Bug: #1384976
2015-04-07 15:27:55 +03:00
Jenkins 89f22db486 Merge "Call which from virtualbox scripts" 2015-02-17 22:51:52 +00:00
Serhiy Ovsianikov 7ddf69872f Call which from virtualbox scripts
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
2015-02-12 11:31:32 +02:00
Jenkins 1d112c9ab3 Merge "Show the admin username and password after completion" 2015-01-31 19:29:34 +00:00
Sean M. Collins fa43e1beb6 Show the admin username and password after completion
Change-Id: Idbb72b904f03d02df311066541035a802337748b
2015-01-22 13:37:39 -05:00
Sean M. Collins 4977edf69d Document where to download required items
Change-Id: I79f99cecc0305a9a58bbb97e9fbac6683e2fc9a9
2015-01-21 17:01:03 -05:00
Matthew Mosesohn 1679c27f65 Default showmenu=yes, add workaround for VirtualBox
Change-Id: I763a76cf44a8ba69be4621375c782431eccaaf55
Closes-Bug: #1402519
2014-12-17 18:48:32 +03:00
Serhiy Ovsianikov 14301a16bb The delay required for downloading tftp boot image
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
2014-12-16 18:11:46 +02:00
Serhiy Ovsianikov fef969d7a8 Fixed search Fuel ISO in vbox scripts
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
2014-12-09 12:41:53 +02:00
Bartłomiej Piotrowski 7bc336a326 Check free and top availability only on Windows
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
2014-11-25 11:50:49 +01:00
Matthew Mosesohn 6e02b0ded7 Fail Fuel Master deployment if puppet or check fails
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
2014-11-10 19:09:52 +04:00
Dmitry Tyzhnenko 6cc70091ed Changes to improve work under windows
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
2014-10-09 17:08:51 +03:00
Denis Egorenko a08aa69359 Add ability to specify count of CPU for each slave node
For each slave node you can specify count of CPU,
but if you don't, then will be used default parameter

Change-Id: I8a580a1985e1bcb7b5e8f1806cd938afe4e0307e
2014-05-12 18:38:39 +00:00
Dmitry Pyzhov 679c3f4e88 Fix VirtualBox nodes removal
Change-Id: Ic764333339e0dc1018c539a675db6f65f7e1d04f
2014-04-22 00:39:57 +04:00
Jenkins 1827847704 Merge "Virtualbox Scripts minor enhancements" 2014-04-10 15:25:29 +00:00
Vasiliy Pleshakov 51b193ef73 Virtualbox Scripts minor enhancements
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
2014-04-07 19:00:08 +04:00
Igor Marnat b5ea60a68b Show MOS ISO file used for installation
Change-Id: I013544d19130a768e8ae96ce68a7821408537327
2014-04-01 17:54:36 +04:00
Miroslav Anashkin 95688d4f90 Virtualbox scripts require ifconfig
Added check for /sbin/ifconfig existence under Linux/MacOS
Added check for ipconfig under Windows/Cygwin

Change-Id: I81ec63d5141ece93fd0119d63f1c2ee430a4b1c8
Closes-Bug: #1265902
2014-02-17 20:28:10 +04:00
Miroslav Anashkin ced7cd5dd5 Support for Windows in Virtualbox scripts
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
2013-12-24 00:25:46 +04:00
Nikolay Korshenin 6fc2b33ffa Replace Fuel Web with Mirantis OpenStack in scripts and README
Change-Id: I159ad96be9e55858e7a7e33a0b677153414edb6b
Closes-Bug: #1258659
2013-12-17 19:02:26 +04:00
Mike Scherbakov 43e3bd3be4 [vbox-scripts] Old MacOS has no 'seq' utility
Thanks to Denis Oliveira for reporting and providing the fix.

Change-Id: I09dc13a327f8fc970c740fcd419e0936c81940d6
2013-11-22 00:44:48 +04:00
Roman Alekseenkov 056c8a2c13 license headers for virtualbox scripts 2013-07-27 23:09:47 -07:00