Add ability to bypass proxies for some domains
by adding them to NO_PROXY list.
Change-Id: I4b1e63918d467d6ee6bb90f69fc0cbf5b7be4961
Closes-Bug:#1534505
For logging the exception message: e.message has been
deprecated. The preferred way is to call str(e).
More details: https://www.python.org/dev/peps/pep-0352/
Change-Id: I78cd4f52eece8c5f469131e21a7f897d1fd24dd3
Use urlparse to fetch location part and match it
against a simple localhost regexp
Change-Id: I09ade41fc644545526dbd082ef3ca4967a7bf57c
Closes-bug: #1628880
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: I2b2c1e76c4dda9a106ff3783fe882fb8a0f78112
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
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
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
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>
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
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
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
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
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
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>
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
* 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
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
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>