Merge lp://qastaging/~dpb/orange-box/use-nc-not-ping-1361714 into lp://qastaging/orange-box
Proposed by
David Britton
Status: | Merged |
---|---|
Merged at revision: | 472 |
Proposed branch: | lp://qastaging/~dpb/orange-box/use-nc-not-ping-1361714 |
Merge into: | lp://qastaging/orange-box |
Diff against target: |
76 lines (+51/-3) 2 files modified
debian/postinst (+2/-3) usr/bin/orange-box-test-uplink (+49/-0) |
To merge this branch: | bzr merge lp://qastaging/~dpb/orange-box/use-nc-not-ping-1361714 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Dustin Kirkland | Pending | ||
Review via email: mp+232490@code.qastaging.launchpad.net |
Description of the change
Introduce new script ob-test-uplink and call this instead of using icmp ping.
Please let me know if you would like any more hosts added.
To post a comment you must log in.
Review: Needs Fixing
On Wed, Aug 27, 2014 at 6:10 PM, David Britton /bugs.launchpad .net/orange- box/+bug/ 1361714 /code.launchpad .net/~davidpbri tton/orange- box/use- nc-not- ping-1361714/ +merge/ 232490 /code.launchpad .net/~davidpbri tton/orange- box/use- nc-not- ping-1361714/ +merge/ 232490 until-success ping -c 3 maas.ubuntu.com box-test- uplink until-success
<email address hidden> wrote:
> David Britton has proposed merging lp:~davidpbritton/orange-box/use-nc-not-ping-1361714 into lp:orange-box.
>
> Requested reviews:
> Orange Box (orange-box)
> Related bugs:
> Bug #1361714 in Orange Box: "orange-box postinst uses ping to test connectivity to maas.ubuntu.com"
> https:/
>
> For more details, see:
> https:/
>
> Introduce new script ob-test-uplink and call this instead of using icmp ping.
>
> Please let me know if you would like any more hosts added.
> --
> https:/
> You are subscribed to branch lp:orange-box.
>
> === modified file 'debian/postinst'
> --- debian/postinst 2014-08-25 16:40:02 +0000
> +++ debian/postinst 2014-08-27 23:09:22 +0000
> @@ -37,7 +37,8 @@
> fi
> # Setup nat
> # Ensure we have an external connection
> - run-one-
> + orange-
> + run-one-
This isn't quite right. You would need to put these both on the same
line, like this:
run-one- until-success orange- box-test- uplink
Also, check that you're using tabs here, and not 8 white spaces.
> orange- box-setup- nat html/index. html <<EOF until-success ping -c 3 maas.ubuntu.com box-test- uplink
> # Redirect to MAAS web interface
> cat >/var/www/
> @@ -96,8 +97,7 @@
> # MAAS won't work very well until this is done, so we're going to block
> # until this completes
> # Network access may not be immediately available;
> - # wait until we can talk to maas
> - run-one-
> + orange-
Use a tab. And wrap with run-one- until-success.
> # Support MAAS 1.5, and 1.6 orange- box-test- uplink' orange- box-test- uplink 1970-01-01 00:00:00 +0000 orange- box-test- uplink 2014-08-27 23:09:22 +0000 box-amt- recover - recover a dead AMT by dropping all connections
> maas_ver=$(dpkg -l maas | tail -n1 | awk '{print $3}')
> if dpkg --compare-versions $maas_ver lt 1.6; then
>
> === added file 'usr/bin/
> --- usr/bin/
> +++ usr/bin/
> @@ -0,0 +1,46 @@
> +#!/bin/sh
> +#
> +# orange-
Thanks for copying the template. Make sure you update this line
appropriately ;-)
> +# Copyright (C) 2014 Canonical Ltd. www...
> +#
> +# Authors: David Britton <email address hidden>
> +#
> +# This program is free software: you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation, version 3 of the License.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program. If not, see <http://