[Bug 1422388] Re: Fetch passwords from CloudStack virtual router

2015-02-26 Thread Daniel Watkins
I'm expecting utlemming to sponsor these uploads, so ~ubuntu-sponsors
don't need to worry about it. :)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1422388

Title:
  Fetch passwords from CloudStack virtual router

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1422388/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1422388] Re: Fetch passwords from CloudStack virtual router

2015-02-26 Thread Daniel Watkins
** Patch added: debdiff for CloudStack passwords in precise
   
https://bugs.launchpad.net/cloud-init/+bug/1422388/+attachment/4328200/+files/precise-cloudstack-passwords.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1422388

Title:
  Fetch passwords from CloudStack virtual router

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1422388/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1422388] Re: Fetch passwords from CloudStack virtual router

2015-02-26 Thread Daniel Watkins
** Patch added: debdiff for CloudStack passwords in trusty
   
https://bugs.launchpad.net/cloud-init/+bug/1422388/+attachment/4328201/+files/trusty-cloudstack-passwords.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1422388

Title:
  Fetch passwords from CloudStack virtual router

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1422388/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1422388] Re: Fetch passwords from CloudStack virtual router

2015-02-26 Thread Daniel Watkins
** Patch added: debdiff for CloudStack passwords in utopic
   
https://bugs.launchpad.net/cloud-init/+bug/1422388/+attachment/4328202/+files/utopic-cloudstack-passwords.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1422388

Title:
  Fetch passwords from CloudStack virtual router

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1422388/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1422388] Re: Fetch passwords from CloudStack virtual router

2015-02-26 Thread Daniel Watkins
I've tested all of these on Interoute on amd64 and i386.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1422388

Title:
  Fetch passwords from CloudStack virtual router

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1422388/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1422388] Re: Fetch passwords from CloudStack virtual router

2015-02-25 Thread Daniel Watkins
** Changed in: cloud-init
   Status: New = Fix Committed

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: cloud-init (Ubuntu)
 Assignee: (unassigned) = Daniel Watkins (daniel-thewatkins)

** Changed in: cloud-init (Ubuntu)
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1422388

Title:
  Fetch passwords from CloudStack virtual router

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1422388/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash

2015-02-25 Thread Daniel Watkins
** Changed in: cloud-init (Ubuntu Trusty)
 Assignee: (unassigned) = Daniel Watkins (daniel-thewatkins)

** Changed in: cloud-init (Ubuntu Utopic)
 Assignee: (unassigned) = Daniel Watkins (daniel-thewatkins)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1356855

Title:
  Cloud-init 0.7.5 Failed to get cloudstack user-data because of
  trailing slash

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash

2015-02-25 Thread Daniel Watkins
** Changed in: cloud-init (Ubuntu Utopic)
   Status: Confirmed = Fix Released

** Changed in: cloud-init (Ubuntu Utopic)
 Assignee: Daniel Watkins (daniel-thewatkins) = (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1356855

Title:
  Cloud-init 0.7.5 Failed to get cloudstack user-data because of
  trailing slash

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1422993] Re: cloud-init AzureDS fails on 15.04

2015-02-18 Thread Daniel Watkins
** Changed in: cloud-init
   Status: New = In Progress

** Changed in: cloud-init
 Assignee: (unassigned) = Daniel Watkins (daniel-thewatkins)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1422993

Title:
  cloud-init AzureDS fails on 15.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1422993/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1422993] Re: cloud-init AzureDS fails on 15.04

2015-02-18 Thread Daniel Watkins
I've attached a branch which is ready for smoser's review.

** Branch linked: lp:~daniel-thewatkins/cloud-init/fix-azure

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1422993

Title:
  cloud-init AzureDS fails on 15.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1422993/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-02-04 Thread Daniel Watkins
Steve,

I think the conclusion we've reached is that cloud-init isn't an
appropriate way to add swap to an instance after it has been spun up.
cloud-init has been designed to do disk setup at first boot and so makes
assumptions that wouldn't hold after that point.

If people do want to add swap after first boot, they should use the
standard tooling they would use on any other Ubuntu instance. :)


Thanks,

Dan

** Changed in: cloud-init (Ubuntu)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1374166

Title:
  Document how to add swap space on Azure resource disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash

2015-02-03 Thread Daniel Watkins
** Description changed:

+ === Begin SRU Information ===
+ [Impact]
+ CloudStack provides an EC2-style metadata server which cloud-init consumes.  
Unfortunately, the CloudStack metadata server does not exactly match the 
behaviour of the EC2 metadata server.  When an instance using cloud-init is 
booted in a CloudStack environment, it will fail to retrieve metadata from the 
metadata server.  This leads to cloud-init bailing out and making no changes to 
the instance, generally rendering it inaccessible and unusable.
+ 
+ This patch changes all access to EC2-style metadata servers.  Instead of
+ accessing http://.../meta-data to determine the available metadata,
+ cloud-init will access http://.../meta-data/ (i.e. with an added
+ trailing slash).
+ 
+ [Test Case]
+ Booting an Ubuntu image configured to use the CloudStack data source within a 
CloudStack cloud environment.  If (for example) the instance name is set 
correctly, then the fix has worked.
+ 
+ [Regression Potential]
+ 
+ Regression potential is low; this patch does affect more than just the
+ CloudStack data source, but it is backported from the version of cloud-
+ init in utopic which has been observed working.
+ 
+ === End SRU Information ===
+ 
  Hi,
  
  Cloud-init 0.7.5 fails to get cloudstack user-data because of trailing
  slash (ok in previous versions).
  
  As a temp workaround I use the following patch in url_helper.py line 239
  (0.7.5-0ubuntu1):
  
-if e.response.status_code == 404:
- if url.endswith(/):
- url = url[:-1]
- req_args[url] = url
- else:
- url = url + /
- req_args[url] = url
+    if e.response.status_code == 404:
+ if url.endswith(/):
+ url = url[:-1]
+ req_args[url] = url
+ else:
+ url = url + /
+ req_args[url] = url
  
- 
- I don't know how other products (EC2, openstack  co) deal with trailing slash
+ I don't know how other products (EC2, openstack  co) deal with trailing
+ slash
  
  Hope that helps
  
  Thanks

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1356855

Title:
  Cloud-init 0.7.5 Failed to get cloudstack user-data because of
  trailing slash

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash

2015-02-03 Thread Daniel Watkins
** Branch linked: lp:~daniel-thewatkins/ubuntu/trusty/cloud-
init/lp1356855

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1356855

Title:
  Cloud-init 0.7.5 Failed to get cloudstack user-data because of
  trailing slash

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413293] Re: Unable to start instances, empty /etc/machine-id file.

2015-01-23 Thread Daniel Watkins
I'm unassigning myself; this isn't really a cloud image problem so much
as it is either a nova problem or a general Ubuntu problem; I'm not best
placed to solve either of these.

** Changed in: nova (Ubuntu)
 Assignee: Daniel Watkins (daniel-thewatkins) = (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1413293

Title:
  Unable to start instances, empty /etc/machine-id file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1413293/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413293] Re: Unable to start instances, empty /etc/machine-id file.

2015-01-22 Thread Daniel Watkins
This problem (should) disappear with systemd; it takes care of
populating /etc/machine-id on first boot, though it does need the file
to exist and be empty[0].

So we should do one (or more) of:
 - teach nova that an empty /etc/machine-id is equivalent to a missing one,
 - introduce an Upstart job which will populate /etc/machine-id on boot, or
 - wait.


[0]  systemd needs /etc/machine-id to exist if /etc is read-only, so it can 
mount (a temporary) /run/machine-id over it. Once /etc becomes writable, the 
temporary file is made persistent.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1413293

Title:
  Unable to start instances, empty /etc/machine-id file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1413293/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413623] Re: glance attempts to connect to localhost:5000 (for no apparent reason)

2015-01-22 Thread Daniel Watkins
So I'm doing some digging in to what's actually happening, and this
might be an unexpected response from the keystone server I'm pointing
at. Marking as Invalid while I do a bit more investigation.

** Changed in: python-glanceclient (Ubuntu)
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-glanceclient in Ubuntu.
https://bugs.launchpad.net/bugs/1413623

Title:
  glance attempts to connect to localhost:5000 (for no apparent reason)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-glanceclient/+bug/1413623/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413623] [NEW] glance attempts to connect to localhost:5000 (for no apparent reason)

2015-01-22 Thread Daniel Watkins
Public bug reported:

Steps to reproduce:
 - Install python-glanceclient
 - Configure OS_* environment variables
 - Run 'glance image-list' (or any other glance command, AFAICT).

Expected Behaviour:
  A list of images.

Actual Behaviour:
  Unable to establish connection to http://localhost:5000/v2.0/tokens;

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: python-glanceclient 1:0.14.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-24.32-generic 3.16.4
Uname: Linux 3.16.0-24-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.1
Architecture: amd64
Date: Thu Jan 22 14:43:42 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-09-04 (140 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS Trusty Tahr - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: python-glanceclient
UpgradeStatus: Upgraded to utopic on 2014-10-28 (86 days ago)

** Affects: python-glanceclient (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug utopic

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-glanceclient in Ubuntu.
https://bugs.launchpad.net/bugs/1413623

Title:
  glance attempts to connect to localhost:5000 (for no apparent reason)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-glanceclient/+bug/1413623/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413293] Re: Unable to start instances, empty /etc/machine-id file.

2015-01-21 Thread Daniel Watkins
** Changed in: nova (Ubuntu)
 Assignee: (unassigned) = Daniel Watkins (daniel-thewatkins)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1413293

Title:
  Unable to start instances, empty /etc/machine-id file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1413293/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-20 Thread Daniel Watkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Steve,

On 19/01/15 20:18, Stephen A. Zarkos wrote:
 In case customers are not familiar with the term Custom Data or
 how to use it, I would recommend linking to our documentation: 
 http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-how-to-inject-custom-data/

 
http://azure.microsoft.com/blog/2014/04/21/custom-data-and-cloud-init-on-windows-azure/

Done.

 While passing a cloud-config via CustomData will work great during
 the initial setup and provisioning of the machine, is there a
 workflow that could allow a customer to configure a local
 cloud-config to configure swap space post-provisioning?  This is
 feasible for those distributions that just use the Azure Linux
 agent, so preferably there is a way to do this on Ubuntu as well.

I'm not sure about this; I will confer with Ben and Scott Moser.


Cheers,

Dan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBAgAGBQJUvi3UAAoJEO7mh3btsT6gWyUQAJQg3KgbGa3ShzP2vCPYbOr4
f9hREe2Kt8+i24wlecQ6SYnoqbab7ct/Il18MM3kj1fSRzq9QdW5LMsjeiaQCdTa
3xoG33Kyh/N6GQ4LfWmfK302WLPuA85fOSyk+7NLdvw2sxKh0HXvRjUtXmJ7dJvj
vQFU5oiqqpei8Q0GUN4MUs4HcR/ybzlOXBpIi1yNR11POBUmFHh4ubM3ZgZQODKc
riAvKCm2VY6s3EdZLK2lI6+UoSkNudAmhSL3AyFj+tpFvuB/h6Aak9tSHFeqHTXq
nChciSiQt0a7IlzbPOBK0w4MZOG3Xmg1tkHXFaS/eQR15W8HLhWqqtSwO4NFV5Gx
uXuYh+RPS1jypX+f5Pz3oQrV2y3sENk+bfYt4hqV7RodkwLfpZHHiIgStDq6bjtr
FGrWma4SkqZKVcXqzRT9DvVE3I9qXvj/YOeGGEQudlg9zYkb1CIDhxk18sog+7Vq
WuN+GU0boDzLMgOvVcoh7zW9uZWcbtuceqMqcTUY3Vr8j+4G8hKeTQeB2vjmxhoY
3zkY/lBKs7EHcd89ud68M2Ec7WSXb5pOtiMZ517S0cXTrg7cllHhcixrmK7IXmEQ
ecvemZEQGvebRxx8cas0y5zOuTUpgiB9Ecp7jsU+rbkvyx4xRqJq6LRSaNTX42BV
mr7RPAJlpLogLOukXBiN
=g+mH
-END PGP SIGNATURE-

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1374166

Title:
  Document how to add swap space on Azure resource disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-20 Thread Daniel Watkins
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi trialotto,

On 20/01/15 02:15, trialotto wrote:
 The documentation looks great.
Thanks!

 However, can you add the following (important) remarks to the 
 documentation page:
 
 a) as from cloud-init 0.7.6, the option exists to create swap by
 means of the swap stanza

Thanks for the pointer.  The swap directive will only create swap
_files_, rather than swap partitions.  I've added a note to the page
and a link to the cloud-init example of how to use the swap directive.

 b) in good practice, swap partitions should be at the start of the
 disk (and a function of the size of memory available)

Best practices for swap partitions are outside of the scope of this
documentation (particularly given that when we're talking about
storage in a cloud, it's very difficult to know what it's actually
backing on to).

 - the new swap stanza (in newer versions of cloud-init) are 
 automatically determined with some code logic, this should also be 
 applied to swap partitions (and that is possible, since the
 settings are only applied on provisiniong or a restart of the VM),

Feel free to open a new bug for this, explaining precisely the change
in behaviour you would want to see. :)

 -  in general, cloud-init should be able to detect existing swap
 files and/or swap partitions and leaving them as is, when
 restarting a VM (instead of creating them again, as happens at this
 moment, with swap files and swap partitions). In essence, a restart
 (a shut-down and start-up sequence) should not be required to
 CHANGE swap space.

I'm not 100% sure what behaviour you are seeing that you don't expect
to.  Could you file a new bug with details?


Thanks,

Dan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBAgAGBQJUvi4EAAoJEO7mh3btsT6gtjQP/0HypN2gaBNwYOJ7iLpZsvuM
guG19/Cq+Cjz4V1cD56i3bj7isFHo7jYUp+ZfGZZq3jvU7CssjGeQIllAs7shrDb
G4xrmVj8Lsm5+oytmaiff3k6sPY1QHOlKZNRGmPBsjYqA5Ni3cp+mWMQppwd4aI1
NwHvLQRwVOD40dbJuzmP7+IKoGUx9fhnmN9FjpMDBfEV5Hgdyld6xLhI3iGUZICO
S6qg1Y3L8TWTeihx6Kvlh3my+gDbEQW3Z8y+/3OdT9hUKBZt2aZZtcDr9WHSlx2Z
5thycOaYCZjHqKzc4ih/zxmlS+9oIYqba8Gk4tu0KlCLl9wZQHdl/ByH7gzIW5P5
AfB2/mBmZqvEIJooykcqds3nNiE/yx/3IBd59LKUwHOtr3RegzFInf1jqIC8XHMi
CoxMoEfhud2d5MRF7YApJU/DsMAKXTBd/kXesZGu+nN9BbcFMu7+4y5bNQFixz0U
dsfA70YZMbh6fHMYeouGZ3M0aGouwW7lMfzSlHRUnr2Vb8p1NppIgv1c6KOwHgQR
mZ39YCx2+XIOHbZ/daB2UFg2lpOv30VFPNuws8Vr7bdYCRLA7jT9clbzcgUyoMbz
eUHepQSQTgNykXfJS3/hCvMivFv/pRWWNV5JVIaRTwLQU62TfUyE7v5edsoXVM/b
kYIKEv56MRnh7oKcN/k2
=SHJb
-END PGP SIGNATURE-

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1374166

Title:
  Document how to add swap space on Azure resource disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-19 Thread Daniel Watkins
** Changed in: cloud-init (Ubuntu)
 Assignee: (unassigned) = Daniel Watkins (daniel-thewatkins)

** Changed in: cloud-init (Ubuntu)
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1374166

