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

Pre-heat request returns "null" and manager log shows "x509: certificate signed by unknown authority" #785

Open
mfarooq-tech opened this issue Nov 9, 2021 · 6 comments · Fixed by #786
Assignees

Comments

@mfarooq-tech
Copy link

mfarooq-tech commented Nov 9, 2021

Bug report:

Command:

curl --location --request POST 'http://x.y.z.162:8080/api/v1/jobs' --header 'Content-Type: application/json' --data-raw '{"type": "preheat","args": {"type": "image","url": "https://registry.com/v2/project/repo/image/manifests/latest"}}'

Error in the log -> "x509: certificate signed by unknown authority"

Expected behavior:

How to reproduce it:

Environment:

  • Dragonfly version: alpha.7
  • OS:
  • Kernel (e.g. uname -a):
  • Others:

Logs:
[manager_gin.log]

@gaius-qi gaius-qi self-assigned this Nov 9, 2021
@gaius-qi
Copy link
Member

gaius-qi commented Nov 9, 2021

Can you give me all the logs including core etc.

@mfarooq-tech
Copy link
Author

mfarooq-tech commented Nov 9, 2021

manager core log:
[manager_core.log]

@mfarooq-tech
Copy link
Author

{"errors":[{"code":"MANIFEST_UNKNOWN","message":"OCI manifest found, but accept header does not support OCI manifests"}]}

@mfarooq-tech
Copy link
Author

This has not been resolved. Looks like there is no support of ORAS image format in pre-heat?

curl --location --request POST 'http://xyz.com/api/v1/jobs' --header 'Content-Type: application/json' --data-raw '{"type": "preheat","args": {"type": "image","url": "https://registry.com/v2/project/repo/manifests/latest"}}'
{"message":"mediaType in manifest should be 'application/vnd.docker.distribution.manifest.v2+json' not ''"}

@mfarooq-tech
Copy link
Author

@gaius-qi

@mfarooq-tech
Copy link
Author

A manifest of the oras image looks like this.

{"schemaVersion":2,"config":{"mediaType":"application/vnd.unknown.config.v1+json","digest":"sha256:blablabla","size":2},"layers":[{"mediaType":"application/vnd.sylabs.sif.layer.v1.sif","digest":"sha256:blablablablalbla","size":1389015040,"annotations":{"org.opencontainers.image.title":"image:tag"}}]}

e-ngo pushed a commit to e-ngo/dragonfly that referenced this issue Jan 23, 2025
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 a pull request may close this issue.

2 participants