oracle / oracle/oci-cli

`oci compute instance launch` error

Open
#649 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

I have set up my account and trying to use oci compute instance launch command to create VM, but got the following error

header: Date: Sun, 12 Mar 2023 15:14:26 GMT
header: opc-request-id: xxx/xxx
header: Content-Type: application/json
header: Connection: close
header: Content-Length: 80
DEBUG:oci.base_client.140610884260896: 2023-03-12 15:14:26.796795: time elapsed for request xxx: 1.1419272849998379
DEBUG:oci.base_client.140610884260896: 2023-03-12 15:14:26.797167: Response status: 429
DEBUG:oci.base_client.140610884260896: 2023-03-12 15:14:26.797506: python SDK time elapsed for deserializing: 1.0160999863728648e-05
INFO:oci.base_client.140610884260896: 2023-03-12 15:14:56.828502: Request: POST https://iaas.ap-tokyo-1.oraclecloud.com/20160918/instances
Not using Expect header...
send: b'POST /20160918/instances HTTP/1.1\r\nuser-agent: Oracle-PythonSDK/2.94.0 (python 3.10.7; x86_64-Linux) Oracle-PythonCLI/3.23.3\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nconnection: keep-alive\r\ncontent-type: application/json\r\nopc-retry-token: oQ50Vrs6qbWxYtznAwUp4qvRPCZ6C6\r\nopc-client-retries: true\r\nopc-client-info: Oracle-PythonSDK/2.94.0\r\nopc-request-id: 57FDA8963A4D4D8EAEC37E1D5B202E92\r\nContent-Length: 783\r\ndate: Sun, 12 Mar 2023 15:14:56 GMT\r\nhost: iaas.ap-tokyo-1.oraclecloud.com\r\nx-content-sha256: xxx\r\nauthorization: Signature algorithm="rsa-sha256",headers="date (request-target) host content-length content-type x-content-sha256",keyId="xxx",signature="xxx",version="1"\r\n\r\n{"availabilityDomain": "yrNY:AP-TOKYO-1-AD-1", "compartmentId": "xxx", "shape": "VM.Standard.A1.Flex", "createVnicDetails": {"assignPublicIp": true, "subnetId": "xxx"}, "displayName": "Compute VM", "imageId": "ocid1.image.oc1.ap-tokyo-1.aaaaaaaapncqenbxqjgwiblksrmengjmesutd6bgabut6harntkwscwlfmma", "metadata": {"ssh_authorized_keys": "ssh-ed25519 xxx"}, "shapeConfig": {"memoryInGBs": "24", "ocpus": "4"}, "sourceDetails": {"sourceType": "image", "imageId": "xxx"}}'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'

Does anyone encounter the same problem?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing oci compute instance launch with the shown command context and inspect the HTTP 429 and 500 responses, including the Oracle Cloud request details. No repository file or test is named; the issue is done only when the cause is identified and the appropriate CLI or troubleshooting guidance is clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.