cmd/juju: juju takes 3 seconds to do nothing

Bug #1356806 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Won't Fix
Medium
Unassigned

Bug Description

Testing juju on a platform that does not have a fast assembly implementation of the math/big package leads to weird 3 second delays even when juju is doing nothing

$ time juju hey dave
ERROR unrecognized command: juju hey

real 0m3.410s
user 0m3.394s
sys 0m0.013s

It turns out that during startup, juju is reading and decoding its private key

close(4) = 0
open("/home/ubuntu/.juju/ssh/juju_id_rsa", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0600, st_size=1679, ...}) = 0
read(4, "-----BEGIN RSA PRIVATE KEY-----\n"..., 2191) = 1679
read(4, "", 512) = 0
close(4)

This is wasteful even on platforms that have a fast crypto library.

Martin Packman (gz)
Changed in juju-core:
importance: Undecided → Medium
status: New → Triaged
Changed in juju-core:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.