Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run c_rehash to work around openssl rehash issue on focal/armhf. #848

Merged
merged 2 commits into from
Jan 13, 2021

Conversation

nuclearsandwich
Copy link
Contributor

As discussed in
https://discourse.ros.org/t/ssl-failure-in-buildfarm-jobs-ros1/18304/3
there is an issue with Ubuntu 20.04 armhf when being run on an amd64
20.04 host via qemu which is interfering with openssl-rehash.

Until the cause is identified we're invoking c_rehash explicitly as the
last step before cache invalidation when the build environment is 20.04
on armhf.

On a local test using the script generated with generate_release_script.py https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/production/index.yaml noetic ufhf geometry_msgs ubuntu focal armhf > /tmp/geom.sh

I was able to get past the SSL issue shown on the buildfarm and confirmed with a local run before modification. But I then got a weird compiler issue when actually building the deb which didn't seem related but that I also didn't bother to triage deeply. So far as I can tell this is enough to get these packages operational.

@cottsay when examining the template files I saw that the binarydeb task file as opposed to the generate file didn't have the rehash workaround so I threw on an additional commit adding it. But it made no difference for me locally.

As discussed in
https://discourse.ros.org/t/ssl-failure-in-buildfarm-jobs-ros1/18304/3
there is an issue with Ubuntu 20.04 armhf when being run on an amd64
20.04 host via qemu which is interfering with openssl-rehash.

Until the cause is identified we're invoking c_rehash explicitly as the
last step before cache invalidation when the build environment is 20.04
on armhf.
Just kind of throwing this in after git is installed since that brings
curl brings ca-certificates.
Copy link
Member

@cottsay cottsay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that the conditional logic is really needed - rehashing the certificates should be OK to do on a working image as well. I'm fine with it though.

I know that our farm doesn't run any sourcedeb jobs on these workers, but I'm not sure what mechanism we're using to enforce that. Probably not even worth looking into.

@nuclearsandwich
Copy link
Contributor Author

I'm not sure what mechanism we're using to enforce that. Probably not even worth looking into.

sourcedeb jobs run on agents with the buildagent label.

@nuclearsandwich nuclearsandwich merged commit e6ce491 into master Jan 13, 2021
@nuclearsandwich nuclearsandwich deleted the rehash-armhf branch January 13, 2021 03:37
@ros-discourse
Copy link

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/ssl-failure-in-buildfarm-jobs-ros1/18304/4

nuclearsandwich added a commit that referenced this pull request Jan 13, 2021
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