When using ipam get-subnet-ip-inventory module the "dns-host-name" values are incorrect
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 669
- Forks
- 236
- Avg merge
- 1m
- Merged PRs (30d)
- 4
Description
The dns-host-name value returned from ipam get-subnet-ip-inventory is invalid. It is missing the Subnet and VCN domain portions and returning instead HOSTNAME.oraclevcn.com
% oci -v
3.50.3
% oci network ipam get-subnet-ip-inventory --subnet-id $SUBNET_ID --query 'data."ip-inventory-subnet-resource-summary"[*].{"ip-address": "ip-address", "dns-host-name": "dns-host-name", "ip-id": "ip-id"}'
[
{
"dns-host-name": "bastion.oraclevcn.com",
"ip-address": "10.100.100.10",
"ip-id": "ocid1.privateip.oc1.phx.abyhqljr7a5rvvwv7drl2cz67mw353xvevfbg5oprjj3oue2eyojfnwu43la"
},
{
"dns-host-name": "vpn2-trusted.oraclevcn.com",
"ip-address": "10.100.100.11",
"ip-id": "ocid1.privateip.oc1.phx.abyhqljrygzwjrsshtlzcw5v3n5wcchh2nygdtjuk47sxbsxjlfsdnv6fyia"
},
{
"dns-host-name": "tmp-mgmt-server.oraclevcn.com",
"ip-address": "10.100.100.12",
"ip-id": "ocid1.privateip.oc1.phx.abyhqljrvezqcifixpog6meuea75yp6ztfb4urnv3mznmnhqcypynjl2dxoq"
}
]
Each above should have the domain name of the Subnet attached:
% oci network subnet get --subnet-id $SUBNET_ID --query 'data."subnet-domain-name"'
"app.vpnphx.oraclevcn.com"
Thus, should have names like
- bastion.app.vpnphx.oraclevcn.com
- vpn2-trusted.app.vpnphx.oraclevcn.com
- tmp-mgmt-server.app.vpnphx.oraclevcn.com
…instead of what we see now like this:
- bastion.oraclevcn.com
- vpn2-trusted.oraclevcn.com
- tmp-mgmt-server.oraclevcn.com
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running oci network ipam get-subnet-ip-inventory and compare each dns-host-name with the subnet-domain-name returned by oci network subnet get. Trace the CLI entry point for the IPAM inventory response and identify where the hostname is assembled. Done means the inventory output includes the subnet and VCN domain portions shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, cloud, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100