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

Fix layout templating #582

Merged
merged 2 commits into from
May 14, 2018
Merged

Conversation

herlo
Copy link
Contributor

@herlo herlo commented May 10, 2018

Adjusted the dataparser.process function to treat all data as a potential file. It checks now for a leading '@' and reads the file into data before continuing. The inventory_layout templating was failing because it wasn't passing any values along.

Fixes #584

Data parser will strip the @ as needed.
@herlo herlo force-pushed the fix_layout_templating branch from 1773e18 to dcdd513 Compare May 11, 2018 15:18
@adl-bot
Copy link

adl-bot commented May 11, 2018

@herlo
Copy link
Contributor Author

herlo commented May 14, 2018

[test]

@adl-bot
Copy link

adl-bot commented May 14, 2018

Copy link
Contributor

@p3ck p3ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please provide the output of the test cases.

Thanks

@herlo
Copy link
Contributor Author

herlo commented May 14, 2018

Testing proof this works.

$ cat dummy-data.yml 
---
distro: fedora26

###############

$ ./config/Dockerfiles/linchpin-tests.sh

.. snip ..

+ ./config/Dockerfiles/tests.d/dummy/template-data.sh fedora26 dummy
+ tee fedora26_logs/dummy.log
+ DISTRO=fedora26
+ PROVIDER=dummy
+ trap clean_up EXIT SIGHUP SIGINT SIGTERM
+ '[' -e /tmp/dummy.hosts ']'
+ rm /tmp/dummy.hosts
+ echo 'DISTRO: fedora26'
DISTRO: fedora26
+ pushd docs/source/examples/workspace
~/Projects/linchpin/docs/source/examples/workspace ~/Projects/linchpin
+ linchpin -w . -p PinFile.dummy.yml --template-data '{"distro": "fedora26-"}' -v up dummy-new

PLAY [schema check and Pre Provisioning Activities on topology_file] ************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [common : assign async value] **********************************************************************
ok: [localhost] => {"ansible_facts": {"async": false}, "changed": false}

TASK [common : declare async_types array] ***************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [common : output vars] *****************************************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs": {}}, "changed": false}

PLAY [Provisioning resources based on resource group type] **********************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [dummy : declaring output vars] ********************************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": []}, "changed": false}

TASK [dummy : Initiating Provisioning of dummy resource group] ******************************************
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/provision_resource_group.yml for localhost

TASK [dummy : Provision resource definitions of current group] ******************************************
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/provision_res_defs.yml for localhost
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/provision_res_defs.yml for localhost

TASK [dummy : Get the resource name] ********************************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26-web"}, "changed": false}

TASK [dummy : Assign dummy name using uhash value] ******************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26-web-125395"}, "changed": false}

TASK [dummy : Provision dummy resources by looping on count] ********************************************
changed: [localhost] => {"changed": true, "dummy_file": "/tmp/dummy.hosts", "hosts": ["fedora26-web-125395-0.example.net", "fedora26-web-125395-1.example.net", "fedora26-web-125395-2.example.net"]}

TASK [dummy : set tmp var] ******************************************************************************
ok: [localhost] => {"ansible_facts": {"tmp": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-web-125395-0.example.net", "fedora26-web-125395-1.example.net", "fedora26-web-125395-2.example.net"]}]}, "changed": false}

TASK [dummy : Append outputitem to topology_outputs] ****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-web-125395-0.example.net", "fedora26-web-125395-1.example.net", "fedora26-web-125395-2.example.net"]}]}, "changed": false}

TASK [dummy : Get the resource name] ********************************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26-test"}, "changed": false}

TASK [dummy : Assign dummy name using uhash value] ******************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26-test-125395"}, "changed": false}

TASK [dummy : Provision dummy resources by looping on count] ********************************************
changed: [localhost] => {"changed": true, "dummy_file": "/tmp/dummy.hosts", "hosts": ["fedora26-test-125395-0.example.net"]}

TASK [dummy : set tmp var] ******************************************************************************
ok: [localhost] => {"ansible_facts": {"tmp": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-test-125395-0.example.net"]}]}, "changed": false}

TASK [dummy : Append outputitem to topology_outputs] ****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-web-125395-0.example.net", "fedora26-web-125395-1.example.net", "fedora26-web-125395-2.example.net"]}, {"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-test-125395-0.example.net"]}]}, "changed": false}

TASK [dummy : Initiating Teardown of dummy resource group] **********************************************
skipping: [localhost] => (item={'resource_group_name': u'dummy', 'resource_definitions': [{'count': 3, 'role': u'dummy_node', 'name': u'fedora26-web'}, {'count': 1, 'role': u'dummy_node', 'name': u'fedora26-test'}], 'resource_group_type': u'dummy'})  => {"changed": false, "item": {"resource_definitions": [{"count": 3, "name": "fedora26-web", "role": "dummy_node"}, {"count": 1, "name": "fedora26-test", "role": "dummy_node"}], "resource_group_name": "dummy", "resource_group_type": "dummy"}, "skip_reason": "Conditional result was False"}

PLAY [Writing contents to file] *************************************************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : aws_cfn: wait and update outputs using jobids] *********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Updating topology_outputs] *****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs": {"aws_cfn_res": [], "aws_ec2_key_res": [], "aws_ec2_res": [], "aws_s3_res": [], "beaker_res": [], "duffy_res": [], "dummy_res": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-web-125395-0.example.net", "fedora26-web-125395-1.example.net", "fedora26-web-125395-2.example.net"]}, {"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-test-125395-0.example.net"]}], "gcloud_gce_res": [], "libvirt_res": [], "os_heat_res": [], "os_keypair_res": [], "os_obj_res": [], "os_server_res": [], "os_sg_res": [], "os_volume_res": [], "ovirt_vms_res": [], "rax_server_res": []}}, "changed": false}

