[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-11-06 Thread Jeroen T. Vermeulen
** Description changed:

- Reconfiguring between an IPv4-based and an IPv6-based MAAS_URL broke the
- ‘generator’ setting in my pserv.yaml: it ended up being the full IPv4
- netloc, with most of the IPv6 netloc tacked onto it.
+ Reconfiguring when the existing 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-controller.postinst
  mistakes the first colon in an IPv6 address for the beginning of a port
  specifier:
  
- sed -i "s|MAAS_URL=.*|MAAS_URL=\"$RET\"|" /etc/maas/maas_cluster.conf
- # Extract the hostname part.
- HOSTPART=$(echo $RET|awk '{ split($0,array,"/")} END{print array[3] 
}')
- # And substitute it in-place in pserv.yaml on an indented, 
non-commented
- # line.
- sed -ri 
"s|^([[:space:]]+)(#+[[:space:]]*)?(generator:[[:space:]]+https?://)[^:/]+|\1\3$HOSTPART|"
 /etc/maas/pserv.yaml
+ sed -i "s|MAAS_URL=.*|MAAS_URL=\"$RET\"|" /etc/maas/maas_cluster.conf
+ # Extract the hostname part.
+ HOSTPART=$(echo $RET|awk '{ split($0,array,"/")} END{print array[3] 
}')
+ # And substitute it in-place in pserv.yaml on an indented, 
non-commented
+ # line.
+ sed -ri 
"s|^([[:space:]]+)(#+[[:space:]]*)?(generator:[[:space:]]+https?://)[^:/]+|\1\3$HOSTPART|"
 /etc/maas/pserv.yaml
  
  These things are still best done in Python I suppose.

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-11-05 Thread Graham Binns
On 5 November 2014 11:23, Jeroen T. Vermeulen
<1373...@bugs.launchpad.net> wrote:
>
> Note how the first part of the netloc, up to the first colon, is
> replaced with the new address — but the rest of the netloc is still
> there.

Ah, now ISWYM. Sorry, I'd missed that the *existing* MAAS URL in
pserv.yaml was an IPv6 address. Thanks for clarification.

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-11-05 Thread Jeroen T. Vermeulen
The problem is still there.  Example:

My pserv.yaml contains...

  generator: http://[fdd1:caf5:2922:8b1f::1]/MAAS/api/1.0/pxeconfig/

Now, realising that this doesn't work, I run ‘dpkg-reconfigure maas-
cluster-controller’ and set the MAAS URL to “http://10.9.9.1/MAAS”.

The resulting pserv.yaml now contains...

  generator: http://10.9.9.1:caf5:2922:8b1f::1]/MAAS/api/1.0/pxeconfig/

Note how the first part of the netloc, up to the first colon, is
replaced with the new address — but the rest of the netloc is still
there.

** Changed in: maas
 Assignee: Jeroen T. Vermeulen (jtv) => (unassigned)

** Changed in: maas
   Status: Incomplete => Triaged

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-30 Thread Christian Reis
** Changed in: maas
Milestone: next => 1.7.1

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-30 Thread Christian Reis
** Changed in: maas
Milestone: 1.7.0 => next

** Changed in: maas
 Assignee: Graham Binns (gmb) => Jeroen T. Vermeulen (jtv)

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-30 Thread Graham Binns
I can't reproduce this locally; it seems to work fine with properly
formatted — and even improperly formatted — IPv6 addresses. We really
need to see the problem you're seeing Jeroen.

** Changed in: maas
   Status: In Progress => Incomplete

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-30 Thread Graham Binns
** Changed in: maas
   Status: Triaged => In Progress

** Changed in: maas (Ubuntu)
 Assignee: Gavin Panella (allenap) => (unassigned)

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-28 Thread Graham Binns
** Changed in: maas
 Assignee: (unassigned) => Graham Binns (gmb)

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-22 Thread Andres Rodriguez
Jeroen,

Can you please provide what ends up in pserv.yaml?

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-22 Thread Christian Reis
The problem is that I need to leave them triaged or I miss them in the
milestone list.

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-19 Thread Julian Edwards
Kiko, this is not a maas bug, it's a packaging bug, for which bugs are
targeted to the ubuntu task.

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-17 Thread Christian Reis
** Changed in: maas
   Status: Invalid => Triaged

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-16 Thread Gavin Panella
** Changed in: maas
 Assignee: Andres Rodriguez (andreserl) => Gavin Panella (allenap)

** Changed in: maas (Ubuntu)
 Assignee: (unassigned) => Gavin Panella (allenap)

** Changed in: maas
 Assignee: Gavin Panella (allenap) => (unassigned)

** Changed in: maas (Ubuntu)
   Status: New => Confirmed

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-07 Thread Christian Reis
Andres, can you assign this one to yourself?

** Changed in: maas
Milestone: None => 1.7.0

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-07 Thread Julian Edwards
** Changed in: maas
Milestone: 1.7.0 => None

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1373261] Re: pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

2014-10-06 Thread Julian Edwards
Let's target it properly then.

** Also affects: maas (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: maas
   Status: Triaged => Invalid

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

Title:
  pserv.yaml rewrite breaks when MAAS URL uses IPv6 address

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs