Bug 1439816

Summary: lots of container-storage-setup command not found errors
Product: [Fedora] Fedora Reporter: Dusty Mabe <dustymabe>
Component: container-storage-setupAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: amurdaca, dwalsh, fkluknav, lsm5, vgoyal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: container-storage-setup-0.2.0-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-07 21:25:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dusty Mabe 2017-04-06 14:58:43 UTC
Description of problem:

Carrying this from https://bugzilla.redhat.com/show_bug.cgi?id=1436777#c5

We finally got the config generated by docker rpm fixed for atomic host:

```
[root@cloudhost ~]# cat /etc/sysconfig/docker-storage-setup 
# Edit this file to override any configuration options specified in
# /usr/share/container-storage-setup/container-storage-setup.
#
# For more details refer to "man container-storage-setup"
STORAGE_DRIVER=overlay2
CONTAINER_ROOT_LV_NAME=docker-root-lv
CONTAINER_ROOT_LV_MOUNT_PATH=/var/lib/docker
GROWPART=true
```

but the docker-storage-setup service barfs:

```
[root@cloudhost ~]# journalctl -u docker-storage-setup.service -o cat
Starting Docker Storage Setup...
CHANGED: partition=2 start=616448 old: size=20355072 end=20971520 new: size=41326592,end=41943040
  Physical volume "/dev/sda2" changed
  1 physical volume(s) resized / 0 physical volume(s) not resized
/usr/bin/container-storage-setup: line 972: Fatal: command not found
/usr/bin/container-storage-setup: line 974: check_data_size_syntax: command not found
/usr/bin/container-storage-setup: line 975: Fatal: command not found
  Invalid argument for --size: docker-root-lv
  Error during parsing of command line.
/usr/bin/container-storage-setup: line 941: Fatal: command not found
Error accessing specified device /dev/atomicos/docker-root-lv: No such file or directory
Usage: mkfs.xfs
/* blocksize */         [-b log=n|size=num]
/* metadata */          [-m crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1]
/* data subvol */       [-d agcount=n,agsize=n,file,name=xxx,size=num,
                            (sunit=value,swidth=value|su=num,sw=num|noalign),
                            sectlog=n|sectsize=num
/* force overwrite */   [-f]
/* inode size */        [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2,
                            projid32bit=0|1,sparse=0|1]
/* no discard */        [-K]
/* log subvol */        [-l agnum=n,internal,size=num,logdev=xxx,version=n
                            sunit=value|su=num,sectlog=n|sectsize=num,
                            lazy-count=0|1]
/* label */             [-L label (maximum 12 characters)]
/* naming */            [-n log=n|size=num,version=2|ci,ftype=0|1]
/* no-op info only */   [-N]
/* prototype file */    [-p fname]
/* quiet */             [-q]
/* realtime subvol */   [-r extsize=num,size=num,rtdev=xxx]
/* sectorsize */        [-s log=n|size=num]
/* version */           [-V]
                        devicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).
/usr/bin/container-storage-setup: line 945: Fatal: command not found
mount: special device /dev/atomicos/docker-root-lv does not exist
/usr/bin/container-storage-setup: line 949: Fatal: command not found
Started Docker Storage Setup.
```

VERSIONS:
```
[root@cloudhost ~]# rpm -q docker container-storage-setup 
docker-1.13.1-6.git5be1549.fc26.x86_64
container-storage-setup-0.1.0-2.fc26.noarch
```

Steps to Reproduce:
Boot https://dustymabe.fedorapeople.org/8f93026a-b6b2-48bf-a578-1521d5adc806.body.qcow2

Comment 1 Fedora Update System 2017-04-06 15:30:43 UTC
container-storage-setup-0.2.0-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b445dbe5e7

Comment 2 Fedora Update System 2017-04-07 21:25:34 UTC
container-storage-setup-0.2.0-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.