Lxc ls not working in project

Hi,

Using lxd 3.6 from snap in Ubuntu 16.04.5 and 18.04.1, If I create a project the ‘lxc list’ doesn’t work after I create a container. The new project manage container and profiles:

manuel@profe-asir2:~$ lxc project create DMZS -c features.images=false
Project DMZS created
manuel@profe-asir2:~$ lxc project list
+-----------------------+--------+----------+---------+
|         NAME          | IMAGES | PROFILES | USED BY |
+-----------------------+--------+----------+---------+
| DMZS                  | NO     | YES      | 1       |
+-----------------------+--------+----------+---------+
| balanceador (current) | NO     | NO       | 4       |
+-----------------------+--------+----------+---------+
| default               | YES    | YES      | 12      |
+-----------------------+--------+----------+---------+
manuel@profe-asir2:~$ lxc project switch DMZS
manuel@profe-asir2:~$ lxc project list
+----------------+--------+----------+---------+
|      NAME      | IMAGES | PROFILES | USED BY |
+----------------+--------+----------+---------+
| DMZS (current) | NO     | YES      | 1       |
+----------------+--------+----------+---------+
| balanceador    | NO     | NO       | 4       |
+----------------+--------+----------+---------+
| default        | YES    | YES      | 12      |
+----------------+--------+----------+---------+
manuel@profe-asir2:~$ lxc list
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
manuel@profe-asir2:~$ lxc launch xenial64 sint -p dmzint
Creating sint
Starting sint
manuel@profe-asir2:~$ lxc list
Error: not found
manuel@profe-asir2:~$ lxc exec sint bash
root@sint:~# 

The container is working and it appears in the project:

manuel@profe-asir2:~$ lxc project show DMZS
description: ""
config:
   features.images: "false"
   features.profiles: "true"
name: DMZS
used_by:
- /1.0/containers/sint?project=DMZS
- /1.0/profiles/FW?project=DMZS
- /1.0/profiles/default?project=DMZS
- /1.0/profiles/dmzext?project=DMZS
- /1.0/profiles/dmzint?project=DMZS
- /1.0/profiles/intranet?project=DMZS

Any idea?

Hm, the steps you pasted don’t quite make sense to me. You’re running lxc list before creating any container, so of course the list is empty. Then you run lxc project show DMZS and it shows as sint container, which I assume was created inbetween. What am I missing?

Did you perhaps not scroll down the output above? :slight_smile:

So this show lxc list itself showing not found which is pretty odd.

@mgregal Can you show lxc list --debug?

@stgraber doh (didn’t scroll indeed)

The same error in another computer (Lubuntu 16.04.5). I show you lxc list --debug

