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

cc_growpart failed in auto grow mode with "Error: Could not stat device resizepart - No such file or directory." with parted 2.3-14 #2386

Closed
ubuntu-server-builder opened this issue May 10, 2023 · 7 comments
Labels
launchpad Migrated from Launchpad priority Fix soon

Comments

@ubuntu-server-builder
Copy link
Collaborator

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

Launchpad details
affected_projects = ['cloud-init (Ubuntu)']
assignee = smoser
assignee_name = Scott Moser
date_closed = 2013-11-19T21:57:25.526278+00:00
date_created = 2013-08-14T21:22:32.293411+00:00
date_fix_committed = 2013-08-15T01:40:23.467278+00:00
date_fix_released = 2013-11-19T21:57:25.526278+00:00
id = 1212444
importance = high
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1212444
milestone = None
owner = smoser
owner_name = Scott Moser
private = False
status = fix_released
submitter = jibel
submitter_name = Jean-Baptiste Lallement
tags = ['amd64', 'apport-bug', 'saucy']
duplicates = []

Launchpad user Jean-Baptiste Lallement(jibel) wrote on 2013-08-14T21:22:32.293411+00:00

During the provisioning of a local VM with cloud-init and parted 2.3.14, cc_growpart fails in auto grow mode with the following error:

2013-08-14 08:07:02,117 - util.py[DEBUG]: Running command ['parted', 'resizepart', '/dev/vda', '1'] with allowed return codes [0] (shell=False, capture=True)
2013-08-14 08:07:02,139 - cc_growpart.py[DEBUG]: '/' FAILED: failed to resize: disk=/dev/vda, ptnum=1: Unexpected error while running command.
Command: ['parted', 'resizepart', '/dev/vda', '1']
Exit code: 1
Reason: -
Stdout: '\r \rError: Could not stat device resizepart - No such file or directory.\n'
Stderr: ''

/dev/vda1 is not resized to use entire disk space and limited to 2GB.
Run #90 on the 12th is successful with previous version of parted.

Full log attached and online at [1]

[1] http://10.98.0.1:8080/view/Saucy/view/AutoPkgTest/job/saucy-adt-setup-testbed/ARCH=amd64,label=albali/91/console

Related Bugs:

  • bug 1212492: cc_growpart broken if parted resizefs found

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: cloud-init (not installed)
ProcVersionSignature: Ubuntu 3.11.0-1.4-generic 3.11.0-rc4
Uname: Linux 3.11.0-1-generic x86_64
ApportVersion: 2.12-0ubuntu3
Architecture: amd64
Date: Wed Aug 14 23:09:56 2013
InstallationDate: Installed on 2012-10-25 (293 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: cloud-init
UpgradeStatus: Upgraded to saucy on 2012-12-02 (255 days ago)

@ubuntu-server-builder ubuntu-server-builder added launchpad Migrated from Launchpad priority Fix soon labels May 10, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Jean-Baptiste Lallement(jibel) wrote on 2013-08-14T21:22:32.293411+00:00

Launchpad attachments: consoleText,ProcEnviron.txt

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2013-08-15T01:40:32.233535+00:00

fixed in trunk at 858

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2013-08-15T02:12:53.802134+00:00

This bug was fixed in the package cloud-init - 0.7.3~bzr858-0ubuntu1


cloud-init (0.7.3~bzr858-0ubuntu1) saucy; urgency=low

  • New upstream snapshot.
    • fix resizing of root partition by preferring the functional 'growpart'
      support over the broken 'parted resizepart' support (LP: #1212444)
    • add options for apt_ftp_proxy, apt_https_proxy and apt_config
      (LP: #1057195)
      -- Scott Moser smoser@ubuntu.com Wed, 14 Aug 2013 21:44:22 -0400

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2013-08-15T17:24:47.026268+00:00

I verified this fix in todays image of saucy after 'apt-get install cloud-init && reboot'. the root filesystem is then correctly grown.
$ cat /etc/cloud/build.info
build_name: server
serial: 20130815

Tomorrows (20130816) should have the new cloud-init inside.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Phillip Susi(psusi) wrote on 2013-08-16T18:54:34.499620+00:00

Looks like the arguments to parted are backwards.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2013-08-16T20:23:50.564929+00:00

Phillip,
Right. They were backwards, that is fixed now in trunk, but still resizepart is broken. The fix applied was just to prefer growpart based resizing over parted. I'll do further fixing under bug 1212492.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2013-11-19T21:57:24.566828+00:00

fixed in 0.7.3

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

No branches or pull requests

1 participant