2025-08-22 13:55:34,188 - INFO - Domain Default found not creating
2025-08-22 13:55:34,341 - INFO - Project ctest-TestBasicPolicy-28059174 not found, creating it
2025-08-22 13:55:34,854 - INFO - Created Project:ctest-TestBasicPolicy-28059174, ID : aba91b2d-c3fa-4965-b0be-6fb3339a9b38
2025-08-22 13:55:36,261 - INFO - ================================================================================
2025-08-22 13:55:36,261 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-22 13:55:36,261 - 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-22 13:55:36,523 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-22 13:55:36,523 - INFO - Initial checks done. Running the testcase now
2025-08-22 13:55:36,523 - INFO -
2025-08-22 13:55:37,099 - DEBUG - Response for create_network : {'network': {'id': 'b362397f-ba7c-476b-84e4-3cc010967825', 'name': 'ctest-vn-32024292', 'tenant_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'project_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28059174', 'ctest-vn-32024292'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 13:55:37,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '34e0ff51-ea36-4cc4-a291-9bbe2b443763', 'name': '', 'tenant_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'network_id': 'b362397f-ba7c-476b-84e4-3cc010967825', 'ip_version': 4, 'cidr': '145.134.53.192/26', 'allocation_pools': [{'start': '145.134.53.194', 'end': '145.134.53.254'}], 'gateway_ip': '145.134.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.134.53.194', 'tags': [], 'project_id': 'aba91b2dc3fa4965b0be6fb3339a9b38'}}
2025-08-22 13:55:37,346 - INFO - Created VN ctest-vn-32024292
2025-08-22 13:55:37,401 - DEBUG - VN ctest-vn-32024292 UUID is b362397f-ba7c-476b-84e4-3cc010967825
2025-08-22 13:55:37,755 - DEBUG - Response for create_network : {'network': {'id': 'ff7fbab4-f499-448b-bcf8-e8b0edaf5349', 'name': 'ctest-vn-59082160', 'tenant_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'project_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28059174', 'ctest-vn-59082160'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 13:55:37,948 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edd46968-3330-42fd-97f3-861462cf5be9', 'name': '', 'tenant_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'network_id': 'ff7fbab4-f499-448b-bcf8-e8b0edaf5349', 'ip_version': 4, 'cidr': '220.133.244.192/26', 'allocation_pools': [{'start': '220.133.244.194', 'end': '220.133.244.254'}], 'gateway_ip': '220.133.244.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.133.244.194', 'tags': [], 'project_id': 'aba91b2dc3fa4965b0be6fb3339a9b38'}}
2025-08-22 13:55:37,966 - INFO - Created VN ctest-vn-59082160
2025-08-22 13:55:38,017 - DEBUG - VN ctest-vn-59082160 UUID is ff7fbab4-f499-448b-bcf8-e8b0edaf5349
2025-08-22 13:55:38,169 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-32024292, 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-28059174:ctest-vn-59082160, 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-22 13:55:38,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b362397f-ba7c-476b-84e4-3cc010967825', 'name': 'ctest-vn-32024292', 'tenant_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'project_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34e0ff51-ea36-4cc4-a291-9bbe2b443763'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28059174', 'ctest-vn-32024292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28059174', 'ctest-policy-allow-all-66280779']], 'subnet_ipam': [{'subnet_cidr': '145.134.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 13:55:38,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff7fbab4-f499-448b-bcf8-e8b0edaf5349', 'name': 'ctest-vn-59082160', 'tenant_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'project_id': 'aba91b2dc3fa4965b0be6fb3339a9b38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['edd46968-3330-42fd-97f3-861462cf5be9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28059174', 'ctest-vn-59082160'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28059174', 'ctest-policy-allow-all-66280779']], 'subnet_ipam': [{'subnet_cidr': '220.133.244.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 13:55:38,941 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-22 13:55:39,242 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-22 13:55:39,268 - DEBUG - Requesting: http://10.0.0.38:8082/domain/04ea8c22-e375-40ac-af44-d1fa6999dd92
2025-08-22 13:55:39,280 - DEBUG - Requesting: http://10.0.0.38:8082/project/aba91b2d-c3fa-4965-b0be-6fb3339a9b38
2025-08-22 13:55:39,360 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b362397f-ba7c-476b-84e4-3cc010967825
2025-08-22 13:55:39,371 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b362397f-ba7c-476b-84e4-3cc010967825
2025-08-22 13:55:39,380 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b242cf68-7292-4455-902f-26ed98057171
2025-08-22 13:55:39,387 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b242cf68-7292-4455-902f-26ed98057171
2025-08-22 13:55:39,394 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/728bf702-3cd8-428b-a4ae-80e827d1d728
2025-08-22 13:55:39,401 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 13:55:39,401 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b362397f-ba7c-476b-84e4-3cc010967825
2025-08-22 13:55:39,410 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b242cf68-7292-4455-902f-26ed98057171
2025-08-22 13:55:39,426 - INFO - Verified VN network id 10 for VN b362397f-ba7c-476b-84e4-3cc010967825
2025-08-22 13:55:39,426 - INFO - Verifications in API Server for VN ctest-vn-32024292 passed
2025-08-22 13:55:39,426 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b362397f-ba7c-476b-84e4-3cc010967825
2025-08-22 13:55:39,436 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b242cf68-7292-4455-902f-26ed98057171
2025-08-22 13:55:39,442 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b242cf68-7292-4455-902f-26ed98057171
2025-08-22 13:55:39,449 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/728bf702-3cd8-428b-a4ae-80e827d1d728
2025-08-22 13:55:39,462 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-32024292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28059174', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12925957101259081579', 'uuid-lslong': '9575845503306201125'}, 'enable': 'true', 'created': '2025-08-22T13:55:37', 'last-modified': '2025-08-22T13:55:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017940'}
2025-08-22 13:55:39,468 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 13:55:39,469 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32024292 passed
2025-08-22 13:55:39,469 - DEBUG - ====Verifying policy data for ctest-vn-32024292 in API_Server ======
2025-08-22 13:55:39,469 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-22 13:55:39,474 - DEBUG - Requesting: http://10.0.0.38:8082/domain/04ea8c22-e375-40ac-af44-d1fa6999dd92
2025-08-22 13:55:39,485 - DEBUG - Requesting: http://10.0.0.38:8082/project/aba91b2d-c3fa-4965-b0be-6fb3339a9b38
2025-08-22 13:55:39,561 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b362397f-ba7c-476b-84e4-3cc010967825
2025-08-22 13:55:39,572 - DEBUG - ==>Verifying data for policy with id: 2e028fcc-8955-406c-beac-4a8f1034074c, fqn: ['default-domain', 'ctest-TestBasicPolicy-28059174', 'ctest-policy-allow-all-66280779']
2025-08-22 13:55:39,573 - INFO - VN ctest-vn-32024292 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 13:55:39,573 - DEBUG - Verifying the vn in opserver
2025-08-22 13:55:39,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-32024292 virtual network link through opserver 10.0.0.38
2025-08-22 13:55:39,573 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-22 13:55:39,874 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-22 13:55:39,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-32024292', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-32024292?flat'}
2025-08-22 13:55:39,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-32024292 is found in opserver
2025-08-22 13:55:39,952 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 13:55:39,956 - DEBUG - VRF ids for VN ctest-vn-32024292: {}
2025-08-22 13:55:39,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-22 13:55:39,962 - DEBUG - Requesting: http://10.0.0.38:8082/domain/04ea8c22-e375-40ac-af44-d1fa6999dd92
2025-08-22 13:55:39,973 - DEBUG - Requesting: http://10.0.0.38:8082/project/aba91b2d-c3fa-4965-b0be-6fb3339a9b38
2025-08-22 13:55:40,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff7fbab4-f499-448b-bcf8-e8b0edaf5349
2025-08-22 13:55:40,058 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff7fbab4-f499-448b-bcf8-e8b0edaf5349
2025-08-22 13:55:40,067 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a365166-2ebf-4e00-af69-e00013cbd426
2025-08-22 13:55:40,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a365166-2ebf-4e00-af69-e00013cbd426
2025-08-22 13:55:40,080 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c8cfa1ac-c453-4189-9323-a33bbe0b03c5
2025-08-22 13:55:40,086 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 13:55:40,086 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff7fbab4-f499-448b-bcf8-e8b0edaf5349
2025-08-22 13:55:40,093 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a365166-2ebf-4e00-af69-e00013cbd426
2025-08-22 13:55:40,111 - INFO - Verified VN network id 11 for VN ff7fbab4-f499-448b-bcf8-e8b0edaf5349
2025-08-22 13:55:40,111 - INFO - Verifications in API Server for VN ctest-vn-59082160 passed
2025-08-22 13:55:40,111 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff7fbab4-f499-448b-bcf8-e8b0edaf5349
2025-08-22 13:55:40,121 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a365166-2ebf-4e00-af69-e00013cbd426
2025-08-22 13:55:40,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3a365166-2ebf-4e00-af69-e00013cbd426
2025-08-22 13:55:40,134 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c8cfa1ac-c453-4189-9323-a33bbe0b03c5
2025-08-22 13:55:40,147 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-59082160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28059174', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18410639088074441867', 'uuid-lslong': '13616889319954273097'}, 'enable': 'true', 'created': '2025-08-22T13:55:37', 'last-modified': '2025-08-22T13:55:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.426289'}
2025-08-22 13:55:40,153 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 13:55:40,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59082160 passed
2025-08-22 13:55:40,153 - DEBUG - ====Verifying policy data for ctest-vn-59082160 in API_Server ======
2025-08-22 13:55:40,153 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-22 13:55:40,158 - DEBUG - Requesting: http://10.0.0.38:8082/domain/04ea8c22-e375-40ac-af44-d1fa6999dd92
2025-08-22 13:55:40,169 - DEBUG - Requesting: http://10.0.0.38:8082/project/aba91b2d-c3fa-4965-b0be-6fb3339a9b38
2025-08-22 13:55:40,242 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ff7fbab4-f499-448b-bcf8-e8b0edaf5349
2025-08-22 13:55:40,253 - DEBUG - ==>Verifying data for policy with id: 2e028fcc-8955-406c-beac-4a8f1034074c, fqn: ['default-domain', 'ctest-TestBasicPolicy-28059174', 'ctest-policy-allow-all-66280779']
2025-08-22 13:55:40,253 - INFO - VN ctest-vn-59082160 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 13:55:40,253 - DEBUG - Verifying the vn in opserver
2025-08-22 13:55:40,254 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-59082160 virtual network link through opserver 10.0.0.38
2025-08-22 13:55:40,254 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-22 13:55:40,267 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-59082160', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-59082160?flat'}
2025-08-22 13:55:40,267 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28059174:ctest-vn-59082160 is found in opserver
2025-08-22 13:55:40,278 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 13:55:40,283 - DEBUG - VRF ids for VN ctest-vn-59082160: {}
2025-08-22 13:55:40,339 - DEBUG - Services list from nova: [