2025-08-11 07:40:58,289 - INFO - Domain Default found not creating
2025-08-11 07:40:58,408 - INFO - Project ctest-TestBasicPolicy-70146399 not found, creating it
2025-08-11 07:40:58,862 - INFO - Created Project:ctest-TestBasicPolicy-70146399, ID : 346e2d89-181c-45bd-b0a2-ac518737ae7c
2025-08-11 07:41:00,154 - INFO - ================================================================================
2025-08-11 07:41:00,154 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 07:41:00,154 - 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-08-11 07:41:00,409 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with
2025-08-11 07:41:00,409 - INFO - Initial checks done. Running the testcase now
2025-08-11 07:41:00,409 - INFO -
2025-08-11 07:41:00,922 - DEBUG - Response for create_network : {'network': {'id': '04b60868-b7c5-4024-8ce3-49009226087c', 'name': 'ctest-vn-61789036', 'tenant_id': '346e2d89181c45bdb0a2ac518737ae7c', 'project_id': '346e2d89181c45bdb0a2ac518737ae7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70146399', 'ctest-vn-61789036'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 07:41:01,137 - DEBUG - Response for create_subnet : {'subnet': {'id': '2683957f-2a9b-4203-bc59-201e60c7e61e', 'name': '', 'tenant_id': '346e2d89181c45bdb0a2ac518737ae7c', 'network_id': '04b60868-b7c5-4024-8ce3-49009226087c', 'ip_version': 4, 'cidr': '149.171.144.192/26', 'allocation_pools': [{'start': '149.171.144.194', 'end': '149.171.144.254'}], 'gateway_ip': '149.171.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.171.144.194', 'tags': [], 'project_id': '346e2d89181c45bdb0a2ac518737ae7c'}}
2025-08-11 07:41:01,156 - INFO - Created VN ctest-vn-61789036
2025-08-11 07:41:01,210 - DEBUG - VN ctest-vn-61789036 UUID is 04b60868-b7c5-4024-8ce3-49009226087c
2025-08-11 07:41:01,512 - DEBUG - Response for create_network : {'network': {'id': 'b32e9358-54fe-4fa3-8849-2b37509f4d27', 'name': 'ctest-vn-70376357', 'tenant_id': '346e2d89181c45bdb0a2ac518737ae7c', 'project_id': '346e2d89181c45bdb0a2ac518737ae7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70146399', 'ctest-vn-70376357'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 07:41:01,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '455b424c-3b5c-419a-9d0f-866d24e31518', 'name': '', 'tenant_id': '346e2d89181c45bdb0a2ac518737ae7c', 'network_id': 'b32e9358-54fe-4fa3-8849-2b37509f4d27', 'ip_version': 4, 'cidr': '78.91.155.128/26', 'allocation_pools': [{'start': '78.91.155.130', 'end': '78.91.155.190'}], 'gateway_ip': '78.91.155.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.91.155.130', 'tags': [], 'project_id': '346e2d89181c45bdb0a2ac518737ae7c'}}
2025-08-11 07:41:01,672 - INFO - Created VN ctest-vn-70376357
2025-08-11 07:41:01,726 - DEBUG - VN ctest-vn-70376357 UUID is b32e9358-54fe-4fa3-8849-2b37509f4d27
2025-08-11 07:41:01,866 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-61789036, 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-70146399:ctest-vn-70376357, 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-08-11 07:41:02,151 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04b60868-b7c5-4024-8ce3-49009226087c', 'name': 'ctest-vn-61789036', 'tenant_id': '346e2d89181c45bdb0a2ac518737ae7c', 'project_id': '346e2d89181c45bdb0a2ac518737ae7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2683957f-2a9b-4203-bc59-201e60c7e61e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70146399', 'ctest-vn-61789036'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70146399', 'ctest-policy-allow-all-25848494']], 'subnet_ipam': [{'subnet_cidr': '149.171.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 07:41:02,380 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b32e9358-54fe-4fa3-8849-2b37509f4d27', 'name': 'ctest-vn-70376357', 'tenant_id': '346e2d89181c45bdb0a2ac518737ae7c', 'project_id': '346e2d89181c45bdb0a2ac518737ae7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['455b424c-3b5c-419a-9d0f-866d24e31518'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70146399', 'ctest-vn-70376357'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70146399', 'ctest-policy-allow-all-25848494']], 'subnet_ipam': [{'subnet_cidr': '78.91.155.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 07:41:02,542 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 07:41:02,832 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 07:41:02,856 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b328bc76-276e-4db9-8317-eacaafad8778
2025-08-11 07:41:02,868 - DEBUG - Requesting: http://10.0.0.130:8082/project/346e2d89-181c-45bd-b0a2-ac518737ae7c
2025-08-11 07:41:02,935 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/04b60868-b7c5-4024-8ce3-49009226087c
2025-08-11 07:41:02,945 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/04b60868-b7c5-4024-8ce3-49009226087c
2025-08-11 07:41:02,954 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/cee56f58-af5b-45ec-8049-d6d28cb8bc3b
2025-08-11 07:41:02,960 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/cee56f58-af5b-45ec-8049-d6d28cb8bc3b
2025-08-11 07:41:02,966 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f1239793-927b-49a5-a00b-c9fb9c201fe1
2025-08-11 07:41:02,971 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 07:41:02,971 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/04b60868-b7c5-4024-8ce3-49009226087c
2025-08-11 07:41:02,979 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/cee56f58-af5b-45ec-8049-d6d28cb8bc3b
2025-08-11 07:41:02,991 - INFO - Verified VN network id 11 for VN 04b60868-b7c5-4024-8ce3-49009226087c
2025-08-11 07:41:02,991 - INFO - Verifications in API Server for VN ctest-vn-61789036 passed
2025-08-11 07:41:02,991 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/04b60868-b7c5-4024-8ce3-49009226087c
2025-08-11 07:41:03,000 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/cee56f58-af5b-45ec-8049-d6d28cb8bc3b
2025-08-11 07:41:03,005 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/cee56f58-af5b-45ec-8049-d6d28cb8bc3b
2025-08-11 07:41:03,011 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f1239793-927b-49a5-a00b-c9fb9c201fe1
2025-08-11 07:41:03,021 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-61789036', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70146399', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '339468067765829668', 'uuid-lslong': '10152038251824023676'}, 'enable': 'true', 'created': '2025-08-11T07:41:00', 'last-modified': '2025-08-11T07:41:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.892585'}
2025-08-11 07:41:03,027 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 07:41:03,027 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61789036 passed
2025-08-11 07:41:03,027 - DEBUG - ====Verifying policy data for ctest-vn-61789036 in API_Server ======
2025-08-11 07:41:03,027 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 07:41:03,032 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b328bc76-276e-4db9-8317-eacaafad8778
2025-08-11 07:41:03,041 - DEBUG - Requesting: http://10.0.0.130:8082/project/346e2d89-181c-45bd-b0a2-ac518737ae7c
2025-08-11 07:41:03,111 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/04b60868-b7c5-4024-8ce3-49009226087c
2025-08-11 07:41:03,119 - DEBUG - ==>Verifying data for policy with id: 12ad7d30-b606-407c-9ba5-a00366e3c1f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-70146399', 'ctest-policy-allow-all-25848494']
2025-08-11 07:41:03,120 - INFO - VN ctest-vn-61789036 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 07:41:03,120 - DEBUG - Verifying the vn in opserver
2025-08-11 07:41:03,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-61789036 virtual network link through opserver 10.0.0.130
2025-08-11 07:41:03,120 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 07:41:03,405 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 07:41:03,451 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-61789036', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-61789036?flat'}
2025-08-11 07:41:03,451 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-61789036 is found in opserver
2025-08-11 07:41:03,461 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 07:41:03,467 - DEBUG - VRF ids for VN ctest-vn-61789036: {}
2025-08-11 07:41:03,467 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 07:41:03,472 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b328bc76-276e-4db9-8317-eacaafad8778
2025-08-11 07:41:03,482 - DEBUG - Requesting: http://10.0.0.130:8082/project/346e2d89-181c-45bd-b0a2-ac518737ae7c
2025-08-11 07:41:03,551 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b32e9358-54fe-4fa3-8849-2b37509f4d27
2025-08-11 07:41:03,562 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b32e9358-54fe-4fa3-8849-2b37509f4d27
2025-08-11 07:41:03,572 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9b3d447f-7e9b-4915-a352-14231bdd28d9
2025-08-11 07:41:03,578 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9b3d447f-7e9b-4915-a352-14231bdd28d9
2025-08-11 07:41:03,584 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/442c192d-c8f5-4c39-a5ee-ceb692fd9313
2025-08-11 07:41:03,589 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 07:41:03,589 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b32e9358-54fe-4fa3-8849-2b37509f4d27
2025-08-11 07:41:03,597 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9b3d447f-7e9b-4915-a352-14231bdd28d9
2025-08-11 07:41:03,609 - INFO - Verified VN network id 12 for VN b32e9358-54fe-4fa3-8849-2b37509f4d27
2025-08-11 07:41:03,609 - INFO - Verifications in API Server for VN ctest-vn-70376357 passed
2025-08-11 07:41:03,609 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b32e9358-54fe-4fa3-8849-2b37509f4d27
2025-08-11 07:41:03,618 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9b3d447f-7e9b-4915-a352-14231bdd28d9
2025-08-11 07:41:03,624 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/9b3d447f-7e9b-4915-a352-14231bdd28d9
2025-08-11 07:41:03,630 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/442c192d-c8f5-4c39-a5ee-ceb692fd9313
2025-08-11 07:41:03,640 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-70376357', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70146399', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12911419189310148515', 'uuid-lslong': '9820427979033890087'}, 'enable': 'true', 'created': '2025-08-11T07:41:01', 'last-modified': '2025-08-11T07:41:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.281370'}
2025-08-11 07:41:03,646 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 07:41:03,646 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70376357 passed
2025-08-11 07:41:03,646 - DEBUG - ====Verifying policy data for ctest-vn-70376357 in API_Server ======
2025-08-11 07:41:03,646 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-11 07:41:03,650 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b328bc76-276e-4db9-8317-eacaafad8778
2025-08-11 07:41:03,660 - DEBUG - Requesting: http://10.0.0.130:8082/project/346e2d89-181c-45bd-b0a2-ac518737ae7c
2025-08-11 07:41:03,732 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b32e9358-54fe-4fa3-8849-2b37509f4d27
2025-08-11 07:41:03,741 - DEBUG - ==>Verifying data for policy with id: 12ad7d30-b606-407c-9ba5-a00366e3c1f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-70146399', 'ctest-policy-allow-all-25848494']
2025-08-11 07:41:03,741 - INFO - VN ctest-vn-70376357 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 07:41:03,741 - DEBUG - Verifying the vn in opserver
2025-08-11 07:41:03,741 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-70376357 virtual network link through opserver 10.0.0.130
2025-08-11 07:41:03,741 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-11 07:41:03,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-70376357', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-70376357?flat'}
2025-08-11 07:41:03,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70146399:ctest-vn-70376357 is found in opserver
2025-08-11 07:41:03,759 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 07:41:03,764 - DEBUG - VRF ids for VN ctest-vn-70376357: {}
2025-08-11 07:41:03,811 - DEBUG - Services list from nova: [