Issues adding a plan to a service

40 views
Skip to first unread message

Martin Jackson

unread,
Apr 13, 2015, 1:19:37 PM4/13/15
to tsuru...@googlegroups.com
Hi all,

I've just created a new tsuru installation and I've installed a database service (postgres-api following the instructions from https://github.com/tsuru/postgres-api), I've created a plan but when I attempt to service-add the database instance using the plan I created I get the following error:  Error: Failed to create the instance pg-instance: Plan dbplan do not exists.

It falls over when I attempt the following:

$ tsuru-admin plan-create dbplan -c 99

$ tsuru service-add postgresapi pg-instance dbplan


Cheers


-Martin

Tarsis Azevedo

unread,
Apr 14, 2015, 2:14:30 PM4/14/15
to tsuru...@googlegroups.com
Hi Martin,
this `tsuru-admin plan-create` command is to create plans for apps, like memory size and CPUs. You can see app plans in `tsuru plan-list`.

The service plans should be created by service itself, and taking a look at postgres-api's code I found it already has 2 plans[0]: dedicated and shared.
You can see service plans with `tsuru service-info <service_name>`.

[]'s
Tarsis Azevedo

Martin Jackson

unread,
Apr 16, 2015, 9:07:27 AM4/16/15
to tsuru...@googlegroups.com
Thanks Tarsis it all makes sense now.

Cheers

-Martin
Reply all
Reply to author
Forward
0 new messages