Skip to content

Revert "playbooks: Add workaround for Fedora Rawhide" - #1344

Merged
debarshiray merged 1 commit into
containers:mainfrom
debarshiray:wip/rishi/playbooks-rawhide-dnf5-revert
Aug 24, 2023
Merged

debarshiray merged 1 commit into
containers:mainfrom
debarshiray:wip/rishi/playbooks-rawhide-dnf5-revert

Conversation

@debarshiray

Copy link
Copy Markdown
Member

The DNF5 Change [1] was dropped from Fedora 39 (and Rawhide) [2] and postponed for a later Fedora. Therefore, there's no need for this workaround.

This reverts commit 9679172.

[1] https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5

[2] https://pagure.io/fesco/issue/3039

debarshiray added a commit to debarshiray/toolbox that referenced this pull request Aug 3, 2023
@debarshiray
debarshiray force-pushed the wip/rishi/playbooks-rawhide-dnf5-revert branch from 2b21f70 to 3297c5b Compare August 3, 2023 16:04
@softwarefactory-delete-me

Copy link
Copy Markdown

@debarshiray

Copy link
Copy Markdown
Member Author

recheck

@debarshiray

Copy link
Copy Markdown
Member Author

@danpawlik @TristanCacqueray All the tests running on Fedora Rawhide hosts are failing in the same way as #1331 :

LOOP [fetch-output : Collect logs, artifacts and docs]
fedora-rawhide | ERROR: Item: {'dest': '/var/lib/zuul/builds/39a62ce6d3df4d45a74db1b5a43bb75b/work/logs', 'src': 'logs'}
fedora-rawhide | {
fedora-rawhide |   "ansible_loop_var": "zj_output",
fedora-rawhide |   "msg": "rsync: [sender] change_dir \"/home/zuul-worker/zuul-output/logs\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1670) [Receiver=3.1.3]\nrsync: [Receiver] write error: Broken pipe (32)\n",
fedora-rawhide |   "rc": 23,
fedora-rawhide |   "zj_output": {
fedora-rawhide |     "dest": "/var/lib/zuul/builds/39a62ce6d3df4d45a74db1b5a43bb75b/work/logs",
fedora-rawhide |     "src": "logs"
fedora-rawhide |   }
fedora-rawhide | }
fedora-rawhide | changed: All items complete

fedora-rawhide | ERROR: Item: {'dest': '/var/lib/zuul/builds/39a62ce6d3df4d45a74db1b5a43bb75b/work/artifacts', 'src': 'artifacts'}
fedora-rawhide | {
fedora-rawhide |   "ansible_loop_var": "zj_output",
fedora-rawhide |   "msg": "rsync: [sender] change_dir \"/home/zuul-worker/zuul-output/artifacts\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1670) [Receiver=3.1.3]\nrsync: [Receiver] write error: Broken pipe (32)\n",
fedora-rawhide |   "rc": 23,
fedora-rawhide |   "zj_output": {
fedora-rawhide |     "dest": "/var/lib/zuul/builds/39a62ce6d3df4d45a74db1b5a43bb75b/work/artifacts",
fedora-rawhide |     "src": "artifacts"
fedora-rawhide |   }
fedora-rawhide | }
fedora-rawhide | ERROR: Item: {'dest': '/var/lib/zuul/builds/39a62ce6d3df4d45a74db1b5a43bb75b/work/docs', 'src': 'docs'}
fedora-rawhide | {
fedora-rawhide |   "ansible_loop_var": "zj_output",
fedora-rawhide |   "msg": "rsync: [sender] change_dir \"/home/zuul-worker/zuul-output/docs\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1670) [Receiver=3.1.3]\nrsync: [Receiver] write error: Broken pipe (32)\n",
fedora-rawhide |   "rc": 23,
fedora-rawhide |   "zj_output": {
fedora-rawhide |     "dest": "/var/lib/zuul/builds/39a62ce6d3df4d45a74db1b5a43bb75b/work/docs",
fedora-rawhide |     "src": "docs"
fedora-rawhide |   }
fedora-rawhide | }

My first guess was that this was because of the DNF5 Change getting dropped from Fedora 39, but that's not the case. Any ideas?

@softwarefactory-delete-me

Copy link
Copy Markdown

@TristanCacqueray

Copy link
Copy Markdown
Contributor

In the executor.log there is this error when trying to copy the source to the node:

TASK [prepare-workspace : Synchronize src repos to workspace directory.] *******
fatal: [fedora-rawhide]: FAILED! => {"censored": "the output has been hidden due to the fact that \'no_log: true\' was specified for this result", "changed": false}

