Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instances_enabled: "." in tt.yaml leads to incorrect app naming in some cases #844

Closed
pavlua opened this issue May 16, 2024 · 2 comments · Fixed by #852
Closed

instances_enabled: "." in tt.yaml leads to incorrect app naming in some cases #844

pavlua opened this issue May 16, 2024 · 2 comments · Fixed by #852
Assignees
Labels
1sp bug Something isn't working teamE

Comments

@pavlua
Copy link

pavlua commented May 16, 2024

Some context: initially we have an app created via cartridge-cli, later migration to tt was carried out. tt init was called inside the app folder, with instances_enabled: "." in tt.yaml. Everything is fine, but instance naming is wierd, instance name contains dot instead of app name.

repro:

mkdir repro
cd repro
tt init 
tt create cartridge --name app
cd app
tt init
tt --cfg tt.yaml status

actual output:

.:s1-replica     NOT RUNNING     
.:s2-master      NOT RUNNING     
.:s2-replica     NOT RUNNING     
.:stateboard     NOT RUNNING     
.:router         NOT RUNNING     
.:s1-master      NOT RUNNING

expected output:

app:s2-replica     NOT RUNNING     
app:stateboard     NOT RUNNING     
app:router         NOT RUNNING     
app:s1-master      NOT RUNNING     
app:s1-replica     NOT RUNNING     
app:s2-master      NOT RUNNING  
@oleg-jukovec
Copy link
Contributor

oleg-jukovec commented May 16, 2024

@psergee is it duplicate of #843 or another problem?

@psergee
Copy link
Collaborator

psergee commented May 16, 2024

@psergee is it duplicate of #843 or another problem?

It looks like other issue. tt must take base dir base as an app name.
Anyway, don't understand the purpose of the tt init + tt create + tt init set of commands.

@psergee psergee added bug Something isn't working 1sp teamE labels May 16, 2024
@psergee psergee self-assigned this May 16, 2024
psergee added a commit that referenced this issue May 30, 2024
psergee added a commit that referenced this issue May 31, 2024
psergee added a commit that referenced this issue Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1sp bug Something isn't working teamE
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants