Merge lp://qastaging/~danilo/landscape-charm/archive-url into lp://qastaging/~landscape/landscape-charm/trunk
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | 379 |
Merged at revision: | 375 |
Proposed branch: | lp://qastaging/~danilo/landscape-charm/archive-url |
Merge into: | lp://qastaging/~landscape/landscape-charm/trunk |
Diff against target: |
339 lines (+138/-23) 8 files modified
lib/relations/haproxy.py (+16/-14) lib/relations/hosted.py (+9/-0) lib/relations/tests/test_hosted.py (+51/-7) lib/services.py (+1/-1) lib/tests/test_templates.py (+17/-0) lib/tests/test_utils.py (+24/-1) lib/utils.py (+19/-0) templates/service.conf (+1/-0) |
To merge this branch: | bzr merge lp://qastaging/~danilo/landscape-charm/archive-url |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Smith | Approve | ||
Free Ekanayaka (community) | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Review via email:
|
Commit message
Set archive-url in [pppa-proxy] section of service.conf when hosted relation is there. Based on value of root-url if there, otherwise uses special value "RELATIVE".
Description of the change
Set archive-url in [pppa-proxy] section of service.conf when hosted relation is there. If root-url is not set, use special value "RELATIVE".
See the following MP for more background: https:/
Testing instructions:
1. Deploy Landscape with landscape-hosted with gpg configuration and by putting the standalone source tarball generated from the above tarball inside the landscape-server charm tree. Eg. something like the following bundle (but don't use those branches, instead, construct a local charm store to be able to put standalone tarball in there).
https:/
landscape-
Alternatively, you should be able to stage Landscape charm from the Landscape branch, then upgrade to a charm in this branch. You will need to juju add landscape-hosted charm manually in that case.
2. Log into Landscape, create a trial account (company "foo"), and generate API credentials on your account page.
3. Grant the AccountManager role to your user in Landscape:
juju ssh postgresql/0 sudo -u postgres 'psql landscape-main -c "insert into person_access values (1, 6, NULL);"'
3. Pull landscape_
juju ssh landscape-server/0 sudo cat /etc/ssl/
4. Generate a license using the API:
export LANDSCAPE_API_URI=https:/
export LANDSCAPE_
export LANDSCAPE_
landscape-api --ssl-ca-file landscape-ca.crt EnableLDS account_name=foo
landscape-api --ssl-ca-file landscape-ca.crt AddLicense seats=4 account_name=foo expiration_
5. Browse to https://<haproxy-
6. juju set landscape-server root-url=https:/
7. Add /etc/hosts entries for archive.
8. Repeat 5 replacing haproxy-IP with landscape.dev: how-to-
Command: make ci-test /ci.lscape. net/job/ latch-test- trusty/ 23/
Result: Success
Revno: 378
Branch: lp:~danilo/landscape-charm/archive-url
Jenkins: https:/