* Initializing paddles @ 2014-10-25 5:36 Loic Dachary 2014-10-25 23:28 ` Loic Dachary 0 siblings, 1 reply; 5+ messages in thread From: Loic Dachary @ 2014-10-25 5:36 UTC (permalink / raw) To: Zack Cerza; +Cc: Ceph Development [-- Attachment #1: Type: text/plain, Size: 345 bytes --] 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' [] Cheers -- Loïc Dachary, Artisan Logiciel Libre [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 263 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Initializing paddles 2014-10-25 5:36 Initializing paddles Loic Dachary @ 2014-10-25 23:28 ` Loic Dachary 2014-10-29 20:37 ` Zack Cerza 0 siblings, 1 reply; 5+ messages in thread From: Loic Dachary @ 2014-10-25 23:28 UTC (permalink / raw) To: Zack Cerza; +Cc: Ceph Development [-- 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 --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Initializing paddles 2014-10-25 23:28 ` Loic Dachary @ 2014-10-29 20:37 ` Zack Cerza 2014-10-29 23:03 ` Loic Dachary 0 siblings, 1 reply; 5+ messages in thread From: Zack Cerza @ 2014-10-29 20:37 UTC (permalink / raw) To: Loic Dachary; +Cc: Ceph Development You should actually be able to POST a json object with a 'name' key (and whichever other ones you want) to /nodes/ ! 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Initializing paddles 2014-10-29 20:37 ` Zack Cerza @ 2014-10-29 23:03 ` Loic Dachary 2014-10-29 23:35 ` Zack Cerza 0 siblings, 1 reply; 5+ messages in thread From: Loic Dachary @ 2014-10-29 23:03 UTC (permalink / raw) To: Zack Cerza; +Cc: Ceph Development [-- 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 --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Initializing paddles 2014-10-29 23:03 ` Loic Dachary @ 2014-10-29 23:35 ` Zack Cerza 0 siblings, 0 replies; 5+ messages in thread From: Zack Cerza @ 2014-10-29 23:35 UTC (permalink / raw) To: Loic Dachary; +Cc: Ceph Development It's my fault for not documenting the API properly - hopefully once I get teuthology straightened out I'll get to put more into paddles documentation. On Wed, Oct 29, 2014 at 5:03 PM, Loic Dachary <loic@dachary.org> wrote: > 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 > -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-29 23:35 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2014-10-29 23:35 ` Zack Cerza
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.