Bug 1949825 - rpm-ostree rebase fedora/stable/x86_64/iot failed
Summary: rpm-ostree rebase fedora/stable/x86_64/iot failed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: IoT
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-15 08:20 UTC by lnie
Modified: 2023-09-15 01:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-23 16:05:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description lnie 2021-04-15 08:20:09 UTC
Description of problem:
[root@fedora ~]# rpm-ostree rebase fedora/stable/x86_64/iot
⠤ Receiving objects: 99% (13649/13650) 600.4 kB/s 592.6 MB 
Receiving objects: 99% (13649/13650) 600.4 kB/s 592.6 MB... done
Checking out tree d616b30... done
Enabled rpm-md repositories: updates fedora-cisco-openh264 fedora updates-testing
Updating metadata for 'updates'... done
rpm-md repo 'updates'; generated: 2021-04-14T14:34:43Z
Updating metadata for 'fedora-cisco-openh264'... done
rpm-md repo 'fedora-cisco-openh264'; generated: 2020-08-25T19:10:34Z
Updating metadata for 'fedora'... done
rpm-md repo 'fedora'; generated: 2020-10-19T23:27:19Z
Updating metadata for 'updates-testing'... done
rpm-md repo 'updates-testing'; generated: 2021-04-14T15:03:58Z
Importing rpm-md... done
Resolving dependencies... done
Will download: 1 package (838.2?kB)
Downloading from 'updates'... done
Importing packages... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
error: Failed to update rpmdb (rpmtsRun code -1)


Version-Release number of selected component (if applicable):
Fedora-IoT-34-20210413.0.x86_64.qcow2

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Peter Robinson 2021-04-15 08:22:46 UTC
> Version-Release number of selected component (if applicable):
> Fedora-IoT-34-20210413.0.x86_64.qcow2

So you're going from F-34 to stable/F-33?

How much free space do you have on the disk? Did you expand the VM disk/fs to a reasonable size?

Comment 2 lnie 2021-04-15 08:52:31 UTC
>So you're going from F-34 to stable/F-33?

yes,is that supposed to be *not* work?

>How much free space do you have on the disk?

Thanks,that's may be the problem,but how can I expand the VM disk/fs?

[root@fedora ~]# df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda2       2.9G  2.7G   51M  99% /

Comment 3 Peter Robinson 2021-04-15 08:56:00 UTC
> yes,is that supposed to be *not* work?

Should work fine, it's not a particularly well tested path but as much information is always useful for bugs.
 
> >How much free space do you have on the disk?
> 
> Thanks,that's may be the problem,but how can I expand the VM disk/fs?

You don't state you virt platform so it will depend. If you're using Linux underneath, which I'm guessing is correct given the use of a qcow2, the following post is one way, no doubt the RHEL documentation also provides alternative methods.

https://nullr0ute.com/2018/08/increasing-a-libvirt-kvm-virtual-machine-disk-capacity/

Comment 4 lnie 2021-04-15 10:25:21 UTC
I have expanded the fs following this page https://www.cyberithub.com/resize-qcow2-image-with-virt-resize-kvm-tools/,but it still failed.

[root@fedora ~]# df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       6.9G  2.7G  3.8G  42% /

[root@fedora ~]# rpm-ostree rebase fedora/stable/x86_64/iot
⠠ Receiving metadata objects: 1/(estimating) 32 bytes/s 196 bytes 
Receiving metadata objects: 1/(estimating) 32 bytes/s 196 bytes... done
Checking out tree d616b30... done
Enabled rpm-md repositories: updates fedora-cisco-openh264 fedora updates-testing
rpm-md repo 'updates' (cached); generated: 2021-04-14T14:34:43Z
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2020-08-25T19:10:34Z
rpm-md repo 'fedora' (cached); generated: 2020-10-19T23:27:19Z
rpm-md repo 'updates-testing' (cached); generated: 2021-04-14T15:03:58Z
Importing rpm-md... done
Resolving dependencies... done
Checking out packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
error: Failed to update rpmdb (rpmtsRun code -1)

Comment 5 Peter Robinson 2021-05-12 19:30:12 UTC
Did you get to the bottom of this?

Comment 6 Paul Whalen 2021-06-23 16:05:25 UTC
I think this can be closed, I've been testing rebasing from rawhide to stable and vice versa without issue. Please reopen if you're able to reproduce.

Comment 7 Red Hat Bugzilla 2023-09-15 01:05:11 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


Note You need to log in before you can comment on or make changes to this bug.