Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[healthchecks] the package_version check always checks for master/node packages regardless of host group #3594

Closed
codificat opened this issue Mar 8, 2017 · 0 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P3

Comments

@codificat
Copy link
Member

Description

When running playbooks/byo/openshift-preflight/check.yml, the package_version check reports failures on hosts that can't access the atomic-openshift-{master,node} packages even when this is expected, e.g. on etcd or lb hosts.

Version
openshift-ansible-3.5.3-1-521-g3125e72
Steps To Reproduce
  1. Have a cluster with [etcd], [lb] and/or additional "auxiliary" host groups
  2. Run the playbooks/byo/openshift-preflight/check.yml playbook
Expected Results

Hosts would not report a failure when they have access to the packages they need.

Observed Results

Hosts that don't have access to atomic-openshift-{master,node} packages in their configured repos are reported as failed, even when the hosts don't need these packages.
Describe what is actually happening.

$ ansible-playbook playbooks/byo/openshift-preflight/check.yml
[...]
Failure summary:

  1. Host:     etcd2.example.com
     Play:     run OpenShift health checks
     Task:     openshift_health_check
     Message:  One or more checks failed
     Details:  {'package_availability': {'_ansible_parsed': True,
                                         u'changed': False,
                                         u'invocation': {u'module_args': {u'packages': []}}},
                'package_update': {'_ansible_parsed': True,
                                   u'changed': False,
                                   u'invocation': {u'module_args': {u'packages': []}}},
                'package_version': {'_ansible_parsed': True,
                                    u'failed': True,
                                    u'invocation': {u'module_args': {u'prefix': u'atomic-openshift',
                                                                     u'version': u'v3.4'}},
                                    u'msg': u'Not all of the required packages are available at requested version 3.4:\n  atomic-openshift\n  atomic-openshift-master\n  atomic-openshift-node\nPlease check your subscriptions and enabled repositories.'}}
Additional Information

The inventory file used here has:

[OSEv3:children]
masters
nodes
etcd
lb
dns

# [...]

[etcd]
etcd2.example.com
# [...]

[lb]
lb.example.com

the hosts in etcd, lb and dns groups all fail the check.

@rhcarvalho rhcarvalho self-assigned this Mar 8, 2017
@rhcarvalho rhcarvalho added kind/bug Categorizes issue or PR as related to a bug. priority/P3 labels Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P3
Projects
None yet
Development

No branches or pull requests

2 participants