Skip to content

Receiving error "'dict object' has no attribute 'instances'" on Ansible task was-hypervisor: create groups #10

Description

@tstphnsn

Attaching the console output below along with the autoinstaller.conf file used.

TASK [aws-hypervisor : associate new elastic IPs with each of the instances] ***************
skipping: [127.0.0.1] => (item={u'root_device_type': u'ebs', u'private_dns_name': u'ip-192-168-122-226.us-west-1.compute.internal', u'security_groups': [{u'group_id': u'sg-0b636e72', u'group_name': u'openshift'}], u'monitoring': {u'state': u'disabled'}, u'subnet_id': u'subnet-29c2b672', u'ebs_optimized': False, u'state': {u'code': 16, u'name': u'running'}, u'source_dest_check': True, u'client_token': u'', u'virtualization_type': u'hvm', u'architecture': u'x86_64', u'public_ip_address': u'18.144.10.141', u'tags': {u'cluster': u'OiA-201804301128', u'role': u'master', u'Name': u'ocp1'}, u'key_name': u'openshiftinaction', u'image_id': u'ami-66eec506', u'ena_support': True, u'public_dns_name': u'ec2-18-144-10-141.us-west-1.compute.amazonaws.com', u'block_device_mappings': [{u'device_name': u'/dev/sda1', u'ebs': {u'status': u'attached', u'delete_on_termination': True, u'attach_time': u'2018-04-30T16:28:50+00:00', u'volume_id': u'vol-0408a1e79dff02ce6'}}, {u'device_name': u'/dev/sdb', u'ebs': {u'status': u'attached', u'delete_on_termination': False, u'attach_time': u'2018-04-30T16:28:50+00:00', u'volume_id': u'vol-0ea9d2aedf4965bda'}}], u'placement': {u'group_name': u'', u'tenancy': u'default', u'availability_zone': u'us-west-1b'}, u'ami_launch_index': 0, u'hypervisor': u'xen', u'network_interfaces': [{u'status': u'in-use', u'description': u'', u'subnet_id': u'subnet-29c2b672', u'ipv6_addresses': [], u'network_interface_id': u'eni-0a53a20e', u'private_dns_name': u'ip-192-168-122-226.us-west-1.compute.internal', u'attachment': {u'status': u'attached', u'device_index': 0, u'attachment_id': u'eni-attach-fb112517', u'delete_on_termination': True, u'attach_time': u'2018-04-30T16:28:50+00:00'}, u'private_ip_addresses': [{u'private_ip_address': u'192.168.122.226', u'private_dns_name': u'ip-192-168-122-226.us-west-1.compute.internal', u'association': {u'public_ip': u'18.144.10.141', u'public_dns_name': u'ec2-18-144-10-141.us-west-1.compute.amazonaws.com', u'ip_owner_id': u'amazon'}, u'primary': True}], u'mac_address': u'06:16:40:b5:68:fe', u'private_ip_address': u'192.168.122.226', u'vpc_id': u'vpc-1bd64b7c', u'groups': [{u'group_id': u'sg-0b636e72', u'group_name': u'openshift'}], u'association': {u'public_ip': u'18.144.10.141', u'public_dns_name': u'ec2-18-144-10-141.us-west-1.compute.amazonaws.com', u'ip_owner_id': u'amazon'}, u'source_dest_check': True, u'owner_id': u'954276187504'}], u'launch_time': u'2018-04-30T16:28:50+00:00', u'instance_id': u'i-06c18b36d10ade0f3', u'instance_type': u'm4.xlarge', u'root_device_name': u'/dev/sda1', u'state_transition_reason': u'', u'private_ip_address': u'192.168.122.226', u'vpc_id': u'vpc-1bd64b7c', u'product_codes': []})
skipping: [127.0.0.1] => (item={u'root_device_type': u'ebs', u'private_dns_name': u'ip-192-168-122-239.us-west-1.compute.internal', u'security_groups': [{u'group_id': u'sg-0b636e72', u'group_name': u'openshift'}], u'monitoring': {u'state': u'disabled'}, u'subnet_id': u'subnet-29c2b672', u'ebs_optimized': False, u'state': {u'code': 16, u'name': u'running'}, u'source_dest_check': True, u'client_token': u'', u'virtualization_type': u'hvm', u'architecture': u'x86_64', u'public_ip_address': u'54.183.230.126', u'tags': {u'cluster': u'OiA-201804301128', u'role': u'node', u'Name': u'ocp2'}, u'key_name': u'openshiftinaction', u'image_id': u'ami-66eec506', u'ena_support': True, u'public_dns_name': u'ec2-54-183-230-126.us-west-1.compute.amazonaws.com', u'block_device_mappings': [{u'device_name': u'/dev/sda1', u'ebs': {u'status': u'attached', u'delete_on_termination': True, u'attach_time': u'2018-04-30T16:28:29+00:00', u'volume_id': u'vol-00977c37745024c92'}}, {u'device_name': u'/dev/sdb', u'ebs': {u'status': u'attached', u'delete_on_termination': False, u'attach_time': u'2018-04-30T16:28:29+00:00', u'volume_id': u'vol-03e02547602e8e97e'}}], u'placement': {u'group_name': u'', u'tenancy': u'default', u'availability_zone': u'us-west-1b'}, u'ami_launch_index': 0, u'hypervisor': u'xen', u'network_interfaces': [{u'status': u'in-use', u'description': u'', u'subnet_id': u'subnet-29c2b672', u'ipv6_addresses': [], u'network_interface_id': u'eni-1c52a318', u'private_dns_name': u'ip-192-168-122-239.us-west-1.compute.internal', u'attachment': {u'status': u'attached', u'device_index': 0, u'attachment_id': u'eni-attach-e710240b', u'delete_on_termination': True, u'attach_time': u'2018-04-30T16:28:28+00:00'}, u'private_ip_addresses': [{u'private_ip_address': u'192.168.122.239', u'private_dns_name': u'ip-192-168-122-239.us-west-1.compute.internal', u'association': {u'public_ip': u'54.183.230.126', u'public_dns_name': u'ec2-54-183-230-126.us-west-1.compute.amazonaws.com', u'ip_owner_id': u'amazon'}, u'primary': True}], u'mac_address': u'06:85:35:71:16:c2', u'private_ip_address': u'192.168.122.239', u'vpc_id': u'vpc-1bd64b7c', u'groups': [{u'group_id': u'sg-0b636e72', u'group_name': u'openshift'}], u'association': {u'public_ip': u'54.183.230.126', u'public_dns_name': u'ec2-54-183-230-126.us-west-1.compute.amazonaws.com', u'ip_owner_id': u'amazon'}, u'source_dest_check': True, u'owner_id': u'954276187504'}], u'launch_time': u'2018-04-30T16:28:28+00:00', u'instance_id': u'i-0c486f3c8f43b8c5c', u'instance_type': u'm4.xlarge', u'root_device_name': u'/dev/sda1', u'state_transition_reason': u'', u'private_ip_address': u'192.168.122.239', u'vpc_id': u'vpc-1bd64b7c', u'product_codes': []})

