Commit Graph

151 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
OpenDev Sysadmins dc50f60354 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:43:08 +00:00
Flavio Percoco b3974ca561 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/02d5de94ed29984bae9779c107a4af4c

Change-Id: I95c91d6d8d2883c4b3e570f3d96a2089a8dd73b6
2016-11-26 12:15:52 +01:00
Maksim Malchuk 6485241a5c Disable audio totally
Since VirtualBox 5.1 released on 2016-07-12 the audio setting enabled
by default which can be an issue on some hardware because audio not
supported in the Fuel.

Change-Id: I19dfd0cb44d034e41e3b061f2107476907b78363
Closes-Bug: #1624303
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-09-21 14:45:34 +03:00
Maksim Malchuk 16c48fc045 Correctly support all NetworkManager versions
This change adds support of the all versions of the nmcli command.

Change-Id: Icc5f93d052c451116b23c2922fe18e23e3f72746
Closes-Bug: #1617453
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-09-01 00:22:11 +03:00
Maksim Malchuk 984547cc1f Don't use Sed's GNU extension to support MacOSX
This change removes using the Sed's GNU extensions to support BSD-Sed
in MacOSX, also moves one of them (lowercase) to the tr command.

Change-Id: I5afef3fc562443e7089b72e645b725b86781c54c
Closes-Bug: #1600793
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-07-12 11:50:10 +03:00
Maksim Malchuk 1f356e5b1b Add useful scripts and README.md files
Please read README.md files for more information.

Change-Id: I4f65d7ea6c9d9bf8f02d97e63ec09a2f1aae0006
Closes-Bug: #1592592
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-06-15 01:56:24 +03: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
Dmitry Guryanov 30af233b8a Add tool for sending Alt-SysRq to VMs
This tool is a helper for sending Alt+SysRq+<key> combination
to the guest OS in VirtualBox VM, which is used in Linux for
printing different sorts of debug messages to the kernel log,
like list of processes, stack traces of CPUs and so on, or for
performing actions: reboot, sync e.t.c. It's very useful when
all other ways to communicate to the VM become unavailable.

Closes-Bug: #1588383
Change-Id: I63864d8e575a73f5efec6e55cc02483a59935307
2016-06-02 17:18:33 +03:00
Serhiy Ovsianikov cc86e3997f Additional verification of network interface settings
In some cases, VBoxManage utility can't assign network interface parameters
on the first try. This commit adds additional checks of network interface
settings and re-assigns the network settings if the first attempt was
unsuccessful.

Change-Id: If8a24ec44257b47e221477c46e93e3f62e63a07d
Closes-Bug: #1535742
2016-05-26 17:59:39 +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 7dd1a24416 Ignore SSH errors
This commit adds the new parameter to the wait_for_exec_in_bootstrap
function for always return success when this parameter non-empty.
This functionality will be used in the last step of the installation
when we need to wait when Fuel master node installation ends.

Change-Id: I399000821a4a9aeed4d359da8d0e723ea1642c88
Closes-Bug: #1569537
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-04-13 19:03:55 +03:00
Maksim Malchuk c865e7b2e2 Disable user-defined ssh_config configurations
Using the user-defined ssh_config configurations bring more problems
instead of enchancements.

Change-Id: Icfd720e8d691b72a52e78e531eaf5aea9cdfb12a
Closes-Bug: #1569032
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-04-11 23:29:29 +03:00
Igor Kalnitsky 80e86854be Fix public network routing from slaves
Since we assign public gateway address on master node, all public
traffic goes through it. Unfortunately, it doesn't reach destination due
to rejecting rule in FORWARD chain:

    ACCEPT              all  --  10.20.0.0/24         anywhere
    ACCEPT              all  --  anywhere             anywhere
    REJECT              all  --  anywhere             anywhere
    ext-filter-forward  all  --  anywhere             anywhere

The commit fixes that problem by inserting (-I), not appending (-A)
ext-filter-forward entry. In that case that rule will have higher
priority and won't break routing.

    ACCEPT              all  --  10.20.0.0/24         anywhere
    ACCEPT              all  --  anywhere             anywhere
    ext-filter-forward  all  --  anywhere             anywhere
    REJECT              all  --  anywhere             anywhere

Change-Id: I7887f08a175fa0ce06654dc1fc18ab412cb296f5
Closes-Bug: #1566968
2016-04-07 10:05:53 +00:00
Dmitry Bilunov 3b40e0c284 Move iptables rules to user-defined chains
Firewall rules should be managed by Puppet, which will purge current
firewall ruleset and replace it by the one provided by a corresponding
manifest.

We need to move rules introduced by product.sh to separate user-defined
chains which are not purged by Puppet so they will be retained after the
manifest gets applied.

Change-Id: I57e9f58c6bad32b23b179499f0514edf5357bd31
Partial-Bug: #1524750
2016-03-31 12:13:47 +03:00
Maksim Malchuk 5ed0107ff3 Enable 'skipfuelmenu' because 'showmenu=yes' is used
Because 'showmenu' now enabled by default in ISO we should use
'skipfuelmenu=yes' during automated installation using the scripts.

