Skip to content

L2 network offerings are not returned if zoneId is passed in listNetworkOfferings #2690

@PaulAngus

Description

@PaulAngus
ISSUE TYPE
  • Bug Report
COMPONENT NAME
API
CLOUDSTACK VERSION
4.11.0
CONFIGURATION

CloudStack with 4.11.0 installed

OS / ENVIRONMENT

N/A

SUMMARY
STEPS TO REPRODUCE
Create an L2 network offering and enable it.
then either:

- use cloudmonkey to list network offerings (including a zoneid): 
list networkofferings guestiptype=L2 zoneid=<your zone uui> # i.e. da6b6a69-f823-4cb6-be4d-e714fd3bb926 in the example given below

- go to UI and try to create an L2 network

EXPECTED RESULTS
cloudmonkey should return the L2 network created earlier
AND
UI dropdown should include the L2 network offering created earlier
ACTUAL RESULTS
cloudmonkey returns no network offerings
and
UI dropdown should include the network offering created earlier

_NB if zoneid argument is not passed then response is as expected
list networkofferings guestiptype=L2
{
  "count": 1,
  "networkoffering": [
    {
      "availability": "Optional",
      "conservemode": false,
      "displaytext": "L2-with-ConfigDrive",
      "egressdefaultpolicy": true,
      "forvpc": false,
      "guestiptype": "L2",
      "id": "da6b6a69-f823-4cb6-be4d-e714fd3bb926",
      "isdefault": false,
      "ispersistent": false,
      "name": "L2-with-ConfigDrive",
      "networkrate": 200,
      "service": [
        {
          "name": "UserData",
          "provider": [
            {
              "name": "ConfigDrive"
            }
          ]
        }
      ],
      "serviceofferingid": "579c5e08-048a-4f27-8676-89a41370d806",
      "specifyipranges": false,
      "specifyvlan": false,
      "state": "Enabled",
      "supportspublicaccess": false,
      "supportsstrechedl2subnet": false,
      "traffictype": "Guest"
    }
  ]
}_

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions