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 virtualization role for DigitalOcean droplets (#41061) #41062

Merged
merged 1 commit into from
Oct 23, 2019

Conversation

tomkins
Copy link
Contributor

@tomkins tomkins commented Jun 3, 2018

Fixes #41061

SUMMARY

Fixes ansible_virtualization_role for DigitalOcean droplets - it was incorrectly set to host, this PR changes it to guest.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

core

ANSIBLE VERSION
ansible 2.6.3
  config file = /Users/tomkins/Admin/blazingfast.net/ansible.cfg
  configured module search path = ['/Users/tomkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/tomkins/.virtualenvs/blazingfast/lib/python3.5/site-packages/ansible
  executable location = /Users/tomkins/.virtualenvs/blazingfast/bin/ansible
  python version = 3.5.6 (default, Aug  4 2018, 07:39:57) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]
ADDITIONAL INFORMATION

DigitalOcean droplets have the following DMI files available:

root@ubuntu-s-1vcpu-1gb-lon1-01:~# cat /sys/devices/virtual/dmi/id/product_name
Droplet
root@ubuntu-s-1vcpu-1gb-lon1-01:~# cat /sys/devices/virtual/dmi/id/bios_vendor
DigitalOcean
root@ubuntu-s-1vcpu-1gb-lon1-01:~# cat /sys/devices/virtual/dmi/id/sys_vendor
DigitalOcean

Before:

$ ansible -m setup -a "filter=ansible_virtualization_*" ubuntu-s-1vcpu-1gb-lon1-01
ubuntu-s-1vcpu-1gb-lon1-01 | SUCCESS => {
    "ansible_facts": {
        "ansible_virtualization_role": "host",
        "ansible_virtualization_type": "kvm"
    },
    "changed": false
}

After:

$ ansible -m setup -a "filter=ansible_virtualization_*" ubuntu-s-1vcpu-1gb-lon1-01
ubuntu-s-1vcpu-1gb-lon1-01 | SUCCESS => {
    "ansible_facts": {
        "ansible_virtualization_role": "guest",
        "ansible_virtualization_type": "kvm"
    },
    "changed": false
}

I've taken the same approach as #35063 for consistency.

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jun 3, 2018
@Akasurde Akasurde requested a review from alikins June 3, 2018 12:42
@Akasurde Akasurde removed needs_triage Needs a first human triage before being processed. python3 labels Jun 3, 2018
@Akasurde
Copy link
Member

Akasurde commented Jun 3, 2018

cc @BondAnthony

@BondAnthony
Copy link
Contributor

LGTM @Akasurde

@tomkins tomkins force-pushed the digitalocean-virtualization branch from 33d82b6 to 289f41f Compare June 12, 2018 21:38
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jun 20, 2018
@tomkins tomkins force-pushed the digitalocean-virtualization branch from 289f41f to 1c12ce9 Compare June 30, 2018 09:33
@ansibot ansibot removed the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jun 30, 2018
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jul 10, 2018
@tomkins tomkins force-pushed the digitalocean-virtualization branch from 1c12ce9 to d4cc564 Compare July 28, 2018 19:07
@ansibot ansibot removed the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jul 28, 2018
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Aug 7, 2018
@tomkins tomkins force-pushed the digitalocean-virtualization branch from d4cc564 to f2daec9 Compare August 9, 2018 21:59
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 9, 2018
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Aug 18, 2018
@tomkins tomkins force-pushed the digitalocean-virtualization branch from f2daec9 to 07a7177 Compare August 23, 2018 10:01
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Aug 23, 2018
@tomkins tomkins force-pushed the digitalocean-virtualization branch from 07a7177 to a9d2051 Compare August 24, 2018 14:36
@ansibot ansibot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Aug 28, 2018
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Sep 5, 2018
@ansibot ansibot added support:community This issue/PR relates to code supported by the Ansible community. and removed support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Sep 21, 2018
@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Sep 29, 2018
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Oct 9, 2018
@ansibot ansibot added the community_review In order to be merged, this PR must follow the community review workflow. label Oct 24, 2018
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. support:core This issue/PR relates to code supported by the Ansible Engineering Team. and removed community_review In order to be merged, this PR must follow the community review workflow. support:community This issue/PR relates to code supported by the Ansible community. labels Nov 26, 2018
@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Dec 4, 2018
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Dec 12, 2018
@tomkins tomkins force-pushed the digitalocean-virtualization branch from 18672af to c7baa2e Compare May 19, 2019 21:11
@ansibot ansibot added small_patch and removed stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels May 19, 2019
@tomkins
Copy link
Contributor Author

tomkins commented May 19, 2019

Still impacts Ansible 2.8 - updated PR to match slightly newer style in the file.

@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label May 27, 2019
@Akasurde Akasurde merged commit 2da2da5 into ansible:devel Oct 23, 2019
@ansible ansible locked and limited conversation to collaborators Nov 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. digital_ocean has_issue small_patch stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ansible_virtualization_role incorrectly set to host on DigitalOcean droplets
5 participants