search for: event_controller

Displaying 10 results from an estimated 10 matches for "event_controller".

2015 Sep 24
1
Guest cpuacct counters and others location
Hi, My piece of code ( C langage) uses cgroups to retrieve counters related to cpu and memory usage related to KVM guests hosted by the host where this code runs. I noticed that depending on the O.S. running on the host , these counters are not found at the same location : CentOS 7 : ls /sys/fs/cgroup/cpuacct/machine.slice/machine-qemu\\x2drhel6.0.scope/vcpu0 cgroup.clone_children
2010 Aug 21
1
Rendering a different Javascript file in respond_to
Hi everyone, I am stuck in an (apparently) simple problem. In my event_controller I have the i_like_it action: def i_like_it @event = Event.find(params[:id]) ... # logic respond_to do |format| format.js end end In my case "i_like_it" is called with :method => PUT (it is an Ajax call, "i_like_it.js.erb" will be returned as a sc...
2010 Jan 25
1
ActionMailer does not find templates in production mode
...ter_awaiting_approval'' /usr/lib/ruby/1.8/observer.rb:185:in `notify_observers'' /usr/lib/ruby/1.8/observer.rb:184:in `each'' /usr/lib/ruby/1.8/observer.rb:184:in `notify_observers'' (eval):10:in `create_or_update_without_callbacks'' app/controllers/event_controller.rb:71:in `request_approval'' public/dispatch.fcgi:24 However, I do have a corresponding template named "approval_requested_notification.text.plain.erb" in "app/views/event_mailer", which is correctly picked up in development mode. In production mode, however, the c...
2012 Dec 13
1
RHEL6 cgroup error after a few days of uptime
I have a RHEL6 that hosts many kvm virtual machines. It has been working fine for a couple years. I apply errata updates about once a week. In the last couple weeks, I've ran into a bug where the virtual machines start failing to start with a cgroup error message. If I reboot the host (very disruptive) then things start working normaly for a few days. Can I configure qemu/libvirt not to use
2011 Jan 23
2
Cgroup
Hello, I'm running Debian Sid with libvirt/qemu/kvm packages from experimental: $ qemu --version QEMU emulator version 0.13.0 (Debian 0.13.0+dfsg-2), Copyright (c) 2003-2008 Fabrice Bellard $ kvm --version QEMU emulator version 0.13.0 (qemu-kvm-0.13.0 Debian 0.13.0+dfsg-2), Copyright (c) 2003-2008 Fabrice Bellard $ libvirtd --version libvirtd (libvirt) 0.8.6 /etc/libvirt/qemu.conf
2006 Mar 02
6
Newb question about facade columns
...ecord::Base # create a a field based on updated_at, that''s an actual Date kind # of object def occurred_at Time.at( read_attribute("updated_at") ) end def occurred_at=(date) write_attribute( "updated_at", date.to_i ) end end event_controller.rb -------------- ... def update @event = Event.find(params[:id]) if @event.update_attributes(params[:event]) flash[:notice] = ''Event was successfully updated.'' redirect_to :action => ''show'', :id => @event else render...
2006 Jun 10
6
table associations
...d each event has one user. Instead of seeing the id number for each event''s user, I''d rather display the names of users instead. I tried to do this: class Event < ActiveRecord::Base belongs_to :user end class User < ActiveRecord::Base has_many :events end in the event_controller.rb: def list @users = User.find(:all) @events = Event.find(:all) end in the list.rhtml: <% @events.each do |eachevent| %> <tr> <td><%= link_to eachevent.action, :action => "show", :id => eachevent.id %> <TD><%= eache...
2015 Oct 29
2
How to retrieve legacy cgroups location ?
Hi, As told in "Control Groups Resource Management" libvirt page : Legacy cgroups layout Prior to libvirt 1.0.5, the cgroups layout created by libvirt was different from that described above, and did not allow for administrator customization. Libvirt used a fixed, 3-level hierarchy libvirt/{qemu,lxc}/$VMNAME which was rooted at the point in the hierarchy where libvirtd itself was
2014 Sep 15
2
cgroups inside LXC containers losts memory limits after some time
Hi all I have CentOS Linux release 7.0.1406, libvirt 1.2.7 installed. Just after create and start inside LXC container present cgroups. Example for memory: [root@ce7-t1 /]# ls -la /sys/fs/cgroup/memory/ total 0 drwxr-xr-x 2 root root 0 Sep 15 17:14 . drwxr-xr-x 12 root root 280 Sep 15 17:14 .. -rw-r--r-- 1 root root 0 Sep 15 17:14 cgroup.clone_children --w--w--w- 1 root root 0 Sep 15
2006 Jun 15
8
rails saves it to the database and I don''t want to
...nes for an event. so I have an event model class Event < ActiveRecord::Base has_many :datetimes ... end and a datetime model class Datetime < ActiveRecord::Base belongs_to :event ... end I have developed a view with the event information and information for the datetimes. and in the event_controller when I capture a datetime I do @datetime = params .... @event.datetimes << @datetime. My problem is that "@event.datetimes<<@datetime" saves the datetime to the datetimes table in the database. And after that when I validate the event for the datetimes not to overlap if I...