Project

General

Profile

action #139073

Updated by okurz 6 months ago

## Motivation 
 

 See #138446.  

 As the current [configuration](https://gitlab.suse.de/openqa/salt-states-openqa/-/blob/master/openqa/server.sls?ref_type=heads#L87) suggests, osd is using the soon to be protected `https://api.suse.de/public`. The plugin needs to be able to use authentication. 

 ## Acceptance criteria 

 * **AC1** osd is able to fetch the necessary data using authenticated query 
 * **AC1:** Products are scheduled **AC2** o3 is able to fetch the necessary data as in before on o3 
 * **AC2:** No obvious failed minion jobs related to obs_rsync on o3 
 * **AC3:** Same for OSD 

 ## Acceptance tests 
 * **AT1-1:** Check https://openqa.opensuse.org/admin/productlog for openQA builds triggered correctly, e.g. daily Tumbleweed and Leap snapshots showing up at all 
 * **AT2-1:** Check https://openqa.opensuse.org/minion/jobs?state=failed&task=obs_rsync_run for obvious related failed minion jobs 
 * **AT3-1:** Check https://openqa.suse.de/minion/jobs?state=failed&task=obs_rsync_run for obvious related failed minion jobs 
 * **AT3-2:** Check https://openqa.suse.de/admin/productlog for openQA builds triggered correctly, e.g. latest SLE and ALP snapshots 


 ## Out of scope 
 * **AC3** ObsRsync plugin is documented 

 ## Suggestions 
 * - Consider using *osc* or [osc-tiny](https://github.com/SUSE/osc-tiny) CLI instead of implementing the protocol 
 * - Take a look at [SCC](https://github.com/SUSE/scc-docs/blob/master/projects/scc/build_service/mfa.md#L1) and [osc-tiny](https://github.com/SUSE/osc-tiny/blob/master/osctiny/osc.py#L275) implementations for reference 
 * Do what's necessary to fix 
 * Ensure that osd is able to fetch the necessary data using authenticated query 
 * Ensure that o3 is able to fetch the necessary data as before 


Back