openshift/openshift-ansible

bootstrap.ign endpoint for OCP 4.9 with RHEL 8.4 worker

AbhishekBandarupalle opened this issue · 4 comments

Description

Provide a brief description of your issue here.

Issues with pulling bootstrap.ign file while adding a RHEL 8.4 worker to OCP cluster 4.9.8 deployed using IPI installer using playbooks/scaleup.yml

Version

Please put the following version information in the code block
indicated below.

  • Your ansible version per ansible --version
[kni@kni6-worker-0 ~]$ ansible --version
ansible 2.9.15
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/kni/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.6.8 (default, Aug 12 2021, 07:06:15) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]
[kni@kni6-worker-0 ~]$ 

If you're operating from a git clone:

  • The output of git describe
[kni@kni6-worker-0 openshift-ansible]$ git describe 
openshift-ansible-4.6.0-202006231248.p0-42-gcc445ce3d

If you're running from playbooks installed via RPM

  • The output of rpm -q openshift-ansible
Expected Results

The bootstrap endpoint URL should be accessible and bootstrap.ign should be downloaded locally on the worker .

Observed Results

Describe what is actually happening.

Bootstrap endpoint is unreachable. Hence, the task _Fetch bootstrap ignition file locally_ failed.

    "msg": "Status code was -1 and not [200]: Request failed: <urlopen error [Errno -2] Name or service not known>",
    "path": "/tmp/ansible.9_cqab2d/bootstrap.ign",
    "redirected": false,
    "retries": 61,
    "status": -1,
    "url": "https://api-int.kni6.cloud.lab.eng.bos.redhat.com:22623/config/worker"

I replaced the api-int to api in the url and that helped with the bootstrap.ign download and the worker joined the cluster.

[kni@kni6-worker-0 openshift-ansible]$ git diff roles/openshift_node/defaults/main.yml
diff --git a/roles/openshift_node/defaults/main.yml b/roles/openshift_node/defaults/main.yml
index 406ef23bb..3c9a969b3 100644
--- a/roles/openshift_node/defaults/main.yml
+++ b/roles/openshift_node/defaults/main.yml
@@ -6,7 +6,7 @@ openshift_node_tls_verify: false
 openshift_node_kubeconfig_path: "{{ openshift_kubeconfig_path | default('~/.kube/config') | expanduser | realpath }}"
 openshift_node_kubeconfig: "{{ lookup('file', openshift_node_kubeconfig_path) | from_yaml }}"
 openshift_node_bootstrap_port: 22623
-openshift_node_bootstrap_server: "{{ openshift_node_kubeconfig.clusters.0.cluster.server.split(':')[0:-1] | join(':') | regex_replace('://api', '://api-int') }}:{{ openshift_node_bootstrap_port }}"
+openshift_node_bootstrap_server: "{{ openshift_node_kubeconfig.clusters.0.cluster.server.split(':')[0:-1] | join(':') | regex_replace('://api', '://api') }}:{{ openshift_node_bootstrap_port }}"
 openshift_node_bootstrap_endpoint: "{{ openshift_node_bootstrap_server }}/config/{{ openshift_node_machineconfigpool }}"
 
 openshift_packages: "{{ (openshift_node_packages + openshift_node_support_packages) | join(',') }}"

#####Additional Information

Node used to run the playbook has OS version:

kni@kni6-worker-0 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.4 (Ootpa)

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.