2025-05-13 09:58:23,102 - INFO - Domain Default found not creating
2025-05-13 09:58:23,359 - INFO - Project ctest-TestBasicPolicy-58013581 not found, creating it
2025-05-13 09:58:24,215 - INFO - Created Project:ctest-TestBasicPolicy-58013581, ID : e1999adb-c5d6-4d50-adcb-c76ecb6de454
2025-05-13 09:58:26,462 - INFO - ================================================================================
2025-05-13 09:58:26,462 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-13 09:58:26,463 - 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-05-13 09:58:26,801 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2025-05-13 09:58:26,801 - INFO - Initial checks done. Running the testcase now
2025-05-13 09:58:26,801 - INFO -
2025-05-13 09:58:27,778 - DEBUG - Response for create_network : {'network': {'id': 'e9de1501-9d5d-4ac0-b988-2a1b86499543', 'name': 'ctest-vn-53732248', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-vn-53732248'], 'port_security_enabled': True, 'description': ''}}
2025-05-13 09:58:28,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '05a4d2a9-aca4-464b-8f47-6e4ba0ce23f9', 'name': '', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'network_id': 'e9de1501-9d5d-4ac0-b988-2a1b86499543', 'ip_version': 4, 'cidr': '171.122.192.0/26', 'allocation_pools': [{'start': '171.122.192.2', 'end': '171.122.192.62'}], 'gateway_ip': '171.122.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.122.192.2', 'tags': [], 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454'}}
2025-05-13 09:58:28,074 - INFO - Created VN ctest-vn-53732248
2025-05-13 09:58:28,131 - DEBUG - VN ctest-vn-53732248 UUID is e9de1501-9d5d-4ac0-b988-2a1b86499543
2025-05-13 09:58:28,576 - DEBUG - Response for create_network : {'network': {'id': 'f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf', 'name': 'ctest-vn-35854703', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-vn-35854703'], 'port_security_enabled': True, 'description': ''}}
2025-05-13 09:58:28,818 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7dfd621-0041-4c0d-b70f-4a5321e7135b', 'name': '', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'network_id': 'f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf', 'ip_version': 4, 'cidr': '151.1.121.128/26', 'allocation_pools': [{'start': '151.1.121.130', 'end': '151.1.121.190'}], 'gateway_ip': '151.1.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.1.121.130', 'tags': [], 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454'}}
2025-05-13 09:58:28,840 - INFO - Created VN ctest-vn-35854703
2025-05-13 09:58:28,899 - DEBUG - VN ctest-vn-35854703 UUID is f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf
2025-05-13 09:58:29,044 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248, 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-58013581:ctest-vn-35854703, 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-05-13 09:58:29,590 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9de1501-9d5d-4ac0-b988-2a1b86499543', 'name': 'ctest-vn-53732248', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05a4d2a9-aca4-464b-8f47-6e4ba0ce23f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-vn-53732248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-policy-allow-all-14215770']], 'subnet_ipam': [{'subnet_cidr': '171.122.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-13 09:58:30,032 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf', 'name': 'ctest-vn-35854703', 'tenant_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'project_id': 'e1999adbc5d64d50adcbc76ecb6de454', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7dfd621-0041-4c0d-b70f-4a5321e7135b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-vn-35854703'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-policy-allow-all-14215770']], 'subnet_ipam': [{'subnet_cidr': '151.1.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-13 09:58:30,219 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-05-13 09:58:30,565 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-05-13 09:58:30,617 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69
2025-05-13 09:58:30,656 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454
2025-05-13 09:58:30,790 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543
2025-05-13 09:58:30,819 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543
2025-05-13 09:58:30,848 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285
2025-05-13 09:58:30,872 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285
2025-05-13 09:58:30,890 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/fdf3f89c-bd10-469d-bf8c-f4d45c693e3e
2025-05-13 09:58:30,906 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-13 09:58:30,906 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543
2025-05-13 09:58:30,928 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285
2025-05-13 09:58:30,962 - INFO - Verified VN network id 8 for VN e9de1501-9d5d-4ac0-b988-2a1b86499543
2025-05-13 09:58:30,962 - INFO - Verifications in API Server for VN ctest-vn-53732248 passed
2025-05-13 09:58:30,963 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543
2025-05-13 09:58:30,980 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285
2025-05-13 09:58:30,999 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8fc0a08-4d15-4573-b949-3172f79fe285
2025-05-13 09:58:31,013 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/fdf3f89c-bd10-469d-bf8c-f4d45c693e3e
2025-05-13 09:58:31,039 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58013581', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16851929952346262208', 'uuid-lslong': '13368981791554770243'}, 'enable': 'true', 'created': '2025-05-13T09:58:27', 'last-modified': '2025-05-13T09:58:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.504962'}
2025-05-13 09:58:31,055 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-13 09:58:31,055 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53732248 passed
2025-05-13 09:58:31,055 - DEBUG - ====Verifying policy data for ctest-vn-53732248 in API_Server ======
2025-05-13 09:58:31,055 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-05-13 09:58:31,069 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69
2025-05-13 09:58:31,086 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454
2025-05-13 09:58:31,188 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e9de1501-9d5d-4ac0-b988-2a1b86499543
2025-05-13 09:58:31,208 - DEBUG - ==>Verifying data for policy with id: d2bcbd93-bdcf-44c4-8438-c19fc1cb3f03, fqn: ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-policy-allow-all-14215770']
2025-05-13 09:58:31,208 - INFO - VN ctest-vn-53732248 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-13 09:58:31,208 - DEBUG - Verifying the vn in opserver
2025-05-13 09:58:31,208 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248 virtual network link through opserver 10.0.0.41
2025-05-13 09:58:31,209 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-05-13 09:58:31,528 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-05-13 09:58:31,643 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248?flat'}
2025-05-13 09:58:31,643 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-53732248 is found in opserver
2025-05-13 09:58:31,667 - DEBUG - Do not have enough data to verify VN in agent
2025-05-13 09:58:31,682 - DEBUG - VRF ids for VN ctest-vn-53732248: {}
2025-05-13 09:58:31,682 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-05-13 09:58:31,696 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69
2025-05-13 09:58:31,725 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454
2025-05-13 09:58:31,853 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf
2025-05-13 09:58:31,879 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf
2025-05-13 09:58:31,902 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a
2025-05-13 09:58:31,921 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a
2025-05-13 09:58:31,944 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5537e677-7146-45fa-b416-7d05d114d451
2025-05-13 09:58:31,963 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-13 09:58:31,963 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf
2025-05-13 09:58:31,994 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a
2025-05-13 09:58:32,043 - INFO - Verified VN network id 9 for VN f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf
2025-05-13 09:58:32,043 - INFO - Verifications in API Server for VN ctest-vn-35854703 passed
2025-05-13 09:58:32,044 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf
2025-05-13 09:58:32,079 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a
2025-05-13 09:58:32,102 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e14aaaee-efb6-4a5a-b121-7e9a99818d7a
2025-05-13 09:58:32,122 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5537e677-7146-45fa-b416-7d05d114d451
2025-05-13 09:58:32,160 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58013581', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17572089864327348882', 'uuid-lslong': '10372584391034171311'}, 'enable': 'true', 'created': '2025-05-13T09:58:28', 'last-modified': '2025-05-13T09:58:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.215761'}
2025-05-13 09:58:32,176 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-13 09:58:32,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35854703 passed
2025-05-13 09:58:32,176 - DEBUG - ====Verifying policy data for ctest-vn-35854703 in API_Server ======
2025-05-13 09:58:32,177 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-05-13 09:58:32,189 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9e864e28-4bda-4ea4-9d30-a30a75ee8e69
2025-05-13 09:58:32,214 - DEBUG - Requesting: http://10.0.0.41:8082/project/e1999adb-c5d6-4d50-adcb-c76ecb6de454
2025-05-13 09:58:32,324 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f3dc9aa1-7479-4292-8ff2-d28c1e5a6faf
2025-05-13 09:58:32,344 - DEBUG - ==>Verifying data for policy with id: d2bcbd93-bdcf-44c4-8438-c19fc1cb3f03, fqn: ['default-domain', 'ctest-TestBasicPolicy-58013581', 'ctest-policy-allow-all-14215770']
2025-05-13 09:58:32,344 - INFO - VN ctest-vn-35854703 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-13 09:58:32,344 - DEBUG - Verifying the vn in opserver
2025-05-13 09:58:32,344 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703 virtual network link through opserver 10.0.0.41
2025-05-13 09:58:32,344 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-05-13 09:58:32,367 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703?flat'}
2025-05-13 09:58:32,367 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58013581:ctest-vn-35854703 is found in opserver
2025-05-13 09:58:32,399 - DEBUG - Do not have enough data to verify VN in agent
2025-05-13 09:58:32,416 - DEBUG - VRF ids for VN ctest-vn-35854703: {}
2025-05-13 09:58:32,516 - DEBUG - Services list from nova: [