Switched ownership as Kevin has left. 
From my conversations with him - it seems the change will come from landscape 
charm code server side. 

There is a very complicated workaround in haproxy.cfg but it might not
work due to the new changes in haproxy http-request.

```
                - service_name: haproxy
                  service_host: 0.0.0.0
                  service_port: 80
                  service_options:
                  - mode http
                  - balance leastconn
                  - acl upload path_beg -i /upload
                  - http-request redirect location 
http://%fi:9999%[capture.req.uri] if upload
                  servers: [[server1, 10.145.128.61, 80, []]]
                - service_name: upload
                  service_host: 0.0.0.0
                  service_port: 9999
                  servers: [[upload, 10.145.128.61, 80, []]]
                  service_options:
                  - mode http
                  - balance leastconn
                  - acl upload path_beg -i /upload
                  - http-request reject unless upload 
                  - http-request replace-path /upload(/)?(.*) /\\\\2 if upload
```

Output of dput even removing /\2 and still getting 404's 
```
ubuntu@jammy:~$ dput -d lds:ubuntu/noble/upload ./py/python3-etcd3gw.changes
D: Login: ubuntu
D: Parsing Configuration File /etc/dput.cf
D: Parsing Configuration File /home/ubuntu/.dput.cf
D: Splitting host argument out of  lds:ubuntu/noble/upload.
D: Setting host argument.
D: Checking if a host was named on the command line.
D: Host lds found in config.
D: modules_found: ['ftp', 'http', 'https', 'local', 'rsync', 'scp', 'sftp']
D: Module: ftp (<module 'dput.methods.ftp' from 
'/usr/share/dput/dput/methods/ftp.py'>)
D: Method name: ftp
D: Module: http (<module 'dput.methods.http' from 
'/usr/share/dput/dput/methods/http.py'>)
D: Method name: http
D: Module: https (<module 'dput.methods.https' from 
'/usr/share/dput/dput/methods/https.py'>)
D: Method name: https
D: Module: local (<module 'dput.methods.local' from 
'/usr/share/dput/dput/methods/local.py'>)
D: Method name: local
D: Module: rsync (<module 'dput.methods.rsync' from 
'/usr/share/dput/dput/methods/rsync.py'>)
D: Method name: rsync
D: Module: scp (<module 'dput.methods.scp' from 
'/usr/share/dput/dput/methods/scp.py'>)
D: Method name: scp
D: Module: sftp (<module 'dput.methods.sftp' from 
'/usr/share/dput/dput/methods/sftp.py'>)
D: Method name: sftp
D: Validating contents of changes file ./py/python3-etcd3gw.changes
D: Architecture: all
D: Doing a binary upload only.
D: upload control file: ./py/python3-etcd3gw.changes
D: source control file: 
Checking signature on .changes
gpg: ./py/python3-etcd3gw.changes: Valid signature from E22D119BE352FBF4
D: Package Version: 0.2.5-1ubuntu1.22.04.2
D: Upstream Version: 0.2.5
D: Debian Version: 1ubuntu1.22.04.2
D: File to upload: ./py/python3-etcd3gw_0.2.5-1ubuntu1.22.04.2_all.deb
D: Checksum for ./py/python3-etcd3gw_0.2.5-1ubuntu1.22.04.2_all.deb is fine
D: Checking: distribution noble-upload matches (?!UNRELEASED)
D: File to upload: ./py/python3-etcd3gw.changes
D: Default Method: ftp
D: Host Method: https
D: Login * from section lds used
Uploading to lds (via https to 10.33.109.252):
D: FQDN: 10.33.109.252
D: Login: *
D: Incoming: /upload/standalone/ubuntu/noble/upload
  Uploading python3-etcd3gw_0.2.5-1ubuntu1.22.04.2_all.deb: D: HTTP-PUT to URL: 
https://10.33.109.252/upload/standalone/ubuntu/noble/upload/python3-etcd3gw_0.2.5-1ubuntu1.22.04.2_all.deb
Upload failed: 404 Not Found
D: Response body: Resource not found: 
/upload/standalone/ubuntu/noble/upload/python3-etcd3gw_0.2.5-1ubuntu1.22.04.2_all.deb
```

** Also affects: ubuntu
   Importance: Undecided
       Status: New

** No longer affects: ubuntu

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2098864

Title:
  HAproxy config for uploading packages is broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/landscape/+bug/2098864/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to