Bug 1377516 - rpm-ostree pkg-add a small RPM package eats disk space
Summary: rpm-ostree pkg-add a small RPM package eats disk space
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm-ostree-client
Version: 7.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Colin Walters
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 01:01 UTC by Alex Jia
Modified: 2020-12-15 07:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-15 07:46:03 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Alex Jia 2016-09-20 01:01:07 UTC
Description of problem:
When we use rpm-ostree to install a small RPM package like strace, which size is less than 300K, I have 226M available on my RHELAH, but I got "error: No space left on device" and failed to install strace finally, I checked disk space again, only 36M available, it means downloaded strace eats 190M=226M-36M disk space, and I haven't successfully install strace.

Version-Release number of selected component (if applicable):

[cloud-user@atomic-host-001 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Atomic Host release 7.2
[cloud-user@atomic-host-001 ~]$ atomic host status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
       Version: 7.2.7 (2016-09-09 18:43:35)
        Commit: 347c3f5eb641e69fc602878c646cf42c4bcd5d9f36847a1f24ff8f3ec80f17b1
        OSName: rhel-atomic-host
      Unlocked: development

[cloud-user@atomic-host-001 ~]$ rpm -q atomic rpm-ostree-client
atomic-1.12.2-2.el7.x86_64
rpm-ostree-client-2016.5-1.atomic.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. df -hT
2. rpm-ostree add strace
3. repeat 1

Actual results:

[cloud-user@atomic-host-001 ~]$ df -hT
Filesystem                Type      Size  Used Avail Use% Mounted on
/dev/mapper/atomicos-root xfs       3.0G  2.7G  226M  93% /
devtmpfs                  devtmpfs  902M     0  902M   0% /dev
tmpfs                     tmpfs     921M     0  921M   0% /dev/shm
tmpfs                     tmpfs     921M  8.5M  912M   1% /run
tmpfs                     tmpfs     921M     0  921M   0% /sys/fs/cgroup
overlay                   overlay   3.0G  2.7G  226M  93% /usr
/dev/sda1                 xfs       297M  105M  193M  36% /boot
tmpfs                     tmpfs     185M     0  185M   0% /run/user/1000
/dev/dm-4                 xfs        10G  1.9M   10G   1% /var/mnt


[cloud-user@atomic-host-001 ~]$ sudo rpm-ostree pkg-add strace
notice: pkg-add is a preview command and subject to change.

Downloading metadata: [=================================================================================================================================================================] 100%
Resolving dependencies... done
Will download: 1 package (271.4 kB)

  Downloading from rhel-7-server-aus-rpms: [============================================================================================================================================] 100%

Importing: [============================================================================================================================================================================] 100%
Checking out tree 347c3f5... error: No space left on device
[cloud-user@atomic-host-001 ~]$ df -hT
Filesystem                Type      Size  Used Avail Use% Mounted on
/dev/mapper/atomicos-root xfs       3.0G  2.9G   36M  99% /
devtmpfs                  devtmpfs  902M     0  902M   0% /dev
tmpfs                     tmpfs     921M     0  921M   0% /dev/shm
tmpfs                     tmpfs     921M  8.5M  912M   1% /run
tmpfs                     tmpfs     921M     0  921M   0% /sys/fs/cgroup
overlay                   overlay   3.0G  2.9G   36M  99% /usr
/dev/sda1                 xfs       297M  105M  193M  36% /boot
tmpfs                     tmpfs     185M     0  185M   0% /run/user/1000
/dev/dm-4                 xfs        10G  1.9M   10G   1% /var/mnt

[cloud-user@atomic-host-001 ~]$ rpm -q strace
package strace is not installed


Expected results:


Additional info:

manually download strace RPM package then rpm install it w/ unlock mode, it's okay for me.

[cloud-user@atomic-host-001 ~]$ sudo rpm -ivh strace-4.8-11.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:strace-4.8-11.el7                ################################# [100%]

[cloud-user@atomic-host-001 ~]$ rpm -q strace
strace-4.8-11.el7.x86_64


I seems the rpm-ostree pkg-add (preview) and rpm-ostree pkg-remove (preview) have been removed from help document of rpm-ostree-client-2016.9-1.atomic.el7.x86_64, is it an expected result? but in fact, these functions still exist.

[cloud-user@atomic-host-001 ~]$ rpm -q rpm-ostree-client
rpm-ostree-client-2016.9-1.atomic.el7.x86_64

[cloud-user@atomic-host-001 ~]$ rpm-ostree -h
Usage:
  rpm-ostree [OPTION...] COMMAND

Builtin Commands:
  db
  deploy
  rebase
  rollback
  status
  upgrade
  install
  uninstall

Help Options:
  -h, --help       Show help options

Application Options:
  --version        Print version information and exit

[cloud-user@atomic-host-001 ~]$ sudo rpm-ostree pkg-add
Usage:
  rpm-ostree pkg-add [OPTION...] PACKAGE [PACKAGE...] - Download and install layered RPM packages

Help Options:
  -h, --help            Show help options

Application Options:
  --os=OSNAME           Operate on provided OSNAME
  -r, --reboot          Initiate a reboot after upgrade is prepared
  -n, --dry-run         Exit after printing the transaction
  --sysroot=SYSROOT     Use system root SYSROOT (default: /)
  --peer                Force a peer-to-peer connection instead of using the system message bus
  --version             Print version information and exit


In addition, if users is failed to install RPM packages, and then they wanna release disk space, how to do? maybe, we need a pkg-reset or pkg-cleanup functions?

[cloud-user@atomic-host-001 ~]$ sudo rpm-ostree pkg-remove strace
error: Package 'strace' is not currently requested

Comment 2 Colin Walters 2016-09-20 01:37:26 UTC
This should be better in 7.3.

Comment 4 RHEL Program Management 2020-12-15 07:46:03 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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