-
Notifications
You must be signed in to change notification settings - Fork 673
[WIP] Show some IPAM stats with "weave status ipam" #1702
Conversation
63d50b6
to
14eaef0
Compare
and this PR then repeats some of that information:
This is different to And the name |
5ab27fb
to
55657ea
Compare
Note that two peers can have the same nickname; this happens when you |
Please bear in mind the issue (#1639) that this is meant to address. What is the most useful information we can show ? |
55657ea
to
7e2444c
Compare
Currently I have it like this:
So it's possible to see we have two instances of |
ok. need to think about what to put in the I am not keen on showing lists mixed with other stuff. Perhaps we should just show what you currently have under "Ownerships"? (I don't think we need "Containers", plus I think it's confusing, since it's local-only) |
cf3142d
to
a7e3733
Compare
OK, now we have this warning in the main
And
|
hmm. We may want to revise our terminology here. Sounds a lot like "success - it's completely broken!" |
Latest version:
Maybe "Consensus: halted - ..." would be better for people parsing the output? It's not really the consensus that is halted. |
perhaps go for the more generic "Status", with values of "idle", "awaiting consensus", "all IPs owned by unreachable peers - waiting for them to come online or be removed with 'rmpeer'", "ready". or something like that. |
Note I have changed the implementation recently:
|
The code currently prints the nickname of the local node as |
ditch the |
OK, now we have:
("idle" is the old "deferred") and "local" is gone. |
should we have a state indication about pending requests? Which can happen in all except the idle state, but I think is mainly interesting in the 'ready' state. Perhaps we could split 'ready' into 'ready' and 'waiting for space grant from other peers' (or something like that). |
There can be pending allocations (any address in a subnet) and pending claims (one specific address). The former generally indicates someone is blocked; the latter may or may not (it's ok to continue using an address that is "owned" by a peer that is actually dead). So I will print a message for pending allocations only. |
OK, now we have:
It isn't possible to see exactly who we are waiting for, even using |
I would ditch the "ready" bit. |
also "space" is an odd term. "waiting for IP address grant from peers"? or "IP address range". or "IP range". or "IP". |
Now If no further comments I will squash the commits. |
please show an example of the output of the ipam section of |
f1f3eb0
to
fd4c9e3
Compare
Needs buttery base |
Don't use the word "universe" in user-visible output; it is an internal term. Removed everything but owned ranges from 'weave status ipam' results, for consistency with similar functions
so we can print the peer name for each ownership. Also avoid crashing if we don't own anything
Previously the count of tokens was claimed to be a count of addresses in use, which is incorrect. Also rename `appendAddresses` to `appendOwned` since it doesn't involve addresses.
and unnecessary info from `weave report` output
following review in #1702
- if it's broken you might appreciate being able to print it out
fcf2dfd
to
8bbf823
Compare
Rebased |
@bboreham I suspect you missed my other comments about the |
the alignment is consistent with previous code; it doesn't work if your hostname is over 9 chars long |
Updated sample output:
and updated
|
Show some IPAM stats with `weave status ipam`
Fixes #1639