2026-10-08 07:47:02,264 - DEBUG - Parsing Test data successful
2026-10-08 07:47:02,264 - DEBUG - Payload: {'account': 'admin', 'command': 'listUsers', 'response': 'json'}
2026-10-08 07:47:02,264 - DEBUG - ========Sending GET Cmd : listUsers=======
2026-10-08 07:47:02,291 - DEBUG - Response : [{id : '0a3b4d10-c29a-11f1-8e09-1e005a000279', username : 'admin', firstname : 'admin', lastname : 'cloud', created : '2026-10-07T21:57:07+0000', state : 'enabled', account : 'admin', accounttype : 1, usersource : 'native', roleid : 'd453bee1-c299-11f1-8e09-1e005a000279', roletype : 'Admin', rolename : 'Root Admin', domainid : '9ba0f638-c299-11f1-8e09-1e005a000279', domain : 'ROOT', apikey : 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', accountid : '0a3a4637-c29a-11f1-8e09-1e005a000279', iscallerchilddomain : False, isdefault : True, is2faenabled : False, is2famandated : False, apikeyaccess : 'INHERIT'}]
2026-10-08 07:47:02,291 - DEBUG - Payload: {'id': '0a3b4d10-c29a-11f1-8e09-1e005a000279', 'command': 'getUserKeys', 'response': 'json'}
2026-10-08 07:47:02,291 - DEBUG - ========Sending GET Cmd : getUserKeys=======
2026-10-08 07:47:02,317 - DEBUG - Response : {apikey : 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', secretkey : 'R6QPwRUz09TVXBjXNwZk7grTjcPtsFRphH6xhN1oPvnc12YUk296t4KHytg8zRLczDA0X5NsLVi4d8rfMMx3yg', apikeyaccess : True}
2026-10-08 07:47:02,318 - DEBUG - ==== Test Client Creation Successful ====
2026-10-08 07:47:02,419 - DEBUG - ::::::::::::STARTED : TC: test_create_pvlan_network :::::::::::
2026-10-08 07:47:02,419 - DEBUG - Payload: {'displayText': 'Offering for Shared networks', 'name': 'DefaultSharedNetworkOffering', 'command': 'listNetworkOfferings', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'1RBfp4vpu7Cv5UVJaxYhEoG4Tyo='}
2026-10-08 07:47:02,419 - DEBUG - ========Sending GET Cmd : listNetworkOfferings=======
2026-10-08 07:47:02,475 - DEBUG - Response : [{id : '6f762c19-0f96-4c47-a346-ee3499baf04a', name : 'DefaultSharedNetworkOffering', displaytext : 'Offering for Shared networks', created : '2026-10-07T21:57:09+0000', traffictype : 'Guest', isdefault : True, specifyvlan : True, conservemode : True, specifyipranges : True, availability : 'Optional', networkrate : 200, state : 'Enabled', guestiptype : 'Shared', serviceofferingid : 'f975f703-ce68-4b5a-a53e-6dca85ce10e5', service : [{name : 'Dns', provider : [{name : 'VirtualRouter'}]}, {name : 'UserData', provider : [{name : 'VirtualRouter'}]}, {name : 'Dhcp', provider : [{name : 'VirtualRouter'}]}], forvpc : False, fornsx : False, fortungsten : False, ispersistent : False, egressdefaultpolicy : False, supportsstrechedl2subnet : False, supportspublicaccess : False, supportsinternallb : False, internetprotocol : 'IPv4', specifyasnumber : False, hasannotations : False}]
2026-10-08 07:47:02,476 - DEBUG - Test create pvlan network
2026-10-08 07:47:02,476 - DEBUG - Payload: {'displaytext': 'pvlan network', 'gateway': '10.10.10.20', 'isolatedpvlan': 864, 'name': 'pvlan network', 'netmask': '255.255.255.0', 'networkofferingid': '6f762c19-0f96-4c47-a346-ee3499baf04a', 'startip': '10.10.10.10', 'vlan': 2468, 'zoneid': 1, 'command': 'createNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'DbthDYl+cQG9kiCjhWOebbSUTTQ='}
2026-10-08 07:47:02,476 - DEBUG - ========Sending GET Cmd : createNetwork=======
2026-10-08 07:47:02,927 - DEBUG - Response : {id : '3f7d3d85-072f-4b68-abdf-9b6a6510cd2c', name : 'pvlan network', displaytext : 'pvlan network', broadcastdomaintype : 'Pvlan', traffictype : 'Guest', gateway : '10.10.10.20', netmask : '255.255.255.0', cidr : '10.10.10.0/24', zoneid : 'b40df8dc-0593-4871-a92d-b035d18aa0c4', zonename : 'pr147-n78-kvm-ubuntu26', networkofferingid : '6f762c19-0f96-4c47-a346-ee3499baf04a', networkofferingname : 'DefaultSharedNetworkOffering', networkofferingdisplaytext : 'Offering for Shared networks', networkofferingconservemode : True, networkofferingavailability : 'Optional', issystem : False, state : 'Setup', related : '3f7d3d85-072f-4b68-abdf-9b6a6510cd2c', broadcasturi : 'pvlan://2468-i864', dns1 : '10.0.32.1', dns2 : '8.8.8.8', type : 'Shared', vlan : 'N/A', acltype : 'Domain', subdomainaccess : True, domainid : '9ba0f638-c299-11f1-8e09-1e005a000279', domain : 'ROOT', domainpath : 'ROOT', service : [{name : 'Dns', provider : [{name : 'VirtualRouter'}], capability : [{name : 'AllowDnsSuffixModification', value : 'true', canchooseservicecapability : False}]}, {name : 'UserData', provider : [{name : 'VirtualRouter'}], capability : []}, {name : 'Dhcp', provider : [{name : 'VirtualRouter'}], capability : [{name : 'DhcpAccrossMultipleSubnets', value : 'true', canchooseservicecapability : False}]}], networkdomain : 'cs1cloud.internal', physicalnetworkid : '2d237797-1310-4bbc-8192-4f41ca7dbff8', restartrequired : False, specifyvlan : True, specifyipranges : True, canusefordeploy : True, ispersistent : False, tags : [], details : {isolatedpvlantype : 'Isolated'}, displaynetwork : True, strechedl2subnet : False, redundantrouter : False, supportsvmautoscaling : False, created : '2026-10-08T07:47:02+0000', receivedbytes : 0, sentbytes : 0, publicmtu : 1500, privatemtu : 1500, hasannotations : False}
2026-10-08 07:47:02,927 - DEBUG - Clean up test pvlan network
2026-10-08 07:47:02,928 - DEBUG - Payload: {'id': '3f7d3d85-072f-4b68-abdf-9b6a6510cd2c', 'command': 'deleteNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'bXr8H+mmhSrOUTsjvrY9x1tOyg4='}
2026-10-08 07:47:02,928 - DEBUG - ========Sending GET Cmd : deleteNetwork=======
2026-10-08 07:47:03,014 - DEBUG - === Jobid: f7905298-bac5-4606-a6f6-8ee1c5eeb22c Started ===
2026-10-08 07:47:03,014 - DEBUG - Payload: {'jobid': 'f7905298-bac5-4606-a6f6-8ee1c5eeb22c', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'jWL/64wB0PPzADYfphmEEcI66HM='}
2026-10-08 07:47:03,014 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-08 07:47:03,130 - DEBUG - Response : {accountid : '0a3a4637-c29a-11f1-8e09-1e005a000279', account : 'admin', domainid : '9ba0f638-c299-11f1-8e09-1e005a000279', domainpath : 'ROOT', userid : '0a3b4d10-c29a-11f1-8e09-1e005a000279', cmd : 'org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobinstancetype : 'Network', managementserverid : '23f86e3b-4951-43bb-a037-fd2110582631', managementservername : 'pr147-n78-kvm-ubuntu26-mgmt1.sofia.shapeblue.com', created : '2026-10-08T07:47:03+0000', jobid : 'f7905298-bac5-4606-a6f6-8ee1c5eeb22c', jobstatus : 0}
2026-10-08 07:47:04,131 - DEBUG - === JobId:f7905298-bac5-4606-a6f6-8ee1c5eeb22c is Still Processing, Will TimeOut in:3599 ====
2026-10-08 07:47:04,132 - DEBUG - Payload: {'jobid': 'f7905298-bac5-4606-a6f6-8ee1c5eeb22c', 'command': 'queryAsyncJobResult', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'jWL/64wB0PPzADYfphmEEcI66HM='}
2026-10-08 07:47:04,132 - DEBUG - ========Sending GET Cmd : queryAsyncJobResult=======
2026-10-08 07:47:04,190 - DEBUG - Response : {accountid : '0a3a4637-c29a-11f1-8e09-1e005a000279', account : 'admin', domainid : '9ba0f638-c299-11f1-8e09-1e005a000279', domainpath : 'ROOT', userid : '0a3b4d10-c29a-11f1-8e09-1e005a000279', cmd : 'org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Network', created : '2026-10-08T07:47:03+0000', completed : '2026-10-08T07:47:03+0000', jobid : 'f7905298-bac5-4606-a6f6-8ee1c5eeb22c', jobstatus : 1}
2026-10-08 07:47:04,190 - DEBUG - ===Jobid:f7905298-bac5-4606-a6f6-8ee1c5eeb22c ; StartTime:Thu Oct  8 07:47:03 2026 ; EndTime:Thu Oct  8 07:47:04 2026 ; TotalTime:-1===
2026-10-08 07:47:04,190 - DEBUG - Response : {accountid : '0a3a4637-c29a-11f1-8e09-1e005a000279', account : 'admin', domainid : '9ba0f638-c299-11f1-8e09-1e005a000279', domainpath : 'ROOT', userid : '0a3b4d10-c29a-11f1-8e09-1e005a000279', cmd : 'org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd', jobprocstatus : 0, jobresultcode : 0, jobresulttype : 'object', jobresult : {success : True}, jobinstancetype : 'Network', created : '2026-10-08T07:47:03+0000', completed : '2026-10-08T07:47:03+0000', jobid : 'f7905298-bac5-4606-a6f6-8ee1c5eeb22c', jobstatus : 1}
2026-10-08 07:47:04,191 - DEBUG - Payload: {'displaytext': 'pvlan network', 'endipv6': 'fc00:1234::20', 'gateway': '10.10.10.20', 'ip6cidr': 'fc00:1234::/64', 'ip6gateway': 'fc00:1234::1', 'isolatedpvlan': 864, 'name': 'pvlan network', 'netmask': '255.255.255.0', 'networkofferingid': '6f762c19-0f96-4c47-a346-ee3499baf04a', 'startip': '10.10.10.10', 'startipv6': 'fc00:1234::10', 'vlan': 2468, 'zoneid': 1, 'command': 'createNetwork', 'response': 'json', 'apiKey': 'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q', 'signature': b'VGDuTY7yzFnHivc5P3Udso5w0Yc='}
2026-10-08 07:47:04,191 - DEBUG - ========Sending GET Cmd : createNetwork=======
2026-10-08 07:47:04,282 - ERROR - Exception:['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse\n    ret = jsonHelper.getResultObj(\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: createnetwork failed, due to: errorCode: 431, errorText:Can only create IPv6 network if the zone has IPv6 DNS! Please configure the zone IPv6 DNS1 and/or IPv6 DNS2.\n']
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse
    ret = jsonHelper.getResultObj(
  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj
    raise cloudstackException.CloudstackAPIException(respname, errMsg)
marvin.cloudstackException.CloudstackAPIException: Execute cmd: createnetwork failed, due to: errorCode: 431, errorText:Can only create IPv6 network if the zone has IPv6 DNS! Please configure the zone IPv6 DNS1 and/or IPv6 DNS2.
2026-10-08 07:47:04,283 - ERROR - marvinRequest : CmdName: <marvin.cloudstackAPI.createNetwork.createNetworkCmd object at 0x7faf96ce58e0> Exception: ['Traceback (most recent call last):\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest\n    raise self.__lastError\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse\n    ret = jsonHelper.getResultObj(\n', '  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj\n    raise cloudstackException.CloudstackAPIException(respname, errMsg)\n', 'marvin.cloudstackException.CloudstackAPIException: Execute cmd: createnetwork failed, due to: errorCode: 431, errorText:Can only create IPv6 network if the zone has IPv6 DNS! Please configure the zone IPv6 DNS1 and/or IPv6 DNS2.\n']
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 377, in marvinRequest
    raise self.__lastError
  File "/usr/local/lib/python3.9/site-packages/marvin/cloudstackConnection.py", line 309, in __parseAndGetResponse
    ret = jsonHelper.getResultObj(
  File "/usr/local/lib/python3.9/site-packages/marvin/jsonHelper.py", line 155, in getResultObj
    raise cloudstackException.CloudstackAPIException(respname, errMsg)
marvin.cloudstackException.CloudstackAPIException: Execute cmd: createnetwork failed, due to: errorCode: 431, errorText:Can only create IPv6 network if the zone has IPv6 DNS! Please configure the zone IPv6 DNS1 and/or IPv6 DNS2.
2026-10-08 07:47:04,283 - DEBUG - Cleaning up the resources
2026-10-08 07:47:04,283 - DEBUG - TestCaseName: test_create_pvlan_network; Time Taken: 1 Seconds; StartTime: Thu Oct  8 07:47:02 2026; EndTime: Thu Oct  8 07:47:04 2026; Result: SUCCESS
2026-10-08 07:47:04,284 - DEBUG - Cleaning up the resources
