#555 Exit code 0 for failing media tasks
Closed: Fixed 4 years ago Opened 5 years ago by lsedlar.

In multiple composes we observe that a task is started and fails, but the logs show that exit code of koji command was 0.

Task: https://koji.fedoraproject.org/koji/taskinfo?taskID=21236264
Output of koji cmd: https://kojipkgs.fedoraproject.org/compose/Fedora-Docker-25-20170815.0/logs/armhfp-x86_64/imagebuild-Docker-Docker_Base-docker.armhfp-x86_64.log
Excerpt from main log:

2017-08-15 05:48:19 [IMAGE_BUILD     ] [DEBUG   ] build-image outputs: {'output': 'Created task: 21236264\nTask info: ...  ApplianceError: Image status is FAILED: Expecting property name: line 16 column 20 (char 443)\n  0 free  0 open  1 done  2 failed\n\n21236264 image (f25, Fedora-Docker-Base-25, fedora-docker-base.ks) failed\n', 'retcode': 0, 'task_id': 21236264}

Task: https://koji.fedoraproject.org/koji/taskinfo?taskID=21240907
Output: https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20170815.n.0/logs/i386-x86_64/livemedia-Workstation-Workstation.i386-x86_64.log
Excerpt from main log:

2017-08-15 11:53:51 [LIVE_MEDIA      ] [DEBUG   ] live media outputs: {'output': 'Created task: 21240907\nTask info: ... \n\n21240907 livemedia (f27, Fedora-Workstation-Live-Rawhide, fedora-live-workstation.ks) failed\n', 'retcode': 0, 'task_id': 21240907}

Could this be a bug in Koji?

CC @dustymabe


I managed to replicate this on composer.stg.phx2.fedoraproject.org

[root@composer ~][STG]# koji -p compose_koji spin-livemedia Fedora-Workstation-Live 26 f26 i386,x86_64 fedora-live-workstation.ks --ksurl=git+https://pagure.io/fedora-kickstarts.git?#62eddab5a6b19f593816fdb82c5578897299d794 --release=20170815.n.2 --can-fail=i386 --install-tree='http://kojipkgs.fedoraproject.org/compose/branched/lsedlar/Fedora-26-20170815.n.2/compose/Workstation/$basearch/os' --repo='http://kojipkgs.fedoraproject.org/compose/branched/lsedlar/Fedora-26-20170815.n.2/compose/Everything/$basearch/os' --repo='http://kojipkgs.fedoraproject.org/compose/branched/lsedlar/Fedora-26-20170815.n.2/compose/Everything/$basearch/os'
Created task: 90111551
Task info: https://koji.stg.fedoraproject.org/koji/taskinfo?taskID=90111551
Watching tasks (this may be safely interrupted)...
90111551 livemedia (f26, Fedora-Workstation-Live-26, fedora-live-workstation.ks): free
90111551 livemedia (f26, Fedora-Workstation-Live-26, fedora-live-workstation.ks): free -> open (buildvm-03.stg.phx2.fedoraproject.org)
  90111552 createLiveMedia (f26, Fedora-Workstation-Live-26-20170815.n.2, fedora-live-workstation.ks, x86_64): free
  90111553 createLiveMedia (f26, Fedora-Workstation-Live-26-20170815.n.2, fedora-live-workstation.ks, i386): free
  90111552 createLiveMedia (f26, Fedora-Workstation-Live-26-20170815.n.2, fedora-live-workstation.ks, x86_64): free -> open (buildvm-03.stg.phx2.fedoraproject.org)
  90111552 createLiveMedia (f26, Fedora-Workstation-Live-26-20170815.n.2, fedora-live-workstation.ks, x86_64): open (buildvm-03.stg.phx2.fedoraproject.org) -> FAILED: LiveMediaError: Could not create LiveMedia: livemedia-creator exited with status 1; see root.log or livemedia-out.log for more information
  1 free  1 open  0 done  1 failed
  90111553 createLiveMedia (f26, Fedora-Workstation-Live-26-20170815.n.2, fedora-live-workstation.ks, i386): free -> canceled
  0 free  1 open  1 done  1 failed
90111551 livemedia (f26, Fedora-Workstation-Live-26, fedora-live-workstation.ks): open (buildvm-03.stg.phx2.fedoraproject.org) -> FAILED: LiveMediaError: Could not create LiveMedia: livemedia-creator exited with status 1; see root.log or livemedia-out.log for more information
  0 free  0 open  1 done  2 failed

90111551 livemedia (f26, Fedora-Workstation-Live-26, fedora-live-workstation.ks) failed
[root@composer ~][STG]# echo $?
0

this may be related to issue#531
@mikem Any idea about this?

I opened PR #558 which fixes this at least for the command from my comment.

this may be related to issue#531
@mikem Any idea about this?

Oh, sorry for that I misunderstood your point. Plz ignore it

Metadata Update from @julian8628:
- Issue set to the milestone: 1.14

4 years ago

Login to comment on this ticket.

Metadata