yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #56221
[Bug 1621716] [NEW] [server-group] server-group feature can not support multi-node pattern
Public bug reported:
Description
===========
server-group can force instances to place on same host or different host.
but it can not force servers to place on same node or different node.
Node concept represent true hypervisor.
if we can not force instances to hypervisor, server-group is less meaningful.
After all, nova-compute can map to multi-node.
Steps to reproduce
==================
after creating server-group, we boot two instances
nova boot diffCVKVnf1 --flavor 2b32765a-93ef-4bdd-95cc-3203477dedb7
--image cb0d7033-7818-481d-9cfe-700769eac740 --availability-zone
"nova:CentOS7Kilo:CVM192.168.12.52(cvk1252)" --nic net-
id=4fe8add8-82a5-4c0b-b104-cbee13f72a77 --hint group=21bf6740-71d7-4fdb-
ae96-d3fa254e2daa
nova boot diffCVKVnf2 --flavor 2b32765a-93ef-4bdd-95cc-3203477dedb7 --image cb0d7033-7818-481d-9cfe-700769eac740 --availability-zone "nova:CentOS7Kilo:CVM192.168.12.52(cvk1253)" --nic net-id=4fe8add8-82a5-4c0b-b104-cbee13f72a77 --hint group=21bf6740-71d7-4fdb-ae96-d3fa254e2daa
Expected result
===============
creations are successful
Actual result
=============
the second creation failed
Build of instance 1a94a6dc-ba3d-4190-8417-973ffe6609a6 was re-scheduled: Build of instance 1a94a6dc-ba3d-4190-8417-973ffe6609a6 was re-scheduled: Anti-affinity instance group policy was violated.
Environment
===========
openstack version: Mitaka
CentOS7Kilo host have two nodes: CVM192.168.12.52(cvk1253), CVM192.168.12.52(cvk1252)
Code Analysis
==============
affinity_filter is supporting server-group to node level.
so filter is all alright
but when nova-compute validate server-group, it use instances of host to validate.
related function:
nova/compute/manager.py:_do_validation
nova/objects/instance_group.py: get_hosts
** Affects: nova
Importance: Undecided
Assignee: xhzhf (guoyongxhzhf)
Status: New
** Changed in: nova
Assignee: (unassigned) => xhzhf (guoyongxhzhf)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1621716
Title:
[server-group] server-group feature can not support multi-node pattern
Status in OpenStack Compute (nova):
New
Bug description:
Description
===========
server-group can force instances to place on same host or different host.
but it can not force servers to place on same node or different node.
Node concept represent true hypervisor.
if we can not force instances to hypervisor, server-group is less meaningful.
After all, nova-compute can map to multi-node.
Steps to reproduce
==================
after creating server-group, we boot two instances
nova boot diffCVKVnf1 --flavor 2b32765a-93ef-4bdd-95cc-3203477dedb7
--image cb0d7033-7818-481d-9cfe-700769eac740 --availability-zone
"nova:CentOS7Kilo:CVM192.168.12.52(cvk1252)" --nic net-
id=4fe8add8-82a5-4c0b-b104-cbee13f72a77 --hint group=21bf6740-71d7
-4fdb-ae96-d3fa254e2daa
nova boot diffCVKVnf2 --flavor 2b32765a-93ef-4bdd-95cc-3203477dedb7 --image cb0d7033-7818-481d-9cfe-700769eac740 --availability-zone "nova:CentOS7Kilo:CVM192.168.12.52(cvk1253)" --nic net-id=4fe8add8-82a5-4c0b-b104-cbee13f72a77 --hint group=21bf6740-71d7-4fdb-ae96-d3fa254e2daa
Expected result
===============
creations are successful
Actual result
=============
the second creation failed
Build of instance 1a94a6dc-ba3d-4190-8417-973ffe6609a6 was re-scheduled: Build of instance 1a94a6dc-ba3d-4190-8417-973ffe6609a6 was re-scheduled: Anti-affinity instance group policy was violated.
Environment
===========
openstack version: Mitaka
CentOS7Kilo host have two nodes: CVM192.168.12.52(cvk1253), CVM192.168.12.52(cvk1252)
Code Analysis
==============
affinity_filter is supporting server-group to node level.
so filter is all alright
but when nova-compute validate server-group, it use instances of host to validate.
related function:
nova/compute/manager.py:_do_validation
nova/objects/instance_group.py: get_hosts
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1621716/+subscriptions
Follow ups