Giter VIP home page Giter VIP logo

diver's People

Contributors

joeabbey avatar johnharris85 avatar thebsdbox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

diver's Issues

Version Handling

Need a strategy around version handling. Because some of the features / APIs we're working with / exposing are not part of the official API we can't rely on API Version and sometimes have to track on UCP Version (HRM / Interlock is an example of this). Mind-dump:

  • Track feature / endpoint mapping somewhere
  • Ensure we track UCP version and API version in sessions
  • Different client per version? (probably not as the API doesn't diverge that much)
  • Different feature handling per version (probably easier to begin with but can get messy)
  • Etc...

UCP: auth using client bundle

Need to investigate if this is possible, as all normal client bundle operations are just Docker/Service(swarm) related.

UCP: Export

Missing CSV Export of:

  • Teams
  • Roles
  • Grants
  • Collections

(determine if pre-defined objects are ignored or migrated too)

Also issues around the UUIDs that are created as part of objects.

use support dump filename provided by ucp api

Support dump filename returned by the ucp api under header Content-Disposition has a nice timestamp, and may soon even include the ucp instance id. Please create support dump file using this name.

UCP: Service Endpoints

Return service endpoints making it easy to access a service from the CLI.

Will perhaps have a dependancy on being able to query nodes.

Upload cve dB

After downloading, please add the functionality to upload as well , the dB gets refreshed everyday,so it should download and upload as well .

Duplicate ucp commands

Downloaded the pre-compiled v0.3 binary and when running ./diver I can see duplicative entries for ucp:

./diver
This tool uses the native APIs to "dive" into Docker EE

Usage:
  diver [command]

Available Commands:
  dtr         Docker Trusted Registry
  help        Help about any command
  store       Docker Store
  ucp         Universal Control Plane 
  ucp         Universal Control Plane             <---
  version     Version and Release information about the diver tool

Flags:
  -h, --help           help for diver
      --logLevel int   Set the logging level [0=panic, 3=warning, 5=debug] (default 4)

Use "diver [command] --help" for more information about a command.

asciinema link

Version: 0.3
Build: 09bdb07f0d66936e873a10d541d3d6d117d9958b

UCP: Service redeploy/rebalance

Used to restart a service and rebalance it across the nodes, the use case is if a node went missing or new nodes have been added to the cluster.

Consistent build environments with Docker

Currently the build environment is not a set location, which can lead to a problematic and non-reproducible build.

Idea is to pin make release to a docker golang container.

DTR: Webhook listner

Create a simple web server that can be used to test web hooks/calls are being generated by DTR

Which UCP Environment?

What up Dan,

Please add some sort of code to display which environment the diver user is currently working on. Currently i have 5 UCP environments configured and i need to know where I'm working when i use this tool.

Thanks

UCP: Nodes

Capability to interact with UCP managers/workers through the CLI. This might be needed for the Service improvements in #54

Enable Color

Hey Dan,

I'm trying to enable color but i get a flag error no matter where i put the flag.

diver ucp services get tasks --color --name loan
diver ucp services get tasks --name loan --color
diver ucp services get --color tasks --name loan

Error: unknown flag: --color

Thanks

UCP: Containers

Additional functionality to view and examine more containers through the UCP API, also tidy output.

UCP service health

Hi Dan,

I'm not getting any info back from the health command.

12:19:25 wcolemanadmin @ wcolemanlp <> Diver0.3 <> ./diver ucp services get health ?
~/bin/DanDiver/Diver0.2
12:19:29 wcolemanadmin @ wcolemanlp <> Diver0.3 <> ./diver ucp services get health loan
~/bin/DanDiver/Diver0.2
12:19:38 wcolemanadmin @ wcolemanlp <> Diver0.3 <> ./diver ucp services get health

Please let me know if i'm using the correct syntax.

Thanks

Smart (API-based) Backup / Restore

Backup / restore can be fragile and sometimes the best way is to just destroy and recreate (either on the same or new infra). Great functionality would be dump out all users/orgs/grants/roles/config (basically everything non-workload related) in a format that can be injected back into a new cluster.

We may already have 90% of what's required here with the auth subcommand, just need a way of writing it out raw, possibly dealing with UUID relationships, and maybe some reformatting of requests.

UCP Internal Error: Ubuntu 16.04 on Azure running EE 17.06 (UCP 2.2.10)

19:16:09 fatal: [localhost]: FAILED! => {"changed": true, "cmd": "diver ucp login --username \"admin\" --password \"XXXXXXXXXXXX\" --url \"https://XX.XX.XX.XX\" --ignorecert", "delta": "0:00:00.719360", "end": "2018-07-15 19:16:08.840696", "msg": "non-zero return code", "rc": 1, "start": "2018-07-15 19:16:08.121336", "stderr": "time=\"2018-07-15T19:16:08Z\" level=fatal msg=\"{\\\"message\\\":\\\"unable to login user on auth provider: API Errors: [\\\\\\\"INTERNAL_ERROR: An internal server error occurred. Contact a system administrator for more information. - Detail: map[requestID:ecab3899-4594-4410-a18d-8afed7153e95]\\\\\\\"]\\\"}\\n\"", "stderr_lines": ["time=\"2018-07-15T19:16:08Z\" level=fatal msg=\"{\\\"message\\\":\\\"unable to login user on auth provider: API Errors: [\\\\\\\"INTERNAL_ERROR: An internal server error occurred. Contact a system administrator for more information. - Detail: map[requestID:ecab3899-4594-4410-a18d-8afed7153e95]\\\\\\\"]\\\"}\\n\""], "stdout": "", "stdout_lines": []}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.