Hello Laurent, today I am out of office. Tomorrow I will send the spec value of an instance with server groups and the spec value of an instance without server groups.

Ignazio


Il Mer 6 Apr 2022, 23:25 Laurent Dumont <laurentfdumont@gmail.com> ha scritto:
Nice!

Can you detail the fields you changed? I had a look in the DB for the request_specs and it's a big old JSON blurb.

What fields did you change?

On Wed, Apr 6, 2022, 12:15 PM Ignazio Cassano <ignaziocassano@gmail.com> wrote:
We solved our issue: the spec field in request_specs table was wrong. Non live migration works fine 
Ignazio


Il Mer 6 Apr 2022, 09:05 Ignazio Cassano <ignaziocassano@gmail.com> ha scritto:

We've 2 cases, those VMs are in the same group, one fails when migration is launched, the other working well, you can see output of nova live migration and spec on DB

not working:
https://paste.openstack.org/show/b4QfkVHkUpIC97E3aWAx/
working:
https://paste.openstack.org/show/busPt39bkfUzQthk1Tcf/

Ignazio


Il Mer 6 Apr 2022, 06:53 Laurent Dumont <laurentfdumont@gmail.com> ha scritto:
I cannot easily reproduce, but what does Nova complain about with the live migration? Any chance you can run it with DEBUG?

On Wed, Apr 6, 2022 at 12:34 AM Ignazio Cassano <ignaziocassano@gmail.com> wrote:
Thanks Laurent. Sometimes the trick works and instances can migrate. We do not understand what is wrong when instances fail to migrate.
We are usung soft-anti-affinity policy.
The spec field we inserted in both cases seeems the same.
Ignazio.

Il Mer 6 Apr 2022, 01:03 Laurent Dumont <laurentfdumont@gmail.com> ha scritto:
I'm trying to find where else this was discussed, but afaik, this was never supported.

I am not sure if someone was able to "hack" it's way to a working setup. It's a bit of a shame because it makes server-groups really not flexible :(

On Tue, Apr 5, 2022 at 3:04 PM Ignazio Cassano <ignaziocassano@gmail.com> wrote:
Hello, we noted that instances can be inserted in server groups only at instance creation step but we need to insert in a server group some old instances.

We tried to modify database nova_api server group tables but we noted that we must modify spec in  request_specs table . For us is not clear how to modify the spec value. 
We tried to investigate looking at instances inserted in a server group at creation step and we got issues in instance live migration.
Please, anyone could provide any utility to do it or any template ?
Thanks
Ignazio