Re: About restful APIs for job services


Steven Zou <sz...@...>
 

@Herman Zhu

 

  We’re planning to do enhancements to the job service. If you’re interested in this part,  we’re welcoming u to join to do contributions.

 

thanks&regards

-- 

Steven (邹佳)

 

Engineer, CNA, VMware R&D

 

Mail: sz...@...

Cell: +8618600021252

Addr: 9F Tower C, Raycom Info Tech Park, No. 2 Kexueyuan South Road Haidian District, Beijing 100738 China

 

 

 

From: <harb...@...> on behalf of Herman Zhu <zhuh...@...>
Date: Tuesday, October 2, 2018 at 13:23
To: harbor-users <harb...@...>
Subject: Re: About restful APIs for job services

 

Post the json data to job server 

{"job":{"name":"IMAGE_TRANSFER","parameters":{"dst_registry_insecure":false,"dst_registry_password":"SGFyYm9yMTIzNDUK","dst_registry_url":"http://192.168.191.157","dst_registry_username":"admin","repository":"library/rust","src_registry_insecure":true,"src_registry_url":"http://192.168.191.156","tags":"aa5551d785"},"metadata":{"kind":"Generic","unique":false},"status_hook":"test"}}


job server response the data

 

{"job":{"id":"3613fa8b32655b179a1f2f7d","status":"Pending","name":"IMAGE_TRANSFER","kind":"Generic","unique":false,"ref_link":"/api/v1/jobs/3613fa8b32655b179a1f2f7d","enqueue_time":1538408243,"update_time":1538408243,"hook_status":"activated"}}

 

job server log is 

 

Oct  1 23:37:25 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:25Z [INFO] Job incoming: IMAGE_TRANSFER:3613fa8b32655b179a1f2f7d

Oct  1 23:37:25 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:25Z [ERROR] [service_logger.go:63]: Job 'IMAGE_TRANSFER:3613fa8b32655b179a1f2f7d' exit with error: Runtime error: interface conversion: interface {} is string, not []interface {}

Oct  1 23:37:25 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:25Z [WARNING] Failed to process 'report_status' request with error: Post test: unsupported protocol scheme ""

Oct  1 23:37:25 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:25Z [WARNING] Failed to process 'report_status' request with error: Post test: unsupported protocol scheme ""

Oct  1 23:37:27 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:27Z [WARNING] Failed to process 'mark_die_at' request with error: seems 3613fa8b32655b179a1f2f7d is not a dead job

Oct  1 23:37:29 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:29Z [WARNING] Failed to process 'report_status' request with error: Post test: unsupported protocol scheme ""

Oct  1 23:37:29 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:29Z [WARNING] Failed to process 'mark_die_at' request with error: seems 3613fa8b32655b179a1f2f7d is not a dead job

Oct  1 23:37:30 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:30Z [WARNING] Failed to process 'report_status' request with error: Post test: unsupported protocol scheme ""

Oct  1 23:37:39 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:39Z [ERROR] [service_logger.go:63]: Failed to process 'report_status' request with error: Post test: unsupported protocol scheme "" (3 times tried)

Oct  1 23:37:42 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:42Z [ERROR] [service_logger.go:63]: Failed to process 'report_status' request with error: Post test: unsupported protocol scheme "" (3 times tried)

Oct  1 23:37:42 172.18.0.1 jobservice[23019]: 2018-10-01T15:37:42Z [ERROR] [service_logger.go:63]: Failed to process 'mark_die_at' request with error: seems 3613fa8b32655b179a1f2f7d is not a dead job (3 times tried)

 

--
You received this message because you are subscribed to the Google Groups "harbor-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbor-users+unsu...@....
To post to this group, send email to harbor...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/harbor-users/d97390cc-eb4f-4bec-8f92-c058813b644b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Join harbor-users@lists.cncf.io to automatically receive all group messages.