-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from bird-house/restore-previous-broken-magpi…
…e-upgrade-so-we-can-work-on-a-fix Magpie upgrade strike II Strike II of this original PR #107. Matching notebook fix Ouranosinc/pavics-sdi#218 Performed test upgrade on staging (Medus) using prod (Boreas) Magpie DB, everything went well and Jenkins passed (http://jenkins.ouranos.ca/job/ouranos-staging/job/medus.ouranos.ca/80/parameters/). This Jenkins build uses the corresponding branch in Ouranosinc/pavics-sdi#218 and with `TEST_MAGPIE_AUTH` enabled. Manual upgrade migration procedure: 1. Save `/data/magpie_persist` folder from prod `pavics.ouranos.ca`: `cd /data; tar czf magpie_persist.prod.tgz magpie_persist` 2. scp `magpie_persist.prod.tgz` to `medus` 3. login to `medus` 4. `cd /path/to/birdhouse-deploy/birdhouse` 3. `./pavics-compose.sh down` 4. `git checkout master` 5. `cd /data` 2. `rm -rf magpie_persist` 3. `tar xzf magpie_persist.prod.tgz` # restore Magpie DB with prod version 4. `cd /path/to/birdhouse-deploy/birdhouse` 5. `./pavics-compose.sh up -d` 3. Update `env.local` `MAGPIE_ADMIN_PASSWORD` with prod passwd for Twitcher to be able to access Magpie since we juste restore the Magpie DB from prod 4. `./pavics-compose.sh restart twitcher` # for Twitcher to get new Magpie admin passwd 4. Baseline working state: trigger Jenkins test suite, ensure all pass except `pavics_thredds.ipynb` that requires new Magpie 5. Baseline working state: view existing services permissions on group Anonymous (https://medus.ouranos.ca/magpie/ui/groups/anonymous/default) 6. `git checkout restore-previous-broken-magpie-upgrade-so-we-can-work-on-a-fix` # This current branch 7. `./pavics-compose.sh up -d` # upgrade to new Magpie 8. `docker logs magpie`: check no DB migration error 9. Trigger Jenkins test suite again
- Loading branch information
Showing
8 changed files
with
167 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
birdhouse/optional-components/secure-thredds/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
version: '2.1' | ||
services: | ||
magpie: | ||
volumes: | ||
- ./optional-components/secure-thredds/secure-access-magpie-permission.cfg:/opt/local/src/magpie/config/permissions/secure-access-magpie-permission.cfg:ro |
68 changes: 68 additions & 0 deletions
68
birdhouse/optional-components/secure-thredds/secure-access-magpie-permission.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
permissions: | ||
# note: | ||
# following permissions can be combined with others such as 'optional-components/all-public-access' | ||
# to provide access to 'everything' except those under 'secure' directories listed below | ||
|
||
# following permissions only enforce security on specific directories and files under it | ||
# these can be reverted or combined with other set of permissions on resources 'above' or 'under' in the hierarchy | ||
# users or groups will need explicit permissions under following resources for them to access sub-directories/files | ||
- service: thredds | ||
resource: /birdhouse/testdata/secure | ||
type: directory | ||
permission: | ||
name: browse | ||
access: deny | ||
scope: recursive | ||
group: anonymous | ||
action: create | ||
|
||
- service: thredds | ||
resource: /birdhouse/testdata/secure | ||
type: directory | ||
permission: | ||
name: read | ||
access: deny | ||
scope: recursive | ||
group: anonymous | ||
action: create | ||
|
||
- service: thredds | ||
resource: /birdhouse/testdata/secure | ||
type: directory | ||
permission: | ||
name: write | ||
access: deny | ||
scope: recursive | ||
group: anonymous | ||
action: create | ||
|
||
# preserve access for test-suite user | ||
- service: thredds | ||
resource: /birdhouse/testdata/secure | ||
type: directory | ||
permission: | ||
name: browse | ||
access: allow | ||
scope: recursive | ||
user: authtest | ||
action: create | ||
|
||
- service: thredds | ||
resource: /birdhouse/testdata/secure | ||
type: directory | ||
permission: | ||
name: read | ||
access: allow | ||
scope: recursive | ||
user: authtest | ||
action: create | ||
|
||
- service: thredds | ||
resource: /birdhouse/testdata/secure | ||
type: directory | ||
permission: | ||
name: write | ||
access: allow | ||
scope: recursive | ||
user: authtest | ||
action: create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters