2025-11-17 02:07:37,084 - INFO - Domain Default found not creating
2025-11-17 02:07:37,297 - INFO - Project ctest-TestBasicPolicy-17041257 not found, creating it
2025-11-17 02:07:37,813 - INFO - Created Project:ctest-TestBasicPolicy-17041257, ID : 90cb6db2-ebe9-4576-8b15-bfe8a3ebc90a
2025-11-17 02:07:39,551 - INFO - ================================================================================
2025-11-17 02:07:39,552 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 02:07:39,552 - 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-11-17 02:07:39,833 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.14': '0'}} with
2025-11-17 02:07:39,833 - INFO - Initial checks done. Running the testcase now
2025-11-17 02:07:39,833 - INFO -
2025-11-17 02:07:40,448 - DEBUG - Response for create_network : {'network': {'id': 'b5cc6022-5f0d-4328-9b9c-3545db688fc3', 'name': 'ctest-vn-51028781', 'tenant_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'project_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17041257', 'ctest-vn-51028781'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 02:07:40,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e8fdb21-93e2-4817-843d-c3d57e86ea9c', 'name': '', 'tenant_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'network_id': 'b5cc6022-5f0d-4328-9b9c-3545db688fc3', 'ip_version': 4, 'cidr': '149.89.78.192/26', 'allocation_pools': [{'start': '149.89.78.194', 'end': '149.89.78.254'}], 'gateway_ip': '149.89.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.89.78.194', 'tags': [], 'project_id': '90cb6db2ebe945768b15bfe8a3ebc90a'}}
2025-11-17 02:07:40,659 - INFO - Created VN ctest-vn-51028781
2025-11-17 02:07:40,715 - DEBUG - VN ctest-vn-51028781 UUID is b5cc6022-5f0d-4328-9b9c-3545db688fc3
2025-11-17 02:07:41,013 - DEBUG - Response for create_network : {'network': {'id': '73b6e6d0-7575-42e3-b750-6c79cc6bfd4b', 'name': 'ctest-vn-62101923', 'tenant_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'project_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17041257', 'ctest-vn-62101923'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 02:07:41,227 - DEBUG - Response for create_subnet : {'subnet': {'id': '0430ad5a-ddbc-4894-950c-834d0a37aa28', 'name': '', 'tenant_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'network_id': '73b6e6d0-7575-42e3-b750-6c79cc6bfd4b', 'ip_version': 4, 'cidr': '99.189.40.0/26', 'allocation_pools': [{'start': '99.189.40.2', 'end': '99.189.40.62'}], 'gateway_ip': '99.189.40.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.189.40.2', 'tags': [], 'project_id': '90cb6db2ebe945768b15bfe8a3ebc90a'}}
2025-11-17 02:07:41,248 - INFO - Created VN ctest-vn-62101923
2025-11-17 02:07:41,299 - DEBUG - VN ctest-vn-62101923 UUID is 73b6e6d0-7575-42e3-b750-6c79cc6bfd4b
2025-11-17 02:07:41,417 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-51028781, 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-17041257:ctest-vn-62101923, 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-11-17 02:07:41,724 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5cc6022-5f0d-4328-9b9c-3545db688fc3', 'name': 'ctest-vn-51028781', 'tenant_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'project_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e8fdb21-93e2-4817-843d-c3d57e86ea9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17041257', 'ctest-vn-51028781'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17041257', 'ctest-policy-allow-all-33057230']], 'subnet_ipam': [{'subnet_cidr': '149.89.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 02:07:41,975 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73b6e6d0-7575-42e3-b750-6c79cc6bfd4b', 'name': 'ctest-vn-62101923', 'tenant_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'project_id': '90cb6db2ebe945768b15bfe8a3ebc90a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0430ad5a-ddbc-4894-950c-834d0a37aa28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17041257', 'ctest-vn-62101923'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17041257', 'ctest-policy-allow-all-33057230']], 'subnet_ipam': [{'subnet_cidr': '99.189.40.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 02:07:42,159 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-17 02:07:42,492 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-17 02:07:42,530 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4082dd1b-6c69-48e4-8064-322ad79b4643
2025-11-17 02:07:42,544 - DEBUG - Requesting: http://10.0.0.27:8082/project/90cb6db2-ebe9-4576-8b15-bfe8a3ebc90a
2025-11-17 02:07:42,626 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b5cc6022-5f0d-4328-9b9c-3545db688fc3
2025-11-17 02:07:42,638 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b5cc6022-5f0d-4328-9b9c-3545db688fc3
2025-11-17 02:07:42,649 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24be6be5-6082-4b22-994f-73068ef5efac
2025-11-17 02:07:42,659 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24be6be5-6082-4b22-994f-73068ef5efac
2025-11-17 02:07:42,668 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0012fe8a-954f-4307-93ce-1b54375f745e
2025-11-17 02:07:42,677 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 02:07:42,677 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b5cc6022-5f0d-4328-9b9c-3545db688fc3
2025-11-17 02:07:42,690 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24be6be5-6082-4b22-994f-73068ef5efac
2025-11-17 02:07:42,708 - INFO - Verified VN network id 12 for VN b5cc6022-5f0d-4328-9b9c-3545db688fc3
2025-11-17 02:07:42,708 - INFO - Verifications in API Server for VN ctest-vn-51028781 passed
2025-11-17 02:07:42,709 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b5cc6022-5f0d-4328-9b9c-3545db688fc3
2025-11-17 02:07:42,719 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24be6be5-6082-4b22-994f-73068ef5efac
2025-11-17 02:07:42,728 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/24be6be5-6082-4b22-994f-73068ef5efac
2025-11-17 02:07:42,738 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0012fe8a-954f-4307-93ce-1b54375f745e
2025-11-17 02:07:42,752 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-51028781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17041257', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13099951116853789480', 'uuid-lslong': '11212895746395770819'}, 'enable': 'true', 'created': '2025-11-17T02:07:40', 'last-modified': '2025-11-17T02:07:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.048896'}
2025-11-17 02:07:42,760 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 02:07:42,760 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51028781 passed
2025-11-17 02:07:42,760 - DEBUG - ====Verifying policy data for ctest-vn-51028781 in API_Server ======
2025-11-17 02:07:42,760 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-17 02:07:42,768 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4082dd1b-6c69-48e4-8064-322ad79b4643
2025-11-17 02:07:42,780 - DEBUG - Requesting: http://10.0.0.27:8082/project/90cb6db2-ebe9-4576-8b15-bfe8a3ebc90a
2025-11-17 02:07:42,856 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b5cc6022-5f0d-4328-9b9c-3545db688fc3
2025-11-17 02:07:42,867 - DEBUG - ==>Verifying data for policy with id: 094765fe-09f2-4b7c-908b-09975450c7ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-17041257', 'ctest-policy-allow-all-33057230']
2025-11-17 02:07:42,867 - INFO - VN ctest-vn-51028781 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 02:07:42,867 - DEBUG - Verifying the vn in opserver
2025-11-17 02:07:42,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-51028781 virtual network link through opserver 10.0.0.27
2025-11-17 02:07:42,868 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-17 02:07:43,168 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-17 02:07:43,252 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-51028781', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-51028781?flat'}
2025-11-17 02:07:43,252 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-51028781 is found in opserver
2025-11-17 02:07:43,262 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 02:07:43,267 - DEBUG - VRF ids for VN ctest-vn-51028781: {}
2025-11-17 02:07:43,267 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-17 02:07:43,273 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4082dd1b-6c69-48e4-8064-322ad79b4643
2025-11-17 02:07:43,285 - DEBUG - Requesting: http://10.0.0.27:8082/project/90cb6db2-ebe9-4576-8b15-bfe8a3ebc90a
2025-11-17 02:07:43,363 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/73b6e6d0-7575-42e3-b750-6c79cc6bfd4b
2025-11-17 02:07:43,378 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/73b6e6d0-7575-42e3-b750-6c79cc6bfd4b
2025-11-17 02:07:43,391 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/77c51b13-81b0-42d4-8dab-7e4e231d665c
2025-11-17 02:07:43,400 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/77c51b13-81b0-42d4-8dab-7e4e231d665c
2025-11-17 02:07:43,408 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/008396dd-4278-4cfd-9351-219c4757cd33
2025-11-17 02:07:43,416 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 02:07:43,416 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/73b6e6d0-7575-42e3-b750-6c79cc6bfd4b
2025-11-17 02:07:43,427 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/77c51b13-81b0-42d4-8dab-7e4e231d665c
2025-11-17 02:07:43,445 - INFO - Verified VN network id 13 for VN 73b6e6d0-7575-42e3-b750-6c79cc6bfd4b
2025-11-17 02:07:43,445 - INFO - Verifications in API Server for VN ctest-vn-62101923 passed
2025-11-17 02:07:43,445 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/73b6e6d0-7575-42e3-b750-6c79cc6bfd4b
2025-11-17 02:07:43,455 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/77c51b13-81b0-42d4-8dab-7e4e231d665c
2025-11-17 02:07:43,463 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/77c51b13-81b0-42d4-8dab-7e4e231d665c
2025-11-17 02:07:43,474 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/008396dd-4278-4cfd-9351-219c4757cd33
2025-11-17 02:07:43,486 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-62101923', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17041257', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8338105543121257187', 'uuid-lslong': '13209176977454136651'}, 'enable': 'true', 'created': '2025-11-17T02:07:40', 'last-modified': '2025-11-17T02:07:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.543564'}
2025-11-17 02:07:43,493 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 02:07:43,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62101923 passed
2025-11-17 02:07:43,493 - DEBUG - ====Verifying policy data for ctest-vn-62101923 in API_Server ======
2025-11-17 02:07:43,494 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-17 02:07:43,500 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4082dd1b-6c69-48e4-8064-322ad79b4643
2025-11-17 02:07:43,511 - DEBUG - Requesting: http://10.0.0.27:8082/project/90cb6db2-ebe9-4576-8b15-bfe8a3ebc90a
2025-11-17 02:07:43,593 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/73b6e6d0-7575-42e3-b750-6c79cc6bfd4b
2025-11-17 02:07:43,603 - DEBUG - ==>Verifying data for policy with id: 094765fe-09f2-4b7c-908b-09975450c7ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-17041257', 'ctest-policy-allow-all-33057230']
2025-11-17 02:07:43,603 - INFO - VN ctest-vn-62101923 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 02:07:43,603 - DEBUG - Verifying the vn in opserver
2025-11-17 02:07:43,603 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-62101923 virtual network link through opserver 10.0.0.27
2025-11-17 02:07:43,603 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-17 02:07:43,614 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-62101923', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-62101923?flat'}
2025-11-17 02:07:43,614 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17041257:ctest-vn-62101923 is found in opserver
2025-11-17 02:07:43,626 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 02:07:43,632 - DEBUG - VRF ids for VN ctest-vn-62101923: {}
2025-11-17 02:07:43,730 - DEBUG - Services list from nova: [