TRITON-2352: Add 'xz' support to sdc-imgapi-cli

Details

Issue Type:New Feature
Priority:5 - Low
Status:Resolved
Created at:2022-11-15T16:45:13.796Z
Updated at:2022-11-16T19:38:01.478Z

People

Created by:Dan McDonald
Reported by:Dan McDonald

Fix Versions

2022-12-15 Go Bighorns (Release Date: 2022-12-15)

Related Links

Description

A github search seems to indicate that while IMGAPI has support for “xz” compression, the sdc-imgadm tool does not (see Nov 15 2022 conversations on IRC’s #triton as well). This issue tracks adding “xz” to sdc-imgadm, and if it turns out OTHER repos beyond sdc-imgapi-cli need altering, they should use this issue as well.

Comments

Comment by Dan McDonald
Created at 2022-11-15T22:24:54.421Z

Tested by uncompressing a .gz image, then compressing it as .xz, followed by this:

[root@moe (kebecloud) ~]# sdc-imgadm import -m /tmp/foo2.json -f /tmp/foo.xz
Imported image 23eb0c60-e7fe-4356-8c86-f83c1b6edc75 (sdc, PR-24-20221115T214934Z-g54bd33f, state=unactivated)
...60-e7fe-4356-8c86-f83c1b6edc75 [==============================================================>] 100% 121.03MB                  
Added file "/tmp/foo.xz" (compression "xz") to image 23eb0c60-e7fe-4356-8c86-f83c1b6edc75
Activated image 23eb0c60-e7fe-4356-8c86-f83c1b6edc75
[root@moe (kebecloud) ~]# 

Comment by Jira Bot
Created at 2022-11-15T22:35:47.372Z

sdc-imgapi-cli commit 2d0436b87ac285a9d3f5083f57058d54566e1450 (branch master, by Dan McDonald)

TRITON-2352 Add 'xz' support to sdc-imgapi-cli

Reviewed by: Brian Bennett <brian.bennett@mnx.io>
Reviewed by: Travis Paul <Tr@visPaul.me>


Comment by Jira Bot
Created at 2022-11-16T18:50:13.219Z

sdc-sdc commit ec576a6c2951eab9025d3fcd47e6fa4a57082597 (branch master, by Dan McDonald)

TRITON-2352 Add 'xz' support to sdc-imgapi-cli

Reviewed by: Brian Bennett <brian.bennett@mnx.io>