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 failing tests #67

Merged
merged 6 commits into from
Jan 23, 2018
Merged

Fix failing tests #67

merged 6 commits into from
Jan 23, 2018

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Jan 23, 2018

  • Add virtualenv for running Ansible in a reproducible manner.

  • Change regex for matching Metricbeat output from the system-cpu metricset

    The order of the JSON keys in the metricset object is different in the output than before (I haven't determined why.)

  • Update the win_copy dest argument to include the file name and not just the destination directory.

  • Refactor the Makefile and update the README.

  • Temporarily disable Filebeat testing Filebeat panic at startup beats#6145 is resolved.

  • Fix deprecations (sudo -> become, always_run -> check_mode = no).

  • Use ubuntu/precise32 instead of hashicorp/precise32. The hashicorp/precise32 is ansible_os_family == Mandrake and none of the Ansible roles handle Mandrake (they expect Debian).

  • Add workaround for an Ansible issue on Debian 6. APT module: installing deb fails with Python 2.6 and is always changed if arch=all ansible/ansible#31471

- Add virtualenv for running Ansible in a reproducible manner.
- Change regex for matching Metricbeat output from the system-cpu metricset

  The order of the JSON keys in the `metricset` object is different in the output than before (I haven't determined why.)

- Update the win_copy dest argument to include the file name and not just the destination directory.
- Refactor the Makefile and update the README.
- Temporarily disable Filebeat testing on Windows while elastic/beats#6145 is resolved.
    [DEPRECATION WARNING]: always_run is deprecated. Use check_mode = no instead.. This feature will be removed in version
2.4. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
The hashicorp/precise32 is `ansible_os_family == Mandrake` and none of the Ansible roles handle Mandrake (they expect Debian).
Python 2.6 on Debian 6 doesn't have a method used by Ansible.

    TASK [test-install : Install Debs] *************************************************************************************
    fatal: [tester-debian6-64]: FAILED! => {"changed": false, "msg": "Unable to install package: 'module' object has no attribute 'get_architectures'"}

ansible/ansible#31471
Use become instead of sudo.

Fixes:

    [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo'
(default). This feature will be removed in version 2.6. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
@ruflin ruflin merged commit b392449 into elastic:master Jan 23, 2018
@ruflin
Copy link
Contributor

ruflin commented Jan 23, 2018

@andrewkroh Thanks for cleaning this up. I triggered a build after merging: https://beats-ci.elastic.co/job/elastic+beats-tester+master/139/

Lets fix elastic/beats#6145 and readd filebeat to it.

@andrewkroh andrewkroh deleted the bugfix/6_2 branch May 2, 2018 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants