Comments (13)
For that one, I think I'd recommend:
- Send an initial PR moving
incusd init
toincus admin init
- Then do
incusd cluster
toincus admin cluster
- Then remove
import
fromincusd
and moverecover
toincus admin recover
- Finally move
activateifneeded
,shutdown
andwaitready
That should leave us with nothing other than the boilerplate help
and version
commands as well as the hidden internal subcommands (mostly forkXYZ
).
from incus.
Hmm, I didn't think of trying to undo the incus config
for both instance and server settings but that's something that may be worth thinking about.
My current plan was to make incus admin
restricted to local use only, so no support for remotes or anything at that level, effectively matching what we had with the lxd XYZ
commands as those may rely on internal unix-only APIs.
Maybe we should have a separate incus server
sub-command with the usual set of set/unset/show/edit/info
.
Essentially moving the server config logic over to that and keeping the top-level commands focused on instances.
from incus.
This really would make things a lot nicer. Nee-lxd init
was always a weird command to deal with. Is there a nice way to move the daemon configuration stuff from inc config
to incus admin
as well? I always felt it was strange that daemon and workload configuration was done through the same subcommand. Or would the plan just be to move the daemon subcommands?
from incus.
Sounds good!
from incus.
@stgraber I would like to work on this. Would it be possible to assign this to me?
from incus.
Thanks @stgraber. Those recommendations help a lot.
from incus.
@sharathsivakumar how's that going?
from incus.
@stgraber Sorry was sick for the last few weeks. I am back to work this week. Looking to get the first PR out before the end of this week. Hope that's fine.
from incus.
-
incusd init
toincus admin init
WIP: #79 -
incusd cluster
toincus admin cluster
(Will be skipped) -
incusd recover
toincus admin recover
#107 -
incusd sql
toincus admin sql
done in #97 -
incusd shutdown
toincus admin shutdown
#99 -
incusd waitready
toincus admin waitready
#100
from incus.
Hey @sharathsivakumar, this is starting to become a bit more of a blocker than it once was, so I'm planning on spending some time tomorrow in my weekly live stream going through a bunch of those so we can close this issue ahead of Incus 0.1.
Let me know if you have some existing partial code, or better, open a draft PR with anything you have and I'll take it from there!
from incus.
@stgraber I have partial code for recover and sql. I will create a few PRs for all those I worked and you can take it from there.
from incus.
@sharathsivakumar thanks!
from incus.
Thanks to @sharathsivakumar we now have everything we can move, moved to the incus admin
space.
I'll now take this over and send a small follow-up to:
- Tidy up the help of
incusd
- Introduce an
incus admin cluster
sub-command which attempts to redirect toincusd admin cluster
or tells the user that cluster recovery must be done throughincusd
- Do a quick look over the new
admin XYZ
commands to make sure they're in line with other client commands, thinking specifically about getting all their strings included in the translation template.
And that will be a wrap on that one.
from incus.
Related Issues (20)
- lxd-to-incus - check shift=true availability on target before migrating HOT 6
- is there a roadmap for the first lts version's release HOT 2
- Builds from releases fail because of broken OpenFGA canonical imports HOT 10
- Cannot attach USB devices without Incus agent running in the VM HOT 1
- Upgrade with offline cluster member results in whole cluster becoming unavailable HOT 3
- Improve idmap detection/handling HOT 2
- upgrading incus from 0.3 to 0.4 unmounted `/proc` in the container HOT 12
- lxd-to-incus not working with headless server HOT 5
- launch on a specific cluster group fails HOT 3
- Chocolatey link goes to LXD client package instead of incus HOT 1
- Don't expand ipvX.address/ipvX.nat when joining a cluster HOT 2
- Unable to use a USB NIC with nic=physical HOT 4
- Disable OVN gateway chassis when evacuated
- Setting the openfga properties breaks incus admin init --preseed HOT 7
- Add `glusterfs` storage driver HOT 8
- incus remote add --auth-type oidc unable to create the configuration file error HOT 6
- a user in the operator role cannot launch an instance HOT 3
- Lxd-to-incus should also look in /var/snap/lxd HOT 3
- incus-lxcfs can't find /usr/bin/mkdir HOT 3
- support fish shell completions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incus.