search for: managementmethod

Displaying 15 results from an estimated 15 matches for "managementmethod".

2009 Sep 30
1
Problems with creating VM
...ine: Error: Error creating new domain (virDomainCreate). Subsystem qemu: internal error unable to start guest: bind(unix:/var/lib/libvirt/qemu/test.monitor): Permission denied qemu: could not open monitor device 'unix:/var/lib/libvirt/qemu/ test.monitor,server,nowait' in DomainWrap.cpp:ManagementMethod:115 What rights should be on /var/lib/libvirt/qemu/ ? Default is: drwx------. 2 root root 4096 2009-08-19 20:16 quemu /var/log/ovirt-server/taskomatic.log INFO Wed Sep 30 17:42:21 +0300 2009 (1991) starting task_create_vm INFO Wed Sep 30 17:42:21 +0300 2009 (1991) done INFO Wed Sep 30 17:42:21...
2009 May 15
1
Error creating virtual machine: Error: Error creating new domain (virDomainCreate). Subsystem qemu: internal error
...l a virtual machine and i get this error in tasks in the ovirt webinterface. Error creating virtual machine: Error: Error creating new domain (virDomainCreate). Subsystem qemu: internal error Failed to add tap interface 'vnet%d' to bridge 'breth0' : No such device in DomainWrap.cpp:ManagementMethod:115 On the node startup i only see breth1 geting started. How can i fix this? And also the node is reported in the webinterface as hypervisor QEMU, not kvm. The processor is an intel xeon with VT. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman....
2009 Aug 26
2
Error starting a virtual machine
...RROR Wed Aug 26 14:33:29 -0600 2009 (12750) Task action processing failed: RuntimeError: Error defining virtual machine: Error: Error creating domain using xml description (virDomainDefineXML). Subsystem unknown: internal error no supported architecture for os type 'hvm' in NodeWrap.cpp:ManagementMethod:414 ERROR Wed Aug 26 14:33:29 -0600 2009 (12750) /usr/share/ovirt-server/task-omatic/taskomatic.rb:395:in `task_start_vm'/usr/share/ovirt-server/task-omatic/taskomatic.rb:904:in `mainloop'/usr/share/ovirt-server/task-omatic/taskomatic.rb:890:in `each'/usr/share/ovirt-server/task-oma...
2010 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...ry = info.memory; } } - virConnectClose(connection); + virConnectClose(connection); host->beeping = false; } @@ -228,16 +228,16 @@ void HostWrapper::shutdown() system("shutdown -h now"); } -Manageable::status_t -HostWrapper::ManagementMethod(uint32_t methodId, Args& args, string& text) +Manageable::status_t +HostWrapper::ManagementMethod(uint32_t methodId, Args& args, string& text) { switch(methodId) { case _qmf::Host::METHOD_SHUTDOWN: - shutdown(); - return Manageable::STATUS_OK; + sh...
2010 Mar 16
0
[PATCH] Added the new Processors agent.
...s via HAL."); + + // populate the managed object's values + management_object->set_model(libhal_device_get_property_string(context, processors[0], "info.product", &dbus_error)); + management_object->set_cores(num_results); +} + +Manageable::status_t +ProcessorsAgent::ManagementMethod(uint32_t id, Args& args, string& text) +{ + switch(id) + { + case _qmf::Processors::METHOD_GET_LOAD_AVERAGE: + _qmf::ArgsProcessorsGet_load_average& loadavg = (_qmf::ArgsProcessorsGet_load_average&) args; + loadavg.o_ret = get_load_average(); + return STATUS_OK...
2010 Mar 22
1
Small change and resend...
This patch includes one small change: the Processors::get_load_average() method is now const since it does not change the object's state.
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...n hostSingleton; + // Close the Hal Context + put_hal_ctx(hal_ctx); } -void HostWrapper::reboot() +void +HostAgent::update(void) { - system("shutdown -r now"); -} - -void HostWrapper::shutdown() -{ - system("shutdown -h now"); -} - -Manageable::status_t -HostWrapper::ManagementMethod(uint32_t methodId, Args& args, string& text) -{ - switch(methodId) { - case _qmf::Host::METHOD_SHUTDOWN: - shutdown(); - return Manageable::STATUS_OK; - case _qmf::Host::METHOD_REBOOT: - reboot(); - return Manageable::STATUS_OK; -...
2010 May 25
3
Supercedes previous patch...
The previous patch, for whatever reason, fails to apply on top of tip. This patch is reimplemented and, hopefully, fixed.
2010 May 24
0
[PATCH matahari] Moves the CPU properties into the Host API space.
...nagement_object->set_memory(_host.getMemory()); _management_object->set_beeping(_host.isBeeping()); + + _management_object->set_cpu_model(_host.getCPUModel()); + _management_object->set_cpu_cores(_host.getNumberOfCPUCores()); } Manageable::status_t @@ -63,6 +66,12 @@ HostAgent::ManagementMethod(uint32_t method, Args& arguments, string& text) } void +HostAgent::updated() +{ + _management_object->set_load_average(_host.getLoadAverage()); +} + +void HostAgent::heartbeat(unsigned long timestamp) { } diff --git a/src/qmf/hostagent.h b/src/qmf/hostagent.h index 6d2f2a0..9d01f...
2010 May 13
0
[PATCH matahari] Moving QMF functionality into a transport layer.
...+ _management_object->set_hypervisor(_host->get_hypervisor()); + _management_object->set_arch(_host->get_architecture()); + _management_object->set_memory(_host->get_memory()); + _management_object->set_beeping(_host->is_beeping()); +} + +Manageable::status_t +HostAgent::ManagementMethod(uint32_t method, Args& arguments, string& text) +{ + switch(method) + { + case _qmf::Host::METHOD_SHUTDOWN: + _host->shutdown(); + return Manageable::STATUS_OK; + case _qmf::Host::METHOD_REBOOT: + _host->reboot(); + return Manageable::STATUS_OK; + } +...
2010 May 19
2
Squashed commits...
Refactoring the previous patch ended up creating two deltas. This patch pushes them both together into a single commit.
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...r_name, interfaceName.c_str(), IFNAMSIZ - 1); - ifr.ifr_data = (caddr_t)&edata; - - sock = socket(AF_INET, SOCK_DGRAM, 0); - ret = ioctl(sock, SIOCETHTOOL, &ifr); - close(sock); - - if (ret != 0) - ret = errno; - - return ret; -} - -Manageable::status_t -NICWrapper::ManagementMethod(uint32_t methodId, Args& args, string& text) -{ - switch (methodId) { - case _qmf::NIC::METHOD_IDENTIFY_NIC: - _qmf::ArgsNICIdentify_nic& ioArgs = (_qmf::ArgsNICIdentify_nic&) args; - int seconds = ioArgs.i_seconds; - ioArgs.o_ret = identif...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were removed with this patch. So, I'm pushing an updated patch that contains none of the HAL code in it.
2010 Apr 19
1
[PATCH matahari] Removes all code for the previous CPUWrapper class.
...endor = vendor__; - flags = flags__; - } - -public: - - // Factory like method - static void fillCPUInfo(vector<CPUWrapper*> &cpus, ManagementAgent *agent); - - // QMF Methods - ManagementObject* GetManagementObject(void) const { return mgmt_object; } - - status_t ManagementMethod(uint32_t methodId, Args& args, string& text) { - return STATUS_NOT_IMPLEMENTED; - } - - // Field Accessors - int getCpunum(void) { return cpunum; } - int getCorenum(void) { return corenum; } - int getNumcores(void) { return numcores; } - - int getModel(void) { retur...
2009 Sep 30
2
Few questions about oVirt install.
Hi. I have successfully installed ovirt. Boot 2 nodex throught PXE boot, and added to pool. Whe i try to create NFS storage, they in state: pending setup. How to add NFS storage? taskomatic.log INFO Wed Sep 30 16:59:09 +0300 2009 (1991) starting task_refresh_pool INFO Wed Sep 30 16:59:09 +0300 2009 (1991) storage_find_suitable_host: host node3.ovirt.priv uuid 30303234-3144-3832-4638-3931FF