bootstrap_admin_node.sh script breaks dns settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Vladimir Kozhukalov | ||
Mitaka |
Fix Released
|
High
|
Vladimir Kozhukalov |
Bug Description
Detailed bug description:
bootstrap_
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install ami-creator' returned 1: Error downloading packages:
pykickstart-
dosfstools-
system-
system-
squashfs-
ami-creator-
1:python-
Error: /Stage[
pykickstart-
dosfstools-
system-
system-
squashfs-
ami-creator-
1:python-
Debug: Class[Main]: The container Stage[main] will propagate my refresh event
Debug: Exec[initialize atop_current]
Debug: Executing '/etc/cron.
Notice: /Stage[
Debug: /Stage[
Debug: Class[Osnailyfa
Debug: Finishing transaction 23018440
Debug: Storing state
Debug: Stored state in 0.04 seconds
Notice: Finished catalog run in 73.16 seconds
Debug: Using settings: adding file resource 'rrddir': 'File[/
Debug: /File[/
Debug: /File[/
Debug: /File[/
Debug: /File[/
Debug: Finishing transaction 45576300
Debug: Received report to process from nailgun.
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Processing report from nailgun.
The were failures while running task: host with exit code: 6
ERROR: Fuel node deployment FAILED! Check /var/log/
Steps to reproduce:
1) Deploy master node using Centos node, fuel-release - http://
2) provide additional mos repo
[root@nailgun ~]# cat /etc/yum.
[mos]
name=mos
baseurl=http://
enabled=1
gpgcheck=0
priority=10
skip_
3) provide additional deb repo using
[root@nailgun ~]# cat /root/default_
---
- name: "mos"
uri: http://
suite: mos-master
section: "main restricted"
type: "deb"
priority: 1000
4) yum install -y fuel-release-
5) yum install -y fuel-setup
6) run bootstrap_
Expected results:
Fuel services installed successfully
Actual result:
The were failures while running task: host with exit code: 6
ERROR: Fuel node deployment FAILED! Check /var/log/
Reproducibility:
every time
Workaround:
change DNS nameserver in /etc/resolv.conf 10.109.21.2 to 8.8.8.8
Impact:
Fuel-qa must be able to run BVT, Swarm not using ISO
Description of the environment:
1)(venv-
fuel-devops==3.0.0
2)[root@nailgun ~]# shotgun2 short-report
cat /etc/fuel_release:
10.0
cat /etc/fuel_
newton-10.0
rpm -qa | egrep 'fuel|astute|
fuel-misc-
fuel-10.
fuel-bootstrap
fuel-setup-
fuel-notify-
fuel-library10
network-
shotgun-
fuel-agent-
fuel-openstack
fuel-ui-
fuel-migrate-
fuel-release-
python-
fuelmenu-
fuel-utils-
3) Repo-id : 10.0_auxiliary
Repo-name : 10.0_auxiliary
Repo-revision: 1469266217
Repo-updated : Sat Jul 23 09:30:17 2016
Repo-pkgs : 0
Repo-size : 0
Repo-baseurl : file://
Repo-expire : 21,600 second(s) (last: Sat Jul 23 09:30:18 2016)
Repo-filename: /etc/yum.
Repo-id : base/7/x86_64
Repo-name : CentOS-7 - Base
Repo-revision: 1449700451
Repo-updated : Wed Dec 9 22:35:45 2015
Repo-pkgs : 8,887
Repo-size : 6.4 G
Repo-mirrors : http://
Repo-baseurl : http://
Repo-expire : 21,600 second(s) (last: Sat Jul 23 09:24:49 2016)
Repo-excluded: 120
Repo-filename: /etc/yum.
Repo-id : extras/7/x86_64
Repo-name : CentOS-7 - Extras
Repo-revision: 1467739008
Repo-updated : Tue Jul 5 17:17:21 2016
Repo-pkgs : 318
Repo-size : 936 M
Repo-mirrors : http://
Repo-baseurl : http://
Repo-expire : 21,600 second(s) (last: Sat Jul 23 09:24:49 2016)
Repo-excluded: 38
Repo-filename: /etc/yum.
Repo-id : mos
Repo-name : mos
Repo-revision: 1469104950
Repo-updated : Thu Jul 21 12:42:49 2016
Repo-pkgs : 1,243
Repo-size : 1.6 G
Repo-baseurl : http://
Repo-expire : 21,600 second(s) (last: Sat Jul 23 09:24:50 2016)
Repo-filename: /etc/yum.
Repo-id : mos10.0-base/7
Repo-name : mos10.0-base
Repo-revision: 1459339594
Repo-updated : Wed Mar 30 12:06:34 2016
Repo-pkgs : 0
Repo-size : 0
Repo-mirrors : http://
Repo-baseurl : http://
Repo-expire : 21,600 second(s) (last: Sat Jul 23 09:24:50 2016)
Repo-filename: /etc/yum.
Repo-id : mos10.0-security/7
Repo-name : mos10.0-security
Repo-revision: 1459339601
Repo-updated : Wed Mar 30 12:06:41 2016
Repo-pkgs : 0
Repo-size : 0
Repo-mirrors : http://
Repo-baseurl : http://
Repo-expire : 21,600 second(s) (last: Sat Jul 23 09:24:51 2016)
Repo-filename: /etc/yum.
Repo-id : mos10.0-updates/7
Repo-name : mos10.0-updates
Repo-revision: 1459339599
Repo-updated : Wed Mar 30 12:06:39 2016
Repo-pkgs : 0
Repo-size : 0
Repo-mirrors : http://
Repo-baseurl : http://
Repo-expire : 21,600 second(s) (last: Sat Jul 23 09:24:51 2016)
Repo-filename: /etc/yum.
Repo-id : updates/7/x86_64
Repo-name : CentOS-7 - Updates
Repo-revision: 1469029255
Repo-updated : Wed Jul 20 15:45:56 2016
Repo-pkgs : 1,994
Repo-size : 5.5 G
Repo-mirrors : http://
Repo-baseurl : http://
Repo-expire : 21,600 second(s) (last: Sat Jul 23 09:24:51 2016)
Repo-excluded: 32
Repo-filename: /etc/yum.
description: | updated |
Changed in fuel: | |
assignee: | nobody → Artem Grechanichenko (agrechanichenko) |
Changed in fuel: | |
status: | New → Confirmed |
Changed in fuel: | |
assignee: | MOS Puppet Team (mos-puppet) → nobody |
tags: |
added: area-build removed: area-puppet |
Changed in fuel: | |
assignee: | nobody → Artem Grechanichenko (agrechanichenko) |
tags: | added: 9.1-proposed |
tags: | added: on-verification |
Update
looks like problem in dns
[root@nailgun ~]# yum clean all mirror. centos. org/centos/ 7.2.1511/ /centosplus/ x86_64/ repodata/ repomd. xml: [Errno 14] curl#6 - "Could not resolve host: mirror.centos.org; Unknown error" mirror. centos. org/centos/ 7.2.1511/ /cr/x86_ 64/repodata/ repomd. xml: [Errno 14] curl#6 - "Could not resolve host: mirror.centos.org; Unknown error" mirrorlist. centos. org/?release= 7&arch= x86_64& repo=os& infra=genclo error was centos. org; Unknown error"
Loaded plugins: fastestmirror, priorities
Bad id for repo: CentOS-7 - Extras, byte = 8
Cleaning repos: 10.0_auxiliary CentOS-Plus CentOS-contrib base extras mos mos10.0-base mos10.0-security mos10.0-updates updates
Cleaning up everything
Cleaning up list of fastest mirrors
[root@nailgun ~]# yum install -y ami-creator
Loaded plugins: fastestmirror, priorities
Bad id for repo: CentOS-7 - Extras, byte = 8
10.0_auxiliary | 2.9 kB 00:00:00
http://
Trying other mirror.
http://
Trying other mirror.
Could not retrieve mirrorlist http://
14: curl#6 - "Could not resolve host: mirrorlist.
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
distribution release than is supported by the repository (and the
upstream. This is most often useful if you are using a newer
packages for the previous distribution release still work).
3. Disable the repository, so yum won't use it by default. Yum will then
--enablerepo for temporary usage:
just ignore the repository until you permanently enable it again or use
4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
Cannot find a valid baseurl for repo: base/7/x86_64
[root@nailgun ~]# ping ya.ru
ping: unknown host ya.ru
[root@nailgun ~]# cat /etc/resolv.conf
search test.domain.local
domain test.domain.local
nameserver 10.109.21.2
Before starting bootstrap_ admin_node. sh dns nameserver for searching was 8.8.8.8
[root@nailgun ~]# cat /etc/hiera/ astute. yaml |grep DNS
"DNS_DOMAIN": "test.domain.local"
"DNS_SEARCH": "test.domain.local"
"DNS_UPSTREAM": "10.109.21.1"
after changing 10.109.21.2 to 8.8.8.8 in /etc/resolv.conf all works fine