All of lore.kernel.org
 help / color / mirror / Atom feed
From: Loic Dachary <loic@dachary.org>
To: Zack Cerza <zack@redhat.com>
Cc: Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: Initializing paddles
Date: Thu, 30 Oct 2014 00:03:11 +0100	[thread overview]
Message-ID: <5451722F.8010002@dachary.org> (raw)
In-Reply-To: <CAMfdg1MHsjbnGqGz3kLJAEOkU-QYN2oxwyvytSNkh+Bkg5UirA@mail.gmail.com>

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

Hi Zack,

On 29/10/2014 21:37, Zack Cerza wrote:
> You should actually be able to POST a json object with a 'name' key
> (and whichever other ones you want) to /nodes/ !

I completely missed that, thanks :-)

Cheers

> On Sat, Oct 25, 2014 at 5:28 PM, Loic Dachary <loic@dachary.org> wrote:
>>
>>
>> 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
>>
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Loïc Dachary, Artisan Logiciel Libre


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

  reply	other threads:[~2014-10-29 23:03 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
2014-10-29 20:37   ` Zack Cerza
2014-10-29 23:03     ` Loic Dachary [this message]
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=5451722F.8010002@dachary.org \
    --to=loic@dachary.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=zack@redhat.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.