use_usb_tablet and pointer_model have different defaults making switching hard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Sahid Orentino |
Bug Description
The use_usb_tablet config option is deprecated in Newton and replaced with the pointer_model config option. The use_usb_tablet option defaults to True, and pointer_model defaults to None, and the only choices are None and 'usbtablet'.
If pointer_model is not set, then use_usb_tablet is used as a fallback while transitioning to the new pointer_model option.
The problem is they have different default values/behaviors.
Currently devstack sets use_usb_
So you can't just remove using use_usb_tablet if you want it disabled (set to False) because the code will use the default and set it to True.
I tried setting pointer_model to '' to get around the None check in the nova code, but that fails because we're using choices with the config option so only None and 'usbtablet' are allowed:
This makes the transition from use_usb_tablet to pointer_model hard for anyone that wants this set to False like devstack does.
We could allow setting '' as a choice for pointer_model to workaround this until use_usb_tablet is gone. We could also default use_usb_tablet to False to mimic pointer_model, but that's a change in default behavior without any warning for a release.
We could also just ignore this and drop use_usb_tablet in Ocata and anyone that was setting it in nova.conf will just not have it picked up and used, but that's annoying for anyone that wants to get ahead of cleaning out deprecation warnings before upgrading to ocata.
Changed in nova: | |
status: | New → Confirmed |
tags: | added: newton-rc-potential |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
assignee: | nobody → sahid (sahid-ferdjaoui) |
Fix proposed to branch: master /review. openstack. org/367909
Review: https:/