Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1632886

Summary: Should not run openshift-sdn exec commands when setup openshift_use_openshift_sdn: False
Product: OpenShift Container Platform Reporter: Weibin Liang <weliang>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED NOTABUG QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: aos-bugs, jialiu, jokerman, mmccomas, vrutkovs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-26 14:49:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Installation console logs none

Description Weibin Liang 2018-09-25 18:36:57 UTC
Created attachment 1486885 [details]
Installation console logs

Description of problem:
With openshift_use_openshift_sdn: False, openshift-ansible still try to run "oc -n openshift-sdn exec  -- rpm -q openvswitch" which cause installation failed.

Version-Release number of the following components:
[root@ip-172-18-9-9 ~]# rpm -q openshift-ansible
package openshift-ansible is not installed
[root@ip-172-18-9-9 ~]# rpm -q ansible
ansible-2.4.2.0-2.el7.noarch
[root@ip-172-18-9-9 ~]# ansible --version
ansible 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
[root@ip-172-18-9-9 ~]# 


How reproducible:
Always.

Steps to Reproduce:
1. Setup:
openshift_ansible_vars:
  openshift_use_openshift_sdn: False
  os_sdn_network_plugin_name: cni
  openshift_cluster_monitoring_operator_install: false
  openshift_enable_service_catalog: false
  openshift_web_console_install: false
  openshift_console_install: false

2. Run openshift-ansible installation

Actual results:
TASK [getting openvswitch version] *********************************************
Tuesday 25 September 2018  21:47:33 +0800 (0:00:01.893)       0:01:19.710 ***** 
fatal: [ec2-35-171-188-9.compute-1.amazonaws.com]: FAILED! => {"changed": true, "cmd": "oc -n openshift-sdn exec  -- rpm -q openvswitch", "delta": "0:00:00.248375", "end": "2018-09-25 09:47:36.653117", "msg": "non-zero return code", "rc": 1, "start": "2018-09-25 09:47:36.404742", "stderr": "error: expected 'exec POD_NAME COMMAND [ARG1] [ARG2] ... [ARGN]'.\nPOD_NAME and COMMAND are required arguments for the exec command\nSee 'oc exec -h' for help and examples.", "stderr_lines": ["error: expected 'exec POD_NAME COMMAND [ARG1] [ARG2] ... [ARGN]'.", "POD_NAME and COMMAND are required arguments for the exec command", "See 'oc exec -h' for help and examples."], "stdout": "", "stdout_lines": []}
	to retry, use: --limit @/home/slave5/workspace/Launch Environment Flexy/private-openshift-misc/v3-launch-templates/functionality-testing/aos-3_11/extra-ansible/post_actions.retry
Expected results:

Additional info:
Installation should skip check openvswitch version

Comment 1 Vadim Rutkovsky 2018-09-26 14:49:54 UTC
That happens when `extra-ansible/post_actions.yaml` is being run, its not an openshift-ansible playbook

Comment 2 Weibin Liang 2018-09-26 15:36:02 UTC
@vadim,

Could you let me how to disable running for `extra-ansible/post_actions.yaml` during installation? Thanks!

Comment 3 Vadim Rutkovsky 2018-09-26 15:45:38 UTC
Johhny, this seems to be some QA playbook failing here

Comment 4 Johnny Liu 2018-09-27 01:55:53 UTC
Yeah, it is a QE playbooks failure, this should be closed as NOTABUG.

@Weibin Liang, pls send me your jenkins job via email.