Skip to content

Commit ad5df45

Browse files
authored
Merge pull request #4720 from adellape/enterprise-3.5
BZ#1458660: NO_PROXY etcd IP workaround
2 parents 4ef4d25 + 2a2a674 commit ad5df45

13 files changed

+284
-42
lines changed

install_config/install/advanced_install.adoc

Lines changed: 60 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,10 +1362,59 @@ specifications, and save it as *_/etc/ansible/hosts_*.
13621362
[[running-the-advanced-installation]]
13631363
== Running the Advanced Installation
13641364

1365-
After you have xref:configuring-ansible[configured Ansible] by defining an
1366-
inventory file in *_/etc/ansible/hosts_*, you can run the advanced installation
1367-
using the following playbook:
1368-
1365+
After you have finished xref:configuring-ansible[configuring Ansible] by
1366+
defining your own inventory file in *_/etc/ansible/hosts_* or modifying one of
1367+
the xref:adv-install-example-inventory-files[example inventories], follow these
1368+
steps to run the advanced installation:
1369+
1370+
// tag::BZ1466783-workaround-install[]
1371+
. If you are using a proxy, you must add the IP address of the etcd endpoints to
1372+
the `openshift_no_proxy` cluster variable in your inventory file.
1373+
+
1374+
[NOTE]
1375+
====
1376+
If you are not using a proxy, you can skip this step.
1377+
====
1378+
+
1379+
In {product-title}
1380+
ifdef::openshift-enterprise[]
1381+
3.4,
1382+
endif::[]
1383+
ifdef::openshift-origin[]
1384+
1.4,
1385+
endif::[]
1386+
the master connected to the etcd cluster using the host name of the etcd
1387+
endpoints. In {product-title}
1388+
ifdef::openshift-enterprise[]
1389+
3.5,
1390+
endif::[]
1391+
ifdef::openshift-origin[]
1392+
1.5,
1393+
endif::[]
1394+
the master now connects to etcd via IP address.
1395+
+
1396+
When configuring a cluster to use proxy settings (see
1397+
xref:advanced-install-configuring-global-proxy[Configuring Global Proxy Options]), this change causes the master-to-etcd connection to be proxied as
1398+
well, rather than being excluded by host name in each host's `NO_PROXY` setting
1399+
(see
1400+
xref:../../install_config/http_proxies.adoc#install-config-http-proxies[Working with HTTP Proxies] for more about `NO_PROXY`).
1401+
+
1402+
To workaround this issue, set the following:
1403+
+
1404+
----
1405+
openshift_no_proxy=https://<ip_address>:<port>
1406+
----
1407+
+
1408+
Use the IP that the master will use to contact the etcd cluster as the
1409+
`<ip_address>`. The `<port>` should be `2379` if you are using standalone etcd
1410+
(clustered) or `4001` for embedded etcd (single master, non-clustered etcd). The
1411+
installer will be updated in a future release to handle this scenario
1412+
automatically during installation and upgrades
1413+
(link:https://bugzilla.redhat.com/show_bug.cgi?id=1466783[*BZ#1466783*]).
1414+
// end::BZ1466783-workaround-install[]
1415+
1416+
. Run the advanced installation using the following playbook:
1417+
+
13691418
----
13701419
ifdef::openshift-enterprise[]
13711420
# ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
@@ -1374,17 +1423,20 @@ ifdef::openshift-origin[]
13741423
# ansible-playbook ~/openshift-ansible/playbooks/byo/config.yml
13751424
endif::[]
13761425
----
1377-
1426+
+
13781427
If for any reason the installation fails, before re-running the installer, see
1379-
xref:installer-known-issues[Known Issues] to check for any specific
1380-
instructions or workarounds.
1428+
xref:installer-known-issues[Known Issues] to check for any specific instructions
1429+
or workarounds.
1430+
1431+
. After the installation succeeds, continue to
1432+
xref:advanced-verifying-the-installation[Verifying the Installation].
13811433

13821434
[[advanced-verifying-the-installation]]
13831435
== Verifying the Installation
13841436

1385-
// tag::verifying-the-installation[]
13861437
After the installation completes:
13871438

1439+
// tag::verifying-the-installation[]
13881440
. Verify that the master is started and nodes
13891441
are registered and reporting in *Ready* status. _On the master host_, run the
13901442
following as root:

install_config/install/disconnected_install.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
= Disconnected Installation
33
{product-author}
44
{product-version}
5-
:latest-tag: v3.5.5.15
5+
:latest-tag: v3.5.5.26
66
:latest-int-tag: 3.5.0
77
:latest-registry-console-tag: 3.5
88
:data-uri:

install_config/install/quick_install.adoc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,67 @@ xref:quick-verifying-the-installation[verify the installation].
280280
[[quick-verifying-the-installation]]
281281
== Verifying the Installation
282282

283+
After the installation completes:
284+
285+
. If you are using a proxy, you must add the IP address of the etcd endpoints to
286+
the `openshift_no_proxy` cluster variable in your inventory file.
287+
+
288+
[NOTE]
289+
====
290+
If you are not using a proxy, you can skip this step.
291+
====
292+
+
293+
In {product-title}
294+
ifdef::openshift-enterprise[]
295+
3.4,
296+
endif::[]
297+
ifdef::openshift-origin[]
298+
1.4,
299+
endif::[]
300+
the master connected to the etcd cluster using the host name of the etcd
301+
endpoints. In {product-title}
302+
ifdef::openshift-enterprise[]
303+
3.5,
304+
endif::[]
305+
ifdef::openshift-origin[]
306+
1.5,
307+
endif::[]
308+
the master now connects to etcd via IP address.
309+
+
310+
When configuring a cluster to use proxy settings (see
311+
xref:../../install_config/install/advanced_install.adoc#advanced-install-configuring-global-proxy[Configuring Global Proxy Options]), this change causes the master-to-etcd connection to be
312+
proxied as well, rather than being excluded by host name in each host's
313+
`NO_PROXY` setting (see
314+
xref:../../install_config/http_proxies.adoc#install-config-http-proxies[Working with HTTP Proxies] for more about `NO_PROXY`).
315+
316+
.. To workaround this issue, add the IP address of the etcd endpoints to the
317+
`NO_PROXY` environment variable on each master host's
318+
*_/etc/sysconfig/atomic-openshift-master-controllers_* file. For example:
319+
+
320+
----
321+
NO_PROXY=https://<ip_address>:<port>
322+
----
323+
+
324+
Use the IP that the master will use to contact the etcd cluster as the
325+
`<ip_address>`. The `<port>` should be `2379` if you are using standalone etcd
326+
(clustered) or `4001` for embedded etcd (single master, non-clustered etcd). The
327+
installer will be updated in a future release to handle this scenario
328+
automatically during installation and upgrades
329+
(link:https://bugzilla.redhat.com/show_bug.cgi?id=1466783[*BZ#1466783*]).
330+
331+
.. Restart the master service for the changes to take effect:
332+
+
333+
ifdef::openshift-origin[]
334+
----
335+
# systemctl restart origin-master
336+
----
337+
endif::[]
338+
ifdef::openshift-enterprise[]
339+
----
340+
# systemctl restart atomic-openshift-master
341+
----
342+
endif::[]
343+
283344
include::install_config/install/advanced_install.adoc[tag=verifying-the-installation]
284345

285346
. Then, see xref:quick-install-whats-next[What's Next] for the next steps on

install_config/revhistory_install_config.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@
88

99
// do-release: revhist-tables
1010

11+
== Fri Jul 07 2017
12+
13+
// tag::install_config_fri_jul_07_2017[]
14+
[cols="1,3",options="header"]
15+
|===
16+
17+
|Affected Topic |Description of Change
18+
//Fri Jul 07 2017
19+
20+
|xref:../install_config/install/advanced_install.adoc#install-config-install-advanced-install[Installing a Cluster -> Advanced Installation]
21+
.4+.^|Added workaround for `NO_PROXY` issue. (link:https://bugzilla.redhat.com/show_bug.cgi?id=1466783[*BZ#1466783*])
22+
|xref:../install_config/install/quick_install.adoc#install-config-install-quick-install[Installing a Cluster -> Quick Installation]
23+
|xref:../install_config/upgrading/manual_upgrades.adoc#install-config-upgrading-manual-upgrades[Upgrading a Cluster -> Manual In-place Upgrades]
24+
|xref:../install_config/upgrading/automated_upgrades.adoc#install-config-upgrading-automated-upgrades[Upgrading a Cluster -> Automated In-place Upgrades]
25+
26+
|===
27+
// end::install_config_fri_jul_07_2017[]
28+
1129
== Thu Jul 06 2017
1230

1331
// tag::install_config_thu_jul_06_2017[]
@@ -21,6 +39,8 @@
2139
|New topic on enabling controller-managed attachment and detachment.
2240

2341
|===
42+
// end::install_config_thu_jul_06_2017[]
43+
2444
== Tue Jun 27 2017
2545

2646
// tag::install_config_tue_jun_27_2017[]

install_config/upgrading/automated_upgrades.adoc

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
= Performing Automated In-place Cluster Upgrades
33
{product-author}
44
{product-version}
5-
:latest-tag: v3.5.5.15
5+
:latest-tag: v3.5.5.26
66
:latest-int-tag: v3.5
77
:data-uri:
88
:icons:
@@ -579,7 +579,68 @@ complete the metrics deployment upgrade.
579579

580580
To verify the upgrade:
581581

582-
. First check that all nodes are marked as *Ready*:
582+
// tag::BZ1466783-workaround-upgrade[]
583+
. If you are using a proxy, you must add the IP address of the etcd endpoints to
584+
the `openshift_no_proxy` cluster variable in your inventory file.
585+
+
586+
[NOTE]
587+
====
588+
If you are not using a proxy, you can skip this step.
589+
====
590+
+
591+
In {product-title}
592+
ifdef::openshift-enterprise[]
593+
3.4,
594+
endif::[]
595+
ifdef::openshift-origin[]
596+
1.4,
597+
endif::[]
598+
the master connected to the etcd cluster using the host name of the etcd
599+
endpoints. In {product-title}
600+
ifdef::openshift-enterprise[]
601+
3.5,
602+
endif::[]
603+
ifdef::openshift-origin[]
604+
1.5,
605+
endif::[]
606+
the master now connects to etcd via IP address.
607+
+
608+
When configuring a cluster to use proxy settings (see
609+
xref:../../install_config/install/advanced_install.adoc#advanced-install-configuring-global-proxy[Configuring Global Proxy Options]), this change causes the master-to-etcd connection to be
610+
proxied as well, rather than being excluded by host name in each host's
611+
`NO_PROXY` setting (see
612+
xref:../../install_config/http_proxies.adoc#install-config-http-proxies[Working with HTTP Proxies] for more about `NO_PROXY`).
613+
614+
.. To workaround this issue, add the IP address of the etcd endpoint to the
615+
`NO_PROXY` environment variable on each master host's
616+
*_/etc/sysconfig/atomic-openshift-master-controllers_* file. For example:
617+
+
618+
----
619+
NO_PROXY=https://<ip_address>:<port>
620+
----
621+
+
622+
Use the IP that the master will use to contact the etcd cluster as the
623+
`<ip_address>`. The `<port>` should be `2379` if you are using standalone etcd
624+
(clustered) or `4001` for embedded etcd (single master, non-clustered etcd). The
625+
installer will be updated in a future release to handle this scenario
626+
automatically during installation and upgrades
627+
(link:https://bugzilla.redhat.com/show_bug.cgi?id=1466783[*BZ#1466783*]).
628+
629+
.. Restart the master service for the changes to take effect:
630+
+
631+
ifdef::openshift-origin[]
632+
----
633+
# systemctl restart origin-master
634+
----
635+
endif::[]
636+
ifdef::openshift-enterprise[]
637+
----
638+
# systemctl restart atomic-openshift-master
639+
----
640+
endif::[]
641+
// end::BZ1466783-workaround-upgrade[]
642+
643+
. Check that all nodes are marked as *Ready*:
583644
+
584645
----
585646
# oc get nodes

install_config/upgrading/manual_upgrades.adoc

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
= Performing Manual In-place Cluster Upgrades
33
{product-author}
44
{product-version}
5-
:latest-tag: v3.5.5.15
5+
:latest-tag: v3.5.5.26
66
:latest-int-tag: v3.5
77
:data-uri:
88
:icons:
@@ -1381,11 +1381,18 @@ There are no additional manual steps for the upgrade to
13811381
xref:../../release_notes/ocp_3_5_release_notes.adoc#ocp-3-5-5-8[{product-title} 3.5.5.8] that are not already mentioned inline during the standard manual
13821382
upgrade process.
13831383

1384-
[[manual-step-ocp-3-5-5-15]]
1385-
=== {product-title} 3.5.5.15
1384+
[[manual-step-ocp-3-5-5-24]]
1385+
=== {product-title} 3.5.5.24
13861386

13871387
There are no additional manual steps for the upgrade to
1388-
xref:../../release_notes/ocp_3_5_release_notes.adoc#ocp-3-5-5-15[{product-title} 3.5.5.15] that are not already mentioned inline during the standard manual
1388+
xref:../../release_notes/ocp_3_5_release_notes.adoc#ocp-3-5-5-24[{product-title} 3.5.5.24] that are not already mentioned inline during the standard manual
1389+
upgrade process.
1390+
1391+
[[manual-step-ocp-3-5-5-26]]
1392+
=== {product-title} 3.5.5.26
1393+
1394+
There are no additional manual steps for the upgrade to
1395+
xref:../../release_notes/ocp_3_5_release_notes.adoc#ocp-3-5-5-24[{product-title} 3.5.5.26] that are not already mentioned inline during the standard manual
13891396
upgrade process.
13901397
endif::[]
13911398

@@ -1641,23 +1648,26 @@ endif::[]
16411648
[[manual-upgrades-verifying-the-upgrade]]
16421649
== Verifying the Upgrade
16431650

1644-
To verify the upgrade, first check that all nodes are marked as *Ready*:
1651+
To verify the upgrade:
1652+
1653+
include::install_config/upgrading/automated_upgrades.adoc[tag=BZ1466783-workaround-upgrade]
16451654

1655+
. Check that all nodes are marked as *Ready*:
1656+
+
16461657
----
16471658
# oc get nodes
16481659
NAME STATUS AGE
16491660
master.example.com Ready,SchedulingDisabled 165d
16501661
node1.example.com Ready 165d
16511662
node2.example.com Ready 165d
1652-
16531663
----
16541664

1655-
Then, verify that you are running the expected versions of the *docker-registry*
1665+
. Verify that you are running the expected versions of the *docker-registry*
16561666
and *router* images, if deployed.
16571667
ifdef::openshift-enterprise[]
16581668
Replace `<tag>` with `{latest-tag}` for the latest version.
16591669
endif::[]
1660-
1670+
+
16611671
----
16621672
ifdef::openshift-enterprise[]
16631673
# oc get -n default dc/docker-registry -o json | grep \"image\"
@@ -1673,17 +1683,15 @@ ifdef::openshift-origin[]
16731683
endif::[]
16741684
----
16751685

1676-
16771686
ifdef::openshift-origin[]
1678-
If you upgraded from Origin 1.0 to Origin 1.1, verify in your old
1687+
. If you upgraded from Origin 1.0 to Origin 1.1, verify in your old
16791688
*_/etc/sysconfig/openshift-master_* and *_/etc/sysconfig/openshift-node_* files
16801689
that any custom configuration is added to your new
16811690
*_/etc/sysconfig/origin-master_* and *_/etc/sysconfig/origin-node_* files.
16821691
endif::[]
16831692

1684-
You can use the diagnostics tool on the master to look for
1685-
common issues:
1686-
1693+
. Use the diagnostics tool on the master to look for common issues:
1694+
+
16871695
----
16881696
# oadm diagnostics
16891697
...
596 Bytes
Loading
731 Bytes
Loading
755 Bytes
Loading

0 commit comments

Comments
 (0)