2025-05-08 17:24:35,263 - INFO - Domain Default found not creating
2025-05-08 17:24:35,396 - INFO - Project ctest-TestBasicPolicy-20265950 not found, creating it
2025-05-08 17:24:35,858 - INFO - Created Project:ctest-TestBasicPolicy-20265950, ID : fe28b4a4-7cd4-4950-b17c-95eef053b650
2025-05-08 17:24:37,394 - INFO - ================================================================================
2025-05-08 17:24:37,394 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-08 17:24:37,394 - 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-05-08 17:24:37,647 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-05-08 17:24:37,647 - INFO - Initial checks done. Running the testcase now
2025-05-08 17:24:37,647 - INFO -
2025-05-08 17:24:38,242 - DEBUG - Response for create_network : {'network': {'id': '51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce', 'name': 'ctest-vn-06791516', 'tenant_id': 'fe28b4a47cd44950b17c95eef053b650', 'project_id': 'fe28b4a47cd44950b17c95eef053b650', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20265950', 'ctest-vn-06791516'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 17:24:38,429 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a75d313b-c542-4b3f-acd0-1e0f902350e9', 'name': '', 'tenant_id': 'fe28b4a47cd44950b17c95eef053b650', 'network_id': '51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce', 'ip_version': 4, 'cidr': '162.59.183.64/26', 'allocation_pools': [{'start': '162.59.183.66', 'end': '162.59.183.126'}], 'gateway_ip': '162.59.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.59.183.66', 'tags': [], 'project_id': 'fe28b4a47cd44950b17c95eef053b650'}}
2025-05-08 17:24:38,446 - INFO - Created VN ctest-vn-06791516
2025-05-08 17:24:38,497 - DEBUG - VN ctest-vn-06791516 UUID is 51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce
2025-05-08 17:24:38,786 - DEBUG - Response for create_network : {'network': {'id': '9b840a46-444a-4303-8d7d-c8692071c7d5', 'name': 'ctest-vn-60223281', 'tenant_id': 'fe28b4a47cd44950b17c95eef053b650', 'project_id': 'fe28b4a47cd44950b17c95eef053b650', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20265950', 'ctest-vn-60223281'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 17:24:38,969 - DEBUG - Response for create_subnet : {'subnet': {'id': '877503d2-5d06-4b84-ae9b-8c69f471d624', 'name': '', 'tenant_id': 'fe28b4a47cd44950b17c95eef053b650', 'network_id': '9b840a46-444a-4303-8d7d-c8692071c7d5', 'ip_version': 4, 'cidr': '211.20.211.128/26', 'allocation_pools': [{'start': '211.20.211.130', 'end': '211.20.211.190'}], 'gateway_ip': '211.20.211.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.20.211.130', 'tags': [], 'project_id': 'fe28b4a47cd44950b17c95eef053b650'}}
2025-05-08 17:24:38,986 - INFO - Created VN ctest-vn-60223281
2025-05-08 17:24:39,041 - DEBUG - VN ctest-vn-60223281 UUID is 9b840a46-444a-4303-8d7d-c8692071c7d5
2025-05-08 17:24:39,193 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-06791516, 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-20265950:ctest-vn-60223281, 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-05-08 17:24:39,509 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce', 'name': 'ctest-vn-06791516', 'tenant_id': 'fe28b4a47cd44950b17c95eef053b650', 'project_id': 'fe28b4a47cd44950b17c95eef053b650', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a75d313b-c542-4b3f-acd0-1e0f902350e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20265950', 'ctest-vn-06791516'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20265950', 'ctest-policy-allow-all-18345258']], 'subnet_ipam': [{'subnet_cidr': '162.59.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 17:24:39,732 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b840a46-444a-4303-8d7d-c8692071c7d5', 'name': 'ctest-vn-60223281', 'tenant_id': 'fe28b4a47cd44950b17c95eef053b650', 'project_id': 'fe28b4a47cd44950b17c95eef053b650', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['877503d2-5d06-4b84-ae9b-8c69f471d624'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20265950', 'ctest-vn-60223281'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20265950', 'ctest-policy-allow-all-18345258']], 'subnet_ipam': [{'subnet_cidr': '211.20.211.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 17:24:39,913 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-08 17:24:40,254 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-08 17:24:40,287 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e4b260ef-c11e-47c8-932c-6df956b5c8d1
2025-05-08 17:24:40,302 - DEBUG - Requesting: http://10.0.0.48:8082/project/fe28b4a4-7cd4-4950-b17c-95eef053b650
2025-05-08 17:24:40,386 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce
2025-05-08 17:24:40,398 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce
2025-05-08 17:24:40,408 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1d61d180-b171-4167-8a42-e91e0d89f58f
2025-05-08 17:24:40,416 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1d61d180-b171-4167-8a42-e91e0d89f58f
2025-05-08 17:24:40,424 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/da785601-7d76-4a94-acfb-0ab779f9474e
2025-05-08 17:24:40,431 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 17:24:40,431 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce
2025-05-08 17:24:40,442 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1d61d180-b171-4167-8a42-e91e0d89f58f
2025-05-08 17:24:40,459 - INFO - Verified VN network id 8 for VN 51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce
2025-05-08 17:24:40,459 - INFO - Verifications in API Server for VN ctest-vn-06791516 passed
2025-05-08 17:24:40,459 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce
2025-05-08 17:24:40,471 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1d61d180-b171-4167-8a42-e91e0d89f58f
2025-05-08 17:24:40,480 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1d61d180-b171-4167-8a42-e91e0d89f58f
2025-05-08 17:24:40,487 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/da785601-7d76-4a94-acfb-0ab779f9474e
2025-05-08 17:24:40,501 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-06791516', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20265950', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5905160543250631894', 'uuid-lslong': '13327473913039942350'}, 'enable': 'true', 'created': '2025-05-08T17:24:38', 'last-modified': '2025-05-08T17:24:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025157'}
2025-05-08 17:24:40,508 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 17:24:40,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06791516 passed
2025-05-08 17:24:40,508 - DEBUG - ====Verifying policy data for ctest-vn-06791516 in API_Server ======
2025-05-08 17:24:40,508 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-08 17:24:40,514 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e4b260ef-c11e-47c8-932c-6df956b5c8d1
2025-05-08 17:24:40,525 - DEBUG - Requesting: http://10.0.0.48:8082/project/fe28b4a4-7cd4-4950-b17c-95eef053b650
2025-05-08 17:24:40,622 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/51f3583a-2a1b-4cd6-b8f4-b2e97407f2ce
2025-05-08 17:24:40,636 - DEBUG - ==>Verifying data for policy with id: d1f3124f-a995-4d1f-b4c4-cb9051ebaf58, fqn: ['default-domain', 'ctest-TestBasicPolicy-20265950', 'ctest-policy-allow-all-18345258']
2025-05-08 17:24:40,636 - INFO - VN ctest-vn-06791516 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 17:24:40,636 - DEBUG - Verifying the vn in opserver
2025-05-08 17:24:40,636 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-06791516 virtual network link through opserver 10.0.0.48
2025-05-08 17:24:40,636 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-08 17:24:40,975 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-08 17:24:41,029 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-06791516', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-06791516?flat'}
2025-05-08 17:24:41,029 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-06791516 is found in opserver
2025-05-08 17:24:41,040 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 17:24:41,045 - DEBUG - VRF ids for VN ctest-vn-06791516: {}
2025-05-08 17:24:41,045 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-08 17:24:41,051 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e4b260ef-c11e-47c8-932c-6df956b5c8d1
2025-05-08 17:24:41,063 - DEBUG - Requesting: http://10.0.0.48:8082/project/fe28b4a4-7cd4-4950-b17c-95eef053b650
2025-05-08 17:24:41,138 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b840a46-444a-4303-8d7d-c8692071c7d5
2025-05-08 17:24:41,150 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b840a46-444a-4303-8d7d-c8692071c7d5
2025-05-08 17:24:41,161 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f1fe07cb-f5be-4b97-83aa-01849b2e4964
2025-05-08 17:24:41,168 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f1fe07cb-f5be-4b97-83aa-01849b2e4964
2025-05-08 17:24:41,175 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/632f9f86-9eca-40a5-acb2-40f252f02051
2025-05-08 17:24:41,182 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 17:24:41,182 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b840a46-444a-4303-8d7d-c8692071c7d5
2025-05-08 17:24:41,191 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f1fe07cb-f5be-4b97-83aa-01849b2e4964
2025-05-08 17:24:41,205 - INFO - Verified VN network id 9 for VN 9b840a46-444a-4303-8d7d-c8692071c7d5
2025-05-08 17:24:41,206 - INFO - Verifications in API Server for VN ctest-vn-60223281 passed
2025-05-08 17:24:41,206 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b840a46-444a-4303-8d7d-c8692071c7d5
2025-05-08 17:24:41,215 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f1fe07cb-f5be-4b97-83aa-01849b2e4964
2025-05-08 17:24:41,222 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f1fe07cb-f5be-4b97-83aa-01849b2e4964
2025-05-08 17:24:41,228 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/632f9f86-9eca-40a5-acb2-40f252f02051
2025-05-08 17:24:41,240 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-60223281', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20265950', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11206093069714342659', 'uuid-lslong': '10195525485278119893'}, 'enable': 'true', 'created': '2025-05-08T17:24:38', 'last-modified': '2025-05-08T17:24:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.532671'}
2025-05-08 17:24:41,246 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 17:24:41,247 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60223281 passed
2025-05-08 17:24:41,247 - DEBUG - ====Verifying policy data for ctest-vn-60223281 in API_Server ======
2025-05-08 17:24:41,247 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-08 17:24:41,252 - DEBUG - Requesting: http://10.0.0.48:8082/domain/e4b260ef-c11e-47c8-932c-6df956b5c8d1
2025-05-08 17:24:41,263 - DEBUG - Requesting: http://10.0.0.48:8082/project/fe28b4a4-7cd4-4950-b17c-95eef053b650
2025-05-08 17:24:41,338 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9b840a46-444a-4303-8d7d-c8692071c7d5
2025-05-08 17:24:41,348 - DEBUG - ==>Verifying data for policy with id: d1f3124f-a995-4d1f-b4c4-cb9051ebaf58, fqn: ['default-domain', 'ctest-TestBasicPolicy-20265950', 'ctest-policy-allow-all-18345258']
2025-05-08 17:24:41,348 - INFO - VN ctest-vn-60223281 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 17:24:41,348 - DEBUG - Verifying the vn in opserver
2025-05-08 17:24:41,349 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-60223281 virtual network link through opserver 10.0.0.48
2025-05-08 17:24:41,349 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-08 17:24:41,359 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-60223281', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-60223281?flat'}
2025-05-08 17:24:41,359 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20265950:ctest-vn-60223281 is found in opserver
2025-05-08 17:24:41,371 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 17:24:41,376 - DEBUG - VRF ids for VN ctest-vn-60223281: {}
2025-05-08 17:24:41,431 - DEBUG - Services list from nova: [