TASK [gather_resources : Add outputs to the rundb] ******************************************************
skipping: [localhost] => (item={'value': [], 'key': u'os_keypair_res'})  => {"changed": false, "item": {"key": "os_keypair_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'rax_server_res'})  => {"changed": false, "item": {"key": "rax_server_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_ec2_res'})  => {"changed": false, "item": {"key": "aws_ec2_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_server_res'})  => {"changed": false, "item": {"key": "os_server_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'ovirt_vms_res'})  => {"changed": false, "item": {"key": "ovirt_vms_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_ec2_key_res'})  => {"changed": false, "item": {"key": "aws_ec2_key_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'gcloud_gce_res'})  => {"changed": false, "item": {"key": "gcloud_gce_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_s3_res'})  => {"changed": false, "item": {"key": "aws_s3_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'duffy_res'})  => {"changed": false, "item": {"key": "duffy_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_sg_res'})  => {"changed": false, "item": {"key": "os_sg_res", "value": []}, "skip_reason": "Conditional result was False"}
changed: [localhost] => (item={'value': [{'failed': False, u'changed': True, u'hosts': [u'fedora26-web-125395-0.example.net', u'fedora26-web-125395-1.example.net', u'fedora26-web-125395-2.example.net'], u'dummy_file': u'/tmp/dummy.hosts'}, {'failed': False, u'changed': True, u'hosts': [u'fedora26-test-125395-0.example.net'], u'dummy_file': u'/tmp/dummy.hosts'}], 'key': u'dummy_res'}) => {"changed": true, "item": {"key": "dummy_res", "value": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-web-125395-0.example.net", "fedora26-web-125395-1.example.net", "fedora26-web-125395-2.example.net"]}, {"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26-test-125395-0.example.net"]}]}, "output": 466}
skipping: [localhost] => (item={'value': [], 'key': u'beaker_res'})  => {"changed": false, "item": {"key": "beaker_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_cfn_res'})  => {"changed": false, "item": {"key": "aws_cfn_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_heat_res'})  => {"changed": false, "item": {"key": "os_heat_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_obj_res'})  => {"changed": false, "item": {"key": "os_obj_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'libvirt_res'})  => {"changed": false, "item": {"key": "libvirt_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_volume_res'})  => {"changed": false, "item": {"key": "os_volume_res", "value": []}, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Create resources directory (v1.0.x compatibility)] *****************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : set topology_name] *************************************************************
ok: [localhost] => {"ansible_facts": {"topology_name": "dummy_cluster"}, "changed": false}

TASK [gather_resources : Generate resources file (v1.0.x compatibility)] ********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

PLAY [inventory generation role] ************************************************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [inventory_gen : set topology_name] ****************************************************************
ok: [localhost] => {"ansible_facts": {"topology_name": "dummy_cluster"}, "changed": false}

TASK [inventory_gen : Set inventory_layout] *************************************************************
ok: [localhost] => {"ansible_facts": {"inventory_layout": "? !!binary |\n  aG9zdF9ncm91cHM=\n: ? !!binary |\n    YWxs\n  : ? !!binary |\n      dmFycw==\n    : ? !!binary |\n        YW5zaWJsZV9wcml2YXRlX2tleV9maWxl\n      : '\"/tmp/CSS/keystore/css-central\"\n\n        '\n      ? !!binary |\n        YW5zaWJsZV91c2Vy\n      : !!binary |\n        cm9vdA==\n? !!binary |\n  aG9zdHM=\n: ? !!binary |\n    ZXhhbXBsZS1ub2Rl\n  : ? !!binary |\n      Y291bnQ=\n    : 3\n    ? !!binary |\n      aG9zdF9ncm91cHM=\n    : - !!binary |\n        ZXhhbXBsZQ==\n  ? !!binary |\n    dGVzdC1ub2Rl\n  : ? !!binary |\n      Y291bnQ=\n    : 1\n    ? !!binary |\n      aG9zdF9ncm91cHM=\n    : - !!binary |\n        dGVzdA==\n? !!binary |\n  aW52ZW50b3J5X2ZpbGU=\n: /home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy-new-125395.inventory\n? !!binary |\n  dmFycw==\n: ? !!binary |\n    aG9zdG5hbWU=\n  : !!binary |\n    X19JUF9f\n"}, "changed": false}

TASK [inventory_gen : Updating uhash-based inventory_path with the absolute path] ***********************
ok: [localhost] => {"ansible_facts": {"inventory_path": "/home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy_cluster-125395.inventory"}, "changed": false}

TASK [inventory_gen : Updating inventory_path with the absolute path] ***********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : set inv_path if provided in inventory layout] *************************************
ok: [localhost] => {"ansible_facts": {"inv_path": "/home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy-new-125395.inventory"}, "changed": false}

TASK [inventory_gen : Generate Generic Inventory /home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy_cluster-125395.inventory] ***
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Generate Generic Inventory /home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy-new-125395.inventory] ***
changed: [localhost] => {"changed": true, "checksum": "e1d277f0224923c8ef2d3ccb6ff5f39d5ca65c2b", "dest": "/home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy-new-125395.inventory", "gid": 1000, "group": "herlo", "md5sum": "2281077dc891655707883028333488cd", "mode": "0664", "owner": "herlo", "size": 739, "src": "/home/herlo/.ansible/tmp/ansible-tmp-1526328640.68-174107215014979/source", "state": "file", "uid": 1000}

PLAY RECAP **********************************************************************************************
localhost                  : ok=28   changed=4    unreachable=0    failed=0   

Action 'up' on Target 'dummy-new' is complete

ID: 655
Action: up

Target              	Run ID	uHash	Exit Code 
-------------------------------------------------
dummy-new           	   466	125395	        0

These next lines show how the 'fedora26' distro was included to make the test successful.

+ cat /tmp/dummy.hosts
+ grep fedora26
fedora26-web-125395-0.example.net
fedora26-web-125395-1.example.net
fedora26-web-125395-2.example.net
fedora26-test-125395-0.example.net
+ clean_up
+ set +e
+ linchpin -w . -p PinFile.dummy.yml --template-data '{"distro": "fedora26-"}' -v destroy dummy-new

PLAY [schema check and Pre Provisioning Activities on topology_file] ************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [common : assign async value] **********************************************************************
ok: [localhost] => {"ansible_facts": {"async": false}, "changed": false}

TASK [common : declare async_types array] ***************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [common : output vars] *****************************************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs": {}}, "changed": false}

PLAY [Provisioning resources based on resource group type] **********************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [dummy : declaring output vars] ********************************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": []}, "changed": false}

TASK [dummy : Initiating Provisioning of dummy resource group] ******************************************
skipping: [localhost] => (item={'resource_group_name': u'dummy', 'resource_definitions': [{'count': 3, 'role': u'dummy_node', 'name': u'fedora26-web'}, {'count': 1, 'role': u'dummy_node', 'name': u'fedora26-test'}], 'resource_group_type': u'dummy'})  => {"changed": false, "item": {"resource_definitions": [{"count": 3, "name": "fedora26-web", "role": "dummy_node"}, {"count": 1, "name": "fedora26-test", "role": "dummy_node"}], "resource_group_name": "dummy", "resource_group_type": "dummy"}, "skip_reason": "Conditional result was False"}

TASK [dummy : Initiating Teardown of dummy resource group] **********************************************
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/teardown_resource_group.yml for localhost

TASK [dummy : Teardown resource definitions of current group] *******************************************
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/teardown_res_defs.yml for localhost
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/teardown_res_defs.yml for localhost

TASK [dummy : Get the resource name] ********************************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26-web"}, "changed": false}

TASK [dummy : Assign dummy name using uhash value] ******************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26-web-125395"}, "changed": false}

TASK [dummy : Teardown dummy resources by looping on count] *********************************************
changed: [localhost] => {"changed": true, "dummy_file": "/tmp/dummy.hosts"}

TASK [dummy : set tmp var] ******************************************************************************
ok: [localhost] => {"ansible_facts": {"tmp": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "changed": false}

TASK [dummy : Append outputitem to topology_outputs] ****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "changed": false}

TASK [dummy : Get the resource name] ********************************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26-test"}, "changed": false}

TASK [dummy : Assign dummy name using uhash value] ******************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26-test-125395"}, "changed": false}

TASK [dummy : Teardown dummy resources by looping on count] *********************************************
ok: [localhost] => {"changed": false, "dummy_file": "/tmp/dummy.hosts"}

TASK [dummy : set tmp var] ******************************************************************************
ok: [localhost] => {"ansible_facts": {"tmp": [{"changed": false, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "changed": false}

TASK [dummy : Append outputitem to topology_outputs] ****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}, {"changed": false, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "changed": false}

PLAY [Writing contents to file] *************************************************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : aws_cfn: wait and update outputs using jobids] *********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Updating topology_outputs] *****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs": {"aws_cfn_res": [], "aws_ec2_key_res": [], "aws_ec2_res": [], "aws_s3_res": [], "beaker_res": [], "duffy_res": [], "dummy_res": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}, {"changed": false, "dummy_file": "/tmp/dummy.hosts", "failed": false}], "gcloud_gce_res": [], "libvirt_res": [], "os_heat_res": [], "os_keypair_res": [], "os_obj_res": [], "os_server_res": [], "os_sg_res": [], "os_volume_res": [], "ovirt_vms_res": [], "rax_server_res": []}}, "changed": false}

TASK [gather_resources : Add outputs to the rundb] ******************************************************
skipping: [localhost] => (item={'value': [], 'key': u'os_keypair_res'})  => {"changed": false, "item": {"key": "os_keypair_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'rax_server_res'})  => {"changed": false, "item": {"key": "rax_server_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_ec2_res'})  => {"changed": false, "item": {"key": "aws_ec2_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_server_res'})  => {"changed": false, "item": {"key": "os_server_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'ovirt_vms_res'})  => {"changed": false, "item": {"key": "ovirt_vms_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_ec2_key_res'})  => {"changed": false, "item": {"key": "aws_ec2_key_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'gcloud_gce_res'})  => {"changed": false, "item": {"key": "gcloud_gce_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_s3_res'})  => {"changed": false, "item": {"key": "aws_s3_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'duffy_res'})  => {"changed": false, "item": {"key": "duffy_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_sg_res'})  => {"changed": false, "item": {"key": "os_sg_res", "value": []}, "skip_reason": "Conditional result was False"}
changed: [localhost] => (item={'value': [{'failed': False, u'changed': True, u'dummy_file': u'/tmp/dummy.hosts'}, {'failed': False, u'changed': False, u'dummy_file': u'/tmp/dummy.hosts'}], 'key': u'dummy_res'}) => {"changed": true, "item": {"key": "dummy_res", "value": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}, {"changed": false, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "output": 467}
skipping: [localhost] => (item={'value': [], 'key': u'beaker_res'})  => {"changed": false, "item": {"key": "beaker_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_cfn_res'})  => {"changed": false, "item": {"key": "aws_cfn_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_heat_res'})  => {"changed": false, "item": {"key": "os_heat_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_obj_res'})  => {"changed": false, "item": {"key": "os_obj_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'libvirt_res'})  => {"changed": false, "item": {"key": "libvirt_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_volume_res'})  => {"changed": false, "item": {"key": "os_volume_res", "value": []}, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Create resources directory (v1.0.x compatibility)] *****************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : set topology_name] *************************************************************
ok: [localhost] => {"ansible_facts": {"topology_name": "dummy_cluster"}, "changed": false}

TASK [gather_resources : Generate resources file (v1.0.x compatibility)] ********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

PLAY [inventory generation role] ************************************************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [inventory_gen : set topology_name] ****************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Set inventory_layout] *************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Updating uhash-based inventory_path with the absolute path] ***********************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Updating inventory_path with the absolute path] ***********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : set inv_path if provided in inventory layout] *************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Generate Generic Inventory {{ inventory_path }}] **********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Generate Generic Inventory {{ inv_path }}] ****************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

PLAY RECAP **********************************************************************************************
localhost                  : ok=23   changed=2    unreachable=0    failed=0   

Action 'destroy' on Target 'dummy-new' is complete

ID: 656
Action: destroy

Target              	Run ID	uHash	Exit Code 
-------------------------------------------------
dummy-new           	   467	125395	        0

+ '[' 0 -eq 0 ']'
++ tput setaf 2
++ tput sgr0
+ test_summary='SUCCESS\tfedora26/dummy/template-data'
+ summary='\nSUCCESS\tfedora26/dummy/basic\nSUCCESS\tfedora26/dummy/template-data'
+ for test in ${TESTS}
+ testname=fedora26/dummy/template-data-file
+ ./config/Dockerfiles/tests.d/dummy/template-data-file.sh fedora26 dummy
+ tee fedora26_logs/dummy.log
+ DISTRO=fedora26
+ PROVIDER=dummy
+ trap clean_up EXIT SIGHUP SIGINT SIGTERM
+ pushd docs/source/examples/workspace
~/Projects/linchpin/docs/source/examples/workspace ~/Projects/linchpin
+ cat
+ '[' -e /tmp/dummy.hosts ']'
+ rm /tmp/dummy.hosts
+ linchpin -w . -p PinFile.dummy.yml --template-data @dummy-data.yml -v up dummy-new

PLAY [schema check and Pre Provisioning Activities on topology_file] ************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [common : assign async value] **********************************************************************
ok: [localhost] => {"ansible_facts": {"async": false}, "changed": false}

TASK [common : declare async_types array] ***************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [common : output vars] *****************************************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs": {}}, "changed": false}

PLAY [Provisioning resources based on resource group type] **********************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [dummy : declaring output vars] ********************************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": []}, "changed": false}

TASK [dummy : Initiating Provisioning of dummy resource group] ******************************************
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/provision_resource_group.yml for localhost

TASK [dummy : Provision resource definitions of current group] ******************************************
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/provision_res_defs.yml for localhost
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/provision_res_defs.yml for localhost

TASK [dummy : Get the resource name] ********************************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26web"}, "changed": false}

TASK [dummy : Assign dummy name using uhash value] ******************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26web-c4ed7e"}, "changed": false}

TASK [dummy : Provision dummy resources by looping on count] ********************************************
changed: [localhost] => {"changed": true, "dummy_file": "/tmp/dummy.hosts", "hosts": ["fedora26web-c4ed7e-0.example.net", "fedora26web-c4ed7e-1.example.net", "fedora26web-c4ed7e-2.example.net"]}

TASK [dummy : set tmp var] ******************************************************************************
ok: [localhost] => {"ansible_facts": {"tmp": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26web-c4ed7e-0.example.net", "fedora26web-c4ed7e-1.example.net", "fedora26web-c4ed7e-2.example.net"]}]}, "changed": false}

TASK [dummy : Append outputitem to topology_outputs] ****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26web-c4ed7e-0.example.net", "fedora26web-c4ed7e-1.example.net", "fedora26web-c4ed7e-2.example.net"]}]}, "changed": false}

TASK [dummy : Get the resource name] ********************************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26test"}, "changed": false}

TASK [dummy : Assign dummy name using uhash value] ******************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26test-c4ed7e"}, "changed": false}

TASK [dummy : Provision dummy resources by looping on count] ********************************************
changed: [localhost] => {"changed": true, "dummy_file": "/tmp/dummy.hosts", "hosts": ["fedora26test-c4ed7e-0.example.net"]}

TASK [dummy : set tmp var] ******************************************************************************
ok: [localhost] => {"ansible_facts": {"tmp": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26test-c4ed7e-0.example.net"]}]}, "changed": false}

TASK [dummy : Append outputitem to topology_outputs] ****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26web-c4ed7e-0.example.net", "fedora26web-c4ed7e-1.example.net", "fedora26web-c4ed7e-2.example.net"]}, {"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26test-c4ed7e-0.example.net"]}]}, "changed": false}

TASK [dummy : Initiating Teardown of dummy resource group] **********************************************
skipping: [localhost] => (item={'resource_group_name': u'dummy', 'resource_definitions': [{'count': 3, 'role': u'dummy_node', 'name': u'fedora26web'}, {'count': 1, 'role': u'dummy_node', 'name': u'fedora26test'}], 'resource_group_type': u'dummy'})  => {"changed": false, "item": {"resource_definitions": [{"count": 3, "name": "fedora26web", "role": "dummy_node"}, {"count": 1, "name": "fedora26test", "role": "dummy_node"}], "resource_group_name": "dummy", "resource_group_type": "dummy"}, "skip_reason": "Conditional result was False"}

PLAY [Writing contents to file] *************************************************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : aws_cfn: wait and update outputs using jobids] *********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Updating topology_outputs] *****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs": {"aws_cfn_res": [], "aws_ec2_key_res": [], "aws_ec2_res": [], "aws_s3_res": [], "beaker_res": [], "duffy_res": [], "dummy_res": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26web-c4ed7e-0.example.net", "fedora26web-c4ed7e-1.example.net", "fedora26web-c4ed7e-2.example.net"]}, {"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26test-c4ed7e-0.example.net"]}], "gcloud_gce_res": [], "libvirt_res": [], "os_heat_res": [], "os_keypair_res": [], "os_obj_res": [], "os_server_res": [], "os_sg_res": [], "os_volume_res": [], "ovirt_vms_res": [], "rax_server_res": []}}, "changed": false}

