2025-06-10 21:23:44,940 - INFO - Domain Default found not creating
2025-06-10 21:23:45,081 - INFO - Project ctest-TestBasicPolicy-52239864 not found, creating it
2025-06-10 21:23:45,525 - INFO - Created Project:ctest-TestBasicPolicy-52239864, ID : 07e46fb1-48a0-47b6-bea0-c2ed1a8a1b5c
2025-06-10 21:23:46,981 - INFO - ================================================================================
2025-06-10 21:23:46,981 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 21:23:46,981 - 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-10 21:23:47,235 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-06-10 21:23:47,236 - INFO - Initial checks done. Running the testcase now
2025-06-10 21:23:47,236 - INFO -
2025-06-10 21:23:47,793 - DEBUG - Response for create_network : {'network': {'id': '218176bd-7d05-4c33-8d53-0dbe8058db4c', 'name': 'ctest-vn-68095870', 'tenant_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'project_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52239864', 'ctest-vn-68095870'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 21:23:48,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '84a59281-220b-47b8-9ea8-6d97271b01c4', 'name': '', 'tenant_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'network_id': '218176bd-7d05-4c33-8d53-0dbe8058db4c', 'ip_version': 4, 'cidr': '222.2.59.128/26', 'allocation_pools': [{'start': '222.2.59.130', 'end': '222.2.59.190'}], 'gateway_ip': '222.2.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.2.59.130', 'tags': [], 'project_id': '07e46fb148a047b6bea0c2ed1a8a1b5c'}}
2025-06-10 21:23:48,028 - INFO - Created VN ctest-vn-68095870
2025-06-10 21:23:48,089 - DEBUG - VN ctest-vn-68095870 UUID is 218176bd-7d05-4c33-8d53-0dbe8058db4c
2025-06-10 21:23:48,541 - DEBUG - Response for create_network : {'network': {'id': '8fca5581-67cf-4c80-87db-09041258b77f', 'name': 'ctest-vn-48933764', 'tenant_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'project_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52239864', 'ctest-vn-48933764'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 21:23:48,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a772a10-cf94-4078-a1be-ed0704fa0bff', 'name': '', 'tenant_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'network_id': '8fca5581-67cf-4c80-87db-09041258b77f', 'ip_version': 4, 'cidr': '143.209.220.0/26', 'allocation_pools': [{'start': '143.209.220.2', 'end': '143.209.220.62'}], 'gateway_ip': '143.209.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.209.220.2', 'tags': [], 'project_id': '07e46fb148a047b6bea0c2ed1a8a1b5c'}}
2025-06-10 21:23:48,771 - INFO - Created VN ctest-vn-48933764
2025-06-10 21:23:48,825 - DEBUG - VN ctest-vn-48933764 UUID is 8fca5581-67cf-4c80-87db-09041258b77f
2025-06-10 21:23:48,977 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-68095870, 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-52239864:ctest-vn-48933764, 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-10 21:23:49,273 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '218176bd-7d05-4c33-8d53-0dbe8058db4c', 'name': 'ctest-vn-68095870', 'tenant_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'project_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84a59281-220b-47b8-9ea8-6d97271b01c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52239864', 'ctest-vn-68095870'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52239864', 'ctest-policy-allow-all-91922928']], 'subnet_ipam': [{'subnet_cidr': '222.2.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 21:23:49,514 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fca5581-67cf-4c80-87db-09041258b77f', 'name': 'ctest-vn-48933764', 'tenant_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'project_id': '07e46fb148a047b6bea0c2ed1a8a1b5c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a772a10-cf94-4078-a1be-ed0704fa0bff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52239864', 'ctest-vn-48933764'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52239864', 'ctest-policy-allow-all-91922928']], 'subnet_ipam': [{'subnet_cidr': '143.209.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 21:23:49,681 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-10 21:23:49,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-10 21:23:50,017 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31ebd444-b663-4653-ac52-02aa6af52667
2025-06-10 21:23:50,031 - DEBUG - Requesting: http://10.0.0.254:8082/project/07e46fb1-48a0-47b6-bea0-c2ed1a8a1b5c
2025-06-10 21:23:50,113 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218176bd-7d05-4c33-8d53-0dbe8058db4c
2025-06-10 21:23:50,124 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218176bd-7d05-4c33-8d53-0dbe8058db4c
2025-06-10 21:23:50,134 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5d7682f-edc2-481c-8e64-5d8b25e8ced8
2025-06-10 21:23:50,143 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5d7682f-edc2-481c-8e64-5d8b25e8ced8
2025-06-10 21:23:50,151 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d0673773-d92e-42b9-a90e-5a3306edef63
2025-06-10 21:23:50,158 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 21:23:50,158 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218176bd-7d05-4c33-8d53-0dbe8058db4c
2025-06-10 21:23:50,169 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5d7682f-edc2-481c-8e64-5d8b25e8ced8
2025-06-10 21:23:50,184 - INFO - Verified VN network id 9 for VN 218176bd-7d05-4c33-8d53-0dbe8058db4c
2025-06-10 21:23:50,184 - INFO - Verifications in API Server for VN ctest-vn-68095870 passed
2025-06-10 21:23:50,184 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218176bd-7d05-4c33-8d53-0dbe8058db4c
2025-06-10 21:23:50,259 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5d7682f-edc2-481c-8e64-5d8b25e8ced8
2025-06-10 21:23:50,268 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e5d7682f-edc2-481c-8e64-5d8b25e8ced8
2025-06-10 21:23:50,276 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d0673773-d92e-42b9-a90e-5a3306edef63
2025-06-10 21:23:50,291 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-68095870', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52239864', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2414341431465692211', 'uuid-lslong': '10183498294263077708'}, 'enable': 'true', 'created': '2025-06-10T21:23:47', 'last-modified': '2025-06-10T21:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.038380'}
2025-06-10 21:23:50,298 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 21:23:50,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68095870 passed
2025-06-10 21:23:50,298 - DEBUG - ====Verifying policy data for ctest-vn-68095870 in API_Server ======
2025-06-10 21:23:50,298 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-10 21:23:50,304 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31ebd444-b663-4653-ac52-02aa6af52667
2025-06-10 21:23:50,319 - DEBUG - Requesting: http://10.0.0.254:8082/project/07e46fb1-48a0-47b6-bea0-c2ed1a8a1b5c
2025-06-10 21:23:50,391 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218176bd-7d05-4c33-8d53-0dbe8058db4c
2025-06-10 21:23:50,402 - DEBUG - ==>Verifying data for policy with id: a3e211da-f7b7-44ec-acaa-965d6509b3d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-52239864', 'ctest-policy-allow-all-91922928']
2025-06-10 21:23:50,402 - INFO - VN ctest-vn-68095870 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 21:23:50,402 - DEBUG - Verifying the vn in opserver
2025-06-10 21:23:50,402 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-68095870 virtual network link through opserver 10.0.0.254
2025-06-10 21:23:50,402 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-10 21:23:50,702 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-10 21:23:50,765 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-68095870', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-68095870?flat'}
2025-06-10 21:23:50,765 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-68095870 is found in opserver
2025-06-10 21:23:50,778 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 21:23:50,783 - DEBUG - VRF ids for VN ctest-vn-68095870: {}
2025-06-10 21:23:50,783 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-10 21:23:50,790 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31ebd444-b663-4653-ac52-02aa6af52667
2025-06-10 21:23:50,804 - DEBUG - Requesting: http://10.0.0.254:8082/project/07e46fb1-48a0-47b6-bea0-c2ed1a8a1b5c
2025-06-10 21:23:50,880 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fca5581-67cf-4c80-87db-09041258b77f
2025-06-10 21:23:50,892 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fca5581-67cf-4c80-87db-09041258b77f
2025-06-10 21:23:50,903 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67af864d-2c24-4664-8eba-107795cb0d8a
2025-06-10 21:23:50,910 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67af864d-2c24-4664-8eba-107795cb0d8a
2025-06-10 21:23:50,917 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fdcd0204-5319-4286-8f7f-96eb9676c580
2025-06-10 21:23:50,923 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 21:23:50,923 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fca5581-67cf-4c80-87db-09041258b77f
2025-06-10 21:23:50,933 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67af864d-2c24-4664-8eba-107795cb0d8a
2025-06-10 21:23:50,947 - INFO - Verified VN network id 10 for VN 8fca5581-67cf-4c80-87db-09041258b77f
2025-06-10 21:23:50,947 - INFO - Verifications in API Server for VN ctest-vn-48933764 passed
2025-06-10 21:23:50,947 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fca5581-67cf-4c80-87db-09041258b77f
2025-06-10 21:23:50,957 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67af864d-2c24-4664-8eba-107795cb0d8a
2025-06-10 21:23:50,964 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/67af864d-2c24-4664-8eba-107795cb0d8a
2025-06-10 21:23:50,971 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fdcd0204-5319-4286-8f7f-96eb9676c580
2025-06-10 21:23:50,982 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-48933764', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52239864', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10361187907000028288', 'uuid-lslong': '9789428128112228223'}, 'enable': 'true', 'created': '2025-06-10T21:23:48', 'last-modified': '2025-06-10T21:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.489332'}
2025-06-10 21:23:50,988 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 21:23:50,988 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48933764 passed
2025-06-10 21:23:50,988 - DEBUG - ====Verifying policy data for ctest-vn-48933764 in API_Server ======
2025-06-10 21:23:50,989 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-10 21:23:50,995 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31ebd444-b663-4653-ac52-02aa6af52667
2025-06-10 21:23:51,008 - DEBUG - Requesting: http://10.0.0.254:8082/project/07e46fb1-48a0-47b6-bea0-c2ed1a8a1b5c
2025-06-10 21:23:51,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8fca5581-67cf-4c80-87db-09041258b77f
2025-06-10 21:23:51,098 - DEBUG - ==>Verifying data for policy with id: a3e211da-f7b7-44ec-acaa-965d6509b3d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-52239864', 'ctest-policy-allow-all-91922928']
2025-06-10 21:23:51,098 - INFO - VN ctest-vn-48933764 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 21:23:51,098 - DEBUG - Verifying the vn in opserver
2025-06-10 21:23:51,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-48933764 virtual network link through opserver 10.0.0.254
2025-06-10 21:23:51,098 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-10 21:23:51,109 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-48933764', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-48933764?flat'}
2025-06-10 21:23:51,109 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52239864:ctest-vn-48933764 is found in opserver
2025-06-10 21:23:51,121 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 21:23:51,127 - DEBUG - VRF ids for VN ctest-vn-48933764: {}
2025-06-10 21:23:51,182 - DEBUG - Services list from nova: [