magasix@lxd:~$ lxc list --debug
DBUG[10-26|20:06:33] Connecting to a local LXD over a Unix socket 
DBUG[10-26|20:06:33] Sending request to LXD                   etag= method=GET url=http://unix.socket/1.0
DBUG[10-26|20:06:33] Got response struct from LXD 
DBUG[10-26|20:06:33] 
	{
		"config": {},
		"api_extensions": [
			"storage_zfs_remove_snapshots",
			"container_host_shutdown_timeout",
			"container_stop_priority",
			"container_syscall_filtering",
			"auth_pki",
			"container_last_used_at",
			"etag",
			"patch",
			"usb_devices",
			"https_allowed_credentials",
			"image_compression_algorithm",
			"directory_manipulation",
			"container_cpu_time",
			"storage_zfs_use_refquota",
			"storage_lvm_mount_options",
			"network",
			"profile_usedby",
			"container_push",
			"container_exec_recording",
			"certificate_update",
			"container_exec_signal_handling",
			"gpu_devices",
			"container_image_properties",
			"migration_progress",
			"id_map",
			"network_firewall_filtering",
			"network_routes",
			"storage",
			"file_delete",
			"file_append",
			"network_dhcp_expiry",
			"storage_lvm_vg_rename",
			"storage_lvm_thinpool_rename",
			"network_vlan",
			"image_create_aliases",
			"container_stateless_copy",
			"container_only_migration",
			"storage_zfs_clone_copy",
			"unix_device_rename",
			"storage_lvm_use_thinpool",
			"storage_rsync_bwlimit",
			"network_vxlan_interface",
			"storage_btrfs_mount_options",
			"entity_description",
			"image_force_refresh",
			"storage_lvm_lv_resizing",
			"id_map_base",
			"file_symlinks",
			"container_push_target",
			"network_vlan_physical",
			"storage_images_delete",
			"container_edit_metadata",
			"container_snapshot_stateful_migration",
			"storage_driver_ceph",
			"storage_ceph_user_name",
			"resource_limits",
			"storage_volatile_initial_source",
			"storage_ceph_force_osd_reuse",
			"storage_block_filesystem_btrfs",
			"resources",
			"kernel_limits",
			"storage_api_volume_rename",
			"macaroon_authentication",
			"network_sriov",
			"console",
			"restrict_devlxd",
			"migration_pre_copy",
			"infiniband",
			"maas_network",
			"devlxd_events",
			"proxy",
			"network_dhcp_gateway",
			"file_get_symlink",
			"network_leases",
			"unix_device_hotplug",
			"storage_api_local_volume_handling",
			"operation_description",
			"clustering",
			"event_lifecycle",
			"storage_api_remote_volume_handling",
			"nvidia_runtime",
			"container_mount_propagation",
			"container_backup",
			"devlxd_images",
			"container_local_cross_pool_handling",
			"proxy_unix",
			"proxy_udp",
			"clustering_join",
			"proxy_tcp_udp_multi_port_handling",
			"network_state",
			"proxy_unix_dac_properties",
			"container_protection_delete",
			"unix_priv_drop",
			"pprof_http",
			"proxy_haproxy_protocol",
			"network_hwaddr",
			"proxy_nat",
			"network_nat_order",
			"container_full",
			"candid_authentication",
			"backup_compression",
			"candid_config",
			"nvidia_runtime_config",
			"storage_api_volume_snapshots",
			"storage_unmapped",
			"projects",
			"candid_config_key"
		],
		"api_status": "stable",
		"api_version": "1.0",
		"auth": "trusted",
		"public": false,
		"auth_methods": [
			"tls"
		],
		"environment": {
			"addresses": [],
			"architectures": [
				"x86_64",
				"i686"
			],
			"certificate": "-----BEGIN CERTIFICATE-----\nMIIFPjCCAyagAwIBAgIRALphHC4lFhOaIys1yzH4XWwwDQYJKoZIhvcNAQELBQAw\nMzEcMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzETMBEGA1UEAwwKcm9vdEBh\nc2lyMjAeFw0xODEwMDYxNjQyMzJaFw0yODEwMDMxNjQyMzJaMDMxHDAaBgNVBAoT\nE2xpbnV4Y29udGFpbmVycy5vcmcxEzARBgNVBAMMCnJvb3RAYXNpcjIwggIiMA0G\nCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDIl+nWm9gsVnKXOmeXoSW2TGGw+vme\n/x/DM0qz6NFHMRrHj/d2pn0SX+UBwihszVd9JuSoYcTUTwc6O/aN5qbYuZuH/NCg\n1ubdxuh5az3GEBm8JmmnYTPRX4xNNxy8Z08xzbju8QOgCQ7f5P379S52Ee7smIjV\nyuY0h0scbvy6099K6oplJuVGpeTdJ3M48WOzH76ZKo7tF3Fse//FAwuWKt+us7Wl\nP/Zk4EyR3IxRz+C3MDYIFDJA3bZ1TF9L/KScVopc0S4LXIIuaKZ79qE+GGeJhkCU\nQFXbM3GAnD59wL5jtqjWs26h4lq97Snz7Wq4iQCAWTKjsWq+vD5fshtbbc+Rkwr9\nN6V1cL9ufilGXHu27vlJbLu6U/JC2/o+7NSQxDvNe23flWcZ6lgNsi5QH9mwjFMH\nmPDOOCMOyqyzucjxSwREUB3/wpurXb+CHrCfuMpiHFwHU6jr9BEhQWpRQBbvTdLJ\nKi2A39m1+2LG8xkNg+r8uO5C8J0BoufS5suafG+sr5U0LgeZszP2XOncrShb9ieJ\nuQoFKZlxMLvzYoE2c83rtIxDxCGRHs2m7vjRnnzRyW/4WvasAn1L+KQ8hSMn/5mt\n6EtD7oQblbNsE3MfD5/fU6emZdtHbUSJmqUSiIs4u4vwjvRYFwpFM2I5FLvg/1dW\n+aNtE+NBMYXZLQIDAQABo00wSzAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYI\nKwYBBQUHAwEwDAYDVR0TAQH/BAIwADAWBgNVHREEDzANggVhc2lyMocEwKgBKDAN\nBgkqhkiG9w0BAQsFAAOCAgEAnVpXgaInSKeLEcukKmnqgyxZk17+NVA7E2p/CtBU\nu73PB4ZGOEvi9vyvosJp01J/5dJzF1XOKRnYLj5cHtJrXVOXXMJDP/GsokV2ATlR\nlUmamhrfiKn4Q986BxuiUjgvOyHSwnoMKE2GC9M9DKvMfoCJuXOeaq85naxm3rkU\nrf//vft+Zm7LWXjuZMVK9M0klHMmXnTk8Pl1hlnvSecV2YVWAbszJcNlOdhPG5di\n642HPEMgYdj2cOUP7QoCixAha1/6zA+/orugR49PB/jqx16/91BOhlxm/RwrlUX1\nSETEHM3SubLGK4W0zII/s2q2igr9xOzO35Xlr5U/qCtI0M8/VeF0trE5nl8jAwch\n++h8LeNp7NGuSE2fGlSo895ZtA8lBqJLGn2AsRUX2EpCfBdT785QzgYDfr9sRyF9\nCmJVNehTTDDmvwiGoXnIK5dPs0gMYgVxb1RBlQltqxY0mnRJ0fMQ31VYunLZJoyy\nqzqVixLqUwq/93HYfknkJj9TBx1afSuoJwGv2ciZxU27KrF9qKYd4FnRHWOtE+y+\nRDBohTiD9xsHu+pQJZor9XspqH1s9d+juQ6XtjApxKEFnm+nFoUK6JCAjT2bqJ8B\nahS+Ej3Ew18qN4AgIe+OWjzbUdinchpbm7xY9oTgLlShGZ/cnzKkSwpYLkdQrhU+\nxvY=\n-----END CERTIFICATE-----\n",
			"certificate_fingerprint": "374b0a6047abf4d8a1678772eada34d7f4efc610b99b3a03a717c74105382158",
			"driver": "lxc",
			"driver_version": "3.0.2",
			"kernel": "Linux",
			"kernel_architecture": "x86_64",
			"kernel_version": "4.4.0-137-generic",
			"server": "lxd",
			"server_pid": 3865,
			"server_version": "3.6",
			"storage": "zfs",
			"storage_version": "0.6.5.6-0ubuntu25",
			"server_clustered": false,
			"server_name": "lxd",
			"project": "default"
		}
	} 
DBUG[10-26|20:06:33] Sending request to LXD                   etag= method=GET url="http://unix.socket/1.0/containers?project=DMZS&recursion=2"
Error: not found
magasix@lxd:~$

The container exists and I can use it and see in the zpool:

magasix@lxd:~$ sudo zfs list
NAME                                                                                      USED  AVAIL  REFER  MOUNTPOINT
default                                                                                  2,62G  21,5G    19K  none
default/containers                                                                       2,01G  21,5G    19K  none
default/containers/DMZS_sint                                                             6,30M  21,5G   307M  /var/snap/lxd/common/lxd/storage-pools/default/containers/DMZS_sint

The same project created with -c features.images=false -c features.profiles=false works like a charm.

I can’t reproduce the problem here, using the exact same project name, ZFS backend and container name…

Can you try:

  • snap set lxd daemon.debug=true
  • systemctl reload snap.lxd.daemon

Then reproduce the failing lxc list and send us the content of /var/snap/lxd/common/lxd/logs/lxd.log, hopefully that’ll give us a clue as to what’s causing the failure.

Hi,
In /var/snap/lxd/common/lxd/logs/lxd.log the following lines appear after lxc list:

ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:27:39+0100 url=/1.0
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:27:39+0100 url="/1.0/containers?project=DMZS&recursion=2"
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:27:39+0100
lvl=dbug msg="DBERR: containersGet: error \"No such object\"" t=2018-10-29T21:27:39+0100

The full log:

lvl=info msg="LXD 3.6 is starting in normal mode" path=/var/snap/lxd/common/lxd t=2018-10-29T21:25:07+0100
lvl=info msg="Kernel uid/gid map:" t=2018-10-29T21:25:07+0100
lvl=info msg=" - u 0 0 4294967295" t=2018-10-29T21:25:07+0100
lvl=info msg=" - g 0 0 4294967295" t=2018-10-29T21:25:07+0100
lvl=info msg="Configured LXD uid/gid map:" t=2018-10-29T21:25:07+0100
lvl=info msg=" - u 0 1000000 1000000000" t=2018-10-29T21:25:07+0100
lvl=info msg=" - g 0 1000000 1000000000" t=2018-10-29T21:25:07+0100
lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored." t=2018-10-29T21:25:07+0100
lvl=dbug msg="Failed to set NETLINK_DUMP_STRICT_CHK socket option" t=2018-10-29T21:25:07+0100
lvl=dbug msg="Running kernel does not support netnsid-based network retrieval" t=2018-10-29T21:25:07+0100
lvl=dbug msg="Running kernel does not support uevent injection" t=2018-10-29T21:25:07+0100
lvl=dbug msg="System supports unprivileged file capabilities" t=2018-10-29T21:25:07+0100
lvl=info msg="Initializing local database" t=2018-10-29T21:25:07+0100
lvl=info msg="Initializing database gateway" t=2018-10-29T21:25:07+0100
address= id=1 lvl=info msg="Start database node" t=2018-10-29T21:25:07+0100
lvl=info msg="Raft: Restored from snapshot 1-4143-1540765980815" t=2018-10-29T21:25:07+0100
lvl=info msg="Raft: Initial configuration (index=1): [{Suffrage:Voter ID:1 Address:0}]" t=2018-10-29T21:25:07+0100
lvl=info msg="Raft: Node at 0 [Leader] entering Leader state" t=2018-10-29T21:25:07+0100
lvl=info msg="Dqlite: starting event loop" t=2018-10-29T21:25:07+0100
lvl=dbug msg="Dqlite: accepting connections" t=2018-10-29T21:25:07+0100
lvl=info msg="LXD is socket activated" t=2018-10-29T21:25:07+0100
lvl=info msg="Starting /dev/lxd handler:" t=2018-10-29T21:25:07+0100
lvl=info msg=" - binding devlxd socket" socket=/var/snap/lxd/common/lxd/devlxd/sock t=2018-10-29T21:25:07+0100
lvl=info msg="REST API daemon:" t=2018-10-29T21:25:07+0100
lvl=info msg=" - binding Unix socket" socket=/var/snap/lxd/common/lxd/unix.socket t=2018-10-29T21:25:07+0100
lvl=info msg="Initializing global database" t=2018-10-29T21:25:07+0100
lvl=info msg="Dqlite: handling new connection (fd=22)" t=2018-10-29T21:25:07+0100
lvl=info msg="Dqlite: connected address=0 attempt=0" t=2018-10-29T21:25:07+0100
lvl=info msg="Initializing storage pools" t=2018-10-29T21:25:07+0100
lvl=dbug msg="Initializing and checking storage pool \"default\"" t=2018-10-29T21:25:07+0100
lvl=dbug msg="Checking ZFS storage pool \"default\"" t=2018-10-29T21:25:07+0100
lvl=info msg="Initializing networks" t=2018-10-29T21:25:07+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:07+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=lxdbr0 t=2018-10-29T21:25:07+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:08+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=wan t=2018-10-29T21:25:08+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:08+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=dmz t=2018-10-29T21:25:08+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:08+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=lan t=2018-10-29T21:25:08+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:09+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=internet t=2018-10-29T21:25:09+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:09+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=dmzint t=2018-10-29T21:25:09+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:09+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=dmzext t=2018-10-29T21:25:09+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:10+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=intranet t=2018-10-29T21:25:10+0100
lvl=dbug msg="Connecting to a remote simplestreams server" t=2018-10-29T21:25:10+0100
lvl=dbug msg="Connecting to a remote simplestreams server" t=2018-10-29T21:25:10+0100
lvl=info msg="Pruning leftover image files" t=2018-10-29T21:25:10+0100
lvl=info msg="Done pruning leftover image files" t=2018-10-29T21:25:10+0100
lvl=info msg="Loading configuration" t=2018-10-29T21:25:10+0100
lvl=dbug msg="Initialized inotify with file descriptor 3" t=2018-10-29T21:25:10+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:10+0100
lvl=eror msg="Failed to load containers: No such object" t=2018-10-29T21:25:10+0100
lvl=info msg="Connected to MAAS controller" t=2018-10-29T21:25:10+0100
lvl=info msg="Pruning expired images" t=2018-10-29T21:25:10+0100
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:25:10+0100 url=/1.0
lvl=info msg="Done pruning expired images" t=2018-10-29T21:25:10+0100
lvl=info msg="Expiring log files" t=2018-10-29T21:25:10+0100
lvl=info msg="Updating instance types" t=2018-10-29T21:25:10+0100
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:25:10+0100 url=/internal/ready
lvl=info msg="Updating images" t=2018-10-29T21:25:10+0100
lvl=info msg="Done expiring log files" t=2018-10-29T21:25:10+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:10+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"sql: no rows in result set\"}" t=2018-10-29T21:25:10+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:10+0100
err="No such object" lvl=eror msg="Problem loading containers list" t=2018-10-29T21:25:10+0100
alias=x fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:10+0100
lvl=dbug msg="Connecting to a remote simplestreams server" t=2018-10-29T21:25:10+0100
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:25:10+0100 url=/1.0
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:25:10+0100 url=/internal/ready
image=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
alias=x/i386 fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"sql: no rows in result set\"}" t=2018-10-29T21:25:12+0100
alias=x fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
alias=x/i386 fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"sql: no rows in result set\"}" t=2018-10-29T21:25:12+0100
alias=x fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
alias=x/i386 fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"sql: no rows in result set\"}" t=2018-10-29T21:25:12+0100
alias=x fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
alias=x/i386 fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"sql: no rows in result set\"}" t=2018-10-29T21:25:12+0100
alias=x fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=ee5129ec7855ae748a64d001a0f5de0f21740752175ce2223873da9d53fc3af1 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
alias=x/i386 fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Processing image" protocol=simplestreams server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
expiry=2018-10-29T22:25:12+0100 lvl=dbug msg="Using SimpleStreams cache entry" server=https://cloud-images.ubuntu.com/releases t=2018-10-29T21:25:12+0100
image=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Image already exists in the db" t=2018-10-29T21:25:12+0100
lvl=dbug msg="Image already exists on storage pool \"default\"" t=2018-10-29T21:25:12+0100
fp=eff69f00b5ec53490277aacc310780f9c888a8eedb63163899d7abd1c7500350 lvl=dbug msg="Already up to date" t=2018-10-29T21:25:12+0100
lvl=info msg="Done updating images" t=2018-10-29T21:25:12+0100
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:25:13+0100 url=/1.0
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:25:13+0100 url="/1.0/containers?project=DMZS&recursion=2"
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:13+0100
lvl=dbug msg="DBERR: containersGet: error \"No such object\"" t=2018-10-29T21:25:13+0100
lvl=info msg="Done updating instance types" t=2018-10-29T21:25:14+0100
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:26:10+0100 url=/1.0
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:26:10+0100 url="/1.0/projects?project=DMZS&recursion=1"
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:26:17+0100 url=/1.0
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:26:17+0100 url="/1.0/containers?project=DMZS&recursion=2"
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:26:17+0100
lvl=dbug msg="DBERR: containersGet: error \"No such object\"" t=2018-10-29T21:26:17+0100
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:26:51+0100 url=/1.0
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:26:51+0100 url="/1.0/containers?project=DMZS&recursion=2"
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:26:51+0100
lvl=dbug msg="DBERR: containersGet: error \"No such object\"" t=2018-10-29T21:26:51+0100
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:27:39+0100 url=/1.0
ip=@ lvl=dbug method=GET msg=handling t=2018-10-29T21:27:39+0100 url="/1.0/containers?project=DMZS&recursion=2"
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:27:39+0100
lvl=dbug msg="DBERR: containersGet: error \"No such object\"" t=2018-10-29T21:27:39+0100

I don’t know if these messages are normal but the networks (created using lxc network create) are running ok:

lvl=info msg="Initializing networks" t=2018-10-29T21:25:07+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:07+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=lxdbr0 t=2018-10-29T21:25:07+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:08+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=wan t=2018-10-29T21:25:08+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:08+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=dmz t=2018-10-29T21:25:08+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:08+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=lan t=2018-10-29T21:25:08+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:09+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=internet t=2018-10-29T21:25:09+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:09+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=dmzint t=2018-10-29T21:25:09+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:09+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=dmzext t=2018-10-29T21:25:09+0100
lvl=dbug msg="Database error: &errors.errorString{s:\"No such object\"}" t=2018-10-29T21:25:10+0100
err="No such object" lvl=eror msg="Failed to bring up network" name=intranet t=2018-10-29T21:25:10+0100

Salutes

I can reproduce the problem in another machine following the next steps:

$ lxc project create DMZS -c features.images=false
$lxc project switch DMZS
$ lxc profile create intranet
$ lxc profile edit intranet
config: {}
description: Perfil intranet
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdbr0
    type: nic
  root:
    path: /
    pool: lxd
    type: disk
name: intranet
used_by: []
$ lxc launch xenial64 sint -p intranet
$ lxc ls
Error: not found

In another pcs of the classroom the same thing happens, but If I create the project with features.profiles: "false" there is no problem.

Yep, that those it with those instructions, thanks.

Looks like @freeekanayaka fixed most of this issue earlier today, though there’s still a slight problem with other callers of containerLoadNodeAll failing with the same error.

https://github.com/lxc/lxd/issues/5222 is a follow-up bug report to this one.
Once we get that fixed too, I’ll push an update to the snap.

thanks a lot!!

The project feature is a great idea and I’ll use a lot in my classes. My students will create a project for a concrete infrastruture with all containers and profiles. They’ll have all organized and will not mix containers/profiles of other projects.

Hi,

Solved. I’m running snap version: 3.6 (9412)

Thanks

1 Like