TASK [gather_resources : Add outputs to the rundb] ******************************************************
skipping: [localhost] => (item={'value': [], 'key': u'os_keypair_res'})  => {"changed": false, "item": {"key": "os_keypair_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'rax_server_res'})  => {"changed": false, "item": {"key": "rax_server_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_ec2_res'})  => {"changed": false, "item": {"key": "aws_ec2_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_server_res'})  => {"changed": false, "item": {"key": "os_server_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'ovirt_vms_res'})  => {"changed": false, "item": {"key": "ovirt_vms_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_ec2_key_res'})  => {"changed": false, "item": {"key": "aws_ec2_key_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'gcloud_gce_res'})  => {"changed": false, "item": {"key": "gcloud_gce_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_s3_res'})  => {"changed": false, "item": {"key": "aws_s3_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'duffy_res'})  => {"changed": false, "item": {"key": "duffy_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_sg_res'})  => {"changed": false, "item": {"key": "os_sg_res", "value": []}, "skip_reason": "Conditional result was False"}
changed: [localhost] => (item={'value': [{'failed': False, u'changed': True, u'hosts': [u'fedora26web-c4ed7e-0.example.net', u'fedora26web-c4ed7e-1.example.net', u'fedora26web-c4ed7e-2.example.net'], u'dummy_file': u'/tmp/dummy.hosts'}, {'failed': False, u'changed': True, u'hosts': [u'fedora26test-c4ed7e-0.example.net'], u'dummy_file': u'/tmp/dummy.hosts'}], 'key': u'dummy_res'}) => {"changed": true, "item": {"key": "dummy_res", "value": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26web-c4ed7e-0.example.net", "fedora26web-c4ed7e-1.example.net", "fedora26web-c4ed7e-2.example.net"]}, {"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false, "hosts": ["fedora26test-c4ed7e-0.example.net"]}]}, "output": 468}
skipping: [localhost] => (item={'value': [], 'key': u'beaker_res'})  => {"changed": false, "item": {"key": "beaker_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_cfn_res'})  => {"changed": false, "item": {"key": "aws_cfn_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_heat_res'})  => {"changed": false, "item": {"key": "os_heat_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_obj_res'})  => {"changed": false, "item": {"key": "os_obj_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'libvirt_res'})  => {"changed": false, "item": {"key": "libvirt_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_volume_res'})  => {"changed": false, "item": {"key": "os_volume_res", "value": []}, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Create resources directory (v1.0.x compatibility)] *****************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : set topology_name] *************************************************************
ok: [localhost] => {"ansible_facts": {"topology_name": "dummy_cluster"}, "changed": false}

TASK [gather_resources : Generate resources file (v1.0.x compatibility)] ********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

PLAY [inventory generation role] ************************************************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [inventory_gen : set topology_name] ****************************************************************
ok: [localhost] => {"ansible_facts": {"topology_name": "dummy_cluster"}, "changed": false}

TASK [inventory_gen : Set inventory_layout] *************************************************************
ok: [localhost] => {"ansible_facts": {"inventory_layout": "? !!binary |\n  aG9zdF9ncm91cHM=\n: ? !!binary |\n    YWxs\n  : ? !!binary |\n      dmFycw==\n    : ? !!binary |\n        YW5zaWJsZV9wcml2YXRlX2tleV9maWxl\n      : '\"/tmp/CSS/keystore/css-central\"\n\n        '\n      ? !!binary |\n        YW5zaWJsZV91c2Vy\n      : !!binary |\n        cm9vdA==\n? !!binary |\n  aG9zdHM=\n: ? !!binary |\n    ZXhhbXBsZS1ub2Rl\n  : ? !!binary |\n      Y291bnQ=\n    : 3\n    ? !!binary |\n      aG9zdF9ncm91cHM=\n    : - !!binary |\n        ZXhhbXBsZQ==\n  ? !!binary |\n    dGVzdC1ub2Rl\n  : ? !!binary |\n      Y291bnQ=\n    : 1\n    ? !!binary |\n      aG9zdF9ncm91cHM=\n    : - !!binary |\n        dGVzdA==\n? !!binary |\n  aW52ZW50b3J5X2ZpbGU=\n: /home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy-new-c4ed7e.inventory\n? !!binary |\n  dmFycw==\n: ? !!binary |\n    aG9zdG5hbWU=\n  : !!binary |\n    X19JUF9f\n"}, "changed": false}

TASK [inventory_gen : Updating uhash-based inventory_path with the absolute path] ***********************
ok: [localhost] => {"ansible_facts": {"inventory_path": "/home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy_cluster-c4ed7e.inventory"}, "changed": false}

TASK [inventory_gen : Updating inventory_path with the absolute path] ***********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : set inv_path if provided in inventory layout] *************************************
ok: [localhost] => {"ansible_facts": {"inv_path": "/home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy-new-c4ed7e.inventory"}, "changed": false}

TASK [inventory_gen : Generate Generic Inventory /home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy_cluster-c4ed7e.inventory] ***
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Generate Generic Inventory /home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy-new-c4ed7e.inventory] ***
changed: [localhost] => {"changed": true, "checksum": "417749f9bd487ee125747a1b24febb94b131f21a", "dest": "/home/herlo/Projects/centos/git/linch-pin/docs/source/examples/workspace/inventories/dummy-new-c4ed7e.inventory", "gid": 1000, "group": "herlo", "md5sum": "cfb6c03ca15300095e926ebbbc3238ee", "mode": "0664", "owner": "herlo", "size": 723, "src": "/home/herlo/.ansible/tmp/ansible-tmp-1526328675.28-79862490334063/source", "state": "file", "uid": 1000}

