Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataSourceSmartOS should default to ext4 #3152

Closed
ubuntu-server-builder opened this issue May 11, 2023 · 7 comments
Closed

DataSourceSmartOS should default to ext4 #3152

ubuntu-server-builder opened this issue May 11, 2023 · 7 comments
Labels
launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1763511

Launchpad details
affected_projects = ['cloud-init (Ubuntu)']
assignee = None
assignee_name = None
date_closed = 2018-06-20T18:06:55.404698+00:00
date_created = 2018-04-12T20:50:50.698439+00:00
date_fix_committed = 2018-06-20T18:02:47.025824+00:00
date_fix_released = 2018-06-20T18:06:55.404698+00:00
id = 1763511
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1763511
milestone = None
owner = smoser
owner_name = Scott Moser
private = False
status = fix_released
submitter = mgerdts
submitter_name = Mike Gerdts
tags = []
duplicates = []

Launchpad user Mike Gerdts(mgerdts) wrote on 2018-04-12T20:50:50.698439+00:00

As reported in Joyent bug IMAGE-1103, ext3 doesn't work with large ephemeral drives.

2018-03-30 23:36:26,529 - util.py[WARNING]: Failed during filesystem operation
Failed to exec of '['/sbin/mkfs.ext3', '/dev/vdb', '-L', 'ephemeral0', '-F']':
Unexpected error while running command.
Command: ['/sbin/mkfs.ext3', '/dev/vdb', '-L', 'ephemeral0', '-F']
Exit code: 1
Reason: -
Stdout:
Stderr: mke2fs 1.42.13 (17-May-2015)
mkfs.ext3: Size of device (0x100000000 blocks) /dev/vdb too big to be expressed
in 32 bits using a blocksize of 4096.

The default should switch to ext4. It so happens that this matches the default in DataSourceAzure.py.

@ubuntu-server-builder ubuntu-server-builder added the launchpad Migrated from Launchpad label May 11, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-04-13T01:39:24.118967+00:00

fwiw, I think you could send vendor-data to with cloud-config to set the fs_setup like you wanted (assuming 'you' here are the cloud platform).

The point of vendor data is so that the vendor could make changes like this without changing cloud-init.

But the 1 byte change is also acceptable.
(ext3 -> ext4).

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-04-13T01:41:03.987993+00:00

You probably need to change table_type mbr to gpt too if the point is big disks. In fact it might just be the mbr table that is limiting you.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Mike Gerdts(mgerdts) wrote on 2018-04-13T06:02:00+00:00

I think we've been avoiding this issue so far because the file system is
being created without partitioning the disk (layout: False). With "layout:
False", I'm guessing that whether gpt or mbr is specified makes no
difference.

Mike

On Thu, Apr 12, 2018 at 8:41 PM, Scott Moser ssmoser2+ubuntu@gmail.com
wrote:

You probably need to change table_type mbr to gpt too if the point is
big disks. In fact it might just be the mbr table that is limiting you.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1763511

Title:
DataSourceSmartOS should default to ext4

Status in cloud-init package in Ubuntu:
New

Bug description:
As reported in Joyent bug IMAGE-1103, ext3 doesn't work with large
ephemeral drives.

2018-03-30 23:36:26,529 - util.py[WARNING]: Failed during filesystem
operation
Failed to exec of '['/sbin/mkfs.ext3', '/dev/vdb', '-L', 'ephemeral0',
'-F']':
Unexpected error while running command.
Command: ['/sbin/mkfs.ext3', '/dev/vdb', '-L', 'ephemeral0', '-F']
Exit code: 1
Reason: -
Stdout:
Stderr: mke2fs 1.42.13 (17-May-2015)
mkfs.ext3: Size of device (0x100000000 blocks) /dev/vdb too big
to be expressed
in 32 bits using a blocksize of 4096.

The default should switch to ext4. It so happens that this matches
the default in DataSourceAzure.py.

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

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-04-13T13:20:43+00:00

ah.yeah, you're probably right.

On Fri, Apr 13, 2018 at 2:02 AM, Mike Gerdts 1763511@bugs.launchpad.net
wrote:

I think we've been avoiding this issue so far because the file system is
being created without partitioning the disk (layout: False). With "layout:
False", I'm guessing that whether gpt or mbr is specified makes no
difference.

Mike

On Thu, Apr 12, 2018 at 8:41 PM, Scott Moser ssmoser2+ubuntu@gmail.com
wrote:

You probably need to change table_type mbr to gpt too if the point is
big disks. In fact it might just be the mbr table that is limiting you.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1763511

Title:
DataSourceSmartOS should default to ext4

Status in cloud-init package in Ubuntu:
New

Bug description:
As reported in Joyent bug IMAGE-1103, ext3 doesn't work with large
ephemeral drives.

2018-03-30 23:36:26,529 - util.py[WARNING]: Failed during filesystem
operation
Failed to exec of '['/sbin/mkfs.ext3', '/dev/vdb', '-L', 'ephemeral0',
'-F']':
Unexpected error while running command.
Command: ['/sbin/mkfs.ext3', '/dev/vdb', '-L', 'ephemeral0', '-F']
Exit code: 1
Reason: -
Stdout:
Stderr: mke2fs 1.42.13 (17-May-2015)
mkfs.ext3: Size of device (0x100000000 blocks) /dev/vdb too big
to be expressed
in 32 bits using a blocksize of 4096.

The default should switch to ext4. It so happens that this matches
the default in DataSourceAzure.py.

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

--
You received this bug notification because you are subscribed to cloud-
init in Ubuntu.
https://bugs.launchpad.net/bugs/1763511

Title:
DataSourceSmartOS should default to ext4

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

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-04-18T17:18:28.043700+00:00

An upstream commit landed for this bug.

To view that commit see the following URL:
https://git.launchpad.net/cloud-init/commit/?id=025ddc03

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2018-04-19T10:34:27.849376+00:00

This bug was fixed in the package cloud-init - 18.2-14-g6d48d265-0ubuntu1


cloud-init (18.2-14-g6d48d265-0ubuntu1) bionic; urgency=medium

  • New upstream snapshot.
    • net: Depend on iproute2's ip instead of net-tools ifconfig or route
    • DataSourceSmartOS: fix hang when metadata service is down
      [Mike Gerdts] (LP: #1667735)
    • DataSourceSmartOS: change default fs on ephemeral disk from ext3 to
      ext4. [Mike Gerdts] (LP: #1763511)
    • pycodestyle: Fix invalid escape sequences in string literals.
    • Implement bash completion script for cloud-init command line

-- Chad Smith chad.smith@canonical.com Wed, 18 Apr 2018 15:25:53 -0600

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2018-06-20T18:06:56.240262+00:00

This bug is believed to be fixed in cloud-init in version 18.3. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant