Public bug reported:
Neither man 1 lxc nor the bare 'lxc profile' command mention 'unset' for
configuration variables. I had to read the code to discover there was an
unset option along with get, set, edit, etc.
e.g.
$ lxc profile
Manage configuration profiles.
lxc profile list [filters] List available profiles.
lxc profile show <profile> Show details of a profile.
lxc profile create <profile> Create a profile.
lxc profile copy <profile> <remote> Copy the profile to the
specified remote.
lxc profile get <profile> <key> Get profile configuration.
lxc profile set <profile> <key> <value> Set profile configuration.
lxc profile delete <profile> Delete a profile.
lxc profile edit <profile>
Edit profile, either by launching external editor or reading STDIN.
Example: lxc profile edit <profile> # launch editor
cat profile.yml | lxc profile edit <profile> # read from
profile.yml
lxc profile apply <container> <profiles>
Apply a comma-separated list of profiles to a container, in order.
All profiles passed in this call (and only those) will be applied
to the specified container.
Example: lxc profile apply foo default,bar # Apply default and bar
lxc profile apply foo default # Only default is active
lxc profile apply '' # no profiles are applied anymore
lxc profile apply bar,default # Apply default second now
Devices:
lxc profile device list <profile> List
devices in the given profile.
lxc profile device show <profile> Show full
device details in the given profile.
lxc profile device remove <profile> <name> Remove a
device from a profile.
lxc profile device get <[remote:]profile> <name> <key> Get a
device property.
lxc profile device set <[remote:]profile> <name> <key> <value> Set a
device property.
lxc profile device unset <[remote:]profile> <name> <key> Unset a
device property.
lxc profile device add <profile name> <device name> <device type> [key=value]...
Add a profile device, such as a disk or a nic, to the containers
using the specified profile.
error: wrong number of subcommand arguments
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 2.0.2-0ubuntu1~16.04.1
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Tue Jun 14 15:18:51 2016
InstallationDate: Installed on 2016-05-29 (16 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64
(20160420.3)
SourcePackage: lxd
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug xenial
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1592529
Title:
lxc profile unset undocumented
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1592529/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs