Tom Parrott

Results 1094 comments of Tom Parrott

Try doing `lxd sql global 'select * from profiles'` or `lxd sql global 'select count(*) from profiles'`

> Count gives me 616 > > just doing the select and dumping the table is pretty quick: > > ``` > time lxd sql global 'select * from profiles'...

> To fix this, Incus just increased the timeout for transacions, as can be seen [here](https://github.com/lxc/incus/pull/1140/commits/0fc84c888a1301f7ff3dd8ed956706fefcd0b232). The other improvements for listing profiles on the same PR are already on LXD...

> But mind that caching alone would not fix this issue, so this is probably why they bumped their timeout. What is the issue then (I mean the one from...

Yeah this is a bug as `lxd init` shouldnt be using `nictype` to reference a managed network and should instead by using `network`.

> Could it be that the current configuration in the profile already defines NIC with name `eth0` that uses `network` property? What do you get on a fresh system with...

Ah yeah I'm happy to see that lxd init is using `network` option and not `parent`: ``` Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]:...

@mmokrejs when you imported the config from `lxd init`, was it on a fresh system or did it have existing configuration?

OK, lets close this for now, but if you encounter this again let us know. As @MusicDin mentioned, it sounds like there was already conflicting historical config on your LXD...