Skip to content

Remove default site creation commands - #65

Merged
iamjazzar merged 1 commit into
juniperfrom
jazzar/problem-builder
Mar 30, 2021
Merged

Remove default site creation commands#65
iamjazzar merged 1 commit into
juniperfrom
jazzar/problem-builder

Conversation

@iamjazzar

@iamjazzar iamjazzar commented Mar 24, 2021

Copy link
Copy Markdown

Overview

What sparked this PR?

When I tried to setup a new devstack and provision it, it failed on create_devstack_site because of the recent change on create_devstack_site in amc#472 and edx-platform#848

What problem does it solve?

  • Provisioning the devstack no longer should fail.
  • Closer to edX changes.

Related PRs

Release notes

  • Bug fixes.

Other

  • Docs?
    - [ ] Tests?

@iamjazzar
iamjazzar requested a review from OmarIthawi March 25, 2021 02:44

@OmarIthawi OmarIthawi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AhmedAljazzar thanks! This fixes the issue, but at a cost. What are your thoughts?

Comment thread tahoe.mk Outdated
Comment on lines +36 to +38
make COMMAND='python manage.py lms create_devstack_site red devstack.tahoe' SERVICE='lms' tahoe.exec.single
docker exec -it tahoe.$(COMPOSE_PROJECT_NAME).amc python manage.py create_devstack_superuser
docker exec -it tahoe.$(COMPOSE_PROJECT_NAME).amc python manage.py create_devstack_site red
docker exec -it tahoe.$(COMPOSE_PROJECT_NAME).amc python manage.py create_devstack_site red devstack.tahoe

@OmarIthawi OmarIthawi Mar 26, 2021

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AhmedAljazzar! This won't work for localhost environment.

We have a couple of options:

1- use an environment variable like ${TAHOE_BASE_DOMAIN:-localhost} so it's customizeable by Sultan
2- use devstack.tahoe (I don't like this option and prefer 4 instead)
3- use localhost
4- remove the create_devstack_site altogether

@iamjazzar
iamjazzar force-pushed the jazzar/problem-builder branch from 937b48e to 86c5bd2 Compare March 29, 2021 16:45
@iamjazzar iamjazzar changed the title Fix devstack create site command Remove default site creation commands Mar 29, 2021
@iamjazzar
iamjazzar requested a review from OmarIthawi March 29, 2021 17:06

@OmarIthawi OmarIthawi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! One more change so the docs are up to date:

Comment thread README.rst
127.0.0.1 blue.localhost green.localhost # Create as many of those as you wish
127.0.0.1 blue.devstack.tahoe green.devstack.tahoe # Create as many of those as you wish

Where's my Site?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahmed please modify that section to note that create_devstack_site is needed. Something like the following:

-Now you have a site of your own:
+To create a new site, please run the following commands: ... , ...
+
+Then you'll have a site of your own:

@iamjazzar
iamjazzar force-pushed the jazzar/problem-builder branch from 86c5bd2 to 95b8d38 Compare March 30, 2021 01:09
@iamjazzar
iamjazzar requested a review from OmarIthawi March 30, 2021 01:10
@iamjazzar
iamjazzar merged commit 9667930 into juniper Mar 30, 2021
@iamjazzar
iamjazzar deleted the jazzar/problem-builder branch March 30, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants