2025-06-23 19:05:56,159 - INFO - Domain Default found not creating
2025-06-23 19:05:56,306 - INFO - Project ctest-TestBasicPolicy-52776439 not found, creating it
2025-06-23 19:05:56,794 - INFO - Created Project:ctest-TestBasicPolicy-52776439, ID : a7315542-8c44-42f5-89f4-1b7889667ed9
2025-06-23 19:05:58,382 - INFO - ================================================================================
2025-06-23 19:05:58,382 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 19:05:58,382 - 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-23 19:05:58,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-23 19:05:58,638 - INFO - Initial checks done. Running the testcase now
2025-06-23 19:05:58,638 - INFO -
2025-06-23 19:05:59,236 - DEBUG - Response for create_network : {'network': {'id': 'e7681757-98f8-4a26-8162-4f30e90fbe21', 'name': 'ctest-vn-31661566', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'project_id': 'a73155428c4442f589f41b7889667ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-vn-31661566'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 19:05:59,485 - DEBUG - Response for create_subnet : {'subnet': {'id': '454e81b4-2526-4ffe-bf73-8c687621c300', 'name': '', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'network_id': 'e7681757-98f8-4a26-8162-4f30e90fbe21', 'ip_version': 4, 'cidr': '206.218.168.192/26', 'allocation_pools': [{'start': '206.218.168.194', 'end': '206.218.168.254'}], 'gateway_ip': '206.218.168.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.218.168.194', 'tags': [], 'project_id': 'a73155428c4442f589f41b7889667ed9'}}
2025-06-23 19:05:59,503 - INFO - Created VN ctest-vn-31661566
2025-06-23 19:05:59,556 - DEBUG - VN ctest-vn-31661566 UUID is e7681757-98f8-4a26-8162-4f30e90fbe21
2025-06-23 19:05:59,865 - DEBUG - Response for create_network : {'network': {'id': '24e346c1-dd83-40f2-9af6-f0b47320846e', 'name': 'ctest-vn-08495203', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'project_id': 'a73155428c4442f589f41b7889667ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-vn-08495203'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 19:06:00,039 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b1cdd52-88ba-49bc-b672-3742dcde10c1', 'name': '', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'network_id': '24e346c1-dd83-40f2-9af6-f0b47320846e', 'ip_version': 4, 'cidr': '153.243.228.0/26', 'allocation_pools': [{'start': '153.243.228.2', 'end': '153.243.228.62'}], 'gateway_ip': '153.243.228.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.243.228.2', 'tags': [], 'project_id': 'a73155428c4442f589f41b7889667ed9'}}
2025-06-23 19:06:00,062 - INFO - Created VN ctest-vn-08495203
2025-06-23 19:06:00,116 - DEBUG - VN ctest-vn-08495203 UUID is 24e346c1-dd83-40f2-9af6-f0b47320846e
2025-06-23 19:06:00,228 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566, 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-52776439:ctest-vn-08495203, 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-23 19:06:00,531 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7681757-98f8-4a26-8162-4f30e90fbe21', 'name': 'ctest-vn-31661566', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'project_id': 'a73155428c4442f589f41b7889667ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['454e81b4-2526-4ffe-bf73-8c687621c300'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-vn-31661566'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-policy-allow-all-94001674']], 'subnet_ipam': [{'subnet_cidr': '206.218.168.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 19:06:00,782 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24e346c1-dd83-40f2-9af6-f0b47320846e', 'name': 'ctest-vn-08495203', 'tenant_id': 'a73155428c4442f589f41b7889667ed9', 'project_id': 'a73155428c4442f589f41b7889667ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b1cdd52-88ba-49bc-b672-3742dcde10c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-vn-08495203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-policy-allow-all-94001674']], 'subnet_ipam': [{'subnet_cidr': '153.243.228.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 19:06:00,960 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 19:06:01,299 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 19:06:01,329 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180
2025-06-23 19:06:01,344 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9
2025-06-23 19:06:01,424 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21
2025-06-23 19:06:01,436 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21
2025-06-23 19:06:01,446 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed
2025-06-23 19:06:01,454 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed
2025-06-23 19:06:01,462 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a1a7ce71-2a31-429f-b1a3-17c30c8497a8
2025-06-23 19:06:01,471 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 19:06:01,471 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21
2025-06-23 19:06:01,482 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed
2025-06-23 19:06:01,499 - INFO - Verified VN network id 9 for VN e7681757-98f8-4a26-8162-4f30e90fbe21
2025-06-23 19:06:01,499 - INFO - Verifications in API Server for VN ctest-vn-31661566 passed
2025-06-23 19:06:01,500 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21
2025-06-23 19:06:01,510 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed
2025-06-23 19:06:01,518 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/72e0f7b5-3f22-4b0b-a5df-4f4961843bed
2025-06-23 19:06:01,526 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a1a7ce71-2a31-429f-b1a3-17c30c8497a8
2025-06-23 19:06:01,540 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52776439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16674603285335263782', 'uuid-lslong': '9323101250097495585'}, 'enable': 'true', 'created': '2025-06-23T19:05:59', 'last-modified': '2025-06-23T19:06:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.036346'}
2025-06-23 19:06:01,547 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 19:06:01,547 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31661566 passed
2025-06-23 19:06:01,548 - DEBUG - ====Verifying policy data for ctest-vn-31661566 in API_Server ======
2025-06-23 19:06:01,548 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 19:06:01,554 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180
2025-06-23 19:06:01,567 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9
2025-06-23 19:06:01,647 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e7681757-98f8-4a26-8162-4f30e90fbe21
2025-06-23 19:06:01,659 - DEBUG - ==>Verifying data for policy with id: 1fc59955-9f81-4320-aa6b-2559ddf78255, fqn: ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-policy-allow-all-94001674']
2025-06-23 19:06:01,659 - INFO - VN ctest-vn-31661566 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 19:06:01,659 - DEBUG - Verifying the vn in opserver
2025-06-23 19:06:01,659 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566 virtual network link through opserver 10.0.0.254
2025-06-23 19:06:01,659 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 19:06:01,999 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 19:06:02,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566?flat'}
2025-06-23 19:06:02,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-31661566 is found in opserver
2025-06-23 19:06:02,080 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 19:06:02,087 - DEBUG - VRF ids for VN ctest-vn-31661566: {}
2025-06-23 19:06:02,087 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 19:06:02,095 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180
2025-06-23 19:06:02,111 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9
2025-06-23 19:06:02,183 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e
2025-06-23 19:06:02,202 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e
2025-06-23 19:06:02,213 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df
2025-06-23 19:06:02,222 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df
2025-06-23 19:06:02,231 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e398fae0-5730-4c63-b2e6-6bbe636cab66
2025-06-23 19:06:02,239 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 19:06:02,239 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e
2025-06-23 19:06:02,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df
2025-06-23 19:06:02,271 - INFO - Verified VN network id 10 for VN 24e346c1-dd83-40f2-9af6-f0b47320846e
2025-06-23 19:06:02,271 - INFO - Verifications in API Server for VN ctest-vn-08495203 passed
2025-06-23 19:06:02,271 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e
2025-06-23 19:06:02,284 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df
2025-06-23 19:06:02,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5fa01b75-ad97-4ba6-ad8b-8040adcff0df
2025-06-23 19:06:02,303 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e398fae0-5730-4c63-b2e6-6bbe636cab66
2025-06-23 19:06:02,319 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52776439', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2658046003537723634', 'uuid-lslong': '11166376983928013934'}, 'enable': 'true', 'created': '2025-06-23T19:05:59', 'last-modified': '2025-06-23T19:06:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.571115'}
2025-06-23 19:06:02,326 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 19:06:02,327 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08495203 passed
2025-06-23 19:06:02,327 - DEBUG - ====Verifying policy data for ctest-vn-08495203 in API_Server ======
2025-06-23 19:06:02,327 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-23 19:06:02,333 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6b6144bf-26c9-40ce-a110-50854bc72180
2025-06-23 19:06:02,345 - DEBUG - Requesting: http://10.0.0.254:8082/project/a7315542-8c44-42f5-89f4-1b7889667ed9
2025-06-23 19:06:02,418 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24e346c1-dd83-40f2-9af6-f0b47320846e
2025-06-23 19:06:02,428 - DEBUG - ==>Verifying data for policy with id: 1fc59955-9f81-4320-aa6b-2559ddf78255, fqn: ['default-domain', 'ctest-TestBasicPolicy-52776439', 'ctest-policy-allow-all-94001674']
2025-06-23 19:06:02,428 - INFO - VN ctest-vn-08495203 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 19:06:02,428 - DEBUG - Verifying the vn in opserver
2025-06-23 19:06:02,428 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203 virtual network link through opserver 10.0.0.254
2025-06-23 19:06:02,428 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-23 19:06:02,440 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203?flat'}
2025-06-23 19:06:02,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52776439:ctest-vn-08495203 is found in opserver
2025-06-23 19:06:02,451 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 19:06:02,456 - DEBUG - VRF ids for VN ctest-vn-08495203: {}
2025-06-23 19:06:02,515 - DEBUG - Services list from nova: [