Skip to content

fix: render init script to lms-init and mount it via configmap

Artur Gaspar requested to merge artur/lms-init-script into main

Description

Mounts a script that may become too large to be passed to one invocation of sh.

Testing instructions

Steps to test the changes:

  1. Use this branch.

  2. See that deploy succeeds.

  3. See that the correct init script commands are run.

    (This job run with set -x for tracing shell commands for debugging purposes.)

     $ ./kubectl logs --namespace=opencraft --follow lms-job-20240304155613-9bvml
     + ./manage.py lms create_or_update_site_configuration --configuration {"MFE_CONFIG": {"ACCOUNT_PROFILE_URL": "https://lms.oc.eshe.opencraft.hosting/dashboard#", "ACCOUNT_SETTINGS_URL": "https://lms.oc.eshe.opencraft.hosting/dashboard"}, "REGISTRATION_EXTRA_FIELDS": {"city": "hidden", "confirm_email": "hidden", "country": "optional", "gender": "optional", "goals": "optional", "level_of_education": "optional", "mailing_address": "optional", "terms_of_service": "hidden", "year_of_birth": "optional"}, "version": 0} lms.oc.eshe.opencraft.hosting --enabled
     2024-03-04 15:56:23,586 INFO 8 [openedx.core.djangoapps.site_configuration.management.commands.create_or_update_site_configuration] [user None] [ip None] create_or_update_site_configuration.py:98 - Found existing site for 'lms.oc.eshe.opencraft.hosting'
     2024-03-04 15:56:23,588 INFO 8 [openedx.core.djangoapps.site_configuration.management.commands.create_or_update_site_configuration] [user None] [ip None] create_or_update_site_configuration.py:108 - Found existing site configuration for 'lms.oc.eshe.opencraft.hosting'. Updating it.
     + ./manage.py lms create_or_update_tenant_config --external-key lms.oc.eshe.opencraft.hosting --config {"lms_configs": {"EDNX_TENANT_INSTALLED_APPS": ["common.djangoapps.third_party_auth"], "EDNX_USE_SIGNAL": true, "FEATURES": {"PREVIEW_LMS_BASE": "preview.lms.oc.eshe.opencraft.hosting"}, "LMS_BASE": "lms.oc.eshe.opencraft.hosting", "LMS_ROOT_URL": "https://lms.oc.eshe.opencraft.hosting", "MFE_CONFIG": {"ACCOUNT_PROFILE_URL": "https://lms.oc.eshe.opencraft.hosting/dashboard#", "ACCOUNT_SETTINGS_URL": "https://lms.oc.eshe.opencraft.hosting/dashboard"}, "PREVIEW_LMS_BASE": "preview.lms.oc.eshe.opencraft.hosting", "REGISTRATION_EXTRA_FIELDS": {"city": "hidden", "confirm_email": "hidden", "country": "optional", "gender": "optional", "goals": "optional", "level_of_education": "optional", "mailing_address": "optional", "terms_of_service": "hidden", "year_of_birth": "optional"}, "version": 0}} lms.oc.eshe.opencraft.hosting
     2024-03-04 15:56:29,539 INFO 17 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:119 - Found existing tenant for: 'lms.oc.eshe.opencraft.hosting'
     2024-03-04 15:56:29,607 INFO 17 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:145 - Found existing route for: 'lms.oc.eshe.opencraft.hosting'
     + ./manage.py lms create_or_update_tenant_config --external-key lms.oc.eshe.opencraft.hosting --config {"lms_configs": {"EDNX_TENANT_INSTALLED_APPS": ["common.djangoapps.third_party_auth"], "EDNX_USE_SIGNAL": true, "FEATURES": {"PREVIEW_LMS_BASE": "preview.lms.oc.eshe.opencraft.hosting"}, "LMS_BASE": "lms.oc.eshe.opencraft.hosting", "LMS_ROOT_URL": "https://lms.oc.eshe.opencraft.hosting", "MFE_CONFIG": {"ACCOUNT_PROFILE_URL": "https://lms.oc.eshe.opencraft.hosting/dashboard#", "ACCOUNT_SETTINGS_URL": "https://lms.oc.eshe.opencraft.hosting/dashboard"}, "PREVIEW_LMS_BASE": "preview.lms.oc.eshe.opencraft.hosting", "REGISTRATION_EXTRA_FIELDS": {"city": "hidden", "confirm_email": "hidden", "country": "optional", "gender": "optional", "goals": "optional", "level_of_education": "optional", "mailing_address": "optional", "terms_of_service": "hidden", "year_of_birth": "optional"}, "version": 0}} studio.lms.oc.eshe.opencraft.hosting
     2024-03-04 15:56:35,512 INFO 26 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:119 - Found existing tenant for: 'lms.oc.eshe.opencraft.hosting'
     2024-03-04 15:56:35,578 INFO 26 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:145 - Found existing route for: 'studio.lms.oc.eshe.opencraft.hosting'
     + ./manage.py lms create_or_update_tenant_config --external-key lms-1.oc.eshe.opencraft.hosting --config {"lms_configs": {"ALLOWED_HOSTS": ["lms-1.oc.eshe.opencraft.hosting", "studio.lms-1.oc.eshe.opencraft.hosting", "preview.lms-1.oc.eshe.opencraft.hosting"], "CMS_BASE": "studio.lms-1.oc.eshe.opencraft.hosting", "COMMUNICATIONS_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/communications", "CORS_ORIGIN_WHITELIST": ["https://lms-1.oc.eshe.opencraft.hosting", "https://studio.lms-1.oc.eshe.opencraft.hosting", "https://preview.lms-1.oc.eshe.opencraft.hosting", "https://apps.lms-1.oc.eshe.opencraft.hosting"], "COURSE_AUTHORING_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/course-authoring", "CSRF_TRUSTED_ORIGINS": ["lms-1.oc.eshe.opencraft.hosting", "studio.lms-1.oc.eshe.opencraft.hosting", "preview.lms-1.oc.eshe.opencraft.hosting", "apps.lms-1.oc.eshe.opencraft.hosting"], "DISCUSSIONS_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/discussions", "EDNX_TENANT_INSTALLED_APPS": ["common.djangoapps.third_party_auth"], "EDNX_USE_SIGNAL": true, "FEATURES": {"PREVIEW_LMS_BASE": "preview.lms-1.oc.eshe.opencraft.hosting"}, "FOOTER_ORGANIZATION_IMAGE": null, "HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS": {"preview.lms-1.oc.eshe.opencraft.hosting": "draft-preferred"}, "IDA_LOGOUT_URI_LIST": ["https://studio.lms-1.oc.eshe.opencraft.hosting/logout/"], "LEARNING_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/learning", "LMS_BASE": "lms-1.oc.eshe.opencraft.hosting", "LMS_ROOT_URL": "https://lms-1.oc.eshe.opencraft.hosting", "LOGIN_REDIRECT_WHITELIST": ["studio.lms-1.oc.eshe.opencraft.hosting", "https://apps.lms-1.oc.eshe.opencraft.hosting"], "MFE_CONFIG": {"ACCOUNT_PROFILE_URL": "https://lms-1.oc.eshe.opencraft.hosting/dashboard#", "ACCOUNT_SETTINGS_URL": "https://lms-1.oc.eshe.opencraft.hosting/dashboard", "BASE_URL": "apps.lms-1.oc.eshe.opencraft.hosting", "FAVICON_URL": "https://lms-1.oc.eshe.opencraft.hosting/favicon.ico", "FOOTER_CUSTOM_CLASSNAMES": "py-5 flex-column align-items-center text-dark", "FOOTER_LINKS": [{"text": "Terms of Service", "url": "https://eshemoeasu.my.site.com/help/s/"}, {"text": "Acceptable Use Policy", "url": "https://eshemoeasu.my.site.com/help/s/"}, {"text": "Privacy Policy", "url": "https://eshemoeasu.my.site.com/help/s/"}], "FOOTER_LINKS_CLASSNAMES": "text-dark", "FOOTER_LOGO_STYLE": {"marginBottom": "2rem"}, "LEARNING_BASE_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/learning", "LMS_BASE_URL": "https://lms-1.oc.eshe.opencraft.hosting", "LOGIN_URL": "https://lms-1.oc.eshe.opencraft.hosting/login", "LOGOUT_URL": "https://lms-1.oc.eshe.opencraft.hosting/logout", "LOGO_TRADEMARK_URL": "https://lms-1.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "LOGO_URL": "https://lms-1.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "LOGO_WHITE_URL": "https://lms-1.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "MARKETING_SITE_BASE_URL": "https://lms-1.oc.eshe.opencraft.hosting", "REFRESH_ACCESS_TOKEN_ENDPOINT": "https://lms-1.oc.eshe.opencraft.hosting/login_refresh", "SCHEDULE_EMAIL_SECTION": true, "STUDIO_BASE_URL": "https://studio.lms-1.oc.eshe.opencraft.hosting"}, "ORA_GRADING_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/ora-grading", "PLATFORM_NAME": "e-SHE-1 OpenCraft Environment", "PREVIEW_LMS_BASE": "preview.lms-1.oc.eshe.opencraft.hosting", "SESSION_COOKIE_DOMAIN": "lms-1.oc.eshe.opencraft.hosting", "SHARED_COOKIE_DOMAIN": "lms-1.oc.eshe.opencraft.hosting", "SITE_NAME": "e-SHE-1 OpenCraft Environment", "SOCIAL_AUTH_EDX_OAUTH2_PUBLIC_URL_ROOT": "https://lms-1.oc.eshe.opencraft.hosting", "WRITABLE_GRADEBOOK_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/gradebook"}, "studio_configs": {"ALLOWED_HOSTS": ["lms-1.oc.eshe.opencraft.hosting", "studio.lms-1.oc.eshe.opencraft.hosting", "preview.lms-1.oc.eshe.opencraft.hosting"], "CMS_BASE": "studio.lms-1.oc.eshe.opencraft.hosting", "COMMUNICATIONS_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/communications", "CORS_ORIGIN_WHITELIST": ["https://lms-1.oc.eshe.opencraft.hosting", "https://studio.lms-1.oc.eshe.opencraft.hosting", "https://preview.lms-1.oc.eshe.opencraft.hosting", "https://apps.lms-1.oc.eshe.opencraft.hosting"], "COURSE_AUTHORING_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/course-authoring", "CSRF_TRUSTED_ORIGINS": ["lms-1.oc.eshe.opencraft.hosting", "studio.lms-1.oc.eshe.opencraft.hosting", "preview.lms-1.oc.eshe.opencraft.hosting", "apps.lms-1.oc.eshe.opencraft.hosting"], "DISCUSSIONS_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/discussions", "EDNX_USE_SIGNAL": true, "FEATURES": {"PREVIEW_LMS_BASE": "preview.lms-1.oc.eshe.opencraft.hosting"}, "HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS": {"preview.lms-1.oc.eshe.opencraft.hosting": "draft-preferred"}, "IDA_LOGOUT_URI_LIST": ["https://studio.lms-1.oc.eshe.opencraft.hosting/logout/"], "LEARNING_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/learning", "LMS_BASE": "lms-1.oc.eshe.opencraft.hosting", "LMS_ROOT_URL": "https://lms-1.oc.eshe.opencraft.hosting", "LOGIN_REDIRECT_WHITELIST": ["studio.lms-1.oc.eshe.opencraft.hosting", "https://apps.lms-1.oc.eshe.opencraft.hosting"], "MFE_CONFIG": {"BASE_URL": "apps.lms-1.oc.eshe.opencraft.hosting", "FAVICON_URL": "https://lms-1.oc.eshe.opencraft.hosting/favicon.ico", "LEARNING_BASE_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/learning", "LMS_BASE_URL": "https://lms-1.oc.eshe.opencraft.hosting", "LOGIN_URL": "https://lms-1.oc.eshe.opencraft.hosting/login", "LOGOUT_URL": "https://lms-1.oc.eshe.opencraft.hosting/logout", "LOGO_TRADEMARK_URL": "https://lms-1.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "LOGO_URL": "https://lms-1.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "LOGO_WHITE_URL": "https://lms-1.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "MARKETING_SITE_BASE_URL": "https://lms-1.oc.eshe.opencraft.hosting", "REFRESH_ACCESS_TOKEN_ENDPOINT": "https://lms-1.oc.eshe.opencraft.hosting/login_refresh", "SCHEDULE_EMAIL_SECTION": true, "STUDIO_BASE_URL": "https://studio.lms-1.oc.eshe.opencraft.hosting"}, "ORA_GRADING_MICROFRONTEND_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/ora-grading", "PREVIEW_LMS_BASE": "preview.lms-1.oc.eshe.opencraft.hosting", "SESSION_COOKIE_DOMAIN": "lms-1.oc.eshe.opencraft.hosting", "SHARED_COOKIE_DOMAIN": "lms-1.oc.eshe.opencraft.hosting", "SITE_NAME": "e-SHE-1 OpenCraft Environment", "SOCIAL_AUTH_EDX_OAUTH2_PUBLIC_URL_ROOT": "https://lms-1.oc.eshe.opencraft.hosting", "WRITABLE_GRADEBOOK_URL": "https://apps.lms-1.oc.eshe.opencraft.hosting/gradebook"}} lms-1.oc.eshe.opencraft.hosting preview.lms-1.oc.eshe.opencraft.hosting
     2024-03-04 15:56:41,502 INFO 35 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:119 - Found existing tenant for: 'lms-1.oc.eshe.opencraft.hosting'
     2024-03-04 15:56:41,568 INFO 35 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:145 - Found existing route for: 'lms-1.oc.eshe.opencraft.hosting'
     2024-03-04 15:56:41,573 INFO 35 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:145 - Found existing route for: 'preview.lms-1.oc.eshe.opencraft.hosting'
     + ./manage.py lms create_or_update_site_configuration --configuration {"FOOTER_ORGANIZATION_IMAGE": null, "MFE_CONFIG": {"ACCOUNT_PROFILE_URL": "https://lms-1.oc.eshe.opencraft.hosting/dashboard#", "ACCOUNT_SETTINGS_URL": "https://lms-1.oc.eshe.opencraft.hosting/dashboard", "FOOTER_CUSTOM_CLASSNAMES": "py-5 flex-column align-items-center text-dark", "FOOTER_LINKS": [{"text": "Terms of Service", "url": "https://eshemoeasu.my.site.com/help/s/"}, {"text": "Acceptable Use Policy", "url": "https://eshemoeasu.my.site.com/help/s/"}, {"text": "Privacy Policy", "url": "https://eshemoeasu.my.site.com/help/s/"}], "FOOTER_LINKS_CLASSNAMES": "text-dark", "FOOTER_LOGO_STYLE": {"marginBottom": "2rem"}}, "PLATFORM_NAME": "e-SHE-1 OpenCraft Environment"} lms-1.oc.eshe.opencraft.hosting --enabled
     2024-03-04 15:56:47,537 INFO 44 [openedx.core.djangoapps.site_configuration.management.commands.create_or_update_site_configuration] [user None] [ip None] create_or_update_site_configuration.py:98 - Found existing site for 'lms-1.oc.eshe.opencraft.hosting'
     2024-03-04 15:56:47,541 INFO 44 [openedx.core.djangoapps.site_configuration.management.commands.create_or_update_site_configuration] [user None] [ip None] create_or_update_site_configuration.py:102 - Site configuration does not exist. Created new instance for 'lms-1.oc.eshe.opencraft.hosting'
     + ./manage.py lms create_or_update_tenant_config --external-key lms-1.oc.eshe.opencraft.hosting --config {"studio_configs": {"PLATFORM_NAME": "e-SHE-1 Studio OpenCraft Environment"}} studio.lms-1.oc.eshe.opencraft.hosting
     2024-03-04 15:56:53,503 INFO 53 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:119 - Found existing tenant for: 'lms-1.oc.eshe.opencraft.hosting'
     2024-03-04 15:56:53,570 INFO 53 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:145 - Found existing route for: 'studio.lms-1.oc.eshe.opencraft.hosting'
     + ./manage.py lms create_or_update_site_configuration --configuration {"PLATFORM_NAME": "e-SHE-1 Studio OpenCraft Environment"} studio.lms-1.oc.eshe.opencraft.hosting --enabled
     2024-03-04 15:56:59,528 INFO 62 [openedx.core.djangoapps.site_configuration.management.commands.create_or_update_site_configuration] [user None] [ip None] create_or_update_site_configuration.py:98 - Found existing site for 'studio.lms-1.oc.eshe.opencraft.hosting'
     2024-03-04 15:56:59,531 INFO 62 [openedx.core.djangoapps.site_configuration.management.commands.create_or_update_site_configuration] [user None] [ip None] create_or_update_site_configuration.py:102 - Site configuration does not exist. Created new instance for 'studio.lms-1.oc.eshe.opencraft.hosting'
     + ./manage.py lms create_or_update_tenant_config --external-key maxim-testing-themes.oc.eshe.opencraft.hosting --config {"lms_configs": {"ALLOWED_HOSTS": ["maxim-testing-themes.oc.eshe.opencraft.hosting", "studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "preview.maxim-testing-themes.oc.eshe.opencraft.hosting"], "CMS_BASE": "studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "COMMUNICATIONS_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/communications", "CORS_ORIGIN_WHITELIST": ["https://maxim-testing-themes.oc.eshe.opencraft.hosting", "https://studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "https://preview.maxim-testing-themes.oc.eshe.opencraft.hosting", "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting"], "COURSE_AUTHORING_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/course-authoring", "CSRF_TRUSTED_ORIGINS": ["maxim-testing-themes.oc.eshe.opencraft.hosting", "studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "preview.maxim-testing-themes.oc.eshe.opencraft.hosting", "apps.maxim-testing-themes.oc.eshe.opencraft.hosting"], "DISCUSSIONS_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/discussions", "EDNX_TENANT_INSTALLED_APPS": ["common.djangoapps.third_party_auth"], "EDNX_USE_SIGNAL": true, "FEATURES": {"PREVIEW_LMS_BASE": "preview.maxim-testing-themes.oc.eshe.opencraft.hosting"}, "HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS": {"preview.maxim-testing-themes.oc.eshe.opencraft.hosting": "draft-preferred"}, "IDA_LOGOUT_URI_LIST": ["https://studio.maxim-testing-themes.oc.eshe.opencraft.hosting/logout/"], "LEARNING_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/learning", "LMS_BASE": "maxim-testing-themes.oc.eshe.opencraft.hosting", "LMS_ROOT_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "LOGIN_REDIRECT_WHITELIST": ["studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting"], "MFE_CONFIG": {"BASE_URL": "apps.maxim-testing-themes.oc.eshe.opencraft.hosting", "FAVICON_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/favicon.ico", "LEARNING_BASE_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/learning", "LMS_BASE_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "LOGIN_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/login", "LOGOUT_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/logout", "LOGO_TRADEMARK_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "LOGO_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "LOGO_WHITE_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "MARKETING_SITE_BASE_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "REFRESH_ACCESS_TOKEN_ENDPOINT": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/login_refresh", "SCHEDULE_EMAIL_SECTION": true, "STUDIO_BASE_URL": "https://studio.maxim-testing-themes.oc.eshe.opencraft.hosting"}, "ORA_GRADING_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/ora-grading", "PREVIEW_LMS_BASE": "preview.maxim-testing-themes.oc.eshe.opencraft.hosting", "SESSION_COOKIE_DOMAIN": "maxim-testing-themes.oc.eshe.opencraft.hosting", "SHARED_COOKIE_DOMAIN": "maxim-testing-themes.oc.eshe.opencraft.hosting", "SOCIAL_AUTH_EDX_OAUTH2_PUBLIC_URL_ROOT": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "WRITABLE_GRADEBOOK_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/gradebook"}, "studio_configs": {"ALLOWED_HOSTS": ["maxim-testing-themes.oc.eshe.opencraft.hosting", "studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "preview.maxim-testing-themes.oc.eshe.opencraft.hosting"], "CMS_BASE": "studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "COMMUNICATIONS_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/communications", "CORS_ORIGIN_WHITELIST": ["https://maxim-testing-themes.oc.eshe.opencraft.hosting", "https://studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "https://preview.maxim-testing-themes.oc.eshe.opencraft.hosting", "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting"], "COURSE_AUTHORING_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/course-authoring", "CSRF_TRUSTED_ORIGINS": ["maxim-testing-themes.oc.eshe.opencraft.hosting", "studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "preview.maxim-testing-themes.oc.eshe.opencraft.hosting", "apps.maxim-testing-themes.oc.eshe.opencraft.hosting"], "DISCUSSIONS_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/discussions", "EDNX_USE_SIGNAL": true, "FEATURES": {"PREVIEW_LMS_BASE": "preview.maxim-testing-themes.oc.eshe.opencraft.hosting"}, "HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS": {"preview.maxim-testing-themes.oc.eshe.opencraft.hosting": "draft-preferred"}, "IDA_LOGOUT_URI_LIST": ["https://studio.maxim-testing-themes.oc.eshe.opencraft.hosting/logout/"], "LEARNING_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/learning", "LMS_BASE": "maxim-testing-themes.oc.eshe.opencraft.hosting", "LMS_ROOT_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "LOGIN_REDIRECT_WHITELIST": ["studio.maxim-testing-themes.oc.eshe.opencraft.hosting", "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting"], "MFE_CONFIG": {"BASE_URL": "apps.maxim-testing-themes.oc.eshe.opencraft.hosting", "FAVICON_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/favicon.ico", "LEARNING_BASE_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/learning", "LMS_BASE_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "LOGIN_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/login", "LOGOUT_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/logout", "LOGO_TRADEMARK_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "LOGO_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "LOGO_WHITE_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/theming/asset/images/logo.png", "MARKETING_SITE_BASE_URL": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "REFRESH_ACCESS_TOKEN_ENDPOINT": "https://maxim-testing-themes.oc.eshe.opencraft.hosting/login_refresh", "SCHEDULE_EMAIL_SECTION": true, "STUDIO_BASE_URL": "https://studio.maxim-testing-themes.oc.eshe.opencraft.hosting"}, "ORA_GRADING_MICROFRONTEND_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/ora-grading", "PREVIEW_LMS_BASE": "preview.maxim-testing-themes.oc.eshe.opencraft.hosting", "SESSION_COOKIE_DOMAIN": "maxim-testing-themes.oc.eshe.opencraft.hosting", "SHARED_COOKIE_DOMAIN": "maxim-testing-themes.oc.eshe.opencraft.hosting", "SOCIAL_AUTH_EDX_OAUTH2_PUBLIC_URL_ROOT": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "WRITABLE_GRADEBOOK_URL": "https://apps.maxim-testing-themes.oc.eshe.opencraft.hosting/gradebook"}} maxim-testing-themes.oc.eshe.opencraft.hosting preview.maxim-testing-themes.oc.eshe.opencraft.hosting
     2024-03-04 15:57:05,534 INFO 71 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:119 - Found existing tenant for: 'maxim-testing-themes.oc.eshe.opencraft.hosting'
     2024-03-04 15:57:05,547 INFO 71 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:145 - Found existing route for: 'maxim-testing-themes.oc.eshe.opencraft.hosting'
     2024-03-04 15:57:05,550 INFO 71 [eox_tenant.management.commands.create_or_update_tenant_config] [user None] [ip None] create_or_update_tenant_config.py:145 - Found existing route for: 'preview.maxim-testing-themes.oc.eshe.opencraft.hosting'
     + ./manage.py lms create_or_update_site_configuration --configuration {"LMS_BASE": "maxim-testing-themes.oc.eshe.opencraft.hosting", "LMS_ROOT": "https://maxim-testing-themes.oc.eshe.opencraft.hosting", "SESSION_COOKIE_DOMAIN": "maxim-testing-themes.oc.eshe.opencraft.hosting", "SITE_NAME": "maxim-testing-themes.oc.eshe.opencraft.hosting", "version": 0} maxim-testing-themes.oc.eshe.opencraft.hosting --enabled
     2024-03-04 15:57:11,467 INFO 80 [openedx.core.djangoapps.site_configuration.management.commands.create_or_update_site_configuration] [user None] [ip None] create_or_update_site_configuration.py:98 - Found existing site for 'maxim-testing-themes.oc.eshe.opencraft.hosting'
     2024-03-04 15:57:11,471 INFO 80 [openedx.core.djangoapps.site_configuration.management.commands.create_or_update_site_configuration] [user None] [ip None] create_or_update_site_configuration.py:102 - Site configuration does not exist. Created new instance for 'maxim-testing-themes.oc.eshe.opencraft.hosting'
     + ./manage.py lms create_dot_application --grant-type authorization-code --redirect-uris https://studio.lms.oc.eshe.opencraft.hosting/complete/edx-oauth2/ https://studio.lms-1.oc.eshe.opencraft.hosting/complete/edx-oauth2/ --client-id cms-sso --client-secret *** --scopes user_id --skip-authorization --update cms-sso cms
     2024-03-04 15:57:17,490 INFO 89 [openedx.core.djangoapps.oauth_dispatch.management.commands.create_dot_application] [user None] [ip None] create_dot_application.py:97 - Updated cms-sso application with id: 2, client_id: cms-sso, and client_secret: ***
     2024-03-04 15:57:17,497 INFO 89 [openedx.core.djangoapps.oauth_dispatch.management.commands.create_dot_application] [user None] [ip None] create_dot_application.py:117 - Updated application access for cms-sso with scopes: user_id

Checklist

If any of the items below is not applicable, do not remove them, but put a check in it.

  • Git commit history is clean
  • Git commits are following conventional-commit practices
  • Unit tests are added/updated
  • Documentation is added/updated

Additional context

Internal-ref: https://tasks.opencraft.com/browse/BB-8515

Edited by Artur Gaspar

Merge request reports