Earlier  
Posted Nick Remark
#openstack-nova - 2018-06-13
19:03:44 mriedem dansmith: get_minimum_version_all_cells doesn't cache does it
19:04:03 mriedem so on multi-create, we query that for each instance in some cases
19:04:17 dansmith mriedem: doesn't cache what?
19:04:38 melwitt dansmith: +1 on a skip
19:04:43 mriedem the result, like nova.objects.Service.get_minimum_version
19:04:57 dansmith oh, does it
19:05:24 dansmith I think it does if so configured
19:05:52 dansmith although........
19:05:54 dansmith hmm
19:06:05 mriedem not that one
19:06:43 dansmith oh, yep
19:06:47 dansmith it calls the inner
19:06:50 dansmith so yeah, shouldn't
19:07:17 mriedem yeah i'm just leaving a todo about optimizing the calls to that for multicreate in this certs change
19:07:26 melwitt mriedem: +1 on the rebuild logic
19:07:44 dansmith mriedem: we'll have to do something separate so we don't affect the cache when one returns and another hasn't run yet
19:07:52 dansmith (which is what I was hmmming about
19:08:32 mriedem i'm not planning to try and cachify get_minimum_version_all_cells
19:09:29 melwitt jaypipes: yaaay (pugs)
19:19:29 jmlowe Is there something special I have to do to get soft-anti-affinity to work?
19:20:24 mgagne mriedem: so I managed to run it against 2 libvirt instances and so far, the results are good. The allocations are created successfully. Note that I had to hack the inventory values a bit due to dev setup being smaller than production. But allocation values are ok otherwise. Next step for me will be to make sure inventory is fine in prod when migrating to placement (like ratios). But that's a different story.
19:22:20 melwitt jaypipes: http://i0.kym-cdn.com/photos/images/original/001/326/830/821.jpg
19:23:20 mgagne they can learn pretty fast how to spell park...
19:25:03 mriedem jmlowe: using OSC CLI?
19:25:19 jmlowe magnum actually
19:25:30 mriedem jmlowe: is magnum creating the server group?
19:25:37 jmlowe afaik
19:25:57 mriedem jmlowe: then they probably aren't specifying at least microversion 2.15: https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#id13
19:27:55 jmlowe I have this https://review.openstack.org/#/c/436447/
19:28:08 jmlowe so I think they think they are using 2.15
19:28:21 mriedem mgagne: heh, i remember we used to have to spell everything out when talking about that
19:28:30 mriedem kids and dogs, they are the same
19:28:51 mgagne my parents used english =)
19:29:23 mriedem jmlowe: the testing on that patch is spectacular
19:29:44 jmlowe ....
19:30:09 mriedem having said that, i don't speak heat code so not sure what you're seeing for failures
19:30:11 jmlowe my mother did teach me that if I have nothing nice to say
19:30:12 mriedem check the nova-api logs?
19:30:25 mriedem jmlowe: if the server group was created successfully, then that's not the issue
19:30:31 mriedem do you have the proper scheduler filters enabled?
19:30:57 mriedem https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#servergroupaffinityfilter
19:31:04 mriedem note the affinity filters are enabled by default,
19:31:06 mriedem as is the soft weigher
19:31:21 mriedem https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#id15
19:31:25 jaypipes melwitt: :)
19:32:11 mriedem god our docs are confusing for people new to nova and cells v2
19:32:12 mriedem "If cells are used, cells are weighted by the scheduler in the same manner as hosts."
19:32:14 jmlowe http://paste.openstack.org/show/723412/
19:32:30 jmlowe I should have the defaults
19:32:32 mriedem we should asterisk all 'cells' mentions in the docs :)
19:32:57 melwitt bugathon candidate
19:33:04 jmlowe single v2 cell, I'm on pike
19:33:34 mriedem jmlowe: looks like 2.15 isn't specified
19:33:41 jmlowe grumble
19:33:43 mriedem jmlowe: is there something in the logs right before that with the request id and microversion?
19:34:20 mriedem jmlowe: you could just creating one on the command line as a test
19:34:47 mriedem openstack --os-compute-api-version 2.15 server group create --policy soft-anti-affinity jmlowe-test
19:35:21 jmlowe openstack server group create: error: argument --policy: invalid choice: u'soft-anti-affinity' (choose from 'affinity', 'anti-affinity')
19:35:26 jmlowe so...
19:36:02 mgagne mriedem: thanks for allocation healer =)
19:37:12 jmlowe I don't have available_filters or enabled_filters in my nova.conf
19:38:25 jmlowe also default for scheduler_driver
19:40:00 mriedem jmlowe: you have to specify the microversoin with osc
19:40:09 mriedem explicitly, it's not like nova cli
19:40:22 mriedem mgagne: thanks for kicking the tires - glad it's working out for you
19:40:43 mriedem ?
19:40:43 mriedem jmlowe: hmm, which version of osc
19:41:00 mriedem openstack server group create --help
19:41:05 mriedem that will tell you if it's new enough
19:41:12 mgagne mriedem: now time to see how to upgrade to Queens now that part of job is done already =)
19:41:25 jmlowe openstack 3.12.0
19:41:34 mriedem https://review.openstack.org/#/c/521397/
19:41:35 mriedem doh
19:41:38 mriedem you need <= 3.15
19:41:40 mriedem *
19:41:42 mriedem >=3.15
19:42:03 mriedem jmlowe: ooo 3.12.1 https://review.openstack.org/#/c/523858/
19:42:05 mriedem pick that up
19:42:12 mriedem or use nova cli
19:42:48 melwitt +W needed on this change to "reserve" an ironic node up front before beginning the spawn process https://review.openstack.org/563722
19:42:57 melwitt if anyone's interested
19:42:59 jmlowe same error on 3.15.0
19:43:00 mriedem https://docs.openstack.org/python-novaclient/latest/cli/nova.html#nova-server-group-create
19:43:11 mriedem jmlowe: did you specify --os-compute-api-version 2.15?
19:45:55 jmlowe (openstack) Mikes-MacBook-Pro-3:~ jmlowe$ openstack --os-compute-api-version 2.15 server group create --policy soft-anti-affinity jmlowe-test
19:46:29 jmlowe that patch was in my cli
19:47:57 mriedem and that fails?
19:48:08 mriedem ?
19:48:08 mriedem openstack --version
19:49:57 jmlowe X-OpenStack-Nova-API-Version: 2.15 is in the request, ran with debug
19:50:11 jmlowe that version was 3.15.0
19:50:16 mriedem and you got a 400?
19:50:30 jmlowe yes
19:50:35 mriedem pike?
19:50:43 jmlowe yes
19:51:05 jmlowe nova 16.1.4
19:52:45 mriedem this all looks fine to me https://github.com/openstack/nova/blob/stable/pike/nova/api/openstack/compute/server_groups.py#L151
19:53:19 openstackgerrit Matt Riedemann proposed openstack/nova master: Add trusted_image_certificates to REST API https://review.openstack.org/486204
19:53:20 openstackgerrit Matt Riedemann proposed openstack/nova master: Add notification support for trusted_certs https://review.openstack.org/563269
19:53:21 openstackgerrit Matt Riedemann proposed openstack/nova master: Add certificate validation docs https://review.openstack.org/560158

Earlier   Later