~troyanov/maas:proxy-headers-backport-3.3

Last commit made on 2023-03-15
Get this branch:
git clone -b proxy-headers-backport-3.3 https://git.launchpad.net/~troyanov/maas
Only Anton Troyanov can upload to this branch. If you are Anton Troyanov please log in for upload directions.

Branch merges

Branch information

Name:
proxy-headers-backport-3.3
Repository:
lp:~troyanov/maas

Recent commits

0c05a9b... by Anton Troyanov

fix(region): use $http_host to read Host header

$http_name
arbitrary request header field;

the last part of a variable name is the field name converted to lower case
with dashes replaced by underscores

Resolves LP:2009186

(cherry picked from commit eff39899eab1331f712aa8c4f9f2004f9aded683)

c259d26... by Anton Troyanov

fix: set explicit testtools version

testtools 2.6.0 has a breaking change [1] that leads to an error:

    AttributeError: module 'email' has no attribute 'message'

[1]: https://github.com/testing-cabal/testtools/commit/b4bcd3c3d1964352d5f51def08629114057541a8

(cherry picked from commit f08e136c52d5dab55e73da9f9e65042bb28ad612)

94920eb... by Alberto Donato

Bug #2009805: machine deploy install_kvm=True fails

exclude discovered IPs when selecting which to use for VM hosts deploys

(cherry picked from commit 91442ef7aecbcd2caf345b8abad579876f5d9448)

c16aae8... by Björn Tillenius

Bug #2003310: Refresh scripts are not re-run if they pass, but fail to report the results to the region
j
While refreshing the hardware information for controllers,
the scripts might all pass, but when reporting the results
back to the metadata server, something went wrong.

The exception was swallowed and ignored, though, so the
networking service didn't noticed it and assumed that
all scripts had passed.

This changes things so that the signal exception is caught
in the networking service itself, so it's aware that something
went wrong.

(cherry picked from commit 42cdcb554f65574d216aaff06ad592675920922a)

329f717... by Alexsander de Souza

Prepare for 3.3.1 release

6a9f5da... by Anton Troyanov

fix(cli): use profile.url to build absolute uri

When MAAS is behind a load-balancer or proxy
(e.g. HAProxy with `mode tcp`), CLI should use MAAS URL stored in profile
to build absolute URI of a resource, instead of relying on `uri` property
returned by `/describe`.

Resolves LP:2009186

(cherry picked from commit 28c72b81ed318b283cd3f2ddcae2e199ca067228)

239cd93... by Alberto Donato

LP:1773150 replace invalid UTF-8 chars in smartctl output

backport of 002f8c1c2d4a248b75fca33e3de29665464bf829

46fe0b7... by Alexsander de Souza

Fix Perl environment on snap

- Get Perl version dynamically
- Copy Perl modules to snap tree

fixes LP#2008275

(cherry picked from commit 44b74341479ed26fd57960cf7d77a6c33045801d)

07f892f... by Jack Lloyd-Walters

fix LP:2009140, OpenApi parameter names erroneously stripped of trailing '}'

(cherry picked from commit faeff957c4a3b16ca487e187b64148c92001a84d)

9a87ecd... by Jack Lloyd-Walters

LP:2009137 - Modify OpenApi method generation to capture all method types

(cherry picked from commit 16fd33e8a477ad434eebe44b10badaf9c7681398)