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)
Sat, Oct 3, 12:17 AM
Unknown Object (File)
Fri, Oct 2, 9:45 PM
Unknown Object (File)
Fri, Oct 2, 9:09 PM
Unknown Object (File)
Tue, Sep 22, 7:08 AM
Unknown Object (File)
Jul 29 2026, 7:42 AM
Unknown Object (File)
Jul 28 2026, 5:00 PM
Unknown Object (File)
Jul 12 2026, 9:44 PM
Unknown Object (File)
Jul 3 2026, 12:56 PM
Subscribers

Details

Reviewers
cperciva

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60257
Build 57141: 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
38

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*).

44

I assume the echo is left over from debugging?

release/Makefile.oracle
44

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
38

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.

44

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.