)]}'
{"devstack/lib/ironic":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"57801a824733eea92773d8969b659f134f363e8c","unresolved":false,"context_lines":[{"line_number":468,"context_line":"    sudo chown root:root $tempfile"},{"line_number":469,"context_line":"    sudo mv $tempfile /etc/sudoers.d/ironic-rootwrap"},{"line_number":470,"context_line":""},{"line_number":471,"context_line":"    iniset $IRONIC_CONF_FILE ironic_lib root_helper \u0027sudo ironic-rootwrap $IRONIC_ROOTWRAP_CONF\u0027"},{"line_number":472,"context_line":"    iniset $IRONIC_CONF_FILE DEFAULT enabled_drivers $IRONIC_ENABLED_DRIVERS"},{"line_number":473,"context_line":"    iniset $IRONIC_CONF_FILE conductor api_url $IRONIC_SERVICE_PROTOCOL://$HOST_IP:$IRONIC_SERVICE_PORT"},{"line_number":474,"context_line":"    if [[ -n \"$IRONIC_CALLBACK_TIMEOUT\" ]]; then"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"3aaa91ec_0cda284b","line":471,"updated":"2016-06-30 07:53:17.000000000","message":"Please replace \u0027\u0027 by \"\", in bash variables are not extracted in \u0027\u0027 strings.","commit_id":"11bd3e05dc39fc2114b12592de1a7b3478bf4584"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"568314242168fc794987974b8bb4042597b8f402","unresolved":false,"context_lines":[{"line_number":468,"context_line":"    sudo chown root:root $tempfile"},{"line_number":469,"context_line":"    sudo mv $tempfile /etc/sudoers.d/ironic-rootwrap"},{"line_number":470,"context_line":""},{"line_number":471,"context_line":"    iniset $IRONIC_CONF_FILE ironic_lib root_helper \u0027sudo ironic-rootwrap $IRONIC_ROOTWRAP_CONF\u0027"},{"line_number":472,"context_line":"    iniset $IRONIC_CONF_FILE DEFAULT enabled_drivers $IRONIC_ENABLED_DRIVERS"},{"line_number":473,"context_line":"    iniset $IRONIC_CONF_FILE conductor api_url $IRONIC_SERVICE_PROTOCOL://$HOST_IP:$IRONIC_SERVICE_PORT"},{"line_number":474,"context_line":"    if [[ -n \"$IRONIC_CALLBACK_TIMEOUT\" ]]; then"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"3aaa91ec_2300c365","line":471,"in_reply_to":"3aaa91ec_0cda284b","updated":"2016-06-30 12:31:56.000000000","message":"Oops, I couldn\u0027t remember which was which. Thanks!","commit_id":"11bd3e05dc39fc2114b12592de1a7b3478bf4584"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"68e0562c6557f6d363baf190f72ef4eb5c31e747","unresolved":false,"context_lines":[{"line_number":455,"context_line":"# Sets conductor specific settings."},{"line_number":456,"context_line":"function configure_ironic_conductor {"},{"line_number":457,"context_line":"    cp $IRONIC_DIR/etc/ironic/rootwrap.conf $IRONIC_ROOTWRAP_CONF"},{"line_number":458,"context_line":"    cp -r $IRONIC_DIR/etc/ironic/rootwrap.d $IRONIC_CONF_DIR"},{"line_number":459,"context_line":"    local ironic_rootwrap"},{"line_number":460,"context_line":"    ironic_rootwrap\u003d$(get_rootwrap_location ironic)"},{"line_number":461,"context_line":"    local rootwrap_isudoer_cmd\u003d\"$ironic_rootwrap $IRONIC_CONF_DIR/rootwrap.conf *\""}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"3aaa91ec_7ffce5b4","line":458,"updated":"2016-07-01 10:33:42.000000000","message":"Should we still copy the filters from Ironic ? Shouldn\u0027t we be using the ironic-lib one then?\n\nhttps://github.com/openstack/ironic-lib/tree/master/etc/rootwrap.d","commit_id":"10f97058ab73b85234b20e3c73e3f528d4ba0c00"},{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"9baf7662611fd3f8dfab218cd67b33205f11bfe0","unresolved":false,"context_lines":[{"line_number":455,"context_line":"# Sets conductor specific settings."},{"line_number":456,"context_line":"function configure_ironic_conductor {"},{"line_number":457,"context_line":"    cp $IRONIC_DIR/etc/ironic/rootwrap.conf $IRONIC_ROOTWRAP_CONF"},{"line_number":458,"context_line":"    cp -r $IRONIC_DIR/etc/ironic/rootwrap.d $IRONIC_CONF_DIR"},{"line_number":459,"context_line":"    local ironic_rootwrap"},{"line_number":460,"context_line":"    ironic_rootwrap\u003d$(get_rootwrap_location ironic)"},{"line_number":461,"context_line":"    local rootwrap_isudoer_cmd\u003d\"$ironic_rootwrap $IRONIC_CONF_DIR/rootwrap.conf *\""}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"1aa78d24_b965281f","line":458,"in_reply_to":"1aa78d24_c2f94182","updated":"2016-07-06 10:43:08.000000000","message":"So our goal is to keep ironic-images.filters and ironic-utils.filters under ironic repo, and ironic-lib.filters under ironic-lib repo.\n\nI\u0027m concerned that rootwrap configs are stored in different locations in ironic repo - /etc/ironic/rootwrap.d/, which is the right place and ironic-lib - /etc/rootwrap.d/.\nWhen system packages are build files placed to the exact path as it is defined in the repo. By follow this logic files from ironic-lib should be placed to /etc/rootwrap.d/ which is not right. The [0] contains deb control files to build ironic debian packages. Inside archive there is file called ironic-common.install that defines copy rules when ironic-common package is installed.\n\nPackage management teams from various distros: Ubuntu, Debian, SuSe etc... Should update theirs control/spec files for ironic-lib to copy etc/ironic/rootwrap.d/* to /etc/ironic/rootwrap.d/ during package installation.\n\nWhat we can do for now?\n\n1. make a symlink etc/ironic/rootwrap.d/ to etc/rootwrap.d under ironic-lib repo.\n\n2. Until deprecation period is passed keep both ironic and ironic-lib files. Copy files from ironic-lib in devstack.\ncp -r $IRONICLIB_DIR/etc/rootwrap.d/ $IRONIC_CONF_DIR\n\n3. When deprecation is passed just remove ironic-lib.filters file from ironic repo.\n\nReference:\n[0] http://archive.ubuntu.com/ubuntu/pool/universe/i/ironic/ironic_5.1.0-0ubuntu1.debian.tar.xz","commit_id":"10f97058ab73b85234b20e3c73e3f528d4ba0c00"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"dd5af48ebbcd857fa6fcc3fa6b1b327702dc1c32","unresolved":false,"context_lines":[{"line_number":455,"context_line":"# Sets conductor specific settings."},{"line_number":456,"context_line":"function configure_ironic_conductor {"},{"line_number":457,"context_line":"    cp $IRONIC_DIR/etc/ironic/rootwrap.conf $IRONIC_ROOTWRAP_CONF"},{"line_number":458,"context_line":"    cp -r $IRONIC_DIR/etc/ironic/rootwrap.d $IRONIC_CONF_DIR"},{"line_number":459,"context_line":"    local ironic_rootwrap"},{"line_number":460,"context_line":"    ironic_rootwrap\u003d$(get_rootwrap_location ironic)"},{"line_number":461,"context_line":"    local rootwrap_isudoer_cmd\u003d\"$ironic_rootwrap $IRONIC_CONF_DIR/rootwrap.conf *\""}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"1aa78d24_c2f94182","line":458,"in_reply_to":"3aaa91ec_7ffce5b4","updated":"2016-07-05 19:25:52.000000000","message":"That is a good question. Ironic currently has a copy of it [0]. Do you have any idea what it means/entails, wrt getting rid of [0]? It looks like you reviewed it [1].\n\nWe can modify devstack to copy the file from ironic-lib, but what about users of ironic. How do we get the file in ironic-lib to be packaged with ironic? I have no idea how that stuff works.\n\nIt also seems like a separate issue from what this patch is meant to do. Should I undo this change to devstack?\n\n[0] https://github.com/openstack/ironic/blob/6569cdbe14576ea580268e445b07ac92f0cce68b/etc/ironic/rootwrap.d/ironic-lib.filters#L5-8\n\n[1] https://review.openstack.org/#/c/286750/","commit_id":"10f97058ab73b85234b20e3c73e3f528d4ba0c00"}]}
