2025-09-04 02:08:54,238 - INFO - Domain Default found not creating
2025-09-04 02:08:54,419 - INFO - Project ctest-TestBasicPolicy-40333652 not found, creating it
2025-09-04 02:08:54,865 - INFO - Created Project:ctest-TestBasicPolicy-40333652, ID : a5c5ae05-8bd6-4e96-a77d-d9a6fc1dddb7
2025-09-04 02:08:56,933 - INFO - ================================================================================
2025-09-04 02:08:56,933 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-04 02:08:56,933 - 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-09-04 02:08:57,189 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.193': '0'}} with
2025-09-04 02:08:57,189 - INFO - Initial checks done. Running the testcase now
2025-09-04 02:08:57,189 - INFO -
2025-09-04 02:08:57,686 - DEBUG - Response for create_network : {'network': {'id': '90298350-bfdc-4035-af4c-9d8990ed75ab', 'name': 'ctest-vn-85112769', 'tenant_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'project_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40333652', 'ctest-vn-85112769'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 02:08:57,903 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fd7781d-9f9d-4c33-b825-7d5db54d4cdd', 'name': '', 'tenant_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'network_id': '90298350-bfdc-4035-af4c-9d8990ed75ab', 'ip_version': 4, 'cidr': '134.33.162.128/26', 'allocation_pools': [{'start': '134.33.162.130', 'end': '134.33.162.190'}], 'gateway_ip': '134.33.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.33.162.130', 'tags': [], 'project_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7'}}
2025-09-04 02:08:57,920 - INFO - Created VN ctest-vn-85112769
2025-09-04 02:08:57,972 - DEBUG - VN ctest-vn-85112769 UUID is 90298350-bfdc-4035-af4c-9d8990ed75ab
2025-09-04 02:08:58,262 - DEBUG - Response for create_network : {'network': {'id': '6653ff48-44d5-42fe-a1cb-24eb7aa455c5', 'name': 'ctest-vn-76899084', 'tenant_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'project_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40333652', 'ctest-vn-76899084'], 'port_security_enabled': True, 'description': ''}}
2025-09-04 02:08:58,435 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac5c1dc8-2c8b-4da3-a475-4e79d580ae7a', 'name': '', 'tenant_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'network_id': '6653ff48-44d5-42fe-a1cb-24eb7aa455c5', 'ip_version': 4, 'cidr': '125.54.138.192/26', 'allocation_pools': [{'start': '125.54.138.194', 'end': '125.54.138.254'}], 'gateway_ip': '125.54.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.54.138.194', 'tags': [], 'project_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7'}}
2025-09-04 02:08:58,452 - INFO - Created VN ctest-vn-76899084
2025-09-04 02:08:58,504 - DEBUG - VN ctest-vn-76899084 UUID is 6653ff48-44d5-42fe-a1cb-24eb7aa455c5
2025-09-04 02:08:58,656 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-85112769, 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-40333652:ctest-vn-76899084, 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-09-04 02:08:58,952 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90298350-bfdc-4035-af4c-9d8990ed75ab', 'name': 'ctest-vn-85112769', 'tenant_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'project_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7fd7781d-9f9d-4c33-b825-7d5db54d4cdd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40333652', 'ctest-vn-85112769'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40333652', 'ctest-policy-allow-all-39627293']], 'subnet_ipam': [{'subnet_cidr': '134.33.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 02:08:59,191 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6653ff48-44d5-42fe-a1cb-24eb7aa455c5', 'name': 'ctest-vn-76899084', 'tenant_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'project_id': 'a5c5ae058bd64e96a77dd9a6fc1dddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac5c1dc8-2c8b-4da3-a475-4e79d580ae7a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40333652', 'ctest-vn-76899084'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40333652', 'ctest-policy-allow-all-39627293']], 'subnet_ipam': [{'subnet_cidr': '125.54.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-04 02:08:59,336 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 02:08:59,645 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 02:08:59,673 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b154e228-fc16-43c6-8547-be362aebb9a7
2025-09-04 02:08:59,684 - DEBUG - Requesting: http://10.0.0.254:8082/project/a5c5ae05-8bd6-4e96-a77d-d9a6fc1dddb7
2025-09-04 02:08:59,757 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/90298350-bfdc-4035-af4c-9d8990ed75ab
2025-09-04 02:08:59,768 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/90298350-bfdc-4035-af4c-9d8990ed75ab
2025-09-04 02:08:59,777 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/63ca4b3d-8ae8-4f4d-9a00-e8295b759737
2025-09-04 02:08:59,785 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/63ca4b3d-8ae8-4f4d-9a00-e8295b759737
2025-09-04 02:08:59,793 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5b208bdb-3597-4f2b-b9c2-dbe67a16d284
2025-09-04 02:08:59,798 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 02:08:59,798 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/90298350-bfdc-4035-af4c-9d8990ed75ab
2025-09-04 02:08:59,806 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/63ca4b3d-8ae8-4f4d-9a00-e8295b759737
2025-09-04 02:08:59,820 - INFO - Verified VN network id 11 for VN 90298350-bfdc-4035-af4c-9d8990ed75ab
2025-09-04 02:08:59,820 - INFO - Verifications in API Server for VN ctest-vn-85112769 passed
2025-09-04 02:08:59,820 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/90298350-bfdc-4035-af4c-9d8990ed75ab
2025-09-04 02:08:59,829 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/63ca4b3d-8ae8-4f4d-9a00-e8295b759737
2025-09-04 02:08:59,839 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/63ca4b3d-8ae8-4f4d-9a00-e8295b759737
2025-09-04 02:08:59,846 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5b208bdb-3597-4f2b-b9c2-dbe67a16d284
2025-09-04 02:08:59,858 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-85112769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40333652', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10387978398346264629', 'uuid-lslong': '12631644269034960299'}, 'enable': 'true', 'created': '2025-09-04T02:08:57', 'last-modified': '2025-09-04T02:08:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930952'}
2025-09-04 02:08:59,864 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-04 02:08:59,864 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85112769 passed
2025-09-04 02:08:59,865 - DEBUG - ====Verifying policy data for ctest-vn-85112769 in API_Server ======
2025-09-04 02:08:59,865 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 02:08:59,871 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b154e228-fc16-43c6-8547-be362aebb9a7
2025-09-04 02:08:59,882 - DEBUG - Requesting: http://10.0.0.254:8082/project/a5c5ae05-8bd6-4e96-a77d-d9a6fc1dddb7
2025-09-04 02:08:59,954 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/90298350-bfdc-4035-af4c-9d8990ed75ab
2025-09-04 02:08:59,962 - DEBUG - ==>Verifying data for policy with id: d6c4b7a2-d367-4d2f-9775-1b5aa99b7677, fqn: ['default-domain', 'ctest-TestBasicPolicy-40333652', 'ctest-policy-allow-all-39627293']
2025-09-04 02:08:59,963 - INFO - VN ctest-vn-85112769 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 02:08:59,963 - DEBUG - Verifying the vn in opserver
2025-09-04 02:08:59,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-85112769 virtual network link through opserver 10.0.0.254
2025-09-04 02:08:59,963 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 02:09:00,267 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 02:09:00,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-85112769', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-85112769?flat'}
2025-09-04 02:09:00,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-85112769 is found in opserver
2025-09-04 02:09:00,337 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 02:09:00,342 - DEBUG - VRF ids for VN ctest-vn-85112769: {}
2025-09-04 02:09:00,342 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 02:09:00,348 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b154e228-fc16-43c6-8547-be362aebb9a7
2025-09-04 02:09:00,360 - DEBUG - Requesting: http://10.0.0.254:8082/project/a5c5ae05-8bd6-4e96-a77d-d9a6fc1dddb7
2025-09-04 02:09:00,434 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6653ff48-44d5-42fe-a1cb-24eb7aa455c5
2025-09-04 02:09:00,446 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6653ff48-44d5-42fe-a1cb-24eb7aa455c5
2025-09-04 02:09:00,456 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a80d5a3f-c256-4c83-b916-8815b17bebd3
2025-09-04 02:09:00,464 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a80d5a3f-c256-4c83-b916-8815b17bebd3
2025-09-04 02:09:00,472 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0fdade5b-c7b6-4355-a4d8-fe9665945f98
2025-09-04 02:09:00,480 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 02:09:00,480 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6653ff48-44d5-42fe-a1cb-24eb7aa455c5
2025-09-04 02:09:00,490 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a80d5a3f-c256-4c83-b916-8815b17bebd3
2025-09-04 02:09:00,506 - INFO - Verified VN network id 12 for VN 6653ff48-44d5-42fe-a1cb-24eb7aa455c5
2025-09-04 02:09:00,506 - INFO - Verifications in API Server for VN ctest-vn-76899084 passed
2025-09-04 02:09:00,506 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6653ff48-44d5-42fe-a1cb-24eb7aa455c5
2025-09-04 02:09:00,516 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a80d5a3f-c256-4c83-b916-8815b17bebd3
2025-09-04 02:09:00,523 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a80d5a3f-c256-4c83-b916-8815b17bebd3
2025-09-04 02:09:00,530 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0fdade5b-c7b6-4355-a4d8-fe9665945f98
2025-09-04 02:09:00,545 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-76899084', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40333652', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7373517700793189118', 'uuid-lslong': '11658452654172165573'}, 'enable': 'true', 'created': '2025-09-04T02:08:58', 'last-modified': '2025-09-04T02:08:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.382932'}
2025-09-04 02:09:00,551 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-04 02:09:00,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76899084 passed
2025-09-04 02:09:00,551 - DEBUG - ====Verifying policy data for ctest-vn-76899084 in API_Server ======
2025-09-04 02:09:00,551 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-04 02:09:00,560 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b154e228-fc16-43c6-8547-be362aebb9a7
2025-09-04 02:09:00,578 - DEBUG - Requesting: http://10.0.0.254:8082/project/a5c5ae05-8bd6-4e96-a77d-d9a6fc1dddb7
2025-09-04 02:09:00,659 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6653ff48-44d5-42fe-a1cb-24eb7aa455c5
2025-09-04 02:09:00,669 - DEBUG - ==>Verifying data for policy with id: d6c4b7a2-d367-4d2f-9775-1b5aa99b7677, fqn: ['default-domain', 'ctest-TestBasicPolicy-40333652', 'ctest-policy-allow-all-39627293']
2025-09-04 02:09:00,669 - INFO - VN ctest-vn-76899084 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-04 02:09:00,669 - DEBUG - Verifying the vn in opserver
2025-09-04 02:09:00,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-76899084 virtual network link through opserver 10.0.0.254
2025-09-04 02:09:00,669 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-04 02:09:00,679 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-76899084', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-76899084?flat'}
2025-09-04 02:09:00,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40333652:ctest-vn-76899084 is found in opserver
2025-09-04 02:09:00,693 - DEBUG - Do not have enough data to verify VN in agent
2025-09-04 02:09:00,699 - DEBUG - VRF ids for VN ctest-vn-76899084: {}
2025-09-04 02:09:00,762 - DEBUG - Services list from nova: [