2025-04-14 02:36:29,863 - INFO - Domain Default found not creating
2025-04-14 02:36:30,045 - INFO - Project ctest-TestBasicPolicy-33406390 not found, creating it
2025-04-14 02:36:30,540 - INFO - Created Project:ctest-TestBasicPolicy-33406390, ID : 2429970c-c9b8-417e-a666-ac7f9ea9dd9b
2025-04-14 02:36:32,177 - INFO - ================================================================================
2025-04-14 02:36:32,177 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 02:36:32,177 - 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-04-14 02:36:32,444 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-04-14 02:36:32,444 - INFO - Initial checks done. Running the testcase now
2025-04-14 02:36:32,444 - INFO -
2025-04-14 02:36:33,044 - DEBUG - Response for create_network : {'network': {'id': '11f341f1-c000-4b58-a51d-d959ddb4a7a5', 'name': 'ctest-vn-60953388', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-vn-60953388'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 02:36:33,236 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c80f5beb-9103-460e-93c6-c35edef4f5e6', 'name': '', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'network_id': '11f341f1-c000-4b58-a51d-d959ddb4a7a5', 'ip_version': 4, 'cidr': '171.242.131.0/26', 'allocation_pools': [{'start': '171.242.131.2', 'end': '171.242.131.62'}], 'gateway_ip': '171.242.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.242.131.2', 'tags': [], 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b'}}
2025-04-14 02:36:33,256 - INFO - Created VN ctest-vn-60953388
2025-04-14 02:36:33,312 - DEBUG - VN ctest-vn-60953388 UUID is 11f341f1-c000-4b58-a51d-d959ddb4a7a5
2025-04-14 02:36:33,652 - DEBUG - Response for create_network : {'network': {'id': 'b45e4ca8-224e-4a26-a867-b36d9f17f309', 'name': 'ctest-vn-30419355', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-vn-30419355'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 02:36:33,848 - DEBUG - Response for create_subnet : {'subnet': {'id': '770da697-5766-4678-9152-bb897b1c657f', 'name': '', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'network_id': 'b45e4ca8-224e-4a26-a867-b36d9f17f309', 'ip_version': 4, 'cidr': '67.186.27.128/26', 'allocation_pools': [{'start': '67.186.27.130', 'end': '67.186.27.190'}], 'gateway_ip': '67.186.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.186.27.130', 'tags': [], 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b'}}
2025-04-14 02:36:33,872 - INFO - Created VN ctest-vn-30419355
2025-04-14 02:36:33,928 - DEBUG - VN ctest-vn-30419355 UUID is b45e4ca8-224e-4a26-a867-b36d9f17f309
2025-04-14 02:36:34,049 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388, 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-33406390:ctest-vn-30419355, 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-04-14 02:36:34,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11f341f1-c000-4b58-a51d-d959ddb4a7a5', 'name': 'ctest-vn-60953388', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c80f5beb-9103-460e-93c6-c35edef4f5e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-vn-60953388'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-policy-allow-all-98221522']], 'subnet_ipam': [{'subnet_cidr': '171.242.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 02:36:34,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b45e4ca8-224e-4a26-a867-b36d9f17f309', 'name': 'ctest-vn-30419355', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['770da697-5766-4678-9152-bb897b1c657f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-vn-30419355'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-policy-allow-all-98221522']], 'subnet_ipam': [{'subnet_cidr': '67.186.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 02:36:34,824 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 02:36:35,169 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 02:36:35,203 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb
2025-04-14 02:36:35,220 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b
2025-04-14 02:36:35,302 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5
2025-04-14 02:36:35,316 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5
2025-04-14 02:36:35,327 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9
2025-04-14 02:36:35,336 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9
2025-04-14 02:36:35,345 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/27b1dd3d-f43b-4e2c-a330-8a27912cbeb0
2025-04-14 02:36:35,352 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 02:36:35,353 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5
2025-04-14 02:36:35,364 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9
2025-04-14 02:36:35,385 - INFO - Verified VN network id 8 for VN 11f341f1-c000-4b58-a51d-d959ddb4a7a5
2025-04-14 02:36:35,385 - INFO - Verifications in API Server for VN ctest-vn-60953388 passed
2025-04-14 02:36:35,385 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5
2025-04-14 02:36:35,397 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9
2025-04-14 02:36:35,405 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9
2025-04-14 02:36:35,416 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/27b1dd3d-f43b-4e2c-a330-8a27912cbeb0
2025-04-14 02:36:35,430 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33406390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1293450024549632856', 'uuid-lslong': '11897904770577639333'}, 'enable': 'true', 'created': '2025-04-14T02:36:33', 'last-modified': '2025-04-14T02:36:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.083788'}
2025-04-14 02:36:35,438 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 02:36:35,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60953388 passed
2025-04-14 02:36:35,438 - DEBUG - ====Verifying policy data for ctest-vn-60953388 in API_Server ======
2025-04-14 02:36:35,438 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 02:36:35,445 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb
2025-04-14 02:36:35,458 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b
2025-04-14 02:36:35,538 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5
2025-04-14 02:36:35,549 - DEBUG - ==>Verifying data for policy with id: bad014c6-71b4-4457-80b5-d8310141e366, fqn: ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-policy-allow-all-98221522']
2025-04-14 02:36:35,549 - INFO - VN ctest-vn-60953388 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 02:36:35,549 - DEBUG - Verifying the vn in opserver
2025-04-14 02:36:35,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388 virtual network link through opserver 10.0.0.254
2025-04-14 02:36:35,550 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 02:36:35,877 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 02:36:35,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388?flat'}
2025-04-14 02:36:35,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388 is found in opserver
2025-04-14 02:36:35,954 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 02:36:35,960 - DEBUG - VRF ids for VN ctest-vn-60953388: {}
2025-04-14 02:36:35,960 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 02:36:35,968 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb
2025-04-14 02:36:35,982 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b
2025-04-14 02:36:36,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309
2025-04-14 02:36:36,075 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309
2025-04-14 02:36:36,089 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150
2025-04-14 02:36:36,099 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150
2025-04-14 02:36:36,107 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7f4feea-46fa-43f2-8f86-7b6f617e14de
2025-04-14 02:36:36,115 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 02:36:36,115 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309
2025-04-14 02:36:36,126 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150
2025-04-14 02:36:36,144 - INFO - Verified VN network id 9 for VN b45e4ca8-224e-4a26-a867-b36d9f17f309
2025-04-14 02:36:36,144 - INFO - Verifications in API Server for VN ctest-vn-30419355 passed
2025-04-14 02:36:36,144 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309
2025-04-14 02:36:36,157 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150
2025-04-14 02:36:36,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150
2025-04-14 02:36:36,177 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7f4feea-46fa-43f2-8f86-7b6f617e14de
2025-04-14 02:36:36,193 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33406390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12996909859651602982', 'uuid-lslong': '12134865004375044873'}, 'enable': 'true', 'created': '2025-04-14T02:36:33', 'last-modified': '2025-04-14T02:36:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.584655'}
2025-04-14 02:36:36,201 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 02:36:36,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30419355 passed
2025-04-14 02:36:36,201 - DEBUG - ====Verifying policy data for ctest-vn-30419355 in API_Server ======
2025-04-14 02:36:36,201 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 02:36:36,209 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb
2025-04-14 02:36:36,225 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b
2025-04-14 02:36:36,310 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309
2025-04-14 02:36:36,322 - DEBUG - ==>Verifying data for policy with id: bad014c6-71b4-4457-80b5-d8310141e366, fqn: ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-policy-allow-all-98221522']
2025-04-14 02:36:36,322 - INFO - VN ctest-vn-30419355 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 02:36:36,322 - DEBUG - Verifying the vn in opserver
2025-04-14 02:36:36,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355 virtual network link through opserver 10.0.0.254
2025-04-14 02:36:36,322 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 02:36:36,338 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355?flat'}
2025-04-14 02:36:36,338 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355 is found in opserver
2025-04-14 02:36:36,351 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 02:36:36,358 - DEBUG - VRF ids for VN ctest-vn-30419355: {}
2025-04-14 02:36:36,428 - DEBUG - Services list from nova: [