PLAY RECAP **********************************************************************************************
localhost                  : ok=28   changed=4    unreachable=0    failed=0   

Action 'up' on Target 'dummy-new' is complete

ID: 657
Action: up

Target              	Run ID	uHash	Exit Code 
-------------------------------------------------
dummy-new           	   468	c4ed7e	        0

These next lines show how the 'fedora26' distro was included to make the test successful.

+ cat /tmp/dummy.hosts
+ grep fedora26
fedora26web-c4ed7e-0.example.net
fedora26web-c4ed7e-1.example.net
fedora26web-c4ed7e-2.example.net
fedora26test-c4ed7e-0.example.net
+ clean_up
+ set +e
+ linchpin -w . -p PinFile.dummy.yml --template-data @./dummy-data.yml -v destroy dummy-new

PLAY [schema check and Pre Provisioning Activities on topology_file] ************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [common : assign async value] **********************************************************************
ok: [localhost] => {"ansible_facts": {"async": false}, "changed": false}

TASK [common : declare async_types array] ***************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [common : output vars] *****************************************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs": {}}, "changed": false}

PLAY [Provisioning resources based on resource group type] **********************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [dummy : declaring output vars] ********************************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": []}, "changed": false}

TASK [dummy : Initiating Provisioning of dummy resource group] ******************************************
skipping: [localhost] => (item={'resource_group_name': u'dummy', 'resource_definitions': [{'count': 3, 'role': u'dummy_node', 'name': u'fedora26web'}, {'count': 1, 'role': u'dummy_node', 'name': u'fedora26test'}], 'resource_group_type': u'dummy'})  => {"changed": false, "item": {"resource_definitions": [{"count": 3, "name": "fedora26web", "role": "dummy_node"}, {"count": 1, "name": "fedora26test", "role": "dummy_node"}], "resource_group_name": "dummy", "resource_group_type": "dummy"}, "skip_reason": "Conditional result was False"}

TASK [dummy : Initiating Teardown of dummy resource group] **********************************************
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/teardown_resource_group.yml for localhost

TASK [dummy : Teardown resource definitions of current group] *******************************************
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/teardown_res_defs.yml for localhost
included: /home/herlo/Projects/centos/git/linch-pin/linchpin/provision/roles/dummy/tasks/teardown_res_defs.yml for localhost

TASK [dummy : Get the resource name] ********************************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26web"}, "changed": false}

TASK [dummy : Assign dummy name using uhash value] ******************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26web-c4ed7e"}, "changed": false}

TASK [dummy : Teardown dummy resources by looping on count] *********************************************
changed: [localhost] => {"changed": true, "dummy_file": "/tmp/dummy.hosts"}

TASK [dummy : set tmp var] ******************************************************************************
ok: [localhost] => {"ansible_facts": {"tmp": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "changed": false}

TASK [dummy : Append outputitem to topology_outputs] ****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "changed": false}

TASK [dummy : Get the resource name] ********************************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26test"}, "changed": false}

TASK [dummy : Assign dummy name using uhash value] ******************************************************
ok: [localhost] => {"ansible_facts": {"dummy_name": "fedora26test-c4ed7e"}, "changed": false}

TASK [dummy : Teardown dummy resources by looping on count] *********************************************
ok: [localhost] => {"changed": false, "dummy_file": "/tmp/dummy.hosts"}

TASK [dummy : set tmp var] ******************************************************************************
ok: [localhost] => {"ansible_facts": {"tmp": [{"changed": false, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "changed": false}

TASK [dummy : Append outputitem to topology_outputs] ****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs_dummy": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}, {"changed": false, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "changed": false}

PLAY [Writing contents to file] *************************************************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : aws_cfn: wait and update outputs using jobids] *********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Wait on jobs] ******************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Updating topology_outputs] *****************************************************
ok: [localhost] => {"ansible_facts": {"topology_outputs": {"aws_cfn_res": [], "aws_ec2_key_res": [], "aws_ec2_res": [], "aws_s3_res": [], "beaker_res": [], "duffy_res": [], "dummy_res": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}, {"changed": false, "dummy_file": "/tmp/dummy.hosts", "failed": false}], "gcloud_gce_res": [], "libvirt_res": [], "os_heat_res": [], "os_keypair_res": [], "os_obj_res": [], "os_server_res": [], "os_sg_res": [], "os_volume_res": [], "ovirt_vms_res": [], "rax_server_res": []}}, "changed": false}

TASK [gather_resources : Add outputs to the rundb] ******************************************************
skipping: [localhost] => (item={'value': [], 'key': u'os_keypair_res'})  => {"changed": false, "item": {"key": "os_keypair_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'rax_server_res'})  => {"changed": false, "item": {"key": "rax_server_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_ec2_res'})  => {"changed": false, "item": {"key": "aws_ec2_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_server_res'})  => {"changed": false, "item": {"key": "os_server_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'ovirt_vms_res'})  => {"changed": false, "item": {"key": "ovirt_vms_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_ec2_key_res'})  => {"changed": false, "item": {"key": "aws_ec2_key_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'gcloud_gce_res'})  => {"changed": false, "item": {"key": "gcloud_gce_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_s3_res'})  => {"changed": false, "item": {"key": "aws_s3_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'duffy_res'})  => {"changed": false, "item": {"key": "duffy_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_sg_res'})  => {"changed": false, "item": {"key": "os_sg_res", "value": []}, "skip_reason": "Conditional result was False"}
changed: [localhost] => (item={'value': [{'failed': False, u'changed': True, u'dummy_file': u'/tmp/dummy.hosts'}, {'failed': False, u'changed': False, u'dummy_file': u'/tmp/dummy.hosts'}], 'key': u'dummy_res'}) => {"changed": true, "item": {"key": "dummy_res", "value": [{"changed": true, "dummy_file": "/tmp/dummy.hosts", "failed": false}, {"changed": false, "dummy_file": "/tmp/dummy.hosts", "failed": false}]}, "output": 469}
skipping: [localhost] => (item={'value': [], 'key': u'beaker_res'})  => {"changed": false, "item": {"key": "beaker_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'aws_cfn_res'})  => {"changed": false, "item": {"key": "aws_cfn_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_heat_res'})  => {"changed": false, "item": {"key": "os_heat_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_obj_res'})  => {"changed": false, "item": {"key": "os_obj_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'libvirt_res'})  => {"changed": false, "item": {"key": "libvirt_res", "value": []}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item={'value': [], 'key': u'os_volume_res'})  => {"changed": false, "item": {"key": "os_volume_res", "value": []}, "skip_reason": "Conditional result was False"}

TASK [gather_resources : Create resources directory (v1.0.x compatibility)] *****************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [gather_resources : set topology_name] *************************************************************
ok: [localhost] => {"ansible_facts": {"topology_name": "dummy_cluster"}, "changed": false}

TASK [gather_resources : Generate resources file (v1.0.x compatibility)] ********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

PLAY [inventory generation role] ************************************************************************

TASK [Gathering Facts] **********************************************************************************
ok: [localhost]

TASK [inventory_gen : set topology_name] ****************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Set inventory_layout] *************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Updating uhash-based inventory_path with the absolute path] ***********************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Updating inventory_path with the absolute path] ***********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : set inv_path if provided in inventory layout] *************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Generate Generic Inventory {{ inventory_path }}] **********************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [inventory_gen : Generate Generic Inventory {{ inv_path }}] ****************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

