Displaying 20 results from an estimated 6000 matches similar to: "Suppress SELECT after INSERT"
2008 Dec 01
3
acts_as_versioned and rails 2.2.2
Hi people I have tried to install the acts_as_versioned gem from
github in rails 2.2.2 but it seems to conflict with some methods in
the activerecords dirty.rb-file. I can solve some of the problem by
changing code in the activerecord, but I don''t think that was the
intention.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2007 Aug 29
2
:order based on an aggregate value?
Hi all,
I''m building an app where each :referral has_many :sales.
In a list of all referrals, I''m displaying referral.date,
referral.other_details, and also referral.sales.count. I want to able
to sort this list by that last column -- the number of sales per
referral.
Abstractly, I want to do something like
@referrals=Referral.find(:all, :order=>sales.count_all). But
2006 Aug 12
10
adding extra variable to a class, how to access it?
somple question here but pretty confusing on my side. i have a model
towns that is mapped to my towns table. can i add an extra variable to
the class and access it in my view? basicall what i am trying to do is
return a list of towns, and next to each town, display a total number of
what i have in each town.
ive tried both attr_reader and @total but no avail.
here is my view
<% for
2006 May 27
7
How should I select rows from a join-model based on more than one association?
A concrete example:
We''re building a system to organize the information about workshops
being held in various conventions. A convention has more than one
workshop, and each workshop can be held in more than one convention.
Also each workshop has a host, who is specific to a workshop being
held in a specific convention.
For example, Matz may host an "Introduction to Ruby"
2008 Jul 09
1
Deleting an exported resource
I had a host that was exporting a resource to another host to trigger
backups. The first host has now gone away, but the second host is
still seeing the exported resource (because it still exists in the
puppetmaster''s database). I fixed the problem by going in to the
database and deleting all the rows I could find that related to the
absent host, but I''m wondering if
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with
multiple networks and vice-versa. updated patchset so
as to be applicable against current oVirt server HEAD
these patches may be applied in any order, they all
need to be pushed together
2009 Jul 09
2
permit many-to-many vms / networks relationship
This patchset contains changes to the ovirt server
frontend, backend, and tests components, permitting vms
to be associated with multiple networks and vice versa.
Also included are two patches which are required for the frontend
bits; a patch adding collapsable sections to the vm form, which
in itself depends on the second patch that provides default values
for the cpu and memory vm table fields
2007 Apr 18
1
YAML serialization
Hi,
something wrong with ActiveRecord or YAML? They don''t put Strings
into Quotes when it serializes. This gave me trouble when I
serialized a String with a double colon (eg. ''key: value''). After AR
unserialized the Value it became a Hash since a String ''key: value''
becomes attribute[:key] => value... :(
Sincerely
Florian
2006 Dec 29
5
sqlite errors
Hello,
When I kick off SVN1992 with storeconfigs=yes, I get the following error:
err: Could not store configs: SQLite3::SQLException: SQL logic error
or missing database: INSERT INTO resources ("exported", "line",
"title", "host_id", "restype", "source_file_id") VALUES(NULL, 23,
''svnpkgadd-emacs-nox-etc'', NULL, NULL,
2008 Feb 11
9
Storeconfigs purge Perl
Here''s some happy-fun Perl to make your storeconfig/virtual resources day better. I probably should have written this in Ruby, but perl comes naturally :)
#!/usr/bin/perl
#
# Perl DBI to remove all related entries from Puppet''s storeconfigs database.
# Use when a host is removed from the Puppet network forcibly
# Alternatives: run puppet on host to be removed with a blank
2009 Jun 25
2
[PATCH] Fix dbomatic state changes.
This patch fixes state changes in dbomatic so that there is no
intermediate 'stopped' state after being unreachable or on startup
of dbomatic etc. Also fixes a number of smaller bugs around host
associations, state changes, etc.
Signed-off-by: Ian Main <imain at redhat.com>
---
src/db-omatic/db_omatic.rb | 85 +++++++++++++++++++++++++++++++-------------
1 files changed, 60
2012 Feb 22
1
[libvirt] a question about sanlock
Hi Daniel,
I got a question about lock manager, if I enable 'sanlock' in qemu.conf and
uncomment 'auto_disk_leases = 1' in qemu-sanlock.conf then restart libvirtd
service, libvirtd will be dead, I know I should also uncomment 'host_id = 1'
in qemu-sanlock.conf, because I enable 'auto_disk_leases'. The question is
the libvirtd must die due to a error users
2012 Feb 16
5
Puppet on Windows
Hi,
I want to run Puppet on a Windows 2003 Server. I already have a
working Puppetmaster (Scientific Linux).
I installed Puppet on Windows like shown here:
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows
This worked very well.
But when I want to run puppet.
puppet agent --test --debug
I get the following output: (I already tried different ruby and puppet
versions without
2012 Mar 13
2
libvirt with sanlock
Hello,
I configured libvirtd with the sanlock lock manager plugin:
# rpm -qa | egrep "libvirt-0|sanlock-[01]"
libvirt-lock-sanlock-0.9.4-23.el6_2.4.x86_64
sanlock-1.8-2.el6.x86_64
libvirt-0.9.4-23.el6_2.4.x86_64
# egrep -v "^#|^$" /etc/libvirt/qemu-sanlock.conf
auto_disk_leases = 1
disk_lease_dir = "/var/lib/libvirt/sanlock"
host_id = 4
# mount | grep sanlock
2020 Jul 08
2
Re: Could you please help with questions about the net failover feature
On 2020-07-06 10:01, Laine Stump wrote:
> On 7/6/20 5:10 AM, Yalan Zhang wrote:
> >
> > Hi Laine,
> >
> > For the feature testing before, I only test the linux bridge setting as
> > in 2), it works.
> > Now I tried 1), to use macvtap bridge mode connected to the PF, it can
> > not work as the hostdev interface can not get dhcp ip address on the
>
2008 Mar 29
10
create new clientconfigs database
Hi, I''m upgrading from 23.2 to the latest and have "dbmigrate = true"
in my config.
When I try to run puppetd, I''m getting:
Could not migrate database: SQLite3::SQLException: no such table:
schema_info: SELECT version FROM schema_info
I''m perfectly blowing away my old db (by deleting /var/lib/puppet/
state/clientconfigs.sqlite3 ?), but I haven''t
2006 Feb 02
2
uninitialized constant
Ok, I searched but couldn''t find anything and I even tried the RoR IRC
channel with no help.
I get this error:
uninitialized constant Airport
I used this code which I got from the RoR site.
helper :sorting
def list
@sorter = SortingHelper::Sorter.new self, %w(icao host_id name),
@params[''sort''], @params[''order''], ''icao'',
2020 Jul 08
1
Re: Could you please help with questions about the net failover feature
On 7/8/20 10:02 AM, Ken Cox wrote:
>
> On 7/8/20 1:30 AM, Stefan Assmann wrote:
>> On 2020-07-06 10:01, Laine Stump wrote:
>>> On 7/6/20 5:10 AM, Yalan Zhang wrote:
>>>> Hi Laine,
>>>>
>>>> For the feature testing before, I only test the linux bridge setting as
>>>> in 2), it works.
>>>> Now I tried 1), to use
2007 Apr 10
12
Wtih version 0.22.1 using SQLite storage, only resource -> host foreign keys are present
Hi,
I am developing an end user WWW-based front end for Rails for my
system integrator and developer colleagues to use to easily view and
search our Puppet configs via a Rails app.
I set up the SQLite storage option on the server and the puppet tables
are being populated in /var/puppet/state/, but foreign keys for
everything except host_id in resources are not being set.
Is this expected
2012 Jun 04
15
mysql or postgresql
Hi!
Which database would you recommend to use mysql or postgresql for
puppet?
Estimated number of nodes 30000, they send reports every 30 minutes.
Thanks
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to