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

Bundle uninstall via relayctl #11

Closed
kevsmith opened this issue Jan 8, 2016 · 4 comments
Closed

Bundle uninstall via relayctl #11

kevsmith opened this issue Jan 8, 2016 · 4 comments
Assignees

Comments

@kevsmith
Copy link
Member

kevsmith commented Jan 8, 2016

This is an obsolete design. See comments below for more recent info.

Trigger uninstalling a bundle from Cog and all Relays.

Examples:

cogctl bundle rm --bundle=BFC92057-B4AB-43B0-9E4C-D044AEDDCD78
@kevsmith kevsmith added this to the Public Release milestone Jan 8, 2016
@kevsmith kevsmith added the cogctl label Jan 8, 2016
@kevsmith kevsmith changed the title Bundle uninstall API Bundle uninstall via cogctl Jan 8, 2016
@kevsmith kevsmith modified the milestone: Public Release Jan 14, 2016
@christophermaier
Copy link
Collaborator

Did we decide to manage this via scripts and manual coordination for initial launch, rather than managing the coordination centrally from the bot?

@kevsmith
Copy link
Member Author

Yes. For launch we should have a bundle uninstall workflow like so:

cogctl bundle deactivate <bundle_name>
On each Relay host: relayctl bundle remove <bundle_name>
cogctl bundle remove <bundle_name>

tl;dr we need a basic relayctl command which:

  • Communicates with Relay via Distributed Erlang. Relay should only ever use the relay@127.0.0.1 node name to prevent unauthorized access over the network. This means relayctl will only work when executed directly on the Relay host which is fine for launch.
  • Supports two commands:
    • relayctl bundle list to list all installed bundles on a given Relay
    • relayctl bundle remove <bundle_name> to uninstall a bundle. Successful removal should trigger a new snapshot announcement to sync Cog with the Relay's updated available bundle list.

@kevsmith kevsmith changed the title Bundle uninstall via cogctl Bundle uninstall via relayctl Jan 25, 2016
@christophermaier christophermaier self-assigned this Jan 25, 2016
@christophermaier
Copy link
Collaborator

Done!

@christophermaier
Copy link
Collaborator

Completed with operable/relay#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants