Skip to content

AttributeError: 'NoneType' object has no attribute 'group' #115

@wukaiying

Description

@wukaiying

when i run this command sudo kubespray prepare --nodes node1[ansible_ssh_host=192.168.33.111] node2[ansible_ssh_host=192.168.33.112] node3[ansible_ssh_host=192.168.33.113] [--etcds N+] [--masters N+]

Traceback (most recent call last):
File "/bin/kubespray", line 422, in
args.func(config)
File "/bin/kubespray", line 42, in prepare
options['etcds_list']
File "/usr/lib/python2.7/site-packages/kubespray/inventory.py", line 221, in write_inventory
inventory = self.format_inventory(masters, nodes, etcds)
File "/usr/lib/python2.7/site-packages/kubespray/inventory.py", line 194, in format_inventory
inventory_hostname = r.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

my env:
python --version
Python 2.7.5

ansible --version
ansible 2.4.1.0
config file = None
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, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions