#306 can_fail not reflected for image tasks
Closed: Fixed 5 years ago Opened 5 years ago by lsedlar.

I'm trying to test the can-fail option to make a task pass even if a subtask fails. It doesn't seem to do anything when trying it with the image-build subcommand.

When the option is specified, it does not seem to have any effect, nor is it displayed on the task page.

https://koji.stg.fedoraproject.org/koji/taskinfo?taskID=90148024

$ cat docker_Fedora-Docker-Base.cfg 
[image-build]
install_tree = http://kojipkgs.stg.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20170130.n.0/compose/Cloud/$arch/os
kickstart = fedora-docker-base.ks
disk_size = 3
name = Fedora-Docker-Base
format = docker
subvariant = Docker_Base
variant = Docker
arches = armhfp,x86_64
repo = http://kojipkgs.stg.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20170130.n.0/compose/Cloud/$arch/os
release = 20170130.n.0
version = Rawhide
target = f26
ksurl = git+https://pagure.io/fedora-kickstarts.git?#14fe984d2c2796dfb322c634cef69c62f788b2b8
can_fail = armhfp,x86_64
distro = Fedora-22

$ sudo koji --profile=compose_koji image-build --config=docker_Fedora-Docker-Base.cfg
Created task: 90148024
Task info: https://koji.stg.fedoraproject.org/koji/taskinfo?taskID=90148024
Watching tasks (this may be safely interrupted)...
90148024 image (f26, Fedora-Docker-Base-Rawhide, fedora-docker-base.ks): free
90148024 image (f26, Fedora-Docker-Base-Rawhide, fedora-docker-base.ks): free -> open (arm01-builder22.arm.fedoraproject.org)
  90148031 createImage (f26, Fedora-Docker-Base-Rawhide-20170130.n.0, fedora-docker-base.ks, x86_64): free
  90148030 createImage (f26, Fedora-Docker-Base-Rawhide-20170130.n.0, fedora-docker-base.ks, armhfp): free
  90148030 createImage (f26, Fedora-Docker-Base-Rawhide-20170130.n.0, fedora-docker-base.ks, armhfp): free -> open (arm01-builder22.arm.fedoraproject.org)
  90148030 createImage (f26, Fedora-Docker-Base-Rawhide-20170130.n.0, fedora-docker-base.ks, armhfp): open (arm01-builder22.arm.fedoraproject.org) -> FAILED: ApplianceError: Image status is FAILED: internal error: process exited while connecting to monitor: 2017-01-31T11:27:29.463377Z qemu-system-arm: at most 2047 MB RAM can be simulated
  1 free  1 open  0 done  1 failed
  90148031 createImage (f26, Fedora-Docker-Base-Rawhide-20170130.n.0, fedora-docker-base.ks, x86_64): free -> canceled
  0 free  1 open  1 done  1 failed
90148024 image (f26, Fedora-Docker-Base-Rawhide, fedora-docker-base.ks): open (arm01-builder22.arm.fedoraproject.org) -> FAILED: ApplianceError: Image status is FAILED: internal error: process exited while connecting to monitor: 2017-01-31T11:27:29.463377Z qemu-system-arm: at most 2047 MB RAM can be simulated
  0 free  0 open  1 done  2 failed

90148024 image (f26, Fedora-Docker-Base-Rawhide, fedora-docker-base.ks) failed


$ 

Using command line arguments instead of the config file does not have any effect on the result.

For the record I don't expect the task to success.


Yes, that codepath doesn't use this feature. Marking as bug (option is there, functionality not).

Metadata Update from @mikem:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.12

5 years ago

Login to comment on this ticket.

Metadata