<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/cloudinit/config/cc_mounts.py, branch circinus-public-unmaintained</title>
<subtitle> (mirror of https://github.com/vyos/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=circinus-public-unmaintained</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=circinus-public-unmaintained'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2022-02-10T22:09:03+00:00</updated>
<entry>
<title>mounts: fix mount opts string for ephemeral disk (#1250)</title>
<updated>2022-02-10T22:09:03+00:00</updated>
<author>
<name>Chris Patterson</name>
<email>cpatterson@microsoft.com</email>
</author>
<published>2022-02-10T22:09:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=8d96687e558d87fd767bdba9dff71e406f9bcf39'/>
<id>urn:sha1:8d96687e558d87fd767bdba9dff71e406f9bcf39</id>
<content type='text'>
Fixes the spaces introduced in #1213

Signed-off-by: Chris Patterson &lt;cpatterson@microsoft.com&gt;</content>
</entry>
<entry>
<title>Add _netdev option to mount Azure ephemeral disk (#1213)</title>
<updated>2022-02-04T15:04:31+00:00</updated>
<author>
<name>Eduardo Otubo</name>
<email>otubo@redhat.com</email>
</author>
<published>2022-02-04T15:04:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=a1cfd1b48993ce912986204f5249eb67724636d5'/>
<id>urn:sha1:a1cfd1b48993ce912986204f5249eb67724636d5</id>
<content type='text'>
The ephemeral disk depends on a functional network to be mounted. Even
though it depends on cloud-init.service, sometimes an ordering cycle is
noticed on the instance. If the option "_netdev" is added the problem is
gone.

rhbz: #1998445

Signed-off-by: Eduardo Otubo otubo@redhat.com</content>
</entry>
<entry>
<title>Adopt Black and isort (SC-700) (#1157)</title>
<updated>2021-12-16T02:16:38+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2021-12-16T02:16:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf'/>
<id>urn:sha1:bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf</id>
<content type='text'>
Applied Black and isort, fixed any linting issues, updated tox.ini
and CI.
</content>
</entry>
<entry>
<title>Implementing device_aliases as described in docs (#945)</title>
<updated>2021-08-03T16:08:26+00:00</updated>
<author>
<name>Mal Graty</name>
<email>mal.graty@googlemail.com</email>
</author>
<published>2021-08-03T16:08:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=758acf976f2cb67a85411467fa5fca2ea17a2283'/>
<id>urn:sha1:758acf976f2cb67a85411467fa5fca2ea17a2283</id>
<content type='text'>
Implement missing device_aliases feature

The device_aliases key has been documented as part of disk_setup for
years, however the feature was never implemented. This implements the
feature as documented allowing usercfg (rather than dsconfig) to create
a mapping of device names.

This is not to be confused with disk_aliases, a very similar map but
existing solely for use by datasources.

LP: #1867532</content>
</entry>
<entry>
<title>cc_mounts: correctly fallback to dd if fallocate fails (#585)</title>
<updated>2020-10-20T21:13:37+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-10-20T21:13:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=5f8a2bbc5f26c7abafbc9bd3d1b1b655ffdcc1ae'/>
<id>urn:sha1:5f8a2bbc5f26c7abafbc9bd3d1b1b655ffdcc1ae</id>
<content type='text'>
`create_swap()` was previously catching and not re-raising the
ProcessExecutionError that indicated swap creation failure; this meant
that the fallback logic could never be triggered.

This commit adds the required re-raise (as well as removing a duplicated
log message).

LP: #1897099</content>
</entry>
<entry>
<title>Detect kernel version before swap file creation (#428)</title>
<updated>2020-08-18T21:12:02+00:00</updated>
<author>
<name>Eduardo Otubo</name>
<email>otubo@redhat.com</email>
</author>
<published>2020-08-18T21:12:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=b749548a9eb43b34cce64f8688107645411abc8c'/>
<id>urn:sha1:b749548a9eb43b34cce64f8688107645411abc8c</id>
<content type='text'>
According to man page `man 8 swapon', "Preallocated swap files are
supported on XFS since Linux 4.18". This patch checks for kernel version
before attepting to create swapfile, using dd for XFS only on kernel
versions &lt;= 4.18 or btrfs.

Add new func util.kernel_version which returns a tuple of ints (major, minor)

Signed-off-by: Eduardo Otubo otubo@redhat.com</content>
</entry>
<entry>
<title>cc_mounts: handle missing fstab (#484)</title>
<updated>2020-07-10T13:08:44+00:00</updated>
<author>
<name>Ryan Harper</name>
<email>ryan.harper@canonical.com</email>
</author>
<published>2020-07-10T13:08:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=3d06abc2e0017436dadbf9c26fefa9f95368db9a'/>
<id>urn:sha1:3d06abc2e0017436dadbf9c26fefa9f95368db9a</id>
<content type='text'>
Do not fail if /etc/fstab is not present.  Some images, like container
rootfs may not include this file by default.

LP: #1886531</content>
</entry>
<entry>
<title>Move subp into its own module. (#416)</title>
<updated>2020-06-08T16:49:12+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2020-06-08T16:49:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=3c551f6ebc12f7729a2755c89b19b9000e27cc88'/>
<id>urn:sha1:3c551f6ebc12f7729a2755c89b19b9000e27cc88</id>
<content type='text'>
This was painful, but it finishes a TODO from cloudinit/subp.py.

It moves the following from util to subp:
  ProcessExecutionError
  subp
  which
  target_path

I moved subp_blob_in_tempfile into cc_chef, which is its only caller.
That saved us from having to deal with it using write_file
and temp_utils from subp (which does not import any cloudinit things now).

It is arguable that 'target_path' could be moved to a 'path_utils' or
something, but in order to use it from subp and also from utils,
we had to get it out of utils.</content>
</entry>
<entry>
<title>cc_mounts: fix incorrect format specifiers (#316)</title>
<updated>2020-04-15T20:53:08+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-04-15T20:53:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=9d7b35ce23aaf8741dd49b16e359c96591be3c76'/>
<id>urn:sha1:9d7b35ce23aaf8741dd49b16e359c96591be3c76</id>
<content type='text'>
LP: #1872836</content>
</entry>
<entry>
<title>swap file "size" being used before checked if str (#315)</title>
<updated>2020-04-14T16:16:25+00:00</updated>
<author>
<name>Eduardo Otubo</name>
<email>otubo@redhat.com</email>
</author>
<published>2020-04-14T16:16:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=46cf23c28812d3e3ba0c570defd9a05628af5556'/>
<id>urn:sha1:46cf23c28812d3e3ba0c570defd9a05628af5556</id>
<content type='text'>
Swap file size variable was being used before checked if it's set to str
"auto". If set to "auto", it will break with:

  failed to setup swap: unsupported operand type(s) for /: 'str' and 'int'

Signed-off-by: Eduardo Otubo &lt;otubo@redhat.com&gt;
RHBZ: 1772505</content>
</entry>
</feed>
