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

Improve cluster targeting #5557

Merged
merged 12 commits into from Mar 11, 2019

Conversation

2 participants
@stgraber
Copy link
Member

stgraber commented Mar 11, 2019

This makes sure we consistently have --target available in the CLI for any endpoint where server-specific data makes sense:

  • lxc config {get,set,show,edit,unset}
  • lxc info
  • lxc network info
  • lxc storage info

It also makes it so the network leases API returns a consistent view of the cluster with a location field.

stgraber added some commits Mar 11, 2019

lxc/info: Add targeting to 'lxc info'
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
lxd: Fix targeting for /1.0 and /1.0/resources
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
lxc/config: Add targeting to 'lxc config'
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
lxc/network: Add targeting to 'lxc network info'
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
lxc/storage: Add targeting to 'lxc storage info'
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
lxd/networks: Allow targeting for state
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
api: Add network_leases_location extension
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
lxd/containers: Export container location
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
shared/api: Add Location to NetworkLeases
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
lxd/networks: Aggregate leases within cluster
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
lxc/network: Show Location column in list-leases
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
i18n: Update translation templates
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>

@brauner brauner merged commit 5445b41 into lxc:master Mar 11, 2019

4 of 5 checks passed

Testsuite Test started
Details
Branch target Branch target is correct
Details
DCO All commits signed-off
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.