[Bug 1434150] Re: missing (anti) affinity support

Felipe Reyes 1434150 at bugs.launchpad.net
Thu Mar 19 16:03:36 UTC 2015


Here I'm attaching a debdiff which adds two patches to fix this issue.

** Patch added: "lp_1434150_trusty.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/python-novaclient/+bug/1434150/+attachment/4350107/+files/lp_1434150_trusty.debdiff

** Summary changed:

- missing (anti) affinity support
+ [SRU] missing (anti) affinity support

** Description changed:

  [Impact]
  
  OpenStack Icehouse deprecates GroupAffinityFilter in favor of
  ServerGroupAffinityFilter[0], but python-novaclient 2.17 doesn't support
  server-group creation[1] and policy definition during instance creation,
  this a bug in terms that the client isn't complete.
  
  [Test Case]
  
  * Deploy an icehouse cloud with ServerGroupAffinityFilter enabled (the default if using juju charms)
  * Create a server group
-    $ nova server-group-create --policy affinity group-1
+    $ nova server-group-create --policy affinity group-1
  * Boot two instances using the previously created group
-   $ nova boot --image IMAGE_ID --flavor 1 --hint group=SERVER_GROUP_UUID vm01
-   $ nova boot --image IMAGE_ID --flavor 1 --hint group=SERVER_GROUP_UUID vm02
+   $ nova boot --image IMAGE_ID --flavor 1 --hint group=SERVER_GROUP_UUID vm01
+   $ nova boot --image IMAGE_ID --flavor 1 --hint group=SERVER_GROUP_UUID vm02
  * Both instances must be running in the same compute node, this can be verified running, as admin: $ nova show INSTANCE_UUID
  
  [Regression Potential]
  
- TBD
+ None expected, this change adds a new command line parameter and a test
+ for it.
  
  [Other Info]
  
  * This problem only affects Trusty, because Utopic ships python-novaclient 2.19 which comes with support for server groups creation.
  * Patch that adds 'server-group-create' operation
-   https://github.com/openstack/python-novaclient/commit/c40891b2824805458db40067ab669d961ecfdfed
+   https://github.com/openstack/python-novaclient/commit/c40891b2824805458db40067ab669d961ecfdfed
  * Patch that adds --policy to nova boot
-   https://github.com/openstack/python-novaclient/commit/376fd9f5bb825e2ce01fc9141c7477f25ac10101
+   https://github.com/openstack/python-novaclient/commit/376fd9f5bb825e2ce01fc9141c7477f25ac10101
  
  [0] http://docs.openstack.org/icehouse/config-reference/content/section_compute-scheduler.html
  [1] http://docs.openstack.org/icehouse/config-reference/content/section_compute-scheduler.html#servergroupaffinityfilter

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-novaclient in Ubuntu.
https://bugs.launchpad.net/bugs/1434150

Title:
  [SRU] missing (anti) affinity support

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-novaclient/+bug/1434150/+subscriptions



More information about the Ubuntu-server-bugs mailing list