Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayobe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kayobe
Commits
316a42e6
Commit
316a42e6
authored
4 years ago
by
Zuul
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove nameservers with any IP in overcloud resolv.conf workaround"
parents
0d1de84c
dcd5159c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansible/group_vars/all/overcloud
+6
-7
6 additions, 7 deletions
ansible/group_vars/all/overcloud
ansible/overcloud-host-image-workaround-resolv.yml
+7
-8
7 additions, 8 deletions
ansible/overcloud-host-image-workaround-resolv.yml
etc/kayobe/overcloud.yml
+6
-7
6 additions, 7 deletions
etc/kayobe/overcloud.yml
with
19 additions
and
22 deletions
ansible/group_vars/all/overcloud
+
6
−
7
View file @
316a42e6
...
@@ -22,13 +22,12 @@ disable_cloud_init: False
...
@@ -22,13 +22,12 @@ disable_cloud_init: False
###############################################################################
###############################################################################
# Overcloud host image configuration.
# Overcloud host image configuration.
# The CentOS cloud images from 7.2 (1511) onwards have a bogus name server
# The CentOS cloud images have a bogus name server entry in /etc/resolv.conf,
# entry in /etc/resolv.conf, 10.0.2.3. Cloud-init only appends name server
# 192.168.122.1. Cloud-init only appends name server entries to this file, and
# entries to this file, and will not remove this bogus entry. Typically this
# will not remove this bogus entry. Typically this leads to a delay of around
# leads to a delay of around 30 seconds when connecting via SSH, due to a
# 30 seconds when connecting via SSH, due to a timeout in NSS. The workaround
# timeout in NSS. The workaround employed here is to remove this bogus entry
# employed here is to remove this bogus entry from the image using
# from the image using virt-customize, if it exists. See
# virt-customize, if it exists. See https://bugs.centos.org/view.php?id=14369.
# https://bugs.centos.org/view.php?id=14369.
overcloud_host_image_workaround_resolv_enabled: True
overcloud_host_image_workaround_resolv_enabled: True
# Workaround a CentOS 7.5 bug: cloud-init 0.7.9-24 does not correctly set
# Workaround a CentOS 7.5 bug: cloud-init 0.7.9-24 does not correctly set
...
...
This diff is collapsed.
Click to expand it.
ansible/overcloud-host-image-workaround-resolv.yml
+
7
−
8
View file @
316a42e6
---
---
# The CentOS cloud images from 7.2 (1511) onwards have a bogus name server
# The CentOS cloud images have a bogus name server entry in /etc/resolv.conf,
# entry in /etc/resolv.conf, 10.0.2.3. Cloud-init only appends name server
# 192.168.122.1. Cloud-init only appends name server entries to this file, and
# entries to this file, and will not remove this bogus entry. Typically this
# will not remove this bogus entry. Typically this leads to a delay of around
# leads to a delay of around 30 seconds when connecting via SSH, due to a
# 30 seconds when connecting via SSH, due to a timeout in NSS. The workaround
# timeout in NSS. The workaround employed here is to remove this bogus entry
# employed here is to remove this bogus entry from the image using
# from the image using virt-customize, if it exists. See
# virt-customize, if it exists. See https://bugs.centos.org/view.php?id=14369.
# https://bugs.centos.org/view.php?id=14369.
-
name
:
Ensure the overcloud host image has bogus name server entries removed
-
name
:
Ensure the overcloud host image has bogus name server entries removed
hosts
:
seed
hosts
:
seed
...
@@ -32,5 +31,5 @@
...
@@ -32,5 +31,5 @@
--connection local
--connection local
--become
--become
-m command
-m command
-a "virt-customize -a /httpboot/deployment_image.qcow2 --edit \"/etc/resolv.conf:s/^nameserver
10\.0\.2\.3
\$//\""'
-a "virt-customize -a /httpboot/deployment_image.qcow2 --edit \"/etc/resolv.conf:s/^nameserver
.*\..*\..*\..*
\$//\""'
when
:
overcloud_host_image_workaround_resolv_enabled | bool
when
:
overcloud_host_image_workaround_resolv_enabled | bool
This diff is collapsed.
Click to expand it.
etc/kayobe/overcloud.yml
+
6
−
7
View file @
316a42e6
...
@@ -19,13 +19,12 @@
...
@@ -19,13 +19,12 @@
###############################################################################
###############################################################################
# Overcloud host image configuration.
# Overcloud host image configuration.
# The CentOS cloud images from 7.2 (1511) onwards have a bogus name server
# The CentOS cloud images have a bogus name server entry in /etc/resolv.conf,
# entry in /etc/resolv.conf, 10.0.2.3. Cloud-init only appends name server
# 192.168.122.1. Cloud-init only appends name server entries to this file, and
# entries to this file, and will not remove this bogus entry. Typically this
# will not remove this bogus entry. Typically this leads to a delay of around
# leads to a delay of around 30 seconds when connecting via SSH, due to a
# 30 seconds when connecting via SSH, due to a timeout in NSS. The workaround
# timeout in NSS. The workaround employed here is to remove this bogus entry
# employed here is to remove this bogus entry from the image using
# from the image using virt-customize, if it exists. See
# virt-customize, if it exists. See https://bugs.centos.org/view.php?id=14369.
# https://bugs.centos.org/view.php?id=14369.
#overcloud_host_image_workaround_resolv_enabled:
#overcloud_host_image_workaround_resolv_enabled:
# Workaround a CentOS 7.5 bug: cloud-init 0.7.9-24 does not correctly set
# Workaround a CentOS 7.5 bug: cloud-init 0.7.9-24 does not correctly set
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment