Page MenuHomeFreeBSD

release: automate oracle image conversion and upload
AbandonedPublic

Authored by dch on Oct 30 2024, 12:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 24, 3:12 AM
Unknown Object (File)
Nov 6 2025, 12:27 AM
Unknown Object (File)
Oct 14 2025, 2:13 AM
Unknown Object (File)
Sep 22 2025, 9:24 PM
Unknown Object (File)
Sep 18 2025, 4:52 AM
Unknown Object (File)
Sep 17 2025, 10:45 PM
Unknown Object (File)
Sep 9 2025, 9:19 PM
Unknown Object (File)
Sep 8 2025, 8:12 PM
Subscribers

Details

Reviewers
cperciva

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60259
Build 57143: arc lint + arc unit

Event Timeline

dch requested review of this revision.Oct 30 2024, 12:52 PM

We want a global s/OCI/ORACLE/ here, right?

release/Makefile.oracle
37

I'm not sure what OCI_PAR is but you'll also want to do this for OCIREGION, OCICOMPARTMENT, and OCIKEYFILE (after they're renamed to ORACLE*).

43

I assume the echo is left over from debugging?

release/Makefile.oracle
43

On second thought, most of this command line is clearly not a curl command line. What's the correct command for uploading an image into Oracle Cloud?

dch marked 3 inline comments as done.Jan 9 2025, 9:26 AM
dch added inline comments.
release/Makefile.oracle
37

this is quite odd, I have messed up git arc ... and it seems to be missing a commit. My local version doesn't have these anymore. I will squash & re-push.

43

it totally is :-)

just ORACLE_PAR_URL is a Pre-Approved-Request (PAR) that combines both the token to upload, and the path that upload is accepted to. It's the URL I already gave you, of the form:

https://frqqnzvlxckp.objectstorage.us-ashburn-1.oci.customer-oci.com/p/.../frqqnzvlxckp/b/re/o

The final output of the Makefile looks like this:

... usual build vomit ...
Creating `/tmp/efiboot.2vgMmX'
/tmp/efiboot.2vgMmX: 65528 sectors in 65528 FAT32 clusters (512 bytes/cluster)
BytesPerSec=512 SecPerClust=1 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=66584 FATsecs=512 RootCluster=2 FSInfo=1 Backup=2
Populating `/tmp/efiboot.2vgMmX'
Image `/tmp/efiboot.2vgMmX' complete
Building filesystem...  Please wait.
Building final disk image...  Please wait.
Disk image /usr/obj/usr/src/arm64.aarch64/release/oracle.zfs.raw created.
    (100.00/100%)
image_metadata.json
output.QCOW2
Oracle image cw-oracle-ufs.oci is ready for upload.
Oracle image cw-oracle-ufs.oci uploaded as FreeBSD-15.0-CURRENT-arm64-aarch64-20250108-5736c2716068-ufs.oci
    (100.00/100%)
image_metadata.json
output.QCOW2
Oracle image cw-oracle-zfs.oci is ready for upload.
Oracle image cw-oracle-zfs.oci uploaded as FreeBSD-15.0-CURRENT-arm64-aarch64-20250108-5736c2716068-zfs.oci
dch marked 2 inline comments as done.