Can't upload packages to LDS deployed with the new charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Charm |
Fix Released
|
High
|
Данило Шеган |
Bug Description
When LDS is deployed with the new charm, there is some confusion regarding the /upload prefix and uploads don't work.
$ dput -fu lds:ubuntu/
Uploading to lds (via https to 10.96.3.104):
Uploading treq_0.
server:
Jun 26 19:06:21 package-upload-1 INFO 10.96.3.104 - - [26/Jun/
~/.dput.cf has:
[lds]
# this one was deployed with the new charm (FE is haproxy)
fqdn = 10.96.3.104
method = https
incoming = /upload/
This exact same dput configuration works when the same LDS is deployed with the charm store charm:
$ dput -fu otherlds:
Uploading to otherlds (via https to 10.96.3.20):
Uploading treq_0.
Uploading treq_0.
Uploading python-
Uploading treq_0.
Successfully uploaded packages.
server:
Jun 26 19:07:47 package-upload-1 INFO 10.96.3.80 - - [26/Jun/
Jun 26 19:07:47 package-upload-1 INFO 10.96.3.80 - - [26/Jun/
Jun 26 19:07:48 package-upload-1 INFO 10.96.3.80 - - [26/Jun/
Jun 26 19:07:49 package-upload-1 INFO 10.96.3.80 - - [26/Jun/
I was able to get the upload to work against the new charm after making these changes:
- accessing landscape-server/0 directly instead of going through haproxy
- removing the /upload prefix
- changing https to http
Related branches
- 🤖 Landscape Builder: Approve (test results)
- Benji York (community): Approve
- Free Ekanayaka (community): Approve
-
Diff: 38 lines (+10/-2)2 files modifiedlib/relations/haproxy.py (+3/-1)
lib/relations/tests/test_haproxy.py (+7/-1)
tags: | removed: kanban |
Changed in landscape: | |
assignee: | nobody → Данило Шеган (danilo) |
Changed in landscape: | |
status: | New → In Progress |
no longer affects: | landscape/release-29 |
information type: | Proprietary → Public |
affects: | landscape → landscape-charm |
Changed in landscape-charm: | |
milestone: | none → 15.07 |
Changed in landscape-charm: | |
status: | In Progress → Fix Committed |
Changed in landscape-charm: | |
status: | Fix Committed → Fix Released |