Bug 1466669 - no attribute oo_first_master when run byo/openshift-master/restart.yml
no attribute oo_first_master when run byo/openshift-master/restart.yml
Status: NEW
Product: OpenShift Container Platform
Classification: Red Hat
Component: Upgrade (Show other bugs)
3.6.0
Unspecified Unspecified
unspecified Severity low
: ---
: 3.6.1
Assigned To: Scott Dodson
Anping Li
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-30 04:17 EDT by Anping Li
Modified: 2017-06-30 09:42 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Anping Li 2017-06-30 04:17:52 EDT
Description of problem:
The playbook byo/openshift-master/restart.yml  faild for "dict object' has no attribute 'oo_first_master'"



Version-Release number of selected component (if applicable):
openshift-ansible-3.6.126-4
openshift-ansible-3.6.128

How reproducible:
always

Steps to Reproduce:
1.  Rolling restart masters
nsible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-master/restart.yml -vv

Actual results:
[root@ip-172-18-14-155 ~]# ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-master/restart.yml -vv
Using /etc/ansible/ansible.cfg as config file
 [WARNING]: provided hosts list is empty, only localhost is available
<---snip--->
<---snip--->

PLAY [Populate config host groups] *********************************************

TASK [Evaluate groups - g_etcd_hosts required] *********************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:8
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate groups - g_master_hosts or g_new_master_hosts required] *********
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:13
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate groups - g_node_hosts or g_new_node_hosts required] *************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:18
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate groups - g_lb_hosts required] ***********************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:23
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate groups - g_nfs_hosts required] **********************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:28
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate groups - g_nfs_hosts is single host] ****************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:33
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate groups - g_glusterfs_hosts required] ****************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:38
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate oo_all_hosts] ***************************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:43

TASK [Evaluate oo_masters] *****************************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:52

TASK [Evaluate oo_first_master] ************************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:61
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate oo_masters_to_config] *******************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:70

TASK [Evaluate oo_etcd_to_config] **********************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:79

TASK [Evaluate oo_first_etcd] **************************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:88
skipping: [localhost] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [Evaluate oo_etcd_hosts_to_upgrade] ***************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:100

TASK [Evaluate oo_etcd_hosts_to_backup] ****************************************
task path: /usr/share/ansible/openshift-ansible/playbooks/common/openshift-cluster/evaluate_groups.yml:107
fatal: [localhost]: FAILED! => {
    "failed": true
}

MSG:

'dict object' has no attribute 'oo_first_master'


NO MORE HOSTS LEFT *************************************************************
    to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-master/restart.retry

PLAY RECAP *********************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1   



Expected results:


Additional info:
Comment 1 Scott Dodson 2017-06-30 09:42:07 EDT
This is probably a regression but not a critical playbook so setting target release 3.6.1.

Note You need to log in before you can comment on or make changes to this bug.