)]}'
{"tasks/nova_compute_kvm_libvirt_python.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"172bb5dc5df0c734cb72fc6f1a859e6538f9a0f8","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Register libvirt module path"},{"line_number":17,"context_line":"  command: python -c \u0027import libvirt; print libvirt.__file__\u0027"},{"line_number":18,"context_line":"  changed_when: false"},{"line_number":19,"context_line":"  register: libvirt_module_path"},{"line_number":20,"context_line":"  tags:"},{"line_number":21,"context_line":"    - nova-libvirt-python-libs"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"- name: Register libvirt file paths"},{"line_number":24,"context_line":"  shell: \u003e"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_44c86f74","line":21,"range":{"start_line":16,"start_character":0,"end_line":21,"end_character":30},"updated":"2016-11-18 11:44:20.000000000","message":"What happens if the package is not installed? Does this return .rc \u003d\u003d 1 ?","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"55633f9720e1f1334f633934a6ce6846c7915e6e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":14,"context_line":"# limitations under the License."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"- name: Register libvirt module path"},{"line_number":17,"context_line":"  command: python -c \u0027import libvirt; print libvirt.__file__\u0027"},{"line_number":18,"context_line":"  changed_when: false"},{"line_number":19,"context_line":"  register: libvirt_module_path"},{"line_number":20,"context_line":"  tags:"},{"line_number":21,"context_line":"    - nova-libvirt-python-libs"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"- name: Register libvirt file paths"},{"line_number":24,"context_line":"  shell: \u003e"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_9fa1f4fa","line":21,"range":{"start_line":16,"start_character":0,"end_line":21,"end_character":30},"in_reply_to":"7a77a97e_44c86f74","updated":"2016-11-18 12:22:57.000000000","message":"Yep\n\n$ python -c \u0027import libvirt; print libvirt.__file__\u0027\nTraceback (most recent call last):\n  File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\nImportError: No module named libvirt\n$ echo $?\n1","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"}],"tasks/nova_install.yml":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"c842fa493acbd5c384951b85237092baab9a549c","unresolved":false,"context_lines":[{"line_number":115,"context_line":"    - nova-install"},{"line_number":116,"context_line":"    - nova-pip-packages"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"# Redhat based distro uses nova_compute_pip_packages containing libvirt-python"},{"line_number":119,"context_line":"# The workaround here for LP #1641131 only applies to Ubuntu."},{"line_number":120,"context_line":"- name: Link python-libvirt in to venv"},{"line_number":121,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":122,"context_line":"  when:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"7a77a97e_8f996971","line":119,"range":{"start_line":118,"start_character":0,"end_line":119,"end_character":61},"updated":"2016-11-15 12:54:08.000000000","message":"Oh really? If this is the case then we should abandon this patch as there\u0027s no problem - currently.\n\nI am inclined to rather abandon this approach. Clearly this is not *currently* a problem. If this becomes a problem then we can restore this patch and finalise it with the more specific issue in mind.","commit_id":"7092d0c2b54e2f0434ee533652cbd231e5b5257a"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8f8e668a0e402491baa42ee15d8132fda73113fa","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    - nova-install"},{"line_number":119,"context_line":"    - nova-pip-packages"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"# Redhat based distro uses nova_compute_pip_packages containing libvirt-python"},{"line_number":122,"context_line":"# The workaround here for LP #1641131 only applies to Ubuntu."},{"line_number":123,"context_line":"- name: Link python-libvirt in to venv"},{"line_number":124,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":125,"context_line":"  when:"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"7a77a97e_822746b5","line":122,"range":{"start_line":121,"start_character":0,"end_line":122,"end_character":61},"updated":"2016-11-16 13:27:44.000000000","message":"It looks like this comment no longer applies.","commit_id":"093fc5ce94e42800f7e524cd167c68f532e4d40b"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"8f8e668a0e402491baa42ee15d8132fda73113fa","unresolved":false,"context_lines":[{"line_number":124,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":125,"context_line":"  when:"},{"line_number":126,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""},{"line_number":127,"context_line":"    - \"{{ nova_virt_type \u003d\u003d \u0027kvm\u0027 or nova_virt_type \u003d\u003d \u0027qemu\u0027 }}\""},{"line_number":128,"context_line":"    - \"{{ \u0027python-libvirt\u0027 in nova_compute_kvm_distro_packages }}\""},{"line_number":129,"context_line":"  tags:"},{"line_number":130,"context_line":"    - nova-install"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"7a77a97e_421fee5e","line":127,"range":{"start_line":127,"start_character":0,"end_line":127,"end_character":65},"updated":"2016-11-16 13:27:44.000000000","message":"Are we sure that this only applies to these virt_types?\n\nWhat happens for other virt_types? Do they need libvirt-python added to their package lists?","commit_id":"093fc5ce94e42800f7e524cd167c68f532e4d40b"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"ede7c9aa2957965bcab29b87372dbc4a68a5382e","unresolved":false,"context_lines":[{"line_number":119,"context_line":"    - nova-pip-packages"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"# Redhat based distro uses nova_compute_pip_packages containing libvirt-python"},{"line_number":122,"context_line":"# The workaround here for LP #1641131 only applies to Ubuntu."},{"line_number":123,"context_line":"- name: Link python-libvirt in to venv"},{"line_number":124,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":125,"context_line":"  when:"}],"source_content_type":"text/x-yaml","patch_set":8,"id":"7a77a97e_e55439ff","line":122,"updated":"2016-11-17 18:29:17.000000000","message":"Need to remove this comment... waiting to push a new patch till the tests finish on this.","commit_id":"2c7fc384d8f38411aa243a31cddd51e9d4e0fba2"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"df41c37ee56b6bcd030f736caf97dbe688a0640c","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    - nova-install"},{"line_number":119,"context_line":"    - nova-pip-packages"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"- name: Link python-libvirt in to venv"},{"line_number":122,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_7a15069a","line":121,"updated":"2016-11-18 12:29:49.000000000","message":"One more question here. Let\u0027s say the distro package gets updated - do the links remain valid?","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"f37573d5f7fb6217e72c5a5681ff0284368f9cb8","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    - nova-install"},{"line_number":119,"context_line":"    - nova-pip-packages"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"- name: Link python-libvirt in to venv"},{"line_number":122,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_7a3426fb","line":121,"in_reply_to":"7a77a97e_7a15069a","updated":"2016-11-18 12:47:22.000000000","message":"Sure, as long as the filenames do not change. I thought about this some previously and maybe we could refactor the install process to trigger a reinstall of the venv even if the tag has not changed, if we detect a changed state on the apt package install task for libvirt-python package only, to force a reinitialization of the links. Might get kinda ugly though?\n\nThe main thing we\u0027d achieve there is a forced immediate cleanup of old links, no advantage pertaining to new links because they\u0027ll get updated/added by the linking tasks.","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"15383153cb818170a14e3a21feafc9a0c6af2612","unresolved":false,"context_lines":[{"line_number":118,"context_line":"    - nova-install"},{"line_number":119,"context_line":"    - nova-pip-packages"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"- name: Link python-libvirt in to venv"},{"line_number":122,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_dfb8c92c","line":121,"in_reply_to":"7a77a97e_7a3426fb","updated":"2016-11-18 13:11:44.000000000","message":"My concern is more for the situation where an Operator executes and apt-get upgrade without using the os-nova-install playbook, then stuff breaks.\n\nMaybe we can be cleverer with this in some way - put some sort of artifact into the venv which tells the deploying node which version/package the libvirt-python wheel was built from, then react to that.\n\nIt seems an awful lot of machinery though - machinery that\u0027s prone to error.\n\nIf you have a gap, can you test UCA vs non-UCA packages to see if the filenames change between the versions. You\u0027d have to use Trusty for the test. Or Xenial versus CentOS.","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"172bb5dc5df0c734cb72fc6f1a859e6538f9a0f8","unresolved":false,"context_lines":[{"line_number":122,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""},{"line_number":125,"context_line":"    - \"{{ nova_virt_type \u003d\u003d \u0027kvm\u0027 or nova_virt_type \u003d\u003d \u0027qemu\u0027 }}\""},{"line_number":126,"context_line":"    - \"{{ \u0027python-libvirt\u0027 in nova_compute_kvm_distro_packages }}\""},{"line_number":127,"context_line":"  tags:"},{"line_number":128,"context_line":"    - nova-install"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_04d597e6","line":125,"range":{"start_line":125,"start_character":0,"end_line":125,"end_character":65},"updated":"2016-11-18 11:44:20.000000000","message":"So I assume that the LXD and PowerVM hypervisors do not make use of libvirt?","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"55633f9720e1f1334f633934a6ce6846c7915e6e","unresolved":false,"context_lines":[{"line_number":122,"context_line":"  include: nova_compute_kvm_libvirt_python.yml"},{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""},{"line_number":125,"context_line":"    - \"{{ nova_virt_type \u003d\u003d \u0027kvm\u0027 or nova_virt_type \u003d\u003d \u0027qemu\u0027 }}\""},{"line_number":126,"context_line":"    - \"{{ \u0027python-libvirt\u0027 in nova_compute_kvm_distro_packages }}\""},{"line_number":127,"context_line":"  tags:"},{"line_number":128,"context_line":"    - nova-install"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_5f711c43","line":125,"range":{"start_line":125,"start_character":0,"end_line":125,"end_character":65},"in_reply_to":"7a77a97e_04d597e6","updated":"2016-11-18 12:22:57.000000000","message":"Does not appear to\n\nhttp://cdn.pasteraw.com/6gklyffbx4yhlyo8amxfd20tetchu7t","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"172bb5dc5df0c734cb72fc6f1a859e6538f9a0f8","unresolved":false,"context_lines":[{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""},{"line_number":125,"context_line":"    - \"{{ nova_virt_type \u003d\u003d \u0027kvm\u0027 or nova_virt_type \u003d\u003d \u0027qemu\u0027 }}\""},{"line_number":126,"context_line":"    - \"{{ \u0027python-libvirt\u0027 in nova_compute_kvm_distro_packages }}\""},{"line_number":127,"context_line":"  tags:"},{"line_number":128,"context_line":"    - nova-install"},{"line_number":129,"context_line":"    - nova-compute-kvm-apt-packages"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_c4e63fe7","line":126,"range":{"start_line":126,"start_character":0,"end_line":126,"end_character":66},"updated":"2016-11-18 11:44:20.000000000","message":"This seems like overkill if the condition above is included - what\u0027re we trying to prevent here?","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"0420b5f9c57d6125d3e2560f518f00b5b6674588","unresolved":false,"context_lines":[{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""},{"line_number":125,"context_line":"    - \"{{ nova_virt_type \u003d\u003d \u0027kvm\u0027 or nova_virt_type \u003d\u003d \u0027qemu\u0027 }}\""},{"line_number":126,"context_line":"    - \"{{ \u0027python-libvirt\u0027 in nova_compute_kvm_distro_packages }}\""},{"line_number":127,"context_line":"  tags:"},{"line_number":128,"context_line":"    - nova-install"},{"line_number":129,"context_line":"    - nova-compute-kvm-apt-packages"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_facd9666","line":126,"range":{"start_line":126,"start_character":0,"end_line":126,"end_character":66},"in_reply_to":"7a77a97e_1ff7a48b","updated":"2016-11-18 12:26:34.000000000","message":"Actually we were already installing the distro package. I wonder if that was necessary when we were installing from pip. Maybe that revert would not work.\n\nMaybe the failsafe here should check for libvirt-python in nova_compute_pip_packages instead?","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"6d62a06e8d7729602f5913af5d8f9a3dcb85a623","unresolved":false,"context_lines":[{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""},{"line_number":125,"context_line":"    - \"{{ nova_virt_type \u003d\u003d \u0027kvm\u0027 or nova_virt_type \u003d\u003d \u0027qemu\u0027 }}\""},{"line_number":126,"context_line":"    - \"{{ \u0027python-libvirt\u0027 in nova_compute_kvm_distro_packages }}\""},{"line_number":127,"context_line":"  tags:"},{"line_number":128,"context_line":"    - nova-install"},{"line_number":129,"context_line":"    - nova-compute-kvm-apt-packages"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_1cbdefd7","line":126,"range":{"start_line":126,"start_character":0,"end_line":126,"end_character":66},"in_reply_to":"7a77a97e_3a49ced0","updated":"2016-11-18 12:49:39.000000000","message":"Done -- good catch :)","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"55633f9720e1f1334f633934a6ce6846c7915e6e","unresolved":false,"context_lines":[{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""},{"line_number":125,"context_line":"    - \"{{ nova_virt_type \u003d\u003d \u0027kvm\u0027 or nova_virt_type \u003d\u003d \u0027qemu\u0027 }}\""},{"line_number":126,"context_line":"    - \"{{ \u0027python-libvirt\u0027 in nova_compute_kvm_distro_packages }}\""},{"line_number":127,"context_line":"  tags:"},{"line_number":128,"context_line":"    - nova-install"},{"line_number":129,"context_line":"    - nova-compute-kvm-apt-packages"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_1ff7a48b","line":126,"range":{"start_line":126,"start_character":0,"end_line":126,"end_character":66},"in_reply_to":"7a77a97e_c4e63fe7","updated":"2016-11-18 12:22:57.000000000","message":"An operator could override the packages dict and revert the role to the old functionality if preferred. ie using\nnova_compute_kvm_distro_packages:\n  - everything except python-libvirt\n\nnova_compute_pip_packages:\n  - libvirt-python\n\nAnd get rid of the linking if their environment accommodates it. I\u0027m considering doing this once we get completely on Newton/Xenial. Not 100% necessary to have this but a prudent failsafe I think.","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"},{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"df41c37ee56b6bcd030f736caf97dbe688a0640c","unresolved":false,"context_lines":[{"line_number":123,"context_line":"  when:"},{"line_number":124,"context_line":"    - \"{{ \u0027nova_compute\u0027 in group_names }}\""},{"line_number":125,"context_line":"    - \"{{ nova_virt_type \u003d\u003d \u0027kvm\u0027 or nova_virt_type \u003d\u003d \u0027qemu\u0027 }}\""},{"line_number":126,"context_line":"    - \"{{ \u0027python-libvirt\u0027 in nova_compute_kvm_distro_packages }}\""},{"line_number":127,"context_line":"  tags:"},{"line_number":128,"context_line":"    - nova-install"},{"line_number":129,"context_line":"    - nova-compute-kvm-apt-packages"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"7a77a97e_3a49ced0","line":126,"range":{"start_line":126,"start_character":0,"end_line":126,"end_character":66},"in_reply_to":"7a77a97e_facd9666","updated":"2016-11-18 12:29:49.000000000","message":"Hmm, perhaps yes - rather check that the python package is *not* in the python package list.","commit_id":"2e8a6ffd60f17a7177fcd42537e2fcc39b4910f7"}]}
