Merge lp:~kirkland/maas/1342292 into lp:~maas-committers/maas/trunk

Proposed by Dustin Kirkland 
Status: Rejected
Rejected by: Julian Edwards
Proposed branch: lp:~kirkland/maas/1342292
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 11 lines (+1/-0)
1 file modified
contrib/preseeds_v2/curtin_userdata (+1/-0)
To merge this branch: bzr merge lp:~kirkland/maas/1342292
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+226900@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) wrote :

Is there a reason you decided to break if 'echo' is /usr/bin ?
you're explicitly calling the program 'echo' rather than the sh builtin.

less escaping is done by:
 curtin in-target -- sh -c 'echo "$@" > /etc/apt/apt.conf.d/99translations' -- 'Acquire::Languages "none";'

that said, i don't really think this is the right place to work around a squid (or external internet connection) and I really think its not even going to sufficiently work around the issue. It just reduces the number of network connections, possibly reducing failure percentage.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

On Tue, Jul 15, 2014 at 2:28 PM, Scott Moser <email address hidden> wrote:
> Is there a reason you decided to break if 'echo' is /usr/bin ?
> you're explicitly calling the program 'echo' rather than the sh builtin.
>
> less escaping is done by:
> curtin in-target -- sh -c 'echo "$@" > /etc/apt/apt.conf.d/99translations' -- 'Acquire::Languages "none";'

No reason. I copied some code I found elsewhere to accomplish this.
That's just what was there. And it worked.

> that said, i don't really think this is the right place to work around a squid (or external internet connection) and I really think its not even going to sufficiently work around the issue. It just reduces the number of network connections, possibly reducing failure percentage.

Agreed, this is a horrible place to put this. However, an SE and I
worked 8 hours through the night (Midnight until 8am), trying to
triage and solve this problem before we stumbled into the customer
environment (bleary eyed), and delivered the demo.

All nodes, and the entire environment, is completely unusable and
unworkable until this is disabled.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I'm wary of landing a hack like this too.

What is the ramification of not including translations in Curtin? Is anything
likely to be relying on those?

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

That's fine. Close it if you like. I don't take offense. It is
clearly a hack.

I just hope Google ranks this high enough when people are searching
for these symptoms so that people know how to hack around this. This
has hit us HARD in the field, multiple times now.

:-Dustin

On Tue, Jul 15, 2014 at 7:42 PM, Julian Edwards
<email address hidden> wrote:
> I'm wary of landing a hack like this too.
>
> What is the ramification of not including translations in Curtin? Is anything
> likely to be relying on those?
>
> --
> https://code.launchpad.net/~kirkland/maas/1342292/+merge/226900
> You are the owner of lp:~kirkland/maas/1342292.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Right, the underlying cause is apt, and there's a duped bug of the original for this branch. I'll reject the MP now.

Unmerged revisions

2561. By Dustin Kirkland 

disable acquiring translations in user data, for machines brought up by curtin

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'contrib/preseeds_v2/curtin_userdata'
2--- contrib/preseeds_v2/curtin_userdata 2014-04-25 18:03:38 +0000
3+++ contrib/preseeds_v2/curtin_userdata 2014-07-15 19:18:00 +0000
4@@ -14,6 +14,7 @@
5 driver_04_load: ["sh", "-c", "depmod && modprobe {{driver['module']}}"]
6 {{endif}}
7 late_commands:
8+ lang: curtin in-target -- sh -c "/bin/echo 'Acquire::Languages \"none\";' > /etc/apt/apt.conf.d/99translations"
9 maas: [wget, '--no-proxy', '{{node_disable_pxe_url|escape.shell}}', '--post-data', '{{node_disable_pxe_data|escape.shell}}', '-O', '/dev/null']
10 {{if third_party_drivers and driver}}
11 driver_00_key_get: curtin in-target -- sh -c "/bin/echo -en '{{key_string}}' > /tmp/maas-{{driver['package']}}.gpg"