Then the upload-log roles fails because it can't fetch the logs, hence the error you observed. Perhaps the image is not booting, maybe this is caused by this recent change https://softwarefactory-project.io/r/c/config/+/28969 . @danpawlik did that produced a new rawhide image?

@danpawlik

Copy link
Copy Markdown
Contributor

recheck

@danpawlik

Copy link
Copy Markdown
Contributor

@TristanCacqueray Image for rawhide as usual each day is re-created. Image is booting normally, can ssh to it.
Even rsync works well (some time ago was an issue, that rsync command was not working). Will dig more in that.

@softwarefactory-delete-me

Copy link
Copy Markdown

@danpawlik

Copy link
Copy Markdown
Contributor

recheck

@danpawlik

danpawlik commented Aug 7, 2023 •

Copy link
Copy Markdown
Contributor

So I have done tests from zuul-executor host to the remote vm. Simple task:

---
- name: test
  hosts: test.dev
  tasks:
   - name: Synchronize src repos to workspace directory.
     synchronize:
       dest: "~/src/"
       src: "/tmp/toolbox"

This task works well, but on executing tasks similar what is done: https://softwarefactory-project.io/r/plugins/gitiles/zuul-jobs/+/refs/heads/master/roles/prepare-workspace/tasks/main.yaml

---
- name: test
  hosts: test.dev
  gather_facts: false
  tasks:
  - name: Synchronize src repos to workspace directory.
    synchronize:
      delete: true
      dest: "~/src/"
      recursive: true
      src: "/tmp/toolbox"
      owner: no
      group: no

Raises an error:

fatal: [test.dev]: FAILED! => {"changed": false, "cmd": "/usr/bin/rsync --delay-updates -F --compress --delete-after --archive --no-owner --no-group --rsh=/usr/bin/ssh -S none -o Port=22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --out-format=<<CHANGED>>%i %n%L /tmp/toolbox zuul-worker@XXXX:~/src/", "msg": "Warning: Permanently added 'XXXX' (ECDSA) to the list of known hosts.\r\n*** buffer overflow detected ***: terminated\nrsync: connection unexpectedly closed (202380 bytes received so far) [sender]\nrsync error: unexplained error (code 255) at io.c(226) [sender=3.1.3]\n", "rc": 255}

@softwarefactory-delete-me

Copy link
Copy Markdown

@danpawlik

Copy link
Copy Markdown
Contributor

Created an issue on BZ https://bugzilla.redhat.com/show_bug.cgi?id=2229654

@debarshiray

Copy link
Copy Markdown
Member Author

Thanks for looking into this, @danpawlik & @TristanCacqueray

Is that RHEL 8 rsync bug the root cause of this problem? I am asking to be sure, before I try to see if it can be moved forward.

@debarshiray

Copy link
Copy Markdown
Member Author

recheck

@softwarefactory-delete-me

Copy link
Copy Markdown

@debarshiray
debarshiray force-pushed the wip/rishi/playbooks-rawhide-dnf5-revert branch from 3297c5b to 983e07a Compare August 24, 2023 14:40
@softwarefactory-delete-me

Copy link
Copy Markdown

@debarshiray

Copy link
Copy Markdown
Member Author

Some of the test cases are failing because of changes in Fedora Rawhide. For example:

fedora-rawhide | not ok 3 help: Run command 'help' in 136ms
fedora-rawhide | # (from function `assert_line' in file test/system/libs/bats-assert/src/assert.bash, line 479,
fedora-rawhide | #  in test file test/system/002-help.bats, line 45)
fedora-rawhide | #   `assert_line --index 0 --partial "toolbox(1)"' failed
fedora-rawhide | # /usr/bin/man
fedora-rawhide | #
fedora-rawhide | # -- line does not contain substring --
fedora-rawhide | # index     : 0
fedora-rawhide | # substring : toolbox(1)
fedora-rawhide | # line      : troff:<standard input>:33: warning: cannot select font 'C'
fedora-rawhide | # --

However, that's unrelated to this pull request. The fact that we progressed far enough to run the tests, shows that this pull request is alright.

@debarshiray

Copy link
Copy Markdown
Member Author

Also, yay, the Zuul CI breakage with Fedora Rawhide nodes got fixed!

@debarshiray
debarshiray merged commit 983e07a into containers:main Aug 24, 2023
@debarshiray
debarshiray deleted the wip/rishi/playbooks-rawhide-dnf5-revert branch August 24, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants