Giter VIP home page Giter VIP logo

automation-infra's People

Contributors

adimanyvision avatar aharonranyvision avatar aripanyvision avatar aviadhav avatar camielanyvision avatar dependabot[bot] avatar dorsany avatar gomrianyvision avatar guykanyvision avatar itaypanyvision avatar kobianyvision avatar maxtany avatar mend-for-github-com[bot] avatar morsanyvision avatar noysegman avatar ofirnanyvision avatar olegdobkin avatar orihabanyvision avatar pavelpanyvision avatar peter-mcconnell avatar razanyvision avatar sagiany avatar sagil-oosto avatar sashas-anyvision avatar snirkatriel avatar tomfanyvision avatar uhbuhb avatar viktorv-anyvision avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

automation-infra's Issues

VM info is not working when requesting info on stopped VM

Jan 28 18:13:59 server5 HYPERVISOR[7111]: 2020-01-28 18:13:59,535 7 139640853866304 DEBUG root Requested vm info for vm server5-vm-1 handle_vm_status /root/lab/vms/rest.py:76
Jan 28 18:13:59 server5 HYPERVISOR[7111]: libvirt: QEMU Driver error : Requested operation is not valid: domain is not running
Jan 28 18:13:59 server5 HYPERVISOR[7111]: 2020-01-28 18:13:59,536 7 139640696047360 ERROR root Libvirt operation failed _libvirt_connection /root/lab/vms/libvirt_wrapper.py:19
Jan 28 18:13:59 server5 HYPERVISOR[7111]: Traceback (most recent call last):
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/root/lab/vms/libvirt_wrapper.py", line 17, in _libvirt_connection
Jan 28 18:13:59 server5 HYPERVISOR[7111]: yield connection
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/root/lab/vms/libvirt_wrapper.py", line 67, in dhcp_lease_info
Jan 28 18:13:59 server5 HYPERVISOR[7111]: nets = vm.interfaceAddresses(libvirt.VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE, 0)
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/usr/lib/python3/dist-packages/libvirt.py", line 1376, in interfaceAddresses
Jan 28 18:13:59 server5 HYPERVISOR[7111]: if ret is None: raise libvirtError ('virDomainInterfaceAddresses() failed', dom=self)
Jan 28 18:13:59 server5 HYPERVISOR[7111]: libvirt.libvirtError: Requested operation is not valid: domain is not running
Jan 28 18:13:59 server5 HYPERVISOR[7111]: 2020-01-28 18:13:59,536 7 139640853866304 ERROR aiohttp.server Error handling request log_exception /usr/local/lib/python3.6/dist-packages/aiohttp/web_protocol.py:355
Jan 28 18:13:59 server5 HYPERVISOR[7111]: Traceback (most recent call last):
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_protocol.py", line 418, in start
Jan 28 18:13:59 server5 HYPERVISOR[7111]: resp = await task
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/usr/local/lib/python3.6/dist-packages/aiohttp/web_app.py", line 458, in _handle
Jan 28 18:13:59 server5 HYPERVISOR[7111]: resp = await handler(request)
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/root/lab/vms/rest.py", line 80, in handle_vm_status
Jan 28 18:13:59 server5 HYPERVISOR[7111]: info = await self.allocator.vm_manager.network_info(vm)
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/root/lab/vms/vm_manager.py", line 82, in network_info
Jan 28 18:13:59 server5 HYPERVISOR[7111]: lambda: self.libvirt_api.dhcp_lease_info(vm["name"]))
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
Jan 28 18:13:59 server5 HYPERVISOR[7111]: result = self.fn(*self.args, **self.kwargs)
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/root/lab/vms/vm_manager.py", line 82, in
Jan 28 18:13:59 server5 HYPERVISOR[7111]: lambda: self.libvirt_api.dhcp_lease_info(vm["name"]))
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/root/lab/vms/libvirt_wrapper.py", line 67, in dhcp_lease_info
Jan 28 18:13:59 server5 HYPERVISOR[7111]: nets = vm.interfaceAddresses(libvirt.VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE, 0)
Jan 28 18:13:59 server5 HYPERVISOR[7111]: File "/usr/lib/python3/dist-packages/libvirt.py", line 1376, in interfaceAddresses
Jan 28 18:13:59 server5 HYPERVISOR[7111]: if ret is None: raise libvirtError ('virDomainInterfaceAddresses() failed', dom=self)
Jan 28 18:13:59 server5 HYPERVISOR[7111]: libvirt.libvirtError: Requested operation is not valid: domain is not running

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.