Skip to contentSkip to conversation

Initializing paddles

DISCUSSION Loic Dachary 2 participants 5 messages Oct 25, 2014 – Oct 29, 2014

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw
Quoted 6 lines · Loic Dachary

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

Quoted 3 lines

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#2 lore raw

You should actually be able to POST a json object with a 'name' key (and whichever other ones you want) to /nodes/ !

Quoted 16 lines · Loic Dachary
Quoted 6 lines · Loic Dachary

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 ;-)

Quoted 9 lines

Cheers

Quoted 3 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Hi Zack,

Quoted 2 lines · Zack Cerza

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

Quoted 31 lines · Loic Dachary
Quoted 16 lines · Loic Dachary
Quoted 6 lines

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 ;-)

Quoted 9 lines

Cheers

Quoted 3 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#4 lore raw

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.

Quoted 36 lines · Loic Dachary

Hi Zack,

Quoted 2 lines · Zack Cerza

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

Quoted 26 lines · Loic Dachary
Quoted 25 lines · Loic Dachary
Quoted 6 lines

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

Quoted 3 lines

Cheers

--
Loïc Dachary, Artisan Logiciel Libre

Quoted 9 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html