[Bug 1374115] Re: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure
** Changed in: cloud-init (Ubuntu) Assignee: (unassigned) = Ben Howard (utlemming) -- 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/1374115 Title: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374115/+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 1374115] Re: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure
@Stephen, The mount location CAN be changed by setting - ResourceDisk.Format=y (instead of n) AND - ResourceDisk.MountPoint=/opt (or any other directory, instead of /mnt) in waagent.conf. The change becomes effective after a shutdown and start-up sequence (and I assume the same applies to a normal restart). The mount location cannot be changed, if and only if ResourceDisk.Format=n. Also note that the ResourceDisk.MountPoint variable in waagent.conf can be blank, in which case the standard mount point will be used by cloud- init, being /mnt. All the above already leaves the question why ResourceDisk.MountPoint should be present in waagent.conf, given that - most of the work is done by cloud-init and cloud-config settings, - the ResourceDisk.MountPoint is only working in combination with ResourceDisk.Format=y, - the specification of mount points should not be limited to only the resource (ephemeral) disk, and so on. In essence, the Azure Datasource, used by cloud-init, should be able to push some flexible configuration of variables to cloud-init. As a result, a desire to change many variables will require that 1 - a (huge) number of variables is added to waagent.conf, with corresponding code in waagent script, OR 2 - the Azure Datasource should be WRITEABLE, allowing the change of cloud-config settings without specifying CustomData at provisioning time and (therefore) the changed cloud-config settings becoming effective at shut-down and start-up sequences, and, to be honest, the proper and efficient way of doing things should be method 2. Kind regards... -- 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/1374115 Title: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374115/+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 1374115] Re: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure
That's what I meant, on Ubuntu images the ResourceDisk.Format should be n because cloud-init handles this. We do not want the Linux agent and cloud-init fighting over formatting or reformatting, and then mounting the resource disk. You're right, perhaps these parameters should not exist in the cloud images. That would be a simple patch to the walinuxagent package unless cloud-init wants to start using those parameters at some point. Thanks. -- 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/1374115 Title: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374115/+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 1374115] Re: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure
@Stephen, I think you know why I stated that the ResourceDisk.Format variable is a remarkable explanation for specific behaviour of waagent. It must also be clear why I (also) stated that some parts of the waagent script are rather obsolete or unnecessary. A huge part of the waagent script can be discarded when allowing cloud- init to do the work, including those parts of the waagent script that are aiming on specific distro´s, since cloud-init also takes care of distro-specific code. However, allowing cloud-init do to all the work, will only become a huge advantage if 1 - the corresponding (Azure) Datasource can be written to, AND/OR 2 - waagent.conf is designed to be an addition (i.e. customizable extension) to a (for security reasons non-writeable) Datasource, with Datasource referring to the file used by cloud-init. Is option 2 achievable? And how can I test that? Finally, note that the introduction of cloud-init version 0.7.6 in the Ubuntu images would be desirable: this version of cloud-init works fine in Trusty (14.04.1 LTS) and also has the option to create swap with (advanced) cloud-config settings. Can this new cloud-init version be introduced? Kind regards. -- 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/1374115 Title: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374115/+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 1374115] Re: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure
No, the mount location cannot be modified on Ubuntu via the waagent.conf, that is the issue. I would like a way to modify the mount point post-provisioning. The only way to change the mount point on Azure is to use CustomData (like user data on other clouds) to send a cloud-config to modify the mount point at provision time. This is on par with with other cloud providers - the ephemeral disk can be repartitioned and/or mounted at a different location at provisioning time. -- 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/1374115 Title: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374115/+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 1374115] Re: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure
The mount location can be reconfigured in the waagent.conf file, after provisioning of the VM. A shut-down and start-up sequence is required, in order to let the changed settings become effective. It is not desirable and/or advisable to change partitioning and/or mount locations on creation time. It is also not desirable and/or advisable to change partitioning of the resource (ephemeral) disk, given the fact that this disk is not really intended for persistent data storage and the fact that one minor change in settings (changing ResourceDisk.Format=n to ResourceDisk.Format=y) will result in a loss of all data and partitioning settings (!). When requiring a (persistent) data disk, please attach an additional data disk (with all freedom available, for custom configuration of partitioning and/or mount points). Kind regards -- 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/1374115 Title: Allow cloud-config to modify partitioning and mount point of temporary resource disk in Azure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1374115/+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