Commit Graph

412 Commits

Author SHA1 Message Date
OpenDev Sysadmins 5a47b21c50 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:26:34 +00:00
Fedor Zhadaev 0f1ef857d9 Add ability to specify NO_PROXY variable
Add ability to bypass proxies for some domains
by adding them to NO_PROXY list.

Change-Id: I4b1e63918d467d6ee6bb90f69fc0cbf5b7be4961
Closes-Bug:#1534505
2017-03-16 11:05:23 +00:00
Michael Polenchuk 2cf99bf930 Use listservers for dhcpcheck
Conform search of external dhcp servers
to changed dhcpcheck commands.

Change-Id: I44dee0bae667cc8a04583e519e8b15b04f192a70
Depends-On: I07c3e7acb00e65554983f07e17acbf345c7508d7
Closes-Bug: #1653194
(cherry picked from commit 8af5a4df68)
2017-01-10 08:19:22 +00:00
Vladimir Kuklin fff30892ca Fix local repo matching for bootstrap image checker
Use urlparse to fetch location part and match it
against a simple localhost regexp

Change-Id: I09ade41fc644545526dbd082ef3ca4967a7bf57c
Closes-bug: #1628880
(cherry picked from commit 6e36349d84)
2016-12-21 20:11:45 +00:00
Davanum Srinivas 9aedc10ffe Update .gitreview for stable/newton
Change-Id: I37bf2806a9fafbadad871be4cce044fa86a6c333
2016-10-14 09:16:22 -04:00
Jenkins 1a94d657ec Merge "Files with no code must be left completely empty" 2016-10-04 14:22:36 +00:00
Jenkins c1519d8c68 Merge "Fix LOG.warn to LOG.warning" 2016-10-03 12:28:47 +00:00
Cao Xuan Hoang aae2bffef9 Files with no code must be left completely empty
As per OpenStack licensing guide lines [1]:
[H104] Files with no code shouldn't contain any license header nor
comments, and must be left completely empty.
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.

[1] http://docs.openstack.org/developer/hacking/#openstack-licensing

Change-Id: Iea4ef1c2eb66e9af4eee0e8a7b5088de115c8b1a
2016-09-30 17:00:16 +07:00
Jenkins 2d78ada592 Merge "Add error message, when run not on a tty" 2016-09-29 08:07:44 +00:00
Cao Xuan Hoang 47c2bc0ee3 Fix LOG.warn to LOG.warning
logging.warn is deprecated in Python 3.
https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I78774cd75ff78acd6a572e3e9f52ce52e2497594
2016-09-27 08:20:30 +07:00
Cao Xuan Hoang 22a7eaaf2d Clean imports in code
This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I62e9a6d895685c07ec87a5cc910c5036e05b4906
2016-09-06 14:10:44 +07:00
Dmitry Guryanov 03d32ae951 Add error message, when run not on a tty
The library, which displays user interface, urwid,
executes ioctl on stdin file descriptor, which
works only on ttys. Let's report error, when we run
not on a tty to make error investigation easier.

Change-Id: I15e80f14f65f6467eca153dc2cd73c64751c9154
Partial-Bug: #1607402
2016-09-05 19:15:50 +03:00
Maksim Malchuk 1da4d4f45c Add GrubPassword module to the fuelmenu
This change adds new GrubPassword module to the fuelmenu which can
configure password for the editing grub menu. The module creates the
default /boot/grub2/user.cfg file with hashed password only when it
entered interactively. For security reasons the plain password never
stored and the file always overwritten with new one provided.

DocImpact
Closes-Bug: #1552164
Change-Id: I3bc330133dd3d71ea62a7169a84d9ad802a4a3ef
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-08-22 15:01:59 +03:00
Jenkins a8c487954d Merge "Switch to Ubuntu Xenial" 2016-08-02 13:20:01 +00:00
Dmitry Teselkin 69479fe6ec Switch to Ubuntu Xenial
Also introduce 'codename' template arg.

blueprint: mos-xenial

Change-Id: Id48e5af4adf691293e4291d3e1e422977295fcff
2016-07-25 11:14:17 +00:00
Vyacheslav Struk e9a7bf3e0d Force fuelmenu to re-read resolv.conf on change
Fuelmenu updates resolv.conf but uses old nameservers till restart.
It makes NTP and repository accessibility checks to fail.

Change-Id: Ifc6f1d51f655b7329af6942bb060beebeeae5fef
Closes-Bug: 1603445
2016-07-18 18:34:30 +03:00
Dmitry Guryanov e7f0250488 fix logging in fuelmenu
If logging.basicConfig is called after logging.getLogger
then it will not work properly. So we have to call
basicConfig before imports.

Change-Id: I663aad3cc55925e09ebb3df916cd60cae196c350
Closes-Bug: #1596646
2016-06-28 11:24:46 +03:00
Mikhail 31a06d5493 cobblerconf module unit test coverage
Change-Id: I06b041d46760fa5a5c388485baf034e7b1320ebe
Partial-Bug: #1365391
2016-06-15 12:05:03 +03:00
Jenkins 668fb1dcbd Merge "Revert "Point DHCP gateway to default gateway"" 2016-06-14 08:01:14 +00:00
Maksim Malchuk d97a72840a Revert "Point DHCP gateway to default gateway"
This reverts commit af10eca2e7.

Because it breaks the default routing for routerless configurations
like VirtualBox for example. By default Fuel master-node always acts as
a router (https://github.com/openstack/fuel-library/blob/master/
deployment/puppet/fuel/examples/host.pp#L145-L146).

Change-Id: I2028f28a21d41cc34980a6a6d94331b1ffe5c8e0
Closes-Bug: #1591322
2016-06-13 21:28:33 +00:00
Fedor Zhadaev 3a8b5e8c3a Fix wrong method calls and try-except section in 'exit' method
Change-Id: I5704adb6c70c9f40c83eb2c0cb884cb6c4d93e6a
Closes-Bug: #1590071
2016-06-08 12:26:41 +03:00
Jenkins 8d3718f95d Merge "Refactor some code" 2016-06-06 10:50:59 +00:00
Roman Prykhodchenko c088e42a25 Refactor some code
This patch makes some code better in several
meanings of this word.

Closes-bug: #1586087
Change-Id: I6fd096ae66ab700b57a46ffd24436fc1abe6eb19
2016-06-06 10:31:13 +02:00
Jenkins c13fde0abd Merge "Added ability to update PXE DHCP parameters after deploy" 2016-06-03 07:06:20 +00:00
mzhnichkov 599d801eb0 Added ability to update PXE DHCP parameters after deploy
It's possible to change PXE settings on post deploy stage, but, in fact,
dnsmasq configuration will not be changed. This patch introduce puppet
call to get these changes applied.

Function puppetApply was refactored to return Bool value,
previously it has returned None or False.

Change-Id: I3fc7097035f492ad24483205cedc0d2c773af24b
Closes-Bug: #1500667
Depends-On: I9200c90747dba1e5c5b4e5457e423cb4c3ff3062
2016-06-01 15:49:56 +03:00
Jenkins 48fd2aa0a8 Merge "Add service_token_off to keystone hash" 2016-05-23 14:34:09 +00:00
Jenkins 8cd87313fe Merge "Use first NIC with IP address by default" 2016-05-23 12:32:16 +00:00
Matthew Mosesohn 4d88676620 Add service_token_off to keystone hash
Adding service_token_off to astute.yaml lets us reuse a
fuel-library single class to disable the keystone service
token.

Change-Id: Idb7694b19792a6c43c2752867da7c34b995513d0
Partial-Bug: #1582893
2016-05-23 15:05:47 +03:00
Jenkins 582fbcc301 Merge "Apply puppet on the master node for security module" 2016-05-23 04:47:11 +00:00
Maksim Malchuk ac806787cc Apply puppet on the master node for security module
There is need to run puppet apply host manifest when some changes
were made in the post_deployment phase in the security module.

Change-Id: I88d409f7d4819e2662d51a4cf42719ccbda2a3bd
Closes-Bug: #1583593
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-05-20 12:51:00 +03:00
Jenkins df2ea8c493 Merge "Revert "Add service_token_off to keystone hash"" 2016-05-20 08:46:56 +00:00
Fedor Zhadaev 359a20af3b Revert "Add service_token_off to keystone hash"
This reverts commit 48f880e957.

Change-Id: I2158d26573968cc54a219f8aa60d54457cccccf7
Closes-Bug: #1583734
2016-05-20 07:04:10 +00:00
Jenkins 1cb83a29fe Merge "Refactored 'save_only' mode" 2016-05-19 15:41:54 +00:00
Jenkins 5393ca89f6 Merge "Add service_token_off to keystone hash" 2016-05-19 15:36:41 +00:00
Matthew Mosesohn 48f880e957 Add service_token_off to keystone hash
Adding service_token_off to astute.yaml lets us reuse
a fuel-library single class to disable the keystone
service token.

Change-Id: Ia22163d572a581f2f159396346fbb83cbe7bee94
Partial-Bug: #1582893
2016-05-19 14:26:53 +03:00
Fedor Zhadaev 445ee81865 Refactored 'save_only' mode
* Use common logic for 'normal' and 'save_only' modes -
   call modules logic in both cases

Change-Id: I4ba533c1b7e9eb9e9e4538bec33b0565a8f8f2f0
Co-Authored-By: Fedor Zhadaev <fzhadaev@mirantis.com>
Baesed-On-Change-Id: Id54f1229915336b8aebdb36562e06e2596c003f1
Closes-Bug: #1502110
2016-05-18 19:49:15 +03:00
Artem Panchenko 7edf1ec946 Use first NIC with IP address by default
Previously fuelmenu took first network interface
(if it's not specified by user) as default option
for admin NIC whether it has IP address or not.
Now it tries to find a NIC with IP assigned, so
it works fine without additional options when
admin network is attached to not first interface.

Change-Id: Iabd0ebb81af40b4f97f67df92403fcff7c268edf
Related-bug: #1566557
2016-05-17 21:03:58 +03:00
Jenkins 53c5a00f86 Merge "Point DHCP gateway to default gateway" 2016-05-16 10:56:09 +00:00
Jenkins 8be3f1598a Merge "Apply feature_groups settings in Nailgun" 2016-05-12 11:52:52 +00:00
Maksim Malchuk 5b7a49575f Apply feature_groups settings in Nailgun
Apply feature_groups settings in Nailgun only during post-deployment
phase (when Fuel master is installed) and only if they were changed.

Change-Id: Ia849153e15f4bd9ab568221374a7f8ef2fb6c52d
Closes-Bug: #1578979
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-05-12 14:10:08 +03:00
Jenkins 15793b87e3 Merge "prevent running second copy of fuelmenu" 2016-05-12 05:57:50 +00:00
Jenkins 2697096241 Merge "Static modules loading" 2016-05-12 05:56:59 +00:00
Maksim Malchuk e4af61ac6d Add forgotten @ symbol to the special character list
Change-Id: I5e9f90fc965a4a421dd95295feac45bc9f430fd1
Closes-Bug: #1579754
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-05-09 17:19:25 +03:00
Mykola Yakovliev af10eca2e7 Point DHCP gateway to default gateway
Set up correct default DHCP gateway to exist router,
not to non-routable Fuel master node.

Change-Id: I3ac680d32be8b69f4554aae3c9b85e9f90825e35
Closes-Bug: #1516390
2016-05-05 15:51:31 +03:00
Nikita Zubkov 7a6185756a Static modules loading
Now all active modules should be imported explicitly.
Also rename all modules classes and remove priority.

Change-Id: I9114165f15bf1b4f82bc9a60ae2fd4719d80fa36
Closes-Bug: #1576544
2016-05-05 11:55:20 +03:00
Dmitry Guryanov 3f84153673 prevent running second copy of fuelmenu
Create a file and take a lock on it before running main
part of fuel-menu, so running two copies would be impossible.

This patch adds an option -l, --lock-file to have ability to
specify path to lock file.

Change-Id: I8ab41e6e068caa0881e0affcbfb5695a9025b762
Closes-Bug: #1566401
2016-04-22 12:45:50 +03:00
Julia Varlamova f4b30c916a Report INFO level log if cannot load astute.yaml
Fuelmenu doesn't need to report ERROR level log when reporting
"Unable to read YAML: /etc/fuel/astute.yaml" because we have no
default astute.yaml any more.

Change-Id: I6ae10f45f5fdc2d94d42fb018a3d7090a5c6b057
Closes-bug: #1567307
2016-04-20 12:31:47 +03:00
Matthew Mosesohn cc4628c865 Fix get_deployment_mode to rely on keys directory
Docker is no longer used, so this is a way to tell if
the system was deployed and block changing risky settings.

Change-Id: Ic78a973ca7e9f16b1f32c98f15f736993615e859
Closes-Bug: #1567300
2016-04-18 17:59:13 +03:00
Jenkins 625df4d5d5 Merge "Revert "Fix get_deployment_mode to rely on fuelclient config"" 2016-04-11 12:29:47 +00:00
Matthew Mosesohn 809c9b8783 Revert "Fix get_deployment_mode to rely on fuelclient config"
While it is unclear how fuel_client.yaml was installed
for root user before puppet run, it is prudent to revert
while investigating.

This reverts commit eabced5755
Closes-Bug: #1568789

Change-Id: Iac4dbce4d2c8b560dac5b2d8c0f6d443f223758e
2016-04-11 12:21:38 +00:00