Change-Id: Ic7528bb6a473bceaa8b99945f45f1e862c5e3f70
Partial-Bug: #1557245
2016-03-22 19:04:46 +03:00
Maksim Malchuk 6367ca4aa3 Update MAINTAINERS
Change-Id: I0466b97808ea096a204f790970ca62dd4ffbfea7
2016-03-14 14:56:14 +03:00
Maksim Malchuk bbad3cd2fb Don't use IPv6 DNS servers for the Fuel
Fuel don't support IPv6 yet, so we shouldn't use IPv6 DNS servers
from the local /etc/resolv.conf.

Change-Id: Ia6ec6bf0bf3c100c591f82cd9b8785a00e93f016
Closes-Bug: #1553568
2016-03-09 20:42:03 +00:00
Maksim Malchuk f1ce1d7be5 Added a requirement for Internet access
Added a requirement for the Internet access on the OS
in the README.md
Also added header describes the scripts.

Change-Id: Ib4b59ecca9b49163d64e8c6b1595ab44519be762
Partial-bug: #1551443
2016-03-02 16:39:47 +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 8e1be25492 SELinux support in 9.0 Fuel
This commit removes boot with disabled SELinux because since 9.0 Fuel
is perfect works in permissive mode. Also, it contains some cleanups
after separate project from the Fuel-main repo.

Change-Id: Ieb9cffa2ea2ba5507b86e298b471e43419ca0e4f
Closes-Bug: #1521154
2016-02-23 02:23:05 +03:00
Vladimir Kozhukalov dd8f8a7f95 Add maintenance files
This patch adds the following files
* .gitignore
* .gitreview
* MAINTAINERS

Change-Id: Iba6a1860c53d2b892ec64e80b2be0a7fd68bfe8e
2016-02-23 01:15:18 +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 42cc02bd68 Increase timeouts for the Cobbler container restart
This commit increase timeouts for 'expect' to wait for the
command prompt after the Cobbler container restart which
in some cases takes too long time.

Change-Id: Ic9861cc08f6411f8b126a02432422ad07f49d22a
Closes-Bug: #1542320
2016-02-10 21:04:53 +03:00
Maksim Malchuk b09d8c6081 Correct parsing of bootstrap_admin_node.log
This commit fixes parsing of $goodline and $badline strings
in the 'bootstrap_admin_node.log' which causes incorrect
behaviour of VirtualBox scripts under Windows 10.

Change-Id: Ib90582adf4d5b3aa03ade081d788e5177add4b93
Closes-Bug: #1538143
2016-01-26 17:23:15 +03:00
Jenkins 313f515875 Merge "Restore forgotten kernel name for VirtualBox" 2016-01-26 09:47:48 +00: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 ddeb2f866a Use BSD's 'sed' regexp on MacOSX
VirtualBox scripts tested well only with GNU version of the
'sed', but MacOSX systems without custom brew-installed
packages contain BSD's version of the sed. This commit
fixes regexp to use both versions.

Change-Id: I058cac4eb9c2beefffc20ad05a47bc1d8ed2169d
Closes-Bug: #1537822
2016-01-25 19:49:16 +03:00
Maksim Malchuk 291c8c4319 Disable VirtualBox Remote Desktop Extension (VRDE)
VRDE should disabled by default. It can be enabled by the
'headless' option in the config.sh

Change-Id: I2bc9f5a03e1d410fe9a092532fe75c41d80af84f
Closes-Bug: #1502114
2016-01-23 01:48:37 +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
Jenkins c72ba0c289 Merge "Update dependency checks" 2016-01-05 15:48:53 +00:00
Jenkins 6d66994733 Merge "Fix network connectivity issues" 2015-12-31 13:20:27 +00: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
Dmitry Bilunov d0a4d33caa 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.

This change depends on another patch, which makes 'dockerctl build all'
much more verbose (https://review.openstack.org/#/c/261062/36).

Change-Id: Ibcc50bb47bd95dc1675aaf1abddbac375a434e2a
Depends-On: I77a1d3a32633390c1fe37bbeb81da5d0996972df
Closes-Bug: 1525967
2015-12-29 12:08:13 +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
Dmitry Teselkin c5cbe939d6 FORWARD rules for public network
CentOS7 comes with pre-defined REJECT rule in FORWARD chain
that doesn't allow to access external networks from public
network.

When deploying ISO with virtualbox scripts slave nodes are trying
to connect to external networks via public net, with default
gateway on master node. However, they can't establish a connection
because there is no explicit rule in FORWARD chain to allow it,
so they are rejected.

This commit adds rules to allow connection to ext networks in
that usecase.

Compatible with CentOS6 & CentOS7 master node.

Blueprint: master-on-centos7

Change-Id: I5b61ae6e7562ea5b446809027c487acc11119889
2015-12-02 10:52:20 +00:00
Jenkins 9fa54b7e28 Merge "Fix mac generate for non-GNU awk." 2015-11-25 14:16:52 +00:00
Ivan Suzdal a96589911c Disable colorised grep output
In centos 7 grep aliased to

  grep --color=auto

which causes line matching error in product.sh

Blueprint: master-on-centos7

Breaks: nothing

Closes-Bug: #1517140

Change-Id: If7b351834535a5dbe900ec5387d48fcb81885458
2015-11-25 13:38:03 +00: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