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

Upgrade from 3.9 to 3.10 fails with "The error was: 'l_nodeconfig_name' is undefined" #10502

Closed
dharmit opened this Issue Oct 24, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@dharmit
Copy link

dharmit commented Oct 24, 2018

Description

I have a one master, ten node setup that's working just fine on 3.9. Upgrading to 3.10 fails with:

Failure summary:


  1. Hosts:    os-master-1.example.com, os-node-1.example.com, os-node-10.example.com, os-node-2.example.com, os-node-3.example.com, os-node-4.example.com, os-node-5.example.com, os-node-6.example.com, os-node-7.example.com, os-node-8.example.com, os-node-9.example.com
     Play:     Initialize cluster facts
     Task:     Fail when nodeName is wrong
     Message:  The task includes an option with an undefined variable. The error was: 'l_nodeconfig_name' is undefined

               The error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/init/cluster_facts.yml': line 82, column 7, but may
               be elsewhere in the file depending on the exact syntax problem.

               The offending line appears to be:

                   # set to that value.
                   - name: Fail when nodeName is wrong
                     ^ here
Version
  • Your ansible version per ansible --version
    ansible --version
    ansible 2.6.3
      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 = /usr/bin/ansible
      python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

If you're running from playbooks installed via RPM

  • The output of rpm -q openshift-ansible
    rpm -q openshift-ansible
    openshift-ansible-3.10.57-1.git.0.787bf7c.el7.noarch
Steps To Reproduce
  1. Run upgrade.yml after making changes like openshift_node_groups to hosts file.
Expected Results

Upgrade to work fine.

Observed Results

Failure with error message mentioned at the beginning.

Additional Information

Provide any additional information which may help us diagnose the
issue.

  • Your operating system and version, ie: RHEL 7.2, Fedora 23 ($ cat /etc/redhat-release)
    $ cat /etc/os-release    
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (Core)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"
    HOME_URL="https://www.centos.org/"
    BUG_REPORT_URL="https://bugs.centos.org/"
    
    CENTOS_MANTISBT_PROJECT="CentOS-7"
    CENTOS_MANTISBT_PROJECT_VERSION="7"
    REDHAT_SUPPORT_PRODUCT="centos"
    REDHAT_SUPPORT_PRODUCT_VERSION="7"
  • Your inventory file (especially any non-standard configuration parameters)
    Link to the inventory file
@nagonzalez

This comment has been minimized.

Copy link

nagonzalez commented Oct 31, 2018

looks like this was fixed 15 days ago:
3d09486

Pull the latest release-3.10 branch and retry.

@dharmit

This comment has been minimized.

Copy link

dharmit commented Dec 19, 2018

Pull the latest release-3.10 branch and retry.

We use rpm packages from CentOS PaaS SIG repos. So pulling a branch is not feasible.

Closing this as it doesn't affect us anymore.

@dharmit dharmit closed this Dec 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment