<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Why not use the auto update feature that is in Ubuntu.  I use it and recoeve emails about the upgrades</div><div><br></div><div><br></div><div><div style="font-size:75%;color:#575757">Sent from Samsung Mobile</div></div><br><br><br>-------- Original message --------<br>From: Antonio Rosales <antonio.rosales@canonical.com> <br>Date: 01/07/2014  21:38  (GMT+01:00) <br>To: Andrew Wilkins <andrew.wilkins@canonical.com> <br>Cc: juju-dev@lists.ubuntu.com <br>Subject: Re: Proposal: making apt-get upgrade optional <br> <br><br>Suggest we make an environments.yaml key value of say "apt-get-update"<br>set to a boolean with the default being "true". Existing charms are<br>timing out[0] when apt-get update is turned off due to stale apt-get<br>metadata. Users then can them make the choice, and we can make<br>suggestions in the docs as to what this key value means and how it can<br>improve performance especially in the developer scenario when the care<br>more about fast iterative deploys.<br><br>Thoughts?<br><br>[0] https://bugs.launchpad.net/juju-core/+bug/1336353<br><br>-thanks,<br>Antonio<br><br>On Tue, Jul 1, 2014 at 4:43 AM, Andrew Wilkins<br><andrew.wilkins@canonical.com> wrote:<br>> On Tue, Jul 1, 2014 at 5:45 PM, John Meinel <john@arbash-meinel.com> wrote:<br>>><br>>> I would just caution that we'd really prefer behavior to be consistent<br>>> across platforms and clouds, and if we can work with Microsoft to make<br>>> 'apt-get update' faster in their cloud everyone wins who uses Ubuntu there,<br>>> not just us.<br>><br>><br>> I was meaning to disable it across all providers. It would be ideal to<br>> improve upgrades for all Ubuntu users, but from what I can tell it's a case<br>> of Azure's OS disks being a tad slow. If you start going up the<br>> instance-type scale, then you do get more IOPS. I haven't measured how much<br>> of a difference it makes.<br>><br>>><br>>> Have we looked into why Upgrade is taking 3m+? Is it the time to download<br>>> things, is it the time to install things? I've certainly heard things like<br>>> "disk ops is a bit poor" on Azure (vs CPU is actually better than average).<br>>> Given the variance of 6m+ to 3m20s with Eat my data, it would seem disk sync<br>>> performance is at least a factor here.<br>><br>><br>> I just looked, and it is mostly not network related (I assume mostly I/O<br>> bound). On ec2 an upgrade fetches all the bits in 0s; on Azure it's taking<br>> 5s.<br>><br>>> Given I believe apt-get update is also disabled for local (it is run on<br>>> the initial template, and then not run for the other instances copied from<br>>> that), there is certainly precedence. I think a big concern is that we would<br>>> probably still want to do apt-get update for security related updates.<br>>> Though perhaps that is all of the updates we are applying anyway...<br>>><br>>> If I read the "aws.json" file correctly, I see only 8 releases of the<br>>> 'precise' image. 6 of 'trusty' and 32 total dates of released items. And<br>>> some of the trusty releases are 2014-01-22.1 which means it is likely to be<br>>> beta releases.<br>>><br>>> Anyway, that means that they are actually averaging an update only<br>>> 1/month, which is a fairly big window of updates to apply by the end of<br>>> month (I would imagine). And while that does mean it takes longer to boot,<br>>> it also means you would be open to more security holes without it.<br>><br>><br>> My contention is that if we don't *keep* it updated, we may as well just<br>> leave it to the user. When you create an instance in ec2 or Azure or<br>> whatever, it doesn't come fully up-to-date. You get the released image, and<br>> then you can update it if you want to.<br>><br>>> John<br>>> =:-><br>>><br>>><br>>><br>>><br>>> On Mon, Jun 30, 2014 at 5:05 PM, Andrew Wilkins<br>>> <andrew.wilkins@canonical.com> wrote:<br>>>><br>>>> Hi folks,<br>>>><br>>>> I've been debugging a bootstrap bug [0] that was caused by ssh timing out<br>>>> (and the client not noticing), which was caused by "apt-get upgrade" taking<br>>>> an awfully long time (6 minutes on Azure).<br>>>>     [0] https://bugs.launchpad.net/juju-core/+bug/1316185<br>>>><br>>>> I just filed https://bugs.launchpad.net/juju-core/+bug/1335822, and did a<br>>>> quick and dirty hack that brought the upgrade down to 3 minutes on Azure. I<br>>>> don't know the variance, so I can't be sure that it's all due to eatmydata,<br>>>> but smoser's results are similar.<br>>>><br>>>> Even with eatmydata, a full bootstrap on Azure just took me 10 minutes.<br>>>> That's roughly broken down into:<br>>>>  - apt-get update: 20s<br>>>>  - apt-get upgrade: 3m20s<br>>>>  - apt-get install <various>: 10s<br>>>>  - Download tools (from shared Azure storage account): 5s<br>>>>  - jujud bootstrap: 1m50s<br>>>><br>>>> We could bring the 10m down to 6m40s. Still not brilliant, but<br>>>> considerably better IMO.<br>>>><br>>>> I propose that we remove the "apt-get upgrade" altogether. Cloud images<br>>>> are regularly updated and tested, and I think we should be able to rely on<br>>>> that alone. If users want something more up-to-date, they can use the daily<br>>>> images which are not tested as a whole, but are composed of SRUs, which is<br>>>> effectively what users get today.<br>>>><br>>>> Cheers,<br>>>> Andrew<br>>>><br>>>> --<br>>>> Juju-dev mailing list<br>>>> Juju-dev@lists.ubuntu.com<br>>>> Modify settings or unsubscribe at:<br>>>> https://lists.ubuntu.com/mailman/listinfo/juju-dev<br>>>><br>>><br>><br>><br>> --<br>> Juju-dev mailing list<br>> Juju-dev@lists.ubuntu.com<br>> Modify settings or unsubscribe at:<br>> https://lists.ubuntu.com/mailman/listinfo/juju-dev<br>><br><br><br><br>-- <br>Antonio Rosales<br>Juju Ecosystem<br>Canonical<br><br>-- <br>Juju-dev mailing list<br>Juju-dev@lists.ubuntu.com<br>Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev<br></body>