Skip to content

cartridge start -d shows wrong status #748

@yngvar-antonsson

Description

@yngvar-antonsson

If something goes wrong after the detached start of the instance, cartridge start will show the status OK anyway.
Cartridge-cli version 2.12.2
Steps to reproduce:

  1. cartridge start -d
  2. cartridge stop
  3. do smth and start some of the instances:
cartridge start srv-1 -d
   • cartridge.srv-1... OK
cartridge enter srv-1   
   ⨯ Instance srv-1 is not running

Try to start again:

cartridge start srv-1 
cartridge.srv-1 | 2023-01-11 15:27:34.395 [87760] main/108/lua F> can't initialize Tarantool: Some error.
   • cartridge.srv-1... EXITED
   ⨯ cartridge.srv-1: Process exited: Exited unsuccessfully: exit status 1
   ⨯ All instances exited    

I propose to wait after the start and check the status before printing it (or add smth like --wait-started).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions