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

Expose configuration information via CLI #2774

Open
christophermaier opened this issue Jul 18, 2017 · 6 comments
Open

Expose configuration information via CLI #2774

christophermaier opened this issue Jul 18, 2017 · 6 comments
Labels
Focus: CLI Related to the Habitat CLI (core/hab) component Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Stale Type: Feature Issues that describe a new desired feature Type:Hackathon

Comments

@christophermaier
Copy link
Contributor

christophermaier commented Jul 18, 2017

As a Habitat user, I would like an easier way to access current configuration information for service groups.

The currently-gossipped config is available via curl, but it's cumbersome to remember the right URL. Additionally, configuration from default.toml and user.toml is not reflected in this output.

Though all this information can be found today by knowing the right file paths and HTTP endpoints, having all this information easily accessible via the CLI would make debugging configuration issues much easier.

@adamhjk
Copy link
Contributor

adamhjk commented Jul 18, 2017

I think the thing to build here is a command that shows what the configuration would be given a ring state. What if you could say:

$ hab butterfly dump ID | hab service --bind database:thing.prod debug

And you get a print out of all your hooks and configuration, optionally to a directory, that you can inspect. It would mean adding a bit of protocol work to fetch the dump, but it would make debugging your services against an active ring amazing, and we could make the output of dump be just the stream of raw bytes in the dat file.

@adamhjk
Copy link
Contributor

adamhjk commented Jul 18, 2017

Another useful item would be hab butterfly ring status, which points out:

  1. What members are connected to the ring
  2. What their current status is
  3. What services they are running

Basically something easy you can run that prints a green checkmark if butterfly is connected and working, so you know to move on to troubleshooting the service itself.

@eeyun eeyun added this to the Accepted Minor milestone Jul 25, 2017
@rsertelon
Copy link
Contributor

@christophermaier Is this linked to #2551 ? Or is this something else entirely?

@christophermaier
Copy link
Contributor Author

@rsertelon I think they're related in intent, though what's described in this issue sounds like a bigger, more encompassing vision of #2551

@stale
Copy link

stale bot commented Apr 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Apr 3, 2020
@christophermaier christophermaier added Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component and removed A-supervisor labels Jul 24, 2020
@stale stale bot removed Stale labels Jul 24, 2020
@christophermaier christophermaier added Focus: CLI Related to the Habitat CLI (core/hab) component Type: Feature Issues that describe a new desired feature and removed A-cli labels Jul 24, 2020
@stale
Copy link

stale bot commented Aug 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: CLI Related to the Habitat CLI (core/hab) component Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Stale Type: Feature Issues that describe a new desired feature Type:Hackathon
Projects
None yet
Development

No branches or pull requests

5 participants