All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Dachary <loic@dachary.org>
To: Zack Cerza <zack.cerza@inktank.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: Initializing paddles
Date: Sat, 25 Oct 2014 16:28:56 -0700	[thread overview]
Message-ID: <544C3238.7080305@dachary.org> (raw)
In-Reply-To: <544B36D3.8050103@dachary.org>

[-- Attachment #1: Type: text/plain, Size: 759 bytes --]



On 24/10/2014 22:36, Loic Dachary wrote:
> Hi Zack,
> 
> Now that I have a paddles server running, I'd like to populate it with two virtual machines I have running. Is there a script to do this or should I just type  SQL statements to do that semi-intuitively ? 
> 
> $ curl 'http://localhost:8080/nodes/?machine_type=vps&count=2'
> []

I tried something like

for id in 1 2 3 ; do sqlite3 dev.db "insert into nodes (id,name,machine_type,is_container,is_vm,locked,up,locked_by) values ($id, 'container00$id', 'plana', 1, 0, 0, 1, 'scheduled');" ; done

and it works so far (i.e. I'm making progress although I'm not to the point where a machine gets a job yet ;-)

Cheers

> 
> Cheers 
> 

-- 
Loïc Dachary, Artisan Logiciel Libre


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

  reply	other threads:[~2014-10-25 23:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-25  5:36 Initializing paddles Loic Dachary
2014-10-25 23:28 ` Loic Dachary [this message]
2014-10-29 20:37   ` Zack Cerza
2014-10-29 23:03     ` Loic Dachary
2014-10-29 23:35       ` Zack Cerza

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=544C3238.7080305@dachary.org \
    --to=loic@dachary.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=zack.cerza@inktank.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.