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

Virt info #52575

Closed
wants to merge 3,725 commits into from
Closed

Virt info #52575

wants to merge 3,725 commits into from

Conversation

waheedi
Copy link

@waheedi waheedi commented Apr 17, 2019

What does this PR do?

  • It fixes few bugs with the current module and sticks to the standard way of implementing virt module functions, there were inconsistencies in the implementation of few functions like get_on_poweroff, get_on_crash, get_on_reboot, get_uuid and get_profiles and in their documentation too.

  • removed function get_xml as it does not belong here

What issues does this PR fix or reference?

#52431

Previous Behavior

salt '*' virt.vm_info
The VM "<libvirt.virDomain object at 0x7f24e9e73198>" is not present

New Behavior

salt '*' virt.vm_info

minion:
    ----------
    minion-1:
        ----------
        cpu:
            1
        cputime:
            0
        disks:
            ----------
            vda:
                ----------
                cluster size:
                    65536
                disk size:
                    3065716736
                file:
                    /var/lib/libvirt/images/ubuntu16.04.qcow2
                file format:
                    qcow2
                type:
                    disk
                virtual size:
                    10737418240
        graphics:
            ----------
            autoport:
                yes
            keymap:
                None
            listen:
                None
            port:
                None
            type:
                spice
        loader:
            ----------
            path:
                None
        maxMem:
            819200
        mem:
            819200
        nics:
            ----------
            52:54:00:70:b7:63:
                ----------
                address:
                    ----------
                    bus:
                        0x00
                    domain:
                        0x0000
                    function:
                        0x0
                    slot:
                        0x03
                    type:
                        pci
                mac:
                    52:54:00:70:b7:63
                model:
                    virtio
                source:
                    ----------
                    network:
                        default
                type:
                    network
        on_crash:
            destroy
        on_poweroff:
            destroy
        on_reboot:
            restart
        state:
            shutdown
        uuid:
            e6e3f990-8997-4a5e-8cb7-ea835eae4bbe

Tests written?

No (but tested)

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

x70b1 and others added 30 commits March 7, 2019 18:17
Updated the salt.states.file.copy function to make the call to file.remove with the force parameter set to the same as one for salt.states.file.copy.
doc: Document glog matching in requisites
Add fat as a valid fs_type in parted module
Fix name of Python 2.7 development requirements file
bug: status might be a string, coerce it
Allow using salt modules in onlyif and unless
Allow to override git_pillar_base per-remote
Add cwd grain for working directory
Use __utils__ for registry commands
modules/postgres.py: replace sort
… trying to simulate the existence of a file and not whether its executable or not.
Provide access to `dns_plugin` `digitalocean`. Also, add
`dns_plugin_propagation_seconds`.
Add an execution module that does primitive parsing on state and execution module fns.
…-plugin

Add DigitalOcean DNS-01 verification to module.acme
garethgreenaway and others added 27 commits April 5, 2019 12:28
…ttings

beacons/network_settings.py: Wrong uses of variables
…_support_saltenv

Looks great! Thanks for the code!
Stops the Window installer from hanging
draft support for parsing slot results and appending text
Draft: support slot parsing inside dict and lists of dict or strings
…ot, get_on_crash, get_macs, get_devices and removed get_xml method
…ot, get_on_crash, get_macs, get_devices and removed get_xml method

support slot parsing inside dict and lists of dict or strings

only process strings

handle not string objects

change log level and add tests

return text instead of ElementTree.element object for uuid

fixing lints

fixing lints

readded get_xml function to virt module

fixed indenetation for get_xml function

fixed indenetation for get_xml function
@waheedi waheedi requested a review from a team as a code owner April 17, 2019 11:02
@ghost
Copy link

ghost commented Apr 17, 2019

@waheedi, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ryan-lane and @tkwilliams to be potential reviewers.

@waheedi waheedi closed this Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.