PLAY RECAP **********************************************************************************************
localhost                  : ok=23   changed=2    unreachable=0    failed=0   

Action 'destroy' on Target 'dummy-new' is complete

ID: 658
Action: destroy

Target              	Run ID	uHash	Exit Code 
-------------------------------------------------
dummy-new           	   469	c4ed7e	        0

+ '[' 0 -eq 0 ']'
++ tput setaf 2
++ tput sgr0
+ test_summary='SUCCESS\tfedora26/dummy/template-data-file'
+ summary='\nSUCCESS\tfedora26/dummy/basic\nSUCCESS\tfedora26/dummy/template-data\nSUCCESS\tfedora26/dummy/template-data-file'
+ printf '\n==== TEST summary ====\nSUCCESS\tfedora26/dummy/basic\nSUCCESS\tfedora26/dummy/template-data\nSUCCESS\tfedora26/dummy/template-data-file\n'

==== TEST summary ====
SUCCESS	fedora26/dummy/template-data
SUCCESS	fedora26/dummy/template-data-file
+ exit 0

@herlo
Copy link
Contributor Author

herlo commented May 14, 2018

@p3ck just making sure you have seen the tests above and are comfortable with merging this PR. Thanks.

Copy link
Contributor

@p3ck p3ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the test cases as part of this commit

@herlo
Copy link
Contributor Author

herlo commented May 14, 2018

@p3ck I can include them here if you like. However, I have them here to be included in a future PR as part of work for #528. It was my hope to include them there in the next couple of days (I still need to add openstack tests to match what is currently being tested) following this PR being merged.

Copy link
Contributor

@p3ck p3ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Just wanted to make sure it doesn't get lost

@herlo
Copy link
Contributor Author

herlo commented May 14, 2018

[merge]

@adl-bot adl-bot merged commit 65981b9 into CentOS-PaaS-SIG:develop May 14, 2018
@herlo herlo added this to the v1.5.4 milestone May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants