)]}'
{"specs/in_progress/oslo-config-support.rst":[{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"013f30a6ce7ab53f55cc6d28ab4fb5becf820059","unresolved":false,"context_lines":[{"line_number":34,"context_line":"  components. In order to reduce impacts for the users, Oslo config is"},{"line_number":35,"context_line":"  initialized in KeystoneAuth middleware."},{"line_number":36,"context_line":"* If Oslo config is already initialized with project name is \u0027swift\u0027 when"},{"line_number":37,"context_line":"  KeystoneAuth middleware initializes, Oslo initialization should be skipped."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Every middleware which have a dependency to Oslo config are better to deal"},{"line_number":40,"context_line":"with Oslo config in addition to paste ini. These are only used for reading"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_f7702da6","line":37,"updated":"2015-06-17 22:17:09.000000000","message":"For my education, where might oslo config have been initialized already in swift context?","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":12193,"name":"Hisashi Osanai","email":"osanai.hisashi@jp.fujitsu.com","username":"ho"},"change_message_id":"bc47269a9345012bb2d2dc83f3eb2a16a6523c4a","unresolved":false,"context_lines":[{"line_number":34,"context_line":"  components. In order to reduce impacts for the users, Oslo config is"},{"line_number":35,"context_line":"  initialized in KeystoneAuth middleware."},{"line_number":36,"context_line":"* If Oslo config is already initialized with project name is \u0027swift\u0027 when"},{"line_number":37,"context_line":"  KeystoneAuth middleware initializes, Oslo initialization should be skipped."},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"Every middleware which have a dependency to Oslo config are better to deal"},{"line_number":40,"context_line":"with Oslo config in addition to paste ini. These are only used for reading"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_b91853d4","line":37,"in_reply_to":"fa32b979_f7702da6","updated":"2015-06-18 05:49:24.000000000","message":"Why I added this line is if other middleware where the place in pipeline is after keystoneauth is introduced in the future, the middleware might initialize oslo config before keystoneauth does.","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":16206,"name":"chenhuayi","email":"chenhuayi@huawei.com","username":"chenhuayi2"},"change_message_id":"44d64857e6462a5ef49f93906a8ed2c3f5f731a2","unresolved":false,"context_lines":[{"line_number":49,"context_line":"Implementation"},{"line_number":50,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":51,"context_line":"Adds initialization logic in KeystoneAuth middleware. The logic image will be"},{"line_number":52,"context_line":"the following::"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    project \u003d CONF.get(\u0027project\u0027, None)"},{"line_number":55,"context_line":"    if project !\u003d \u0027swift\u0027:"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_0a71d843","line":52,"updated":"2015-06-18 08:41:09.000000000","message":"extra \":\" ?","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"013f30a6ce7ab53f55cc6d28ab4fb5becf820059","unresolved":false,"context_lines":[{"line_number":51,"context_line":"Adds initialization logic in KeystoneAuth middleware. The logic image will be"},{"line_number":52,"context_line":"the following::"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    project \u003d CONF.get(\u0027project\u0027, None)"},{"line_number":55,"context_line":"    if project !\u003d \u0027swift\u0027:"},{"line_number":56,"context_line":"        CONF([],"},{"line_number":57,"context_line":"             project\u003d\u0027swift\u0027,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_77d65df2","line":54,"updated":"2015-06-17 22:17:09.000000000","message":"where is it decided that the CONF for swift *always* has an attribute project\u003dswift? Is that hardcoded somewhere or is it just a convention? (And why is it not \u0027object-store\u0027 - as in keystone service catalog swift is \u0027object-store\u0027 i think? Is it impossible to declare \u0027project\u003dxyz\u0027?","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":12193,"name":"Hisashi Osanai","email":"osanai.hisashi@jp.fujitsu.com","username":"ho"},"change_message_id":"bc47269a9345012bb2d2dc83f3eb2a16a6523c4a","unresolved":false,"context_lines":[{"line_number":51,"context_line":"Adds initialization logic in KeystoneAuth middleware. The logic image will be"},{"line_number":52,"context_line":"the following::"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    project \u003d CONF.get(\u0027project\u0027, None)"},{"line_number":55,"context_line":"    if project !\u003d \u0027swift\u0027:"},{"line_number":56,"context_line":"        CONF([],"},{"line_number":57,"context_line":"             project\u003d\u0027swift\u0027,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_d91f57b5","line":54,"in_reply_to":"fa32b979_77d65df2","updated":"2015-06-18 05:49:24.000000000","message":"We can change it. (see: https://github.com/openstack/nova/blob/master/nova/config.py#L54) I checked other components and they use their components\u0027 names.","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"013f30a6ce7ab53f55cc6d28ab4fb5becf820059","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    if project !\u003d \u0027swift\u0027:"},{"line_number":56,"context_line":"        CONF([],"},{"line_number":57,"context_line":"             project\u003d\u0027swift\u0027,"},{"line_number":58,"context_line":"             default_config_files\u003d[\u0027/etc/swift/proxy-server.conf])"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"And enables reading information from keystoneauth section in proxy-server.conf"},{"line_number":61,"context_line":"as Oslo config in addition to paste ini."}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_17d2715c","line":58,"updated":"2015-06-17 22:17:09.000000000","message":"ok, I will need to go read oslo.config again, but problem I saw last time i looked was that oslo config expects a section name e.g. [keystoneauth] whereas we have a section named [filter:keystoneauth] so how will oslo config read from /etc/swift/proxy-server.conf?","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"1e580e9d1dad62207b6cc1123194dccf41a0e956","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    if project !\u003d \u0027swift\u0027:"},{"line_number":56,"context_line":"        CONF([],"},{"line_number":57,"context_line":"             project\u003d\u0027swift\u0027,"},{"line_number":58,"context_line":"             default_config_files\u003d[\u0027/etc/swift/proxy-server.conf])"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"And enables reading information from keystoneauth section in proxy-server.conf"},{"line_number":61,"context_line":"as Oslo config in addition to paste ini."}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_174fd16b","line":58,"updated":"2015-06-17 22:03:54.000000000","message":"what if you\u0027re using /etc/swift/proxy-server.conf.d or if you started the server with `swift-proxy-server /etc/swift/proxy-server/no-auth.conf.d`\n\nIf this is just in the keystone middleware why does it create a config with project name \u0027swift\u0027 - if it just needs a CONF can\u0027t it cook one up from the __file__ in the config that\u0027s in the app_factories global_conf dict?","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":12193,"name":"Hisashi Osanai","email":"osanai.hisashi@jp.fujitsu.com","username":"ho"},"change_message_id":"bc47269a9345012bb2d2dc83f3eb2a16a6523c4a","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    if project !\u003d \u0027swift\u0027:"},{"line_number":56,"context_line":"        CONF([],"},{"line_number":57,"context_line":"             project\u003d\u0027swift\u0027,"},{"line_number":58,"context_line":"             default_config_files\u003d[\u0027/etc/swift/proxy-server.conf])"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"And enables reading information from keystoneauth section in proxy-server.conf"},{"line_number":61,"context_line":"as Oslo config in addition to paste ini."}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_598267c9","line":58,"in_reply_to":"fa32b979_174fd16b","updated":"2015-06-18 05:49:24.000000000","message":"I didn\u0027t take care about a case you mentioned like `swift-proxy-server /etc/swift/proxy-server/no-auth.conf.d` but it should be taken care. My image is one configuration file for proxy-server and enabling read from the configuration file as paste ini style and CONF style.","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":12193,"name":"Hisashi Osanai","email":"osanai.hisashi@jp.fujitsu.com","username":"ho"},"change_message_id":"bc47269a9345012bb2d2dc83f3eb2a16a6523c4a","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    if project !\u003d \u0027swift\u0027:"},{"line_number":56,"context_line":"        CONF([],"},{"line_number":57,"context_line":"             project\u003d\u0027swift\u0027,"},{"line_number":58,"context_line":"             default_config_files\u003d[\u0027/etc/swift/proxy-server.conf])"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"And enables reading information from keystoneauth section in proxy-server.conf"},{"line_number":61,"context_line":"as Oslo config in addition to paste ini."}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_d9767705","line":58,"in_reply_to":"fa32b979_17d2715c","updated":"2015-06-18 05:49:24.000000000","message":"I will check the code of oslo config later but I think to specify group\u003d\u0027filter:keystoneauth\u0027 in CONF.register_opt is solved the problem.\n\n_OPT_RESELLER_PREFIXES \u003d cfg.StrOpt(\u0027reseller_prefix\u0027,\n                                    default\u003dNone,\n                                    help\u003d\u0027Used to recognize auth systems.\u0027)\nCONF.register_opt(_OPT_RESELLER_PREFIXES, group\u003d\u0027filter:keystoneauth\u0027)","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":7847,"name":"Alistair Coles","email":"alistairncoles@gmail.com","username":"acoles"},"change_message_id":"013f30a6ce7ab53f55cc6d28ab4fb5becf820059","unresolved":false,"context_lines":[{"line_number":58,"context_line":"             default_config_files\u003d[\u0027/etc/swift/proxy-server.conf])"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"And enables reading information from keystoneauth section in proxy-server.conf"},{"line_number":61,"context_line":"as Oslo config in addition to paste ini."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Assignee(s)"},{"line_number":64,"context_line":"-----------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_37da154d","line":61,"updated":"2015-06-17 22:17:09.000000000","message":"re \"in addition to paste ini\" : which one would take precedence e.g. if there are different option values in [filter:keystoneauth] versus the oslo CONF singleton?","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"},{"author":{"_account_id":12193,"name":"Hisashi Osanai","email":"osanai.hisashi@jp.fujitsu.com","username":"ho"},"change_message_id":"bc47269a9345012bb2d2dc83f3eb2a16a6523c4a","unresolved":false,"context_lines":[{"line_number":58,"context_line":"             default_config_files\u003d[\u0027/etc/swift/proxy-server.conf])"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"And enables reading information from keystoneauth section in proxy-server.conf"},{"line_number":61,"context_line":"as Oslo config in addition to paste ini."},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"Assignee(s)"},{"line_number":64,"context_line":"-----------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"fa32b979_5959078d","line":61,"in_reply_to":"fa32b979_37da154d","updated":"2015-06-18 05:49:24.000000000","message":"Swift works with paste ini deployment and I don\u0027t want to change it. This means Swift uses paste ini in priority to CONF. If option is not found in paste ini, the option might be searched in CONF like keystonemiddleware *but* this implementation is not mandatory kind of \"nice to have\". When Swift will switch from paste ini to oslo in the future, the logic can work without any change. At least my patch for keystoneauth doesn\u0027t necessary to implement it but it\u0027s depend on logic what they want to do. (we have been discussing before about project attribute of oslo config, they use information which is stored only in oslo config)","commit_id":"8b88b4b39721944d8c65d3528f095fe6e89afe83"}]}