TASK [aws-hypervisor : Refresh facts to get EIPS] ******************************************
skipping: [127.0.0.1]

TASK [aws-hypervisor : create groups] ******************************************************
fatal: [127.0.0.1]: FAILED! => {"msg": "'dict object' has no attribute 'instances'"}

NO MORE HOSTS LEFT *************************************************************************
	to retry, use: --limit @/Users/stephensont/Documents/workspace_openshift/autoinstaller/ansible/site.retry

PLAY RECAP *********************************************************************************
127.0.0.1                  : ok=15   changed=2    unreachable=0    failed=1
[global]
openshift_version = 3.6
openshift_type = openshift-enterprise
deployment = aws
ssh_key_file = /Users/stephensont/.ssh/id_openshiftinaction
deploy_catalog = false

[aws]
region = us-west-1
sec_group = openshift
flavor = m4.xlarge
ssh_key_name = openshiftinaction
use_elastic_ips = false


[kvm]
install_host = 127.0.0.1

[openstack]
image = 7e9fb03c-734b-4ad2-9244-df8b9c2e2b6e7e9fb03c-734b-4ad2-9244-df8b9c2e2b6e
region = us-east-1
sec_group = openshift
flavor = m4.xlarge
ssh_key_name = jduncan_key

[other]
master_ip = 192.168.122.105
node_ip = 192.168.122.106
docker_vol = /dev/sdb

[debug]
deploy_openshift = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions