)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"17b752c0405d01a4eaa454cd6d6a01b07d13e064","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Deploy manila with uwsgi on devstack"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Switch manila to use devstack common functions"},{"line_number":10,"context_line":"for deploying a wsgi app under uwsgi and apache."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"bp wsgi-web-servers-support"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"9fdfeff1_495c25ed","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":6},"updated":"2019-02-18 19:37:17.000000000","message":"This patch doesn\u0027t do that for any of the drivers in the gate... do you want to do that as a follow-up?","commit_id":"166fd55495dad5378b5988c899e1cfd244069324"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"0f22b077c5694ba85cccc12aea55441af2392245","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Deploy manila with uwsgi on devstack"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Switch manila to use devstack common functions"},{"line_number":10,"context_line":"for deploying a wsgi app under uwsgi and apache."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"bp wsgi-web-servers-support"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"9fdfeff1_49ad059a","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":6},"in_reply_to":"9fdfeff1_495c25ed","updated":"2019-02-18 19:42:01.000000000","message":"You are right... either we fix the commit message or we directly add it here. I\u0027ll add the switch here.","commit_id":"166fd55495dad5378b5988c899e1cfd244069324"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"1c47837bea4c554ea1fb14ceb88db58c59712365","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Switch manila to use devstack common functions"},{"line_number":10,"context_line":"for deploying a wsgi app under uwsgi and apache."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"bp wsgi-web-servers-support"},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I12d4c864f2ceb0f3555e32d2dc893e00dbef0d96"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":13,"id":"9fdfeff1_6716ed58","line":11,"updated":"2019-02-19 05:34:47.000000000","message":"Could you add a link to https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html please? Point 2) under \"Completion Criteria\" is the reason why we want this I guess.","commit_id":"e45bfd34042e094d85eb71fd454dc44857f0e8ec"}],"devstack/plugin.sh":[{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"b4f816dcb96acdd5aa60357a423c1f18e251730d","unresolved":false,"context_lines":[{"line_number":466,"context_line":""},{"line_number":467,"context_line":"    # Set up Manila v1 service and endpoint"},{"line_number":468,"context_line":"    get_or_create_service \"manila\" \"share\" \"Manila Shared Filesystem Service\""},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":471,"context_line":"        get_or_create_endpoint \"share\" \"$REGION_NAME\" \\"},{"line_number":472,"context_line":"             \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share/v1/\\$(tenant_id)s\" \\"},{"line_number":473,"context_line":"\t     \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share/v1/\\$(tenant_id)s\" \\"},{"line_number":474,"context_line":"\t     \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share/v1/\\$(tenant_id)s\""},{"line_number":475,"context_line":""},{"line_number":476,"context_line":"    else"},{"line_number":477,"context_line":"        get_or_create_endpoint \"share\" \"$REGION_NAME\" \\"},{"line_number":478,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v1/\\$(tenant_id)s\" \\"},{"line_number":479,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v1/\\$(tenant_id)s\" \\"},{"line_number":480,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v1/\\$(tenant_id)s\""},{"line_number":481,"context_line":"    fi"},{"line_number":482,"context_line":""},{"line_number":483,"context_line":"    # Set up Manila v2 service and endpoint"},{"line_number":484,"context_line":"    get_or_create_service \"manilav2\" \"sharev2\" \"Manila Shared Filesystem Service V2\""},{"line_number":485,"context_line":""},{"line_number":486,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":487,"context_line":"        get_or_create_endpoint \"sharev2\" \"$REGION_NAME\" \\"},{"line_number":488,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share/v2/\\$(tenant_id)s\" \\"},{"line_number":489,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share/v2/\\$(tenant_id)s\" \\"},{"line_number":490,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share/v2/\\$(tenant_id)s\""},{"line_number":491,"context_line":"    else"},{"line_number":492,"context_line":"        get_or_create_endpoint \"sharev2\" \"$REGION_NAME\" \\"},{"line_number":493,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v2/\\$(tenant_id)s\" \\"},{"line_number":494,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v2/\\$(tenant_id)s\" \\"},{"line_number":495,"context_line":"            \"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT/v2/\\$(tenant_id)s\""},{"line_number":496,"context_line":"    fi"},{"line_number":497,"context_line":"}"},{"line_number":498,"context_line":""},{"line_number":499,"context_line":"# create_default_share_group_type - create share group type that will be set as default."},{"line_number":500,"context_line":"function create_default_share_group_type {"}],"source_content_type":"text/x-sh","patch_set":1,"id":"bfdaf3ff_fc844b60","line":497,"range":{"start_line":469,"start_character":0,"end_line":497,"end_character":1},"updated":"2019-01-16 21:21:23.000000000","message":"simplification suggestion:\n\n    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then\n        MANILA_ENDPOINT_BASE\u003d\"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST\"\n    else\n        MANILA_ENDPOINT_BASE\u003d\"$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT\"\n    fi\n\n    # Set up Manila v1 service and endpoint\n    get_or_create_service \"manila\" \"share\" \"Manila Shared Filesystem Service\".   \n    get_or_create_endpoint \"share\" \"$REGION_NAME\" \\\n             \"$MANILA_ENDPOINT_BASE/share/v1/\\$(tenant_id)s\" \\\n\t     \"$MANILA_ENDPOINT_BASE/share/v1/\\$(tenant_id)s\" \\\n\t     \"$MANILA_ENDPOINT_BASE/share/v1/\\$(tenant_id)s\"\n\n    # Set up Manila v2 service and endpoint\n    get_or_create_service \"manilav2\" \"sharev2\" \"Manila Shared Filesystem Service V2\"\n    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then\n        get_or_create_endpoint \"sharev2\" \"$REGION_NAME\" \\\n            \"$MANILA_ENDPOINT_BASE/share/v2/\\$(tenant_id)s\" \\\n            \"$MANILA_ENDPOINT_BASE/share/v2/\\$(tenant_id)s\" \\\n            \"$MANILA_ENDPOINT_BASE/share/v2/\\$(tenant_id)s\"","commit_id":"fbedddbe2eed4fa081cba5fe1ec7fcba03df1e92"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"f821f1975c56fa4f9afcaeabd4de63e78abcd0ab","unresolved":false,"context_lines":[{"line_number":464,"context_line":""},{"line_number":465,"context_line":"    create_service_user \"manila\""},{"line_number":466,"context_line":""},{"line_number":467,"context_line":"    get_or_create_endpoint \"share\" \"$REGION_NAME\" \\"},{"line_number":468,"context_line":"             \"$MANILA_ENDPOINT_BASE/v1/\\$(project_id)s\""},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"    # Set up Manila v2 service and endpoint"},{"line_number":471,"context_line":"    get_or_create_service \"manilav2\" \"sharev2\" \"Manila Shared Filesystem Service V2\""}],"source_content_type":"text/x-sh","patch_set":5,"id":"9fdfeff1_879af1c2","line":468,"range":{"start_line":467,"start_character":3,"end_line":468,"end_character":55},"updated":"2019-01-20 19:13:13.000000000","message":"I think we should keep line 464 from the left side in order to start the v1 service?","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"8749409114ea79f7c3c7a0b95faf8ca4213d86e4","unresolved":false,"context_lines":[{"line_number":464,"context_line":""},{"line_number":465,"context_line":"    create_service_user \"manila\""},{"line_number":466,"context_line":""},{"line_number":467,"context_line":"    get_or_create_endpoint \"share\" \"$REGION_NAME\" \\"},{"line_number":468,"context_line":"             \"$MANILA_ENDPOINT_BASE/v1/\\$(project_id)s\""},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"    # Set up Manila v2 service and endpoint"},{"line_number":471,"context_line":"    get_or_create_service \"manilav2\" \"sharev2\" \"Manila Shared Filesystem Service V2\""}],"source_content_type":"text/x-sh","patch_set":5,"id":"9fdfeff1_80e96d81","line":468,"range":{"start_line":467,"start_character":3,"end_line":468,"end_character":55},"in_reply_to":"9fdfeff1_879af1c2","updated":"2019-01-21 15:43:47.000000000","message":"Yes, adding it","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"fd395262e523bb1ad8937910584d38909c5ba20d","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        #    # snapshots"},{"line_number":506,"context_line":"        #    command_args\u003d\"$command_args --snapshot_support false\""},{"line_number":507,"context_line":"        #fi"},{"line_number":508,"context_line":"        manila type-create $command_args"},{"line_number":509,"context_line":"    fi"},{"line_number":510,"context_line":"    if [[ $MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS ]]; then"},{"line_number":511,"context_line":"        manila type-key $MANILA_DEFAULT_SHARE_TYPE set $MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS"}],"source_content_type":"text/x-sh","patch_set":5,"id":"9fdfeff1_515b672d","line":508,"range":{"start_line":508,"start_character":0,"end_line":508,"end_character":40},"updated":"2019-01-19 23:00:24.000000000","message":"Since the jobs are failing here, maybe change to \u0027manila --debug type-create $command_args\u0027 (even if just temporarily) so we can see what response is being returned, etc.?","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"8749409114ea79f7c3c7a0b95faf8ca4213d86e4","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        #    # snapshots"},{"line_number":506,"context_line":"        #    command_args\u003d\"$command_args --snapshot_support false\""},{"line_number":507,"context_line":"        #fi"},{"line_number":508,"context_line":"        manila type-create $command_args"},{"line_number":509,"context_line":"    fi"},{"line_number":510,"context_line":"    if [[ $MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS ]]; then"},{"line_number":511,"context_line":"        manila type-key $MANILA_DEFAULT_SHARE_TYPE set $MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS"}],"source_content_type":"text/x-sh","patch_set":5,"id":"9fdfeff1_60000936","line":508,"range":{"start_line":508,"start_character":0,"end_line":508,"end_character":40},"in_reply_to":"9fdfeff1_515b672d","updated":"2019-01-21 15:43:47.000000000","message":"Yeah, tried this and also curled the API","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"f821f1975c56fa4f9afcaeabd4de63e78abcd0ab","unresolved":false,"context_lines":[{"line_number":798,"context_line":"function start_manila_api {"},{"line_number":799,"context_line":""},{"line_number":800,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":801,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF\""},{"line_number":802,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":803,"context_line":"        install_apache_wsgi"},{"line_number":804,"context_line":"        enable_apache_site manila-api"}],"source_content_type":"text/x-sh","patch_set":5,"id":"9fdfeff1_67a90dde","line":801,"range":{"start_line":801,"start_character":0,"end_line":801,"end_character":74},"updated":"2019-01-20 19:13:13.000000000","message":"to be consistent with cinder, nova, etc.\n\n    run_process m-api \"MANILA_BIN_DIR/uwsgi --procname-prefix manila-api --ini $MANILA_UWSGI_CONF\"","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"8749409114ea79f7c3c7a0b95faf8ca4213d86e4","unresolved":false,"context_lines":[{"line_number":798,"context_line":"function start_manila_api {"},{"line_number":799,"context_line":""},{"line_number":800,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":801,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF\""},{"line_number":802,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":803,"context_line":"        install_apache_wsgi"},{"line_number":804,"context_line":"        enable_apache_site manila-api"}],"source_content_type":"text/x-sh","patch_set":5,"id":"9fdfeff1_00fd7d39","line":801,"range":{"start_line":801,"start_character":0,"end_line":801,"end_character":74},"in_reply_to":"9fdfeff1_67a90dde","updated":"2019-01-21 15:43:47.000000000","message":"Done","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"fd395262e523bb1ad8937910584d38909c5ba20d","unresolved":false,"context_lines":[{"line_number":796,"context_line":""},{"line_number":797,"context_line":"# start_manila_api - starts manila API services and checks its availability"},{"line_number":798,"context_line":"function start_manila_api {"},{"line_number":799,"context_line":""},{"line_number":800,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":801,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF\""},{"line_number":802,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":803,"context_line":"        install_apache_wsgi"},{"line_number":804,"context_line":"        enable_apache_site manila-api"},{"line_number":805,"context_line":"        restart_apache_server"}],"source_content_type":"text/x-sh","patch_set":5,"id":"9fdfeff1_714c6b76","line":802,"range":{"start_line":799,"start_character":0,"end_line":802,"end_character":67},"updated":"2019-01-19 23:00:24.000000000","message":"maybe my other comment on turning off MANILA_USE_MOD_WSGI doesn\u0027t matter since you only act on MANILA_USE_MOD_WSGI if the former is false.","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"2fa3fcbe077d2679e8c761d0d6f56d690bc6ff4d","unresolved":false,"context_lines":[{"line_number":478,"context_line":"function create_default_share_group_type {"},{"line_number":479,"context_line":"    local type_exists\u003d$( manila share-group-type-list | grep \" $MANILA_DEFAULT_SHARE_GROUP_TYPE \" )"},{"line_number":480,"context_line":"    if [[ -z $type_exists ]]; then"},{"line_number":481,"context_line":"        manila share-group-type-create --debug $MANILA_DEFAULT_SHARE_GROUP_TYPE $MANILA_DEFAULT_SHARE_TYPE"},{"line_number":482,"context_line":"    fi"},{"line_number":483,"context_line":"    if [[ $MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS ]]; then"},{"line_number":484,"context_line":"        manila share-group-type-key --debug $MANILA_DEFAULT_SHARE_GROUP_TYPE set $MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS"}],"source_content_type":"text/x-sh","patch_set":6,"id":"9fdfeff1_ebe85517","line":481,"range":{"start_line":481,"start_character":39,"end_line":481,"end_character":47},"updated":"2019-01-21 20:51:56.000000000","message":"put right after \u0027manila\u0027","commit_id":"6d360a66f12b38eb21eac7fbaca1e4f75333c31e"},{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"2fa3fcbe077d2679e8c761d0d6f56d690bc6ff4d","unresolved":false,"context_lines":[{"line_number":481,"context_line":"        manila share-group-type-create --debug $MANILA_DEFAULT_SHARE_GROUP_TYPE $MANILA_DEFAULT_SHARE_TYPE"},{"line_number":482,"context_line":"    fi"},{"line_number":483,"context_line":"    if [[ $MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS ]]; then"},{"line_number":484,"context_line":"        manila share-group-type-key --debug $MANILA_DEFAULT_SHARE_GROUP_TYPE set $MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS"},{"line_number":485,"context_line":"    fi"},{"line_number":486,"context_line":"}"},{"line_number":487,"context_line":""}],"source_content_type":"text/x-sh","patch_set":6,"id":"9fdfeff1_0beef921","line":484,"range":{"start_line":484,"start_character":36,"end_line":484,"end_character":44},"updated":"2019-01-21 20:51:56.000000000","message":"ditto","commit_id":"6d360a66f12b38eb21eac7fbaca1e4f75333c31e"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"1c47837bea4c554ea1fb14ceb88db58c59712365","unresolved":false,"context_lines":[{"line_number":816,"context_line":""},{"line_number":817,"context_line":"# start_manila_api - starts manila API services and checks its availability"},{"line_number":818,"context_line":"function start_manila_api {"},{"line_number":819,"context_line":""},{"line_number":820,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":821,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF\""},{"line_number":822,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"}],"source_content_type":"text/x-sh","patch_set":13,"id":"9fdfeff1_02710f78","line":819,"updated":"2019-02-19 05:34:47.000000000","message":"Can you catch the case where MANILA_USE_MOD_WSGI **and** MANILA_USE_UWSGI are both True? Currently, in that case uwsgi is used without letting the user know. I would at least print a warning (or abort saying that this is an invalid configuration).\nOr another option: Use just one variable to set the deployment type","commit_id":"e45bfd34042e094d85eb71fd454dc44857f0e8ec"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"340f5ba4361a4cb9aa02ea291de6104560f00051","unresolved":false,"context_lines":[{"line_number":816,"context_line":""},{"line_number":817,"context_line":"# start_manila_api - starts manila API services and checks its availability"},{"line_number":818,"context_line":"function start_manila_api {"},{"line_number":819,"context_line":""},{"line_number":820,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":821,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF\""},{"line_number":822,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"}],"source_content_type":"text/x-sh","patch_set":13,"id":"9fdfeff1_b6015c07","line":819,"in_reply_to":"9fdfeff1_02710f78","updated":"2019-02-19 15:14:36.000000000","message":"Yes, that\u0027s true. I\u0027ll add a warning","commit_id":"e45bfd34042e094d85eb71fd454dc44857f0e8ec"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"1c47837bea4c554ea1fb14ceb88db58c59712365","unresolved":false,"context_lines":[{"line_number":818,"context_line":"function start_manila_api {"},{"line_number":819,"context_line":""},{"line_number":820,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":821,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF\""},{"line_number":822,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":823,"context_line":"        install_apache_wsgi"},{"line_number":824,"context_line":"        enable_apache_site manila-api"}],"source_content_type":"text/x-sh","patch_set":13,"id":"9fdfeff1_82341fae","line":821,"updated":"2019-02-19 05:34:47.000000000","message":"Can you add \"--procname-prefix manila-api\" as parameter?","commit_id":"e45bfd34042e094d85eb71fd454dc44857f0e8ec"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"340f5ba4361a4cb9aa02ea291de6104560f00051","unresolved":false,"context_lines":[{"line_number":818,"context_line":"function start_manila_api {"},{"line_number":819,"context_line":""},{"line_number":820,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":821,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF\""},{"line_number":822,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":823,"context_line":"        install_apache_wsgi"},{"line_number":824,"context_line":"        enable_apache_site manila-api"}],"source_content_type":"text/x-sh","patch_set":13,"id":"9fdfeff1_3b08f52b","line":821,"in_reply_to":"9fdfeff1_82341fae","updated":"2019-02-19 15:14:36.000000000","message":"Done","commit_id":"e45bfd34042e094d85eb71fd454dc44857f0e8ec"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"de5eb7c177f6009e4f9977434eb417458c9d23bb","unresolved":false,"context_lines":[{"line_number":822,"context_line":"    # https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html#uwsgi-vs-mod-wsgi"},{"line_number":823,"context_line":"    # for more details"},{"line_number":824,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ] \u0026\u0026 [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":825,"context_line":"        echo \"Both MANILA_USE_UWSGI and MANILA_USE_MOD_WSGI are set to True\""},{"line_number":826,"context_line":"        echo \"Using UWSGI as the preferred option\""},{"line_number":827,"context_line":"        echo \"Set MANILA_USE_UWSGI to False to deploy manila api with MOD_WSGI\""},{"line_number":828,"context_line":"    fi"},{"line_number":829,"context_line":""},{"line_number":830,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"}],"source_content_type":"text/x-sh","patch_set":15,"id":"9fdfeff1_9ace9659","line":827,"range":{"start_line":825,"start_character":0,"end_line":827,"end_character":79},"updated":"2019-02-21 00:31:24.000000000","message":"Checkout the \"warn\" function from devstack/functions-common \n\nhttps://github.com/openstack-dev/devstack/blob/4c82af68a/HACKING.rst#control-structure-rules","commit_id":"57ab67a8c384c06361c5ee8b4bd23dc45000126a"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"de5eb7c177f6009e4f9977434eb417458c9d23bb","unresolved":false,"context_lines":[{"line_number":828,"context_line":"    fi"},{"line_number":829,"context_line":""},{"line_number":830,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":831,"context_line":"        echo \"Deploy with UWSGI\""},{"line_number":832,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF --procname-prefix manila-api\""},{"line_number":833,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":834,"context_line":"        echo \"Deploy with MOD_WSGI\""}],"source_content_type":"text/x-sh","patch_set":15,"id":"9fdfeff1_5ad82e1d","line":831,"range":{"start_line":831,"start_character":14,"end_line":831,"end_character":20},"updated":"2019-02-21 00:31:24.000000000","message":"nit: Deploying","commit_id":"57ab67a8c384c06361c5ee8b4bd23dc45000126a"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"de5eb7c177f6009e4f9977434eb417458c9d23bb","unresolved":false,"context_lines":[{"line_number":867,"context_line":"}"},{"line_number":868,"context_line":""},{"line_number":869,"context_line":"# stop_manila - Stop running processes"},{"line_number":870,"context_line":"function stop_manila {"},{"line_number":871,"context_line":"    # Disable manila api service"},{"line_number":872,"context_line":"    if [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":873,"context_line":"        disable_apache_site manila-api"},{"line_number":874,"context_line":"        restart_apache_server"},{"line_number":875,"context_line":"    else"},{"line_number":876,"context_line":"        stop_process m-api"},{"line_number":877,"context_line":"    fi"},{"line_number":878,"context_line":""},{"line_number":879,"context_line":"    # Kill all other manila processes"},{"line_number":880,"context_line":"    for serv in m-sch m-shr m-dat; do"},{"line_number":881,"context_line":"        stop_process $serv"},{"line_number":882,"context_line":"    done"},{"line_number":883,"context_line":"}"},{"line_number":884,"context_line":""},{"line_number":885,"context_line":"function install_manila_tempest_plugin {"},{"line_number":886,"context_line":"    MANILA_TEMPEST_PLUGIN_REPO\u003d${MANILA_TEMPEST_PLUGIN_REPO:-${GIT_BASE}/openstack/manila-tempest-plugin.git}"}],"source_content_type":"text/x-sh","patch_set":15,"id":"9fdfeff1_5057af27","line":883,"range":{"start_line":870,"start_character":0,"end_line":883,"end_character":1},"updated":"2019-02-21 00:31:24.000000000","message":"You\u0027ll have to disable uwsgi, and perhaps clean up stuff here?","commit_id":"57ab67a8c384c06361c5ee8b4bd23dc45000126a"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"5ca19e4d821e1b2005858f932cb52d95011e6da6","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    _clean_manila_lvm_backing_file $SHARE_GROUP"},{"line_number":61,"context_line":"    _clean_zfsonlinux_data"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    stop_process \"m-api\""},{"line_number":64,"context_line":"    remove_uwsgi_config \"$MANILA_UWSGI_CONF\" \"$MANILA_WSGI\""},{"line_number":65,"context_line":"}"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-sh","patch_set":16,"id":"9fdfeff1_4d77030a","line":63,"range":{"start_line":63,"start_character":0,"end_line":63,"end_character":24},"updated":"2019-02-21 20:59:52.000000000","message":"seems like this cleanup step is called after stop.. at this point we\u0027ve already stopped the service, see below.","commit_id":"8604ef1eca952441322a9e60432d18afe42b8e48"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"d7198b3a525568aabffafb728bcf75abe66c92f2","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    _clean_manila_lvm_backing_file $SHARE_GROUP"},{"line_number":61,"context_line":"    _clean_zfsonlinux_data"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    stop_process \"m-api\""},{"line_number":64,"context_line":"    remove_uwsgi_config \"$MANILA_UWSGI_CONF\" \"$MANILA_WSGI\""},{"line_number":65,"context_line":"}"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-sh","patch_set":16,"id":"9fdfeff1_ad278fc7","line":63,"range":{"start_line":63,"start_character":0,"end_line":63,"end_character":24},"in_reply_to":"9fdfeff1_4d77030a","updated":"2019-02-21 21:14:29.000000000","message":"That is what I thought at first. The logic would be to stop_process m-api is called on stop_manila and it seems it\u0027s not the case since the service keeps running. I\u0027m trying to understand why. Cinder is doing this as well, see https://github.com/openstack-dev/devstack/blob/master/lib/cinder#L523-L528 and https://github.com/openstack-dev/devstack/blob/master/lib/cinder#L201-L202","commit_id":"8604ef1eca952441322a9e60432d18afe42b8e48"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"5ca19e4d821e1b2005858f932cb52d95011e6da6","unresolved":false,"context_lines":[{"line_number":875,"context_line":"        disable_apache_site manila-api"},{"line_number":876,"context_line":"        restart_apache_server"},{"line_number":877,"context_line":"    else"},{"line_number":878,"context_line":"        stop_process m-api"},{"line_number":879,"context_line":"    fi"},{"line_number":880,"context_line":""},{"line_number":881,"context_line":"    # Kill all other manila processes"}],"source_content_type":"text/x-sh","patch_set":16,"id":"9fdfeff1_6d15279b","line":878,"range":{"start_line":878,"start_character":21,"end_line":878,"end_character":26},"updated":"2019-02-21 20:59:52.000000000","message":"Wouldn\u0027t this take care of the process, whether using uwsgi or the built in server?","commit_id":"8604ef1eca952441322a9e60432d18afe42b8e48"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"8bdd7c803ae7f3c07a4b05b31182245c89ff5bc2","unresolved":false,"context_lines":[{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    iniset $MANILA_CONF DEFAULT manila_service_keypair_name $MANILA_SERVICE_KEYPAIR_NAME"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    REAL_MANILA_SERVICE_PORT\u003d$MANILA_SERVICE_PORT"},{"line_number":285,"context_line":"    if is_service_enabled tls-proxy; then"},{"line_number":286,"context_line":"        # Set the protocol to \u0027https\u0027, and set the default port"},{"line_number":287,"context_line":"        MANILA_SERVICE_PROTOCOL\u003d\"https\""}],"source_content_type":"text/x-sh","patch_set":20,"id":"5fc1f717_8e95f7e6","line":284,"updated":"2019-03-08 02:42:38.000000000","message":"Maybe it would be a good idea to move this control to settings instead of keeping in plugin.sh so we keep env var init in the same file","commit_id":"b8e09cdddb1ba3b2bbb2c35ef2c090644b946508"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"fd7b901f53017e065e060f6fdf03bc2b08037c8e","unresolved":false,"context_lines":[{"line_number":282,"context_line":"    iniset $MANILA_CONF DEFAULT manila_service_keypair_name $MANILA_SERVICE_KEYPAIR_NAME"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    REAL_MANILA_SERVICE_PORT\u003d$MANILA_SERVICE_PORT"},{"line_number":285,"context_line":"    if is_service_enabled tls-proxy \u0026\u0026 [[ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d False ]]; then"},{"line_number":286,"context_line":"        # Set the protocol to \u0027https\u0027, and set the default port"},{"line_number":287,"context_line":"        MANILA_SERVICE_PROTOCOL\u003d\"https\""},{"line_number":288,"context_line":"        REAL_MANILA_SERVICE_PORT\u003d$MANILA_SERVICE_PORT_INT"}],"source_content_type":"text/x-sh","patch_set":21,"id":"5fc1f717_919e4a52","line":285,"range":{"start_line":285,"start_character":35,"end_line":285,"end_character":91},"updated":"2019-03-11 19:41:40.000000000","message":"revert the change in condition, even if uwsgi is enabled, you want all these changes...","commit_id":"b0213a104ec7f2f5caf0596c99d5f89b94c9a72f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"fd7b901f53017e065e060f6fdf03bc2b08037c8e","unresolved":false,"context_lines":[{"line_number":284,"context_line":"    REAL_MANILA_SERVICE_PORT\u003d$MANILA_SERVICE_PORT"},{"line_number":285,"context_line":"    if is_service_enabled tls-proxy \u0026\u0026 [[ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d False ]]; then"},{"line_number":286,"context_line":"        # Set the protocol to \u0027https\u0027, and set the default port"},{"line_number":287,"context_line":"        MANILA_SERVICE_PROTOCOL\u003d\"https\""},{"line_number":288,"context_line":"        REAL_MANILA_SERVICE_PORT\u003d$MANILA_SERVICE_PORT_INT"},{"line_number":289,"context_line":"        # Need to overwrite MANILA_ENDPOINT_BASE with the port being used"},{"line_number":290,"context_line":"        MANILA_ENDPOINT_BASE\u003d$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$REAL_MANILA_SERVICE_PORT"}],"source_content_type":"text/x-sh","patch_set":21,"id":"5fc1f717_91c72a46","line":287,"range":{"start_line":287,"start_character":8,"end_line":287,"end_character":31},"updated":"2019-03-11 19:41:40.000000000","message":"ONLY concern is we *need* to coerce this change in protocol, can we handle this somehow?","commit_id":"b0213a104ec7f2f5caf0596c99d5f89b94c9a72f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"5cb2acf1a06fc945e0cb816145465ea56554954e","unresolved":false,"context_lines":[{"line_number":286,"context_line":"        # Set the protocol to \u0027https\u0027, and set the default port"},{"line_number":287,"context_line":"        MANILA_SERVICE_PROTOCOL\u003d\"https\""},{"line_number":288,"context_line":"        REAL_MANILA_SERVICE_PORT\u003d$MANILA_SERVICE_PORT_INT"},{"line_number":289,"context_line":"        # Need to overwrite MANILA_ENDPOINT_BASE with the port being used"},{"line_number":290,"context_line":"        MANILA_ENDPOINT_BASE\u003d$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$REAL_MANILA_SERVICE_PORT"},{"line_number":291,"context_line":"        # Set the service port for a proxy to take the original"},{"line_number":292,"context_line":"        iniset $MANILA_CONF DEFAULT osapi_share_listen_port $REAL_MANILA_SERVICE_PORT"},{"line_number":293,"context_line":"        iniset $MANILA_CONF oslo_middleware enable_proxy_headers_parsing True"}],"source_content_type":"text/x-sh","patch_set":21,"id":"5fc1f717_17ea530e","line":290,"range":{"start_line":289,"start_character":0,"end_line":290,"end_character":102},"updated":"2019-03-11 14:49:48.000000000","message":"This isn\u0027t necessary.. when tls-proxy is enabled, the endpoint base is still the same as prior as far as the end user is concerned:\n\n $MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT\n\nWhat we\u0027re doing here, when tls-proxy is enabled is to run manila on a totally different port (18786) and let the web proxy (configured with TLS/certs) run on port 8786 and terminate TLS connections... the proxy will forward all requests to manila, and does not itself use TLS.\n\nSo, What you want to do when uwsgi isn\u0027t enabled, and tls-proxy is enabled by itself is to ensure we\u0027re doing the health check on #L856 with the real service port (18786) instead of 8786","commit_id":"b0213a104ec7f2f5caf0596c99d5f89b94c9a72f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"5cb2acf1a06fc945e0cb816145465ea56554954e","unresolved":false,"context_lines":[{"line_number":828,"context_line":"    # https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html#uwsgi-vs-mod-wsgi"},{"line_number":829,"context_line":"    # for more details"},{"line_number":830,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ] \u0026\u0026 [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":831,"context_line":"        warn $LINENO \"Both MANILA_USE_UWSGI and MANILA_USE_MOD_WSGI are set to True. Using UWSGI as the preferred option"},{"line_number":832,"context_line":"            Set MANILA_USE_UWSGI to False to deploy manila api with MOD_WSGI\""},{"line_number":833,"context_line":"    fi"},{"line_number":834,"context_line":""},{"line_number":835,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"}],"source_content_type":"text/x-sh","patch_set":21,"id":"5fc1f717_b709fe2c","line":832,"range":{"start_line":831,"start_character":21,"end_line":832,"end_character":77},"updated":"2019-03-11 14:49:48.000000000","message":"store message in variable so you can format to \u003c79 chars","commit_id":"b0213a104ec7f2f5caf0596c99d5f89b94c9a72f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"fd7b901f53017e065e060f6fdf03bc2b08037c8e","unresolved":false,"context_lines":[{"line_number":853,"context_line":"    # the bare service endpoint, even if the tls tunnel should be enabled."},{"line_number":854,"context_line":"    # We\u0027re making sure that the internal port is checked using unencryted"},{"line_number":855,"context_line":"    # traffic at this point."},{"line_number":856,"context_line":"    if ! wait_for_service $SERVICE_TIMEOUT $MANILA_ENDPOINT_BASE; then"},{"line_number":857,"context_line":"        die $LINENO \"Manila API did not start\""},{"line_number":858,"context_line":"    fi"},{"line_number":859,"context_line":""},{"line_number":860,"context_line":"    # Start proxies if enabled"},{"line_number":861,"context_line":"    if is_service_enabled tls-proxy; then"}],"source_content_type":"text/x-sh","patch_set":21,"id":"5fc1f717_3178b628","line":858,"range":{"start_line":856,"start_character":0,"end_line":858,"end_character":6},"updated":"2019-03-11 19:41:40.000000000","message":"Here, if tls-proxy is enabled and uwsgi is not enabled, the service endpoint should be $MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$REAL_MANILA_SERVICE_PORT","commit_id":"b0213a104ec7f2f5caf0596c99d5f89b94c9a72f"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"a7de45011a2487021c0f1eb9d71c7507cae3db47","unresolved":false,"context_lines":[{"line_number":821,"context_line":"# start_manila_api - starts manila API services and checks its availability"},{"line_number":822,"context_line":"function start_manila_api {"},{"line_number":823,"context_line":""},{"line_number":824,"context_line":"    local MANILA_URL\u003d$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT"},{"line_number":825,"context_line":""},{"line_number":826,"context_line":"    # NOTE(vkmc) If both options are set to true we are using uwsgi"},{"line_number":827,"context_line":"    # as the preferred way to deploy manila. See"}],"source_content_type":"text/x-sh","patch_set":22,"id":"5fc1f717_ac14494f","line":824,"range":{"start_line":824,"start_character":4,"end_line":824,"end_character":89},"updated":"2019-03-11 21:12:33.000000000","message":"lets move this down so you can use this just before the health check... improves readability.. see comment below..","commit_id":"0450bc00aab247d546f9a3f4c376c115b0c8dfe3"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"a7de45011a2487021c0f1eb9d71c7507cae3db47","unresolved":false,"context_lines":[{"line_number":837,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":838,"context_line":"        echo \"Deploying with UWSGI\""},{"line_number":839,"context_line":"        run_process m-api \"$MANILA_BIN_DIR/uwsgi --ini $MANILA_UWSGI_CONF --procname-prefix manila-api\""},{"line_number":840,"context_line":"        MANILA_URL\u003d$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share/v2/"},{"line_number":841,"context_line":"    elif [ $(trueorfalse False MANILA_USE_MOD_WSGI) \u003d\u003d True ]; then"},{"line_number":842,"context_line":"        echo \"Deploying with MOD_WSGI\""},{"line_number":843,"context_line":"        install_apache_wsgi"}],"source_content_type":"text/x-sh","patch_set":22,"id":"5fc1f717_ac6d2905","line":840,"range":{"start_line":840,"start_character":72,"end_line":840,"end_character":76},"updated":"2019-03-11 21:12:33.000000000","message":"don\u0027t need the /v2..","commit_id":"0450bc00aab247d546f9a3f4c376c115b0c8dfe3"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"a7de45011a2487021c0f1eb9d71c7507cae3db47","unresolved":false,"context_lines":[{"line_number":854,"context_line":"    # We use the port ($REAL_MANILA_SERVICE_PORT) here because we want to hit"},{"line_number":855,"context_line":"    # the bare service endpoint, even if the tls tunnel should be enabled."},{"line_number":856,"context_line":"    # We\u0027re making sure that the internal port is checked using unencryted"},{"line_number":857,"context_line":"    # traffic at this point."},{"line_number":858,"context_line":"    if ! wait_for_service $SERVICE_TIMEOUT $MANILA_URL; then"},{"line_number":859,"context_line":"        die $LINENO \"Manila API did not start\""},{"line_number":860,"context_line":"    fi"}],"source_content_type":"text/x-sh","patch_set":22,"id":"5fc1f717_cc175551","line":857,"range":{"start_line":857,"start_character":27,"end_line":857,"end_character":28},"updated":"2019-03-11 21:12:33.000000000","message":"add, \n\n  local MANILA_HEALTH_CHECK_URL\u003d$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$REAL_MANILA_SERVICE_PORT\n if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then\n   MANILA_HEALTH_CHECK_URL\u003d$MANILA_ENDPOINT_BASE\n fi","commit_id":"0450bc00aab247d546f9a3f4c376c115b0c8dfe3"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"a7de45011a2487021c0f1eb9d71c7507cae3db47","unresolved":false,"context_lines":[{"line_number":855,"context_line":"    # the bare service endpoint, even if the tls tunnel should be enabled."},{"line_number":856,"context_line":"    # We\u0027re making sure that the internal port is checked using unencryted"},{"line_number":857,"context_line":"    # traffic at this point."},{"line_number":858,"context_line":"    if ! wait_for_service $SERVICE_TIMEOUT $MANILA_URL; then"},{"line_number":859,"context_line":"        die $LINENO \"Manila API did not start\""},{"line_number":860,"context_line":"    fi"},{"line_number":861,"context_line":""}],"source_content_type":"text/x-sh","patch_set":22,"id":"5fc1f717_2c08592a","line":858,"range":{"start_line":858,"start_character":44,"end_line":858,"end_character":54},"updated":"2019-03-11 21:12:33.000000000","message":"with suggestion above: $MANILA_HEALTH_CHECK_URL","commit_id":"0450bc00aab247d546f9a3f4c376c115b0c8dfe3"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"a7de45011a2487021c0f1eb9d71c7507cae3db47","unresolved":false,"context_lines":[{"line_number":859,"context_line":"        die $LINENO \"Manila API did not start\""},{"line_number":860,"context_line":"    fi"},{"line_number":861,"context_line":""},{"line_number":862,"context_line":"    # Start proxies if enabled"},{"line_number":863,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d False ] \u0026\u0026 is_service_enabled tls-proxy; then"},{"line_number":864,"context_line":"        start_tls_proxy manila \u0027*\u0027 $MANILA_SERVICE_PORT $MANILA_SERVICE_HOST $MANILA_SERVICE_PORT_INT"},{"line_number":865,"context_line":"    fi"}],"source_content_type":"text/x-sh","patch_set":22,"id":"5fc1f717_8c5b8d52","line":862,"range":{"start_line":862,"start_character":4,"end_line":862,"end_character":30},"updated":"2019-03-11 21:12:33.000000000","message":"Let\u0027s add a comment here:\n\n if tls-proxy is enabled and MANILA_USE_UWSGI is set to True, a generic http-services-tls-proxy will be set up to handle tls-termination to manila as well as all the other https services, we don\u0027t need to create our own.","commit_id":"0450bc00aab247d546f9a3f4c376c115b0c8dfe3"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f16f806957352e11c9a28b9ff25c9d09b8fd2648","unresolved":false,"context_lines":[{"line_number":853,"context_line":"    # We\u0027re making sure that the internal port is checked using unencryted"},{"line_number":854,"context_line":"    # traffic at this point."},{"line_number":855,"context_line":""},{"line_number":856,"context_line":"    local MANILA_HEALTH_CHECK_URL\u003d$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT"},{"line_number":857,"context_line":""},{"line_number":858,"context_line":"    if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":859,"context_line":"        MANILA_HEALTH_CHECK_URL\u003d$MANILA_ENDPOINT_BASE"}],"source_content_type":"text/x-sh","patch_set":23,"id":"5fc1f717_009f61b4","line":856,"range":{"start_line":856,"start_character":83,"end_line":856,"end_character":102},"updated":"2019-03-11 21:21:37.000000000","message":"$REAL_MANILA_SERVICE_PORT","commit_id":"6affb479ba5905d2a3bd47b3e02285173533ded6"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"f16f806957352e11c9a28b9ff25c9d09b8fd2648","unresolved":false,"context_lines":[{"line_number":859,"context_line":"        MANILA_HEALTH_CHECK_URL\u003d$MANILA_ENDPOINT_BASE"},{"line_number":860,"context_line":"    fi"},{"line_number":861,"context_line":""},{"line_number":862,"context_line":"    if ! wait_for_service $SERVICE_TIMEOUT $MANILA_HEALT_CHECK_URL; then"},{"line_number":863,"context_line":"        die $LINENO \"Manila API did not start\""},{"line_number":864,"context_line":"    fi"},{"line_number":865,"context_line":""}],"source_content_type":"text/x-sh","patch_set":23,"id":"5fc1f717_e09b35c6","line":862,"range":{"start_line":862,"start_character":44,"end_line":862,"end_character":66},"updated":"2019-03-11 21:21:37.000000000","message":"MANILA_HEALTH_CHECK_URL","commit_id":"6affb479ba5905d2a3bd47b3e02285173533ded6"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"2507c67b69e46b94e48549cf22393ff47b1110d1","unresolved":false,"context_lines":[{"line_number":284,"context_line":"    REAL_MANILA_SERVICE_PORT\u003d$MANILA_SERVICE_PORT"},{"line_number":285,"context_line":"    if is_service_enabled tls-proxy; then"},{"line_number":286,"context_line":"        # Set the protocol to \u0027https\u0027, and set the default port"},{"line_number":287,"context_line":"        MANILA_SERVICE_PROTOCOL\u003d\"https\""},{"line_number":288,"context_line":"        REAL_MANILA_SERVICE_PORT\u003d$MANILA_SERVICE_PORT_INT"},{"line_number":289,"context_line":"        # Set the service port for a proxy to take the original"},{"line_number":290,"context_line":"        iniset $MANILA_CONF DEFAULT osapi_share_listen_port $REAL_MANILA_SERVICE_PORT"}],"source_content_type":"text/x-sh","patch_set":25,"id":"5fc1f717_cb6de4cc","line":287,"updated":"2019-03-12 18:57:17.000000000","message":"instead of the above line, it should now be: \n\n MANILA_ENDPOINT_BASE\u003d\"${MANILA_ENDPOINT_BASE/http:/https:}\"","commit_id":"2906072c1667343c40ab034cafda4fcc70282c66"},{"author":{"_account_id":16643,"name":"Goutham Pacha Ravi","email":"gouthampravi@gmail.com","username":"gouthamr"},"change_message_id":"be366ec66efa47b1b721e936f442f23dfa87604b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"su#!/bin/bash"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# Plugin file for enabling manila services"},{"line_number":4,"context_line":"# ----------------------------------------"}],"source_content_type":"text/x-sh","patch_set":26,"id":"5fc1f717_2e335516","line":1,"updated":"2019-03-12 20:43:09.000000000","message":"why? :D","commit_id":"3040069640ae700fe06245d3f2c7702ffb60f639"}],"devstack/settings":[{"author":{"_account_id":9003,"name":"Tom Barron","email":"tpb@dyncloud.net","username":"tbarron"},"change_message_id":"fd395262e523bb1ad8937910584d38909c5ba20d","unresolved":false,"context_lines":[{"line_number":107,"context_line":"# Set it as True, because starting with Pike it is requirement from"},{"line_number":108,"context_line":"# \u0027governance\u0027 project. See:"},{"line_number":109,"context_line":"# https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html#completion-criteria"},{"line_number":110,"context_line":"MANILA_USE_MOD_WSGI\u003d${MANILA_USE_MOD_WSGI:-True}"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"# Toggle for deploying manila-api service with uWSGI"},{"line_number":113,"context_line":"MANILA_USE_UWSGI\u003d${MANILA_USE_UWSGI:-True}"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"9fdfeff1_b13413e0","line":110,"range":{"start_line":110,"start_character":0,"end_line":110,"end_character":48},"updated":"2019-01-19 23:00:24.000000000","message":"Do we need to change this default to False?  What happens if it is True and MANILA_USE_UWSGI is also True ?","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"8749409114ea79f7c3c7a0b95faf8ca4213d86e4","unresolved":false,"context_lines":[{"line_number":107,"context_line":"# Set it as True, because starting with Pike it is requirement from"},{"line_number":108,"context_line":"# \u0027governance\u0027 project. See:"},{"line_number":109,"context_line":"# https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html#completion-criteria"},{"line_number":110,"context_line":"MANILA_USE_MOD_WSGI\u003d${MANILA_USE_MOD_WSGI:-True}"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"# Toggle for deploying manila-api service with uWSGI"},{"line_number":113,"context_line":"MANILA_USE_UWSGI\u003d${MANILA_USE_UWSGI:-True}"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"9fdfeff1_a0bcb169","line":110,"range":{"start_line":110,"start_character":0,"end_line":110,"end_character":48},"in_reply_to":"9fdfeff1_b13413e0","updated":"2019-01-21 15:43:47.000000000","message":"Most OpenStack projects are using UWSGI, it might be a good idea to select UWSGI as default. Still, I want to hear from others in case there is some objection.","commit_id":"b3463b0b1f0c7369c5afb977e1731df8f5b14499"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"a298c1a3b124c4d04d4756531489e7d3510a8abf","unresolved":false,"context_lines":[{"line_number":113,"context_line":"MANILA_UWSGI_CONF\u003d$MANILA_CONF_DIR/manila-uwsgi.ini"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":116,"context_line":"    MANILA_ENDPOINT_BASE\u003d$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share"},{"line_number":117,"context_line":"fi"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"# Common info for Generic driver(s)"}],"source_content_type":"application/octet-stream","patch_set":18,"id":"9fdfeff1_7ccc9733","line":116,"updated":"2019-02-27 09:39:13.000000000","message":"Are we intentionally ignoring MANILA_SERVICE_PORT in case we use uwsgi ?","commit_id":"3807c8bc349d8742083a4da33fed9c43375093ed"},{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"3aa5b5c937cbbe578c030a43cb7a804d31d25797","unresolved":false,"context_lines":[{"line_number":113,"context_line":"MANILA_UWSGI_CONF\u003d$MANILA_CONF_DIR/manila-uwsgi.ini"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"if [ $(trueorfalse False MANILA_USE_UWSGI) \u003d\u003d True ]; then"},{"line_number":116,"context_line":"    MANILA_ENDPOINT_BASE\u003d$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share"},{"line_number":117,"context_line":"fi"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"# Common info for Generic driver(s)"}],"source_content_type":"application/octet-stream","patch_set":18,"id":"9fdfeff1_4fd792c0","line":116,"in_reply_to":"9fdfeff1_7ccc9733","updated":"2019-03-07 16:07:38.000000000","message":"Yes, it\u0027s intentional. We use uwsgi server as a webserver bound to a random local port and with mod_proxy we forward all incoming requests on the specified endpoint to that local webserver.","commit_id":"3807c8bc349d8742083a4da33fed9c43375093ed"}]}
