#300 cannot import Dockerfile from Pagure repo on CI
Closed: Fixed with Explanation 2 years ago by arrfab. Opened 2 years ago by dcavalca.

Trying to import a Dockerfile from https://pagure.io/centos-sig-hyperscale/systemd-releng.git in the OpenShift CentOS CI (hyperscale project), and I get "URL is valid but cannot be reached. If this is a private repository, enter a source Secret in advanced Git options", but the repo isn't private. Maybe there's some ACL in place that prevents it from reaching pagure.io?


I've worked around this by using the ssh repo url and a deploy key, but that shouldn't be necessary for public repos

Metadata Update from @siddharthvipul1:
- Issue assigned to siddharthvipul1
- Issue tagged with: centos-ci-infra, medium-gain, medium-trouble

2 years ago

can we get some news about this request ? I agree that a Dockerfile in a public git repo can be used to deploy pods in openshift, so curious about why it would fail there.
Myself have just tried a quick test with a public git repo on github and it was working.
@dcavalca can you give it a try and see if you have different results ? there is no ACL (that we're aware of ) that would block CI infra/vlan/subnet to reach pagure.io, and even the reverse : as there are some CI jobs for pagure itself (hosted on pagure.io), that would be problematic if it wasn't allowed to reach pagure.io :)

@dcavalca just trying to get some news on this one : without feedback, we'll probably close it at next infra and releng meeting

Just tried now, I still get the same error: "URL is valid but cannot be reached. If this is a private repository, enter a source Secret in advanced Git options"

Screenshot_from_2021-10-04_09-40-10.png

Well, if you try to build a container from a DockerFile, you have to specify in which directory to find it (that will mean contextDir in the available yaml file in openshift, but from that screenshot you used Import from Git and not Import from Dockerfile so maybe worth clarifying first what you're trying to do, and which steps ? ;-)

Oh I just used that to show the error, when using "Import from Dockerfile" it's exactly the same, even when passing the correct contextDir. However, I've just noticed now it actually works if ignore that message and move forward, so there might just be a UI issue left here.

@dcavalca thanks for the feedback, so can we close this ticket ?

Yeah I think that's fine. Probably worth bubbling up the UI issue to openshift, but I don't think there's anything CentOS specific to fix here. Thanks!

ok .. wondering if you can point to same url without .git
From other tests, I used the url on github without .git at the end and used contextDir and it worked fine (never tried pointing to pagure). Let me close it though

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

2 years ago

Login to comment on this ticket.

Metadata
Boards 1
CentOS CI Infra Status: Backlog
Attachments 1