dragonflyoss/Dragonfly2

Dragonfly Manager console job preheat blank page

Closed this issue · 3 comments

Python Code:
#!/usr/bin/python
import requests

url = 'http://dragonfly.test.xxx.com/oapi/v1/jobs'

headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer YTBhM2Y2ZWQtYzUwYS00NGxxxxxxxxMtNTk3ZjI2NDI2N2Rk'
}
data = {
"type": "preheat",
"args": {
"type": "image",
"url": "https://harbor.test.xxx.com/v2/init-images/centos/manifests/7",
"filteredQueryParams": "Expires&Signature",
"username": "admin",
"password": "xxxxx"
}
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.text)

Uploading dragonfly.png…

Uploading image.png…

Environment:

  • Dragonfly version: 2.1.30 (helm:1.1.26)
  • OS: ubuntu18.04
  • Kernel (e.g. uname -a): 5.4.193-0504193-generic
  • Others: helm 安装

The current version is too low, please upgrade to the latest version.

helm upgrade 1.1.48

Already solved