)]}'
{"elements/amphora-agent/post-install.d/90-remove-build-deps":[{"author":{"_account_id":11628,"name":"Michael Johnson","email":"johnsomor@gmail.com","username":"johnsom"},"change_message_id":"89e76ad2dcc6ce958f2b113b75e5d8715a66d8b0","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"case $DISTRO_NAME in"},{"line_number":13,"context_line":"    ubuntu | debian )"},{"line_number":14,"context_line":"        apt-get --assume-yes purge --auto-remove build-essential libffi-dev libssl-dev python-dev"},{"line_number":15,"context_line":"    ;;"},{"line_number":16,"context_line":"    fedora | centos* | rhel* )"},{"line_number":17,"context_line":"        ${YUM} -v -y remove automake make gcc gcc-c++ kernel-devel libffi-devel openssl-devel python-devel platform-python-devel"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"9fdfeff1_cb0f2837","line":14,"range":{"start_line":14,"start_character":87,"end_line":14,"end_character":97},"updated":"2019-02-25 16:57:52.000000000","message":"This is a version dependent package, i.e. python3-dev.\nWe might need to be smarter here.","commit_id":"0278b68715549660e6fe863064e8c3b14dd50b54"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"36f982e3bb8db231a6aa588c7652edbfad3c1d93","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"case $DISTRO_NAME in"},{"line_number":13,"context_line":"    ubuntu | debian )"},{"line_number":14,"context_line":"        apt-get --assume-yes purge --auto-remove build-essential libffi-dev libssl-dev python-dev"},{"line_number":15,"context_line":"    ;;"},{"line_number":16,"context_line":"    fedora | centos* | rhel* )"},{"line_number":17,"context_line":"        ${YUM} -v -y remove automake make gcc gcc-c++ kernel-devel libffi-devel openssl-devel python-devel platform-python-devel"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"7faddb67_9e69c38c","line":14,"range":{"start_line":14,"start_character":87,"end_line":14,"end_character":97},"in_reply_to":"7faddb67_cc683cf6","updated":"2019-07-24 12:27:30.000000000","message":"Ok, I think I see the problem. python-dev installs python2, even on Bionic. Package python3-dev comes as requirement of pip-and-virtualenv:\n\n\"Map install for pip-and-virtualenv: python3-dev\"\n\nhttp://logs.openstack.org/08/661308/3/check/octavia-v2-dsvm-scenario/5078a8e/controller/logs/dib-build/amphora-x64-haproxy.qcow2_log.txt.gz#_2019-06-28_07_41_39_801\n\n\nWhat is troubling is that pip-and-virtualenv element installs python3 on our -py2 job. That should be fixed.\n\n\"Map install for pip-and-virtualenv: python3-dev\"\n\nhttp://logs.openstack.org/08/661308/3/check/octavia-v2-dsvm-py2-scenario/f639349/controller/logs/dib-build/amphora-x64-haproxy.qcow2_log.txt.gz#_2019-06-28_07_38_30_309","commit_id":"0278b68715549660e6fe863064e8c3b14dd50b54"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"12ba296e1bdbfb4e5e092e36c8fec76d349a125c","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"case $DISTRO_NAME in"},{"line_number":13,"context_line":"    ubuntu | debian )"},{"line_number":14,"context_line":"        apt-get --assume-yes purge --auto-remove build-essential libffi-dev libssl-dev python-dev"},{"line_number":15,"context_line":"    ;;"},{"line_number":16,"context_line":"    fedora | centos* | rhel* )"},{"line_number":17,"context_line":"        ${YUM} -v -y remove automake make gcc gcc-c++ kernel-devel libffi-devel openssl-devel python-devel platform-python-devel"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"9fdfeff1_fe13c8b6","line":14,"range":{"start_line":14,"start_character":87,"end_line":14,"end_character":97},"in_reply_to":"9fdfeff1_cb0f2837","updated":"2019-02-25 17:11:20.000000000","message":"Not needed. autoremove will delete all dependencies of python-dev\n\n# apt-get install python-dev\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nThe following additional packages will be installed:\n  file libc-dev-bin libc6-dev libexpat1 libexpat1-dev libmagic-mgc libmagic1 libpython-dev libpython-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libreadline7 libsqlite3-0\n  libssl1.1 linux-libc-dev manpages manpages-dev mime-support python python-minimal python2.7 python2.7-dev python2.7-minimal readline-common xz-utils\nSuggested packages:\n  glibc-doc man-browser python-doc python-tk python2.7-doc binutils binfmt-support readline-doc\nThe following NEW packages will be installed:\n  file libc-dev-bin libc6-dev libexpat1 libexpat1-dev libmagic-mgc libmagic1 libpython-dev libpython-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libreadline7 libsqlite3-0\n  libssl1.1 linux-libc-dev manpages manpages-dev mime-support python python-dev python-minimal python2.7 python2.7-dev python2.7-minimal readline-common xz-utils\n0 upgraded, 28 newly installed, 0 to remove and 3 not upgraded.\nNeed to get 43.1 MB of archives.\nAfter this operation, 105 MB of additional disk space will be used.\n\n\n[...]\n\n# apt-get purge --auto-remove python-dev\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nThe following packages will be REMOVED:\n  file* libc-dev-bin* libc6-dev* libexpat1* libexpat1-dev* libmagic-mgc* libmagic1* libpython-dev* libpython-stdlib* libpython2.7* libpython2.7-dev* libpython2.7-minimal* libpython2.7-stdlib* libreadline7*\n  libsqlite3-0* libssl1.1* linux-libc-dev* manpages* manpages-dev* mime-support* python* python-dev* python-minimal* python2.7* python2.7-dev* python2.7-minimal* readline-common* xz-utils*\n0 upgraded, 0 newly installed, 28 to remove and 3 not upgraded.\nAfter this operation, 105 MB disk space will be freed.","commit_id":"0278b68715549660e6fe863064e8c3b14dd50b54"},{"author":{"_account_id":11628,"name":"Michael Johnson","email":"johnsomor@gmail.com","username":"johnsom"},"change_message_id":"f20c0c8aaf328cd71a4892ead0563f87abb84c92","unresolved":false,"context_lines":[{"line_number":11,"context_line":""},{"line_number":12,"context_line":"case $DISTRO_NAME in"},{"line_number":13,"context_line":"    ubuntu | debian )"},{"line_number":14,"context_line":"        apt-get --assume-yes purge --auto-remove build-essential libffi-dev libssl-dev python-dev"},{"line_number":15,"context_line":"    ;;"},{"line_number":16,"context_line":"    fedora | centos* | rhel* )"},{"line_number":17,"context_line":"        ${YUM} -v -y remove automake make gcc gcc-c++ kernel-devel libffi-devel openssl-devel python-devel platform-python-devel"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"7faddb67_cc683cf6","line":14,"range":{"start_line":14,"start_character":87,"end_line":14,"end_character":97},"in_reply_to":"9fdfeff1_fe13c8b6","updated":"2019-07-18 22:33:11.000000000","message":"I\u0027m not sure I follow. My point is Ubuntu has both python-dev and python3-dev. We may want to tell it to remove both.","commit_id":"0278b68715549660e6fe863064e8c3b14dd50b54"}]}
