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

os_subnet does not work with latest versions of ansible, and linchpin #1465

Closed
samvarankashyap opened this issue Nov 5, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@samvarankashyap
Copy link
Contributor

samvarankashyap commented Nov 5, 2019

Describe the bug
os_subnet does not work with latest verisons of ansible
To Reproduce
Steps to reproduce the behavior:

  1. provision os_subnet on openstack workspace in example

Expected behavior
Logs

==== TEST: fedora30/openstack/08_os_subnet ====

  • DISTRO=fedora30
  • PROVIDER=openstack
  • TARGET=os-subnet
    ++ mktemp
  • TMP_FILE=/tmp/tmp.910Kk8onYN
  • trap clean_up EXIT SIGHUP SIGINT SIGTERM
  • pushd docs/source/examples/workspaces/openstack
    /workDir/workspace/ci-linchpin/linchpin/docs/source/examples/workspaces/openstack /workDir/workspace/ci-linchpin/linchpin
  • linchpin -w . -v up os-subnet
    [WARNING]: Unable to parse /workDir/workspace/ci-
    linchpin/linchpin/docs/source/examples/workspaces/openstack/localhost as an
    inventory source
    [WARNING]: No inventory was parsed, only implicit localhost is available

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

TASK [common : assign async value] *********************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was 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 [openstack : Create name using uhash value] *******************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [openstack : provision/teardown resources] ********************************
included: /usr/lib/python2.7/site-packages/linchpin/provision/roles/openstack/tasks/provision_os_network.yml for localhost

TASK [openstack : provision/deprovision os_network] ****************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: create_network() got an unexpected keyword argument 'dns_domain'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1572967516.7-76663754478089/AnsiballZ_os_network.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1572967516.7-76663754478089/AnsiballZ_os_network.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1572967516.7-76663754478089/AnsiballZ_os_network.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.cloud.openstack.os_network', init_globals=None, run_name='main', alter_sys=False)\n File "/usr/lib64/python2.7/runpy.py", line 192, in run_module\n fname, loader, pkg_name)\n File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code\n exec code in run_globals\n File "/tmp/ansible_os_network_payload_9BoDbo/ansible_os_network_payload.zip/ansible/modules/cloud/openstack/os_network.py", line 255, in \n File "/tmp/ansible_os_network_payload_9BoDbo/ansible_os_network_payload.zip/ansible/modules/cloud/openstack/os_network.py", line 237, in main\nTypeError: create_network() got an unexpected keyword argument 'dns_domain'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

PLAY RECAP *********************************************************************
localhost : ok=13 changed=1 unreachable=0 failed=1 skipped=7 rescued=0 ignored=0

Unsuccessful provision of resource

@samvarankashyap
Copy link
Contributor Author

Unable to reproduce the error locally.
However, the use case is invalidated by the mocking the data and updating the ci.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants