2025-06-17 17:55:05,730 - INFO - Domain Default found not creating
2025-06-17 17:55:05,910 - INFO - Project ctest-TestBasicPolicy-42890343 not found, creating it
2025-06-17 17:55:06,388 - INFO - Created Project:ctest-TestBasicPolicy-42890343, ID : 1d190dde-deae-4882-9448-f855be9dcca3
2025-06-17 17:55:07,874 - INFO - ================================================================================
2025-06-17 17:55:07,874 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-17 17:55:07,874 - 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-06-17 17:55:08,133 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-06-17 17:55:08,133 - INFO - Initial checks done. Running the testcase now
2025-06-17 17:55:08,133 - INFO -
2025-06-17 17:55:08,679 - DEBUG - Response for create_network : {'network': {'id': 'a4562cda-e114-47c0-a369-5b2867f0436e', 'name': 'ctest-vn-09420229', 'tenant_id': '1d190ddedeae48829448f855be9dcca3', 'project_id': '1d190ddedeae48829448f855be9dcca3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42890343', 'ctest-vn-09420229'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 17:55:08,884 - DEBUG - Response for create_subnet : {'subnet': {'id': '16e56285-0abb-427b-bbc4-07b73f4cf8cd', 'name': '', 'tenant_id': '1d190ddedeae48829448f855be9dcca3', 'network_id': 'a4562cda-e114-47c0-a369-5b2867f0436e', 'ip_version': 4, 'cidr': '114.101.169.0/26', 'allocation_pools': [{'start': '114.101.169.2', 'end': '114.101.169.62'}], 'gateway_ip': '114.101.169.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.101.169.2', 'tags': [], 'project_id': '1d190ddedeae48829448f855be9dcca3'}}
2025-06-17 17:55:08,901 - INFO - Created VN ctest-vn-09420229
2025-06-17 17:55:08,954 - DEBUG - VN ctest-vn-09420229 UUID is a4562cda-e114-47c0-a369-5b2867f0436e
2025-06-17 17:55:09,248 - DEBUG - Response for create_network : {'network': {'id': '70253b9f-3471-4ab4-9155-a49823b6e3d6', 'name': 'ctest-vn-54772349', 'tenant_id': '1d190ddedeae48829448f855be9dcca3', 'project_id': '1d190ddedeae48829448f855be9dcca3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42890343', 'ctest-vn-54772349'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 17:55:09,400 - DEBUG - Response for create_subnet : {'subnet': {'id': '3eec22c8-b7a8-4600-97ab-7d1c4e7fb8e7', 'name': '', 'tenant_id': '1d190ddedeae48829448f855be9dcca3', 'network_id': '70253b9f-3471-4ab4-9155-a49823b6e3d6', 'ip_version': 4, 'cidr': '222.190.245.128/26', 'allocation_pools': [{'start': '222.190.245.130', 'end': '222.190.245.190'}], 'gateway_ip': '222.190.245.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.190.245.130', 'tags': [], 'project_id': '1d190ddedeae48829448f855be9dcca3'}}
2025-06-17 17:55:09,416 - INFO - Created VN ctest-vn-54772349
2025-06-17 17:55:09,470 - DEBUG - VN ctest-vn-54772349 UUID is 70253b9f-3471-4ab4-9155-a49823b6e3d6
2025-06-17 17:55:09,664 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-09420229, 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-42890343:ctest-vn-54772349, 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-06-17 17:55:09,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4562cda-e114-47c0-a369-5b2867f0436e', 'name': 'ctest-vn-09420229', 'tenant_id': '1d190ddedeae48829448f855be9dcca3', 'project_id': '1d190ddedeae48829448f855be9dcca3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16e56285-0abb-427b-bbc4-07b73f4cf8cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42890343', 'ctest-vn-09420229'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42890343', 'ctest-policy-allow-all-67439340']], 'subnet_ipam': [{'subnet_cidr': '114.101.169.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 17:55:10,249 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70253b9f-3471-4ab4-9155-a49823b6e3d6', 'name': 'ctest-vn-54772349', 'tenant_id': '1d190ddedeae48829448f855be9dcca3', 'project_id': '1d190ddedeae48829448f855be9dcca3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3eec22c8-b7a8-4600-97ab-7d1c4e7fb8e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42890343', 'ctest-vn-54772349'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42890343', 'ctest-policy-allow-all-67439340']], 'subnet_ipam': [{'subnet_cidr': '222.190.245.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 17:55:10,390 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-17 17:55:10,685 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-17 17:55:10,715 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c091adfe-c5aa-42b4-b5d2-1266be02b90f
2025-06-17 17:55:10,730 - DEBUG - Requesting: http://10.0.0.249:8082/project/1d190dde-deae-4882-9448-f855be9dcca3
2025-06-17 17:55:10,802 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a4562cda-e114-47c0-a369-5b2867f0436e
2025-06-17 17:55:10,814 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a4562cda-e114-47c0-a369-5b2867f0436e
2025-06-17 17:55:10,824 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/caeb13ac-7035-46ed-acb5-1399a0413ea8
2025-06-17 17:55:10,832 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/caeb13ac-7035-46ed-acb5-1399a0413ea8
2025-06-17 17:55:10,840 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/17fd92b6-84f9-4989-a33a-c47ae1c61f2f
2025-06-17 17:55:10,848 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 17:55:10,848 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a4562cda-e114-47c0-a369-5b2867f0436e
2025-06-17 17:55:10,858 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/caeb13ac-7035-46ed-acb5-1399a0413ea8
2025-06-17 17:55:10,876 - INFO - Verified VN network id 8 for VN a4562cda-e114-47c0-a369-5b2867f0436e
2025-06-17 17:55:10,876 - INFO - Verifications in API Server for VN ctest-vn-09420229 passed
2025-06-17 17:55:10,876 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a4562cda-e114-47c0-a369-5b2867f0436e
2025-06-17 17:55:10,886 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/caeb13ac-7035-46ed-acb5-1399a0413ea8
2025-06-17 17:55:10,893 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/caeb13ac-7035-46ed-acb5-1399a0413ea8
2025-06-17 17:55:10,900 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/17fd92b6-84f9-4989-a33a-c47ae1c61f2f
2025-06-17 17:55:10,912 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-09420229', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42890343', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11841701588807993280', 'uuid-lslong': '11775042929837491054'}, 'enable': 'true', 'created': '2025-06-17T17:55:08', 'last-modified': '2025-06-17T17:55:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981337'}
2025-06-17 17:55:10,918 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 17:55:10,918 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09420229 passed
2025-06-17 17:55:10,918 - DEBUG - ====Verifying policy data for ctest-vn-09420229 in API_Server ======
2025-06-17 17:55:10,918 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-17 17:55:10,924 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c091adfe-c5aa-42b4-b5d2-1266be02b90f
2025-06-17 17:55:10,936 - DEBUG - Requesting: http://10.0.0.249:8082/project/1d190dde-deae-4882-9448-f855be9dcca3
2025-06-17 17:55:11,008 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/a4562cda-e114-47c0-a369-5b2867f0436e
2025-06-17 17:55:11,026 - DEBUG - ==>Verifying data for policy with id: b4600cee-f3b9-4e7d-86ff-04be8069361e, fqn: ['default-domain', 'ctest-TestBasicPolicy-42890343', 'ctest-policy-allow-all-67439340']
2025-06-17 17:55:11,027 - INFO - VN ctest-vn-09420229 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 17:55:11,027 - DEBUG - Verifying the vn in opserver
2025-06-17 17:55:11,027 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-09420229 virtual network link through opserver 10.0.0.249
2025-06-17 17:55:11,027 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-17 17:55:11,330 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-17 17:55:11,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-09420229', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-09420229?flat'}
2025-06-17 17:55:11,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-09420229 is found in opserver
2025-06-17 17:55:11,399 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 17:55:11,404 - DEBUG - VRF ids for VN ctest-vn-09420229: {}
2025-06-17 17:55:11,404 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-17 17:55:11,410 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c091adfe-c5aa-42b4-b5d2-1266be02b90f
2025-06-17 17:55:11,421 - DEBUG - Requesting: http://10.0.0.249:8082/project/1d190dde-deae-4882-9448-f855be9dcca3
2025-06-17 17:55:11,489 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/70253b9f-3471-4ab4-9155-a49823b6e3d6
2025-06-17 17:55:11,501 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/70253b9f-3471-4ab4-9155-a49823b6e3d6
2025-06-17 17:55:11,512 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b154c614-3e97-4ad5-bc58-cea1081fd639
2025-06-17 17:55:11,520 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b154c614-3e97-4ad5-bc58-cea1081fd639
2025-06-17 17:55:11,528 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/704284c3-a44a-452c-81e5-9e22cf6384b1
2025-06-17 17:55:11,535 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 17:55:11,535 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/70253b9f-3471-4ab4-9155-a49823b6e3d6
2025-06-17 17:55:11,545 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b154c614-3e97-4ad5-bc58-cea1081fd639
2025-06-17 17:55:11,561 - INFO - Verified VN network id 9 for VN 70253b9f-3471-4ab4-9155-a49823b6e3d6
2025-06-17 17:55:11,561 - INFO - Verifications in API Server for VN ctest-vn-54772349 passed
2025-06-17 17:55:11,561 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/70253b9f-3471-4ab4-9155-a49823b6e3d6
2025-06-17 17:55:11,571 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b154c614-3e97-4ad5-bc58-cea1081fd639
2025-06-17 17:55:11,579 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/b154c614-3e97-4ad5-bc58-cea1081fd639
2025-06-17 17:55:11,586 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/704284c3-a44a-452c-81e5-9e22cf6384b1
2025-06-17 17:55:11,598 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-54772349', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42890343', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8080930661351901876', 'uuid-lslong': '10472457481861129174'}, 'enable': 'true', 'created': '2025-06-17T17:55:09', 'last-modified': '2025-06-17T17:55:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.416216'}
2025-06-17 17:55:11,604 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 17:55:11,604 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54772349 passed
2025-06-17 17:55:11,605 - DEBUG - ====Verifying policy data for ctest-vn-54772349 in API_Server ======
2025-06-17 17:55:11,605 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-06-17 17:55:11,610 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c091adfe-c5aa-42b4-b5d2-1266be02b90f
2025-06-17 17:55:11,623 - DEBUG - Requesting: http://10.0.0.249:8082/project/1d190dde-deae-4882-9448-f855be9dcca3
2025-06-17 17:55:11,700 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/70253b9f-3471-4ab4-9155-a49823b6e3d6
2025-06-17 17:55:11,711 - DEBUG - ==>Verifying data for policy with id: b4600cee-f3b9-4e7d-86ff-04be8069361e, fqn: ['default-domain', 'ctest-TestBasicPolicy-42890343', 'ctest-policy-allow-all-67439340']
2025-06-17 17:55:11,711 - INFO - VN ctest-vn-54772349 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 17:55:11,711 - DEBUG - Verifying the vn in opserver
2025-06-17 17:55:11,711 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-54772349 virtual network link through opserver 10.0.0.249
2025-06-17 17:55:11,711 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-06-17 17:55:11,722 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-54772349', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-54772349?flat'}
2025-06-17 17:55:11,722 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42890343:ctest-vn-54772349 is found in opserver
2025-06-17 17:55:11,735 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 17:55:11,741 - DEBUG - VRF ids for VN ctest-vn-54772349: {}
2025-06-17 17:55:11,799 - DEBUG - Services list from nova: [