Skip to content

All forms of osmh update-all-packages fail #924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jeliker1 opened this issue Apr 1, 2025 · 0 comments
Open

All forms of osmh update-all-packages fail #924

jeliker1 opened this issue Apr 1, 2025 · 0 comments

Comments

@jeliker1
Copy link

jeliker1 commented Apr 1, 2025

% oci -v
3.54.1

I can't find an acceptable method to call update-all-packages. See below. I can however execute using raw-request.

This works

oci raw-request --http-method POST --target-uri "https://osmh.us-ashburn-1.oci.oraclecloud.com/20220901/managedInstanceGroups/$GROUP_ID/actions/updateAllPackages" --request-body "$(cat <<EOF
{
  "workRequestDetails":{"displayName":"KSplice only"},
  "updateTypes":["KSPLICE_KERNEL","KSPLICE_USERSPACE"]
}
EOF
)"

Below using OSMH CLI all fail.

Attempt 1

oci os-management-hub managed-instance-group update-all-packages --group-id $GROUP_ID \
--work-request-details '{"displayName":"KSplice only"}' \
--update-types '["KSPLICE_KERNEL", "KSPLICE_USERSPACE"]'

Error: Invalid value for '--update-types': invalid choice: ["KSPLICE_KERNEL", "KSPLICE_USERSPACE"]. (choose from SECURITY, BUGFIX, ENHANCEMENT, OTHER, KSPLICE_KERNEL, KSPLICE_USERSPACE, ALL)

Attempt 2

oci os-management-hub managed-instance-group update-all-packages --group-id $GROUP_ID \
--work-request-details '{"displayName":"KSplice only"}' \
--update-types '["KSPLICE_KERNEL"]'

Error: Invalid value for '--update-types': invalid choice: ["KSPLICE_KERNEL"]. (choose from SECURITY, BUGFIX, ENHANCEMENT, OTHER, KSPLICE_KERNEL, KSPLICE_USERSPACE, ALL)

Attempt 3

oci os-management-hub managed-instance-group update-all-packages --group-id $GROUP_ID \
 --work-request-details '{"displayName":"KSplice only"}' \
--update-types '"KSPLICE_KERNEL"'

Error: Invalid value for '--update-types': invalid choice: "KSPLICE_KERNEL". (choose from SECURITY, BUGFIX, ENHANCEMENT, OTHER, KSPLICE_KERNEL, KSPLICE_USERSPACE, ALL)

Attempt 4

oci os-management-hub managed-instance-group update-all-packages --group-id $GROUP_ID \
--work-request-details '{"displayName":"KSplice only"}'  \
--update-types 'KSPLICE_KERNEL'

Parameter 'update_types' must be in JSON format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant