2025-06-30 02:34:44,326 - INFO - Domain Default found not creating
2025-06-30 02:34:44,485 - INFO - Project ctest-TestBasicPolicy-61945313 not found, creating it
2025-06-30 02:34:44,968 - INFO - Created Project:ctest-TestBasicPolicy-61945313, ID : 4bb23428-70bc-48a7-b573-6142c9d95c57
2025-06-30 02:34:46,484 - INFO - ================================================================================
2025-06-30 02:34:46,484 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 02:34:46,484 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-06-30 02:34:46,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-06-30 02:34:46,741 - INFO - Initial checks done. Running the testcase now
2025-06-30 02:34:46,741 - INFO -
2025-06-30 02:34:47,279 - DEBUG - Response for create_network : {'network': {'id': 'ce8fce50-4d3f-47a4-bc38-c440aa7727f0', 'name': 'ctest-vn-21532698', 'tenant_id': '4bb2342870bc48a7b5736142c9d95c57', 'project_id': '4bb2342870bc48a7b5736142c9d95c57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61945313', 'ctest-vn-21532698'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 02:34:47,452 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc64a533-5579-4d64-bda1-c3f09969e45f', 'name': '', 'tenant_id': '4bb2342870bc48a7b5736142c9d95c57', 'network_id': 'ce8fce50-4d3f-47a4-bc38-c440aa7727f0', 'ip_version': 4, 'cidr': '223.16.59.128/26', 'allocation_pools': [{'start': '223.16.59.130', 'end': '223.16.59.190'}], 'gateway_ip': '223.16.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.16.59.130', 'tags': [], 'project_id': '4bb2342870bc48a7b5736142c9d95c57'}}
2025-06-30 02:34:47,469 - INFO - Created VN ctest-vn-21532698
2025-06-30 02:34:47,523 - DEBUG - VN ctest-vn-21532698 UUID is ce8fce50-4d3f-47a4-bc38-c440aa7727f0
2025-06-30 02:34:47,813 - DEBUG - Response for create_network : {'network': {'id': 'b52677e6-d796-4140-a2ca-44e7a4bf1f8e', 'name': 'ctest-vn-15719307', 'tenant_id': '4bb2342870bc48a7b5736142c9d95c57', 'project_id': '4bb2342870bc48a7b5736142c9d95c57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61945313', 'ctest-vn-15719307'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 02:34:48,033 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c97716e4-e4a2-4525-931f-9f985899f691', 'name': '', 'tenant_id': '4bb2342870bc48a7b5736142c9d95c57', 'network_id': 'b52677e6-d796-4140-a2ca-44e7a4bf1f8e', 'ip_version': 4, 'cidr': '164.113.181.64/26', 'allocation_pools': [{'start': '164.113.181.66', 'end': '164.113.181.126'}], 'gateway_ip': '164.113.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.113.181.66', 'tags': [], 'project_id': '4bb2342870bc48a7b5736142c9d95c57'}}
2025-06-30 02:34:48,051 - INFO - Created VN ctest-vn-15719307
2025-06-30 02:34:48,110 - DEBUG - VN ctest-vn-15719307 UUID is b52677e6-d796-4140-a2ca-44e7a4bf1f8e
2025-06-30 02:34:48,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-21532698, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-15719307, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-06-30 02:34:48,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce8fce50-4d3f-47a4-bc38-c440aa7727f0', 'name': 'ctest-vn-21532698', 'tenant_id': '4bb2342870bc48a7b5736142c9d95c57', 'project_id': '4bb2342870bc48a7b5736142c9d95c57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc64a533-5579-4d64-bda1-c3f09969e45f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61945313', 'ctest-vn-21532698'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61945313', 'ctest-policy-allow-all-03333501']], 'subnet_ipam': [{'subnet_cidr': '223.16.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 02:34:48,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b52677e6-d796-4140-a2ca-44e7a4bf1f8e', 'name': 'ctest-vn-15719307', 'tenant_id': '4bb2342870bc48a7b5736142c9d95c57', 'project_id': '4bb2342870bc48a7b5736142c9d95c57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c97716e4-e4a2-4525-931f-9f985899f691'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61945313', 'ctest-vn-15719307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61945313', 'ctest-policy-allow-all-03333501']], 'subnet_ipam': [{'subnet_cidr': '164.113.181.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 02:34:48,927 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-30 02:34:49,246 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-30 02:34:49,282 - DEBUG - Requesting: http://10.0.0.254:8082/domain/89206b93-dcd5-4a37-bd3e-a83c5d16df8a
2025-06-30 02:34:49,304 - DEBUG - Requesting: http://10.0.0.254:8082/project/4bb23428-70bc-48a7-b573-6142c9d95c57
2025-06-30 02:34:49,390 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce8fce50-4d3f-47a4-bc38-c440aa7727f0
2025-06-30 02:34:49,406 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce8fce50-4d3f-47a4-bc38-c440aa7727f0
2025-06-30 02:34:49,417 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87950d0a-7771-43e7-b0e1-e0aa103bb49d
2025-06-30 02:34:49,427 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87950d0a-7771-43e7-b0e1-e0aa103bb49d
2025-06-30 02:34:49,442 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a6763334-ec12-4d03-b3f3-39b8114783fa
2025-06-30 02:34:49,456 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 02:34:49,456 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce8fce50-4d3f-47a4-bc38-c440aa7727f0
2025-06-30 02:34:49,470 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87950d0a-7771-43e7-b0e1-e0aa103bb49d
2025-06-30 02:34:49,492 - INFO - Verified VN network id 9 for VN ce8fce50-4d3f-47a4-bc38-c440aa7727f0
2025-06-30 02:34:49,492 - INFO - Verifications in API Server for VN ctest-vn-21532698 passed
2025-06-30 02:34:49,492 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce8fce50-4d3f-47a4-bc38-c440aa7727f0
2025-06-30 02:34:49,506 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87950d0a-7771-43e7-b0e1-e0aa103bb49d
2025-06-30 02:34:49,518 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/87950d0a-7771-43e7-b0e1-e0aa103bb49d
2025-06-30 02:34:49,528 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a6763334-ec12-4d03-b3f3-39b8114783fa
2025-06-30 02:34:49,544 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-21532698', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61945313', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14884342137771476900', 'uuid-lslong': '13562806059843135472'}, 'enable': 'true', 'created': '2025-06-30T02:34:47', 'last-modified': '2025-06-30T02:34:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043265'}
2025-06-30 02:34:49,552 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 02:34:49,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21532698 passed
2025-06-30 02:34:49,552 - DEBUG - ====Verifying policy data for ctest-vn-21532698 in API_Server ======
2025-06-30 02:34:49,552 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-30 02:34:49,561 - DEBUG - Requesting: http://10.0.0.254:8082/domain/89206b93-dcd5-4a37-bd3e-a83c5d16df8a
2025-06-30 02:34:49,574 - DEBUG - Requesting: http://10.0.0.254:8082/project/4bb23428-70bc-48a7-b573-6142c9d95c57
2025-06-30 02:34:49,645 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce8fce50-4d3f-47a4-bc38-c440aa7727f0
2025-06-30 02:34:49,655 - DEBUG - ==>Verifying data for policy with id: 0c357b06-d406-4123-a720-c13aa84a17ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-61945313', 'ctest-policy-allow-all-03333501']
2025-06-30 02:34:49,655 - INFO - VN ctest-vn-21532698 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 02:34:49,656 - DEBUG - Verifying the vn in opserver
2025-06-30 02:34:49,656 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-21532698 virtual network link through opserver 10.0.0.254
2025-06-30 02:34:49,656 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-30 02:34:49,945 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-30 02:34:50,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-21532698', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-21532698?flat'}
2025-06-30 02:34:50,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-21532698 is found in opserver
2025-06-30 02:34:50,018 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 02:34:50,024 - DEBUG - VRF ids for VN ctest-vn-21532698: {}
2025-06-30 02:34:50,024 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-30 02:34:50,032 - DEBUG - Requesting: http://10.0.0.254:8082/domain/89206b93-dcd5-4a37-bd3e-a83c5d16df8a
2025-06-30 02:34:50,045 - DEBUG - Requesting: http://10.0.0.254:8082/project/4bb23428-70bc-48a7-b573-6142c9d95c57
2025-06-30 02:34:50,123 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b52677e6-d796-4140-a2ca-44e7a4bf1f8e
2025-06-30 02:34:50,138 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b52677e6-d796-4140-a2ca-44e7a4bf1f8e
2025-06-30 02:34:50,150 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ba43a35-0f8e-4dca-bda7-8578825270b5
2025-06-30 02:34:50,159 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ba43a35-0f8e-4dca-bda7-8578825270b5
2025-06-30 02:34:50,167 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d249b4da-3de5-4788-b8cd-897eec23d6a8
2025-06-30 02:34:50,176 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 02:34:50,176 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b52677e6-d796-4140-a2ca-44e7a4bf1f8e
2025-06-30 02:34:50,188 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ba43a35-0f8e-4dca-bda7-8578825270b5
2025-06-30 02:34:50,206 - INFO - Verified VN network id 10 for VN b52677e6-d796-4140-a2ca-44e7a4bf1f8e
2025-06-30 02:34:50,206 - INFO - Verifications in API Server for VN ctest-vn-15719307 passed
2025-06-30 02:34:50,206 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b52677e6-d796-4140-a2ca-44e7a4bf1f8e
2025-06-30 02:34:50,218 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ba43a35-0f8e-4dca-bda7-8578825270b5
2025-06-30 02:34:50,228 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ba43a35-0f8e-4dca-bda7-8578825270b5
2025-06-30 02:34:50,240 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d249b4da-3de5-4788-b8cd-897eec23d6a8
2025-06-30 02:34:50,259 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-15719307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61945313', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13053252403323093312', 'uuid-lslong': '11730263941132001166'}, 'enable': 'true', 'created': '2025-06-30T02:34:47', 'last-modified': '2025-06-30T02:34:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.513561'}
2025-06-30 02:34:50,269 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 02:34:50,269 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15719307 passed
2025-06-30 02:34:50,269 - DEBUG - ====Verifying policy data for ctest-vn-15719307 in API_Server ======
2025-06-30 02:34:50,269 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-30 02:34:50,279 - DEBUG - Requesting: http://10.0.0.254:8082/domain/89206b93-dcd5-4a37-bd3e-a83c5d16df8a
2025-06-30 02:34:50,295 - DEBUG - Requesting: http://10.0.0.254:8082/project/4bb23428-70bc-48a7-b573-6142c9d95c57
2025-06-30 02:34:50,377 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b52677e6-d796-4140-a2ca-44e7a4bf1f8e
2025-06-30 02:34:50,391 - DEBUG - ==>Verifying data for policy with id: 0c357b06-d406-4123-a720-c13aa84a17ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-61945313', 'ctest-policy-allow-all-03333501']
2025-06-30 02:34:50,391 - INFO - VN ctest-vn-15719307 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 02:34:50,391 - DEBUG - Verifying the vn in opserver
2025-06-30 02:34:50,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-15719307 virtual network link through opserver 10.0.0.254
2025-06-30 02:34:50,391 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-30 02:34:50,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-15719307', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-15719307?flat'}
2025-06-30 02:34:50,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61945313:ctest-vn-15719307 is found in opserver
2025-06-30 02:34:50,417 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 02:34:50,422 - DEBUG - VRF ids for VN ctest-vn-15719307: {}
2025-06-30 02:34:50,483 - DEBUG - Services list from nova: [