Title:
  Document how to add swap space on Azure resource disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-19 Thread Daniel Watkins
Steve, I've written up some documentation on how to create swap
partitions on Azure at https://wiki.ubuntu.com/AzureSwapPartitions

Please do let me know if there are any improvements that you'd like me
to make!

(Marking this as Fix Committed until I hear back from you)

** Changed in: cloud-init (Ubuntu)
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1374166

Title:
  Document how to add swap space on Azure resource disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1411582] [NEW] Azure data source should auto-detect ephemeral disk location

2015-01-16 Thread Daniel Watkins
Public bug reported:

Currently we assume it will be /dev/sdb, but this may change. There is
an example of how to handle this in the Azure Linux agent.

To quote stevez in a comment on bug 1410835:

Device names are not persistent in Linux and could change, so it is not
guaranteed that the ephemeral disk will be called /dev/sdb. Ideally this
should be auto-detected in cloud-init at runtime (for example, see
DeviceForIdePort() in the Azure Linux agent).

** Affects: cloud-init (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1411582

Title:
  Azure data source should auto-detect ephemeral disk location

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1411582/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1410835] Re: Azure ephemeral disk and custom mount points

2015-01-16 Thread Daniel Watkins
Hi trialotto,

cloud-init has default settings for Azure instances that ensure that the
first partition of the ephemeral disk is formatted as ext4. It does this
by providing default values for disk_setup and fs_setup; you can see
these at http://bazaar.launchpad.net/~cloud-init-dev/cloud-
init/trunk/view/head:/cloudinit/sources/DataSourceAzure.py#L54.

cloud-init, by default, mounts the first partition of the first
ephemeral disk at /mnt. You can see the code that does this at
http://bazaar.launchpad.net/~cloud-init-dev/cloud-
init/trunk/view/head:/cloudinit/config/cc_mounts.py#L236.

If you are changing the layout of the disk, you will also need to
provide mount configuration (using the `mounts` configuration key) so
that cloud-init knows what it should mount where. We could, potentially,
look at making cloud-init a little smarter about automatically working
out mounts, but this would require a fair bit of testing across
different platforms.

Please let me know if this addresses your issues.


Thanks,

Dan

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1410835

Title:
  Azure ephemeral disk and custom mount points

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1410835/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1410835] Re: Azure ephemeral disk and custom mount points

2015-01-16 Thread Daniel Watkins
Steve,

I have just filed https://bugs.launchpad.net/ubuntu/+source/cloud-
init/+bug/1411582 regarding the inconstancy of device naming; could you
confirm that I've captured the issue accurately?


Thanks,

Dan

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1410835

Title:
  Azure ephemeral disk and custom mount points

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1410835/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1410835] Re: Azure ephemeral disk and custom mount points

2015-01-16 Thread Daniel Watkins
trialotto, I've just been doing some testing, and I've realised my above
answer is incorrect; this is definitely a problem in how cloud-init's
Azure data source works.

I'm looking in to it now.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1410835

Title:
  Azure ephemeral disk and custom mount points

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1410835/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1410835] Re: Azure ephemeral disk and custom mount points

2015-01-16 Thread Daniel Watkins
Actually, I've realised that I was passing in invalid cloud
configuration data. If I have the following in azure-disk.cfg:

#cloud-config
disk_setup:
ephemeral0:
table_type: mbr
layout: [66, 33]
overwrite: True
fs_setup:
- device: ephemeral0.1
  filesystem: ext4
- device: ephemeral0.2
  filesystem: ext4
mounts:
- [ephemeral0.1, /mnt, auto, defaults,nobootwait, 0, 0]
- [ephemeral0.2, /media, auto, defaults,nobootwait, 0, 0]

and I run:

$ azure vm create ... --custom-data azure-disk.cfg

then I see the following:

$ ssh ubu...@oddbloke-disk-150116-1555.cloudapp.net df -h
Filesystem  Size  Used Avail Use% Mounted on
...
/dev/sdb1   393G   71M  373G   1% /mnt
/dev/sdb2   203G   60M  192G   1% /media


I think there _is_ a problem with specifying swap partitions (they don't seem 
to get `mkswap` run on them before a mount is attempted). That will be handled 
in bug 1374166, so I'm going to mark this as Invalid and we can track the swap 
issues over there.

** Changed in: cloud-init (Ubuntu)
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1410835

Title:
  Azure ephemeral disk and custom mount points

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1410835/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1374166] Re: Document how to add swap space on Azure resource disk

2015-01-16 Thread Daniel Watkins
OK, so passing a file containing the following as custom-data gives us a
swap partition and a mounted disk at /mnt:

#cloud-config
disk_setup:
ephemeral0:
table_type: mbr
layout: [[66, 82], 33]
overwrite: True
fs_setup:
- device: ephemeral0.1
  filesystem: swap
- device: ephemeral0.2
  filesystem: ext4
mounts:
- [ephemeral0.1, none, swap, sw, 0, 0]
- [ephemeral0.2, /mnt]

Like so:

$ mount
...
/dev/sdb2 on /mnt type ext4 (rw,_netdev)

$ swapon -s
FilenameTypeSizeUsedPriority
/dev/sdb1   partition   418696184   0   
-1

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1374166

Title:
  Document how to add swap space on Azure resource disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374166/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1403617] Re: gce datasource does not handle instance ssh keys

2014-12-18 Thread Daniel Watkins
We need to decide how we're going to handle this.

The GCE tooling (and therefore documentation) suggest that if instance-
level keys are supplied, then project-level keys are disregarded. Do we
want to mirror this?

I'm torn on this one. On the one hand, we already don't match the GCE
docs in the way we handle project-level keys so this may be a foolish
consistency. On the other hand, this is making our images even more
distinct from the GCE standards which is a Bad Thing (TM).

Also, if people are relying on setting instance-level SSH keys to
exclude project-level SSH keys, then not mirroring the GCE tooling might
make instances unexpectedly insecure.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1403617

Title:
  gce datasource does not handle instance ssh keys

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1403617/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1398997] Re: Ubuntu Cloud images do not work with SmartOS hypervisor

2014-12-04 Thread Daniel Watkins
** Package changed: ubuntu = cloud-init (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1398997

Title:
  Ubuntu Cloud images do not work with SmartOS hypervisor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1398997/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1378441] Re: add GCE support for cloud-init on 12.04

2014-10-07 Thread Daniel Watkins
** Branch linked: lp:~daniel-thewatkins/ubuntu/precise/cloud-
init/lp1374600

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1378441

Title:
  add GCE support for cloud-init on 12.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1378441/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 309632] [NEW] Unrecognised lines in dpkg output

2008-12-19 Thread Daniel Watkins
Public bug reported:

Binary package hint: logwatch

I get the following in the email logwatch 7.3.6-1ubuntu1 sends.  The
'Unknown lines' all seem reasonably standard, so I don't really care
about them, so they shouldn't be included.

 - dpkg status changes Begin


 
 Upgraded:
login 1:4.0.18.2-1ubuntu2.1 = 1:4.0.18.2-1ubuntu2.2
passwd 1:4.0.18.2-1ubuntu2.1 = 1:4.0.18.2-1ubuntu2.2
 
 Unknown lines:
2008-12-18 11:46:18 startup archives unpack
2008-12-18 11:46:19 configure login 1:4.0.18.2-1ubuntu2.2 
1:4.0.18.2-1ubuntu2.2
2008-12-18 11:46:19 startup archives unpack
2008-12-18 11:46:19 startup packages configure
2008-12-18 11:46:20 configure passwd 1:4.0.18.2-1ubuntu2.2 
1:4.0.18.2-1ubuntu2.2
2008-12-18 11:46:20 startup packages configure
 
 -- dpkg status changes End -

** Affects: logwatch (Ubuntu)
 Importance: Undecided
 Status: New

-- 
Unrecognised lines in dpkg output
https://bugs.launchpad.net/bugs/309632
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to logwatch in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs