2025-07-28 02:23:50,571 - INFO - Domain Default found not creating
2025-07-28 02:23:50,726 - INFO - Project ctest-TestBasicPolicy-88346951 not found, creating it
2025-07-28 02:23:51,181 - INFO - Created Project:ctest-TestBasicPolicy-88346951, ID : 46e4f88c-5308-4cfc-acd2-75fc1c3a7a52
2025-07-28 02:23:52,621 - INFO - ================================================================================
2025-07-28 02:23:52,622 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-28 02:23:52,622 - 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-07-28 02:23:52,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with
2025-07-28 02:23:52,888 - INFO - Initial checks done. Running the testcase now
2025-07-28 02:23:52,888 - INFO -
2025-07-28 02:23:53,438 - DEBUG - Response for create_network : {'network': {'id': 'd5aaf57f-c36c-4333-b770-c4e8a4968e49', 'name': 'ctest-vn-67011054', 'tenant_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'project_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88346951', 'ctest-vn-67011054'], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:23:53,668 - DEBUG - Response for create_subnet : {'subnet': {'id': '4bb9540c-4200-4e7d-8c05-9ce07b80b71d', 'name': '', 'tenant_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'network_id': 'd5aaf57f-c36c-4333-b770-c4e8a4968e49', 'ip_version': 4, 'cidr': '5.164.18.64/26', 'allocation_pools': [{'start': '5.164.18.66', 'end': '5.164.18.126'}], 'gateway_ip': '5.164.18.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.164.18.66', 'tags': [], 'project_id': '46e4f88c53084cfcacd275fc1c3a7a52'}}
2025-07-28 02:23:53,686 - INFO - Created VN ctest-vn-67011054
2025-07-28 02:23:53,740 - DEBUG - VN ctest-vn-67011054 UUID is d5aaf57f-c36c-4333-b770-c4e8a4968e49
2025-07-28 02:23:54,054 - DEBUG - Response for create_network : {'network': {'id': '371d28e1-1fc0-41cb-a293-bcdd5bd6754d', 'name': 'ctest-vn-03620113', 'tenant_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'project_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88346951', 'ctest-vn-03620113'], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:23:54,261 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa7531b1-f304-4078-b6aa-1514c096dca7', 'name': '', 'tenant_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'network_id': '371d28e1-1fc0-41cb-a293-bcdd5bd6754d', 'ip_version': 4, 'cidr': '196.115.228.64/26', 'allocation_pools': [{'start': '196.115.228.66', 'end': '196.115.228.126'}], 'gateway_ip': '196.115.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.115.228.66', 'tags': [], 'project_id': '46e4f88c53084cfcacd275fc1c3a7a52'}}
2025-07-28 02:23:54,282 - INFO - Created VN ctest-vn-03620113
2025-07-28 02:23:54,336 - DEBUG - VN ctest-vn-03620113 UUID is 371d28e1-1fc0-41cb-a293-bcdd5bd6754d
2025-07-28 02:23:54,457 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-67011054, 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-88346951:ctest-vn-03620113, 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-07-28 02:23:54,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5aaf57f-c36c-4333-b770-c4e8a4968e49', 'name': 'ctest-vn-67011054', 'tenant_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'project_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4bb9540c-4200-4e7d-8c05-9ce07b80b71d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88346951', 'ctest-vn-67011054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88346951', 'ctest-policy-allow-all-10822009']], 'subnet_ipam': [{'subnet_cidr': '5.164.18.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:23:55,038 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '371d28e1-1fc0-41cb-a293-bcdd5bd6754d', 'name': 'ctest-vn-03620113', 'tenant_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'project_id': '46e4f88c53084cfcacd275fc1c3a7a52', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa7531b1-f304-4078-b6aa-1514c096dca7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88346951', 'ctest-vn-03620113'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88346951', 'ctest-policy-allow-all-10822009']], 'subnet_ipam': [{'subnet_cidr': '196.115.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-28 02:23:55,200 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-28 02:23:55,508 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-28 02:23:55,538 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d06f6505-035f-4bb2-97be-dfdf8405bca5
2025-07-28 02:23:55,552 - DEBUG - Requesting: http://10.0.0.41:8082/project/46e4f88c-5308-4cfc-acd2-75fc1c3a7a52
2025-07-28 02:23:55,623 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5aaf57f-c36c-4333-b770-c4e8a4968e49
2025-07-28 02:23:55,636 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5aaf57f-c36c-4333-b770-c4e8a4968e49
2025-07-28 02:23:55,647 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07d041bb-7a76-4a7a-b9ac-20f949f571c1
2025-07-28 02:23:55,656 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07d041bb-7a76-4a7a-b9ac-20f949f571c1
2025-07-28 02:23:55,665 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/45115fd3-825b-49f4-8f1f-1f11d03cee1f
2025-07-28 02:23:55,674 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-28 02:23:55,674 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5aaf57f-c36c-4333-b770-c4e8a4968e49
2025-07-28 02:23:55,686 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07d041bb-7a76-4a7a-b9ac-20f949f571c1
2025-07-28 02:23:55,703 - INFO - Verified VN network id 11 for VN d5aaf57f-c36c-4333-b770-c4e8a4968e49
2025-07-28 02:23:55,703 - INFO - Verifications in API Server for VN ctest-vn-67011054 passed
2025-07-28 02:23:55,703 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5aaf57f-c36c-4333-b770-c4e8a4968e49
2025-07-28 02:23:55,715 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07d041bb-7a76-4a7a-b9ac-20f949f571c1
2025-07-28 02:23:55,724 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07d041bb-7a76-4a7a-b9ac-20f949f571c1
2025-07-28 02:23:55,732 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/45115fd3-825b-49f4-8f1f-1f11d03cee1f
2025-07-28 02:23:55,748 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-67011054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88346951', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15396388205207765811', 'uuid-lslong': '13218281409805192777'}, 'enable': 'true', 'created': '2025-07-28T02:23:53', 'last-modified': '2025-07-28T02:23:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997839'}
2025-07-28 02:23:55,755 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-28 02:23:55,755 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67011054 passed
2025-07-28 02:23:55,756 - DEBUG - ====Verifying policy data for ctest-vn-67011054 in API_Server ======
2025-07-28 02:23:55,756 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-28 02:23:55,763 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d06f6505-035f-4bb2-97be-dfdf8405bca5
2025-07-28 02:23:55,776 - DEBUG - Requesting: http://10.0.0.41:8082/project/46e4f88c-5308-4cfc-acd2-75fc1c3a7a52
2025-07-28 02:23:55,849 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5aaf57f-c36c-4333-b770-c4e8a4968e49
2025-07-28 02:23:55,860 - DEBUG - ==>Verifying data for policy with id: 1b40b249-8ab1-4fa4-a8ff-5b44f45cb33a, fqn: ['default-domain', 'ctest-TestBasicPolicy-88346951', 'ctest-policy-allow-all-10822009']
2025-07-28 02:23:55,860 - INFO - VN ctest-vn-67011054 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-28 02:23:55,861 - DEBUG - Verifying the vn in opserver
2025-07-28 02:23:55,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-67011054 virtual network link through opserver 10.0.0.41
2025-07-28 02:23:55,861 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-07-28 02:23:56,164 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-07-28 02:23:56,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-67011054', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-67011054?flat'}
2025-07-28 02:23:56,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-67011054 is found in opserver
2025-07-28 02:23:56,242 - DEBUG - Do not have enough data to verify VN in agent
2025-07-28 02:23:56,247 - DEBUG - VRF ids for VN ctest-vn-67011054: {}
2025-07-28 02:23:56,247 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-28 02:23:56,256 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d06f6505-035f-4bb2-97be-dfdf8405bca5
2025-07-28 02:23:56,271 - DEBUG - Requesting: http://10.0.0.41:8082/project/46e4f88c-5308-4cfc-acd2-75fc1c3a7a52
2025-07-28 02:23:56,346 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/371d28e1-1fc0-41cb-a293-bcdd5bd6754d
2025-07-28 02:23:56,362 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/371d28e1-1fc0-41cb-a293-bcdd5bd6754d
2025-07-28 02:23:56,373 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a13d962d-798d-45b2-8d96-490c66ec402c
2025-07-28 02:23:56,382 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a13d962d-798d-45b2-8d96-490c66ec402c
2025-07-28 02:23:56,390 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/98a1dd6c-5b5e-469d-9769-20e83055b758
2025-07-28 02:23:56,399 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-28 02:23:56,399 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/371d28e1-1fc0-41cb-a293-bcdd5bd6754d
2025-07-28 02:23:56,410 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a13d962d-798d-45b2-8d96-490c66ec402c
2025-07-28 02:23:56,426 - INFO - Verified VN network id 12 for VN 371d28e1-1fc0-41cb-a293-bcdd5bd6754d
2025-07-28 02:23:56,426 - INFO - Verifications in API Server for VN ctest-vn-03620113 passed
2025-07-28 02:23:56,427 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/371d28e1-1fc0-41cb-a293-bcdd5bd6754d
2025-07-28 02:23:56,438 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a13d962d-798d-45b2-8d96-490c66ec402c
2025-07-28 02:23:56,447 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/a13d962d-798d-45b2-8d96-490c66ec402c
2025-07-28 02:23:56,455 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/98a1dd6c-5b5e-469d-9769-20e83055b758
2025-07-28 02:23:56,469 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-03620113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88346951', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3971375393776091595', 'uuid-lslong': '11714914714635367757'}, 'enable': 'true', 'created': '2025-07-28T02:23:54', 'last-modified': '2025-07-28T02:23:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.454312'}
2025-07-28 02:23:56,476 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-28 02:23:56,476 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03620113 passed
2025-07-28 02:23:56,476 - DEBUG - ====Verifying policy data for ctest-vn-03620113 in API_Server ======
2025-07-28 02:23:56,477 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-28 02:23:56,484 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d06f6505-035f-4bb2-97be-dfdf8405bca5
2025-07-28 02:23:56,497 - DEBUG - Requesting: http://10.0.0.41:8082/project/46e4f88c-5308-4cfc-acd2-75fc1c3a7a52
2025-07-28 02:23:56,578 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/371d28e1-1fc0-41cb-a293-bcdd5bd6754d
2025-07-28 02:23:56,590 - DEBUG - ==>Verifying data for policy with id: 1b40b249-8ab1-4fa4-a8ff-5b44f45cb33a, fqn: ['default-domain', 'ctest-TestBasicPolicy-88346951', 'ctest-policy-allow-all-10822009']
2025-07-28 02:23:56,590 - INFO - VN ctest-vn-03620113 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-28 02:23:56,590 - DEBUG - Verifying the vn in opserver
2025-07-28 02:23:56,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-03620113 virtual network link through opserver 10.0.0.41
2025-07-28 02:23:56,590 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-07-28 02:23:56,602 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-03620113', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-03620113?flat'}
2025-07-28 02:23:56,602 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88346951:ctest-vn-03620113 is found in opserver
2025-07-28 02:23:56,613 - DEBUG - Do not have enough data to verify VN in agent
2025-07-28 02:23:56,620 - DEBUG - VRF ids for VN ctest-vn-03620113: {}
2025-07-28 02:23:56,681 - DEBUG - Services list from nova: [