pserv.yaml rewrite breaks when previous generator URL uses IPv6 address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Jeroen T. Vermeulen | ||
maas (Ubuntu) |
Fix Committed
|
Undecided
|
Jeroen T. Vermeulen |
Bug Description
Reconfiguring when the previous MAAS_URL used an IPv6 host address broke the ‘generator’ setting in my pserv.yaml: it ended up being the full newly configured netloc, with most of the previous IPv6 netloc tacked onto it.
I think that's because the regex in maas-cluster-
sed -i "s|MAAS_
# Extract the hostname part.
# And substitute it in-place in pserv.yaml on an indented, non-commented
# line.
sed -ri "s|^([[
These things are still best done in Python I suppose.
Related branches
- Gavin Panella (community): Approve
-
Diff: 503 lines (+476/-0)3 files modifiedsrc/provisioningserver/__main__.py (+2/-0)
src/provisioningserver/configure_maas_url.py (+123/-0)
src/provisioningserver/tests/test_configure_maas_url.py (+351/-0)
- Gavin Panella (community): Approve
-
Diff: 50 lines (+8/-9)2 files modifieddebian/changelog (+5/-1)
debian/maas-cluster-controller.postinst (+3/-8)
tags: | added: packaging |
Changed in maas: | |
milestone: | 1.7.0 → none |
Changed in maas: | |
assignee: | Andres Rodriguez (andreserl) → Gavin Panella (allenap) |
Changed in maas (Ubuntu): | |
assignee: | nobody → Gavin Panella (allenap) |
Changed in maas: | |
assignee: | Gavin Panella (allenap) → nobody |
Changed in maas (Ubuntu): | |
status: | New → Confirmed |
Changed in maas: | |
status: | Invalid → Triaged |
Changed in maas: | |
assignee: | nobody → Graham Binns (gmb) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas (Ubuntu): | |
assignee: | Gavin Panella (allenap) → nobody |
Changed in maas: | |
milestone: | 1.7.0 → next |
assignee: | Graham Binns (gmb) → Jeroen T. Vermeulen (jtv) |
Changed in maas: | |
milestone: | next → 1.7.1 |
description: | updated |
summary: |
- pserv.yaml rewrite breaks when MAAS URL uses IPv6 address + pserv.yaml rewrite breaks when previous generator URL uses IPv6 address |
description: | updated |
Changed in maas: | |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
status: | Triaged → In Progress |
Changed in maas (Ubuntu): | |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
status: | Confirmed → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Another packaging one for you, Andres.