2025-04-26 20:56:38,322 - INFO - Domain Default found not creating
2025-04-26 20:56:38,465 - INFO - Project ctest-TestBasicPolicy-66050776 not found, creating it
2025-04-26 20:56:38,926 - INFO - Created Project:ctest-TestBasicPolicy-66050776, ID : 215f59c4-5274-4e37-beef-1f3dc13906a2
2025-04-26 20:56:40,277 - INFO - ================================================================================
2025-04-26 20:56:40,277 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-26 20:56:40,278 - 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-26 20:56:40,540 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-26 20:56:40,540 - INFO - Initial checks done. Running the testcase now
2025-04-26 20:56:40,541 - INFO -
2025-04-26 20:56:41,050 - DEBUG - Response for create_network : {'network': {'id': '026514d9-5cf1-4537-86ce-a0fd7114f120', 'name': 'ctest-vn-38366100', 'tenant_id': '215f59c452744e37beef1f3dc13906a2', 'project_id': '215f59c452744e37beef1f3dc13906a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66050776', 'ctest-vn-38366100'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 20:56:41,222 - DEBUG - Response for create_subnet : {'subnet': {'id': '27e44dc6-8765-411e-befc-374f971c05dd', 'name': '', 'tenant_id': '215f59c452744e37beef1f3dc13906a2', 'network_id': '026514d9-5cf1-4537-86ce-a0fd7114f120', 'ip_version': 4, 'cidr': '208.97.156.64/26', 'allocation_pools': [{'start': '208.97.156.66', 'end': '208.97.156.126'}], 'gateway_ip': '208.97.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.97.156.66', 'tags': [], 'project_id': '215f59c452744e37beef1f3dc13906a2'}}
2025-04-26 20:56:41,238 - INFO - Created VN ctest-vn-38366100
2025-04-26 20:56:41,292 - DEBUG - VN ctest-vn-38366100 UUID is 026514d9-5cf1-4537-86ce-a0fd7114f120
2025-04-26 20:56:41,593 - DEBUG - Response for create_network : {'network': {'id': '4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad', 'name': 'ctest-vn-55311155', 'tenant_id': '215f59c452744e37beef1f3dc13906a2', 'project_id': '215f59c452744e37beef1f3dc13906a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66050776', 'ctest-vn-55311155'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 20:56:41,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e71352b-c13e-4d8f-9d5b-3b4eb78c6b71', 'name': '', 'tenant_id': '215f59c452744e37beef1f3dc13906a2', 'network_id': '4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad', 'ip_version': 4, 'cidr': '94.194.9.128/26', 'allocation_pools': [{'start': '94.194.9.130', 'end': '94.194.9.190'}], 'gateway_ip': '94.194.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.194.9.130', 'tags': [], 'project_id': '215f59c452744e37beef1f3dc13906a2'}}
2025-04-26 20:56:41,747 - INFO - Created VN ctest-vn-55311155
2025-04-26 20:56:41,800 - DEBUG - VN ctest-vn-55311155 UUID is 4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad
2025-04-26 20:56:41,947 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-38366100, 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-66050776:ctest-vn-55311155, 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-26 20:56:42,276 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '026514d9-5cf1-4537-86ce-a0fd7114f120', 'name': 'ctest-vn-38366100', 'tenant_id': '215f59c452744e37beef1f3dc13906a2', 'project_id': '215f59c452744e37beef1f3dc13906a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27e44dc6-8765-411e-befc-374f971c05dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66050776', 'ctest-vn-38366100'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66050776', 'ctest-policy-allow-all-89919160']], 'subnet_ipam': [{'subnet_cidr': '208.97.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 20:56:42,507 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad', 'name': 'ctest-vn-55311155', 'tenant_id': '215f59c452744e37beef1f3dc13906a2', 'project_id': '215f59c452744e37beef1f3dc13906a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e71352b-c13e-4d8f-9d5b-3b4eb78c6b71'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66050776', 'ctest-vn-55311155'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66050776', 'ctest-policy-allow-all-89919160']], 'subnet_ipam': [{'subnet_cidr': '94.194.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 20:56:42,676 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 20:56:42,971 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 20:56:42,998 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a0239ee-bccd-4378-9611-2fd52baec723
2025-04-26 20:56:43,010 - DEBUG - Requesting: http://10.0.0.254:8082/project/215f59c4-5274-4e37-beef-1f3dc13906a2
2025-04-26 20:56:43,085 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/026514d9-5cf1-4537-86ce-a0fd7114f120
2025-04-26 20:56:43,095 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/026514d9-5cf1-4537-86ce-a0fd7114f120
2025-04-26 20:56:43,104 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/478ba937-fb88-4995-bacc-49d40255cba9
2025-04-26 20:56:43,110 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/478ba937-fb88-4995-bacc-49d40255cba9
2025-04-26 20:56:43,115 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ec766049-b8c1-478c-b50a-823d4b110cbe
2025-04-26 20:56:43,121 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 20:56:43,121 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/026514d9-5cf1-4537-86ce-a0fd7114f120
2025-04-26 20:56:43,129 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/478ba937-fb88-4995-bacc-49d40255cba9
2025-04-26 20:56:43,140 - INFO - Verified VN network id 9 for VN 026514d9-5cf1-4537-86ce-a0fd7114f120
2025-04-26 20:56:43,141 - INFO - Verifications in API Server for VN ctest-vn-38366100 passed
2025-04-26 20:56:43,141 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/026514d9-5cf1-4537-86ce-a0fd7114f120
2025-04-26 20:56:43,148 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/478ba937-fb88-4995-bacc-49d40255cba9
2025-04-26 20:56:43,154 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/478ba937-fb88-4995-bacc-49d40255cba9
2025-04-26 20:56:43,160 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ec766049-b8c1-478c-b50a-823d4b110cbe
2025-04-26 20:56:43,170 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-38366100', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66050776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '172567084523406647', 'uuid-lslong': '9713878456669106464'}, 'enable': 'true', 'created': '2025-04-26T20:56:41', 'last-modified': '2025-04-26T20:56:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961645'}
2025-04-26 20:56:43,176 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 20:56:43,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38366100 passed
2025-04-26 20:56:43,177 - DEBUG - ====Verifying policy data for ctest-vn-38366100 in API_Server ======
2025-04-26 20:56:43,177 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 20:56:43,182 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a0239ee-bccd-4378-9611-2fd52baec723
2025-04-26 20:56:43,191 - DEBUG - Requesting: http://10.0.0.254:8082/project/215f59c4-5274-4e37-beef-1f3dc13906a2
2025-04-26 20:56:43,266 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/026514d9-5cf1-4537-86ce-a0fd7114f120
2025-04-26 20:56:43,274 - DEBUG - ==>Verifying data for policy with id: ad814e65-09ee-40bc-9a8d-9555a96fa68f, fqn: ['default-domain', 'ctest-TestBasicPolicy-66050776', 'ctest-policy-allow-all-89919160']
2025-04-26 20:56:43,274 - INFO - VN ctest-vn-38366100 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 20:56:43,274 - DEBUG - Verifying the vn in opserver
2025-04-26 20:56:43,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-38366100 virtual network link through opserver 10.0.0.254
2025-04-26 20:56:43,275 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 20:56:43,562 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 20:56:43,609 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-38366100', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-38366100?flat'}
2025-04-26 20:56:43,609 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-38366100 is found in opserver
2025-04-26 20:56:43,619 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 20:56:43,624 - DEBUG - VRF ids for VN ctest-vn-38366100: {}
2025-04-26 20:56:43,624 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 20:56:43,630 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a0239ee-bccd-4378-9611-2fd52baec723
2025-04-26 20:56:43,641 - DEBUG - Requesting: http://10.0.0.254:8082/project/215f59c4-5274-4e37-beef-1f3dc13906a2
2025-04-26 20:56:43,803 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad
2025-04-26 20:56:43,823 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad
2025-04-26 20:56:43,854 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c385260-4152-49e8-907c-93ff12aacfab
2025-04-26 20:56:43,870 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c385260-4152-49e8-907c-93ff12aacfab
2025-04-26 20:56:43,878 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e7438676-b2c4-4d5a-b3c7-dd04731a1d7d
2025-04-26 20:56:43,888 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 20:56:43,888 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad
2025-04-26 20:56:43,898 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c385260-4152-49e8-907c-93ff12aacfab
2025-04-26 20:56:43,915 - INFO - Verified VN network id 10 for VN 4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad
2025-04-26 20:56:43,915 - INFO - Verifications in API Server for VN ctest-vn-55311155 passed
2025-04-26 20:56:43,915 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad
2025-04-26 20:56:43,929 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c385260-4152-49e8-907c-93ff12aacfab
2025-04-26 20:56:43,939 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c385260-4152-49e8-907c-93ff12aacfab
2025-04-26 20:56:43,951 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e7438676-b2c4-4d5a-b3c7-dd04731a1d7d
2025-04-26 20:56:43,977 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-55311155', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66050776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5217979952020014281', 'uuid-lslong': '12303487192839872685'}, 'enable': 'true', 'created': '2025-04-26T20:56:41', 'last-modified': '2025-04-26T20:56:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.498974'}
2025-04-26 20:56:43,985 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 20:56:43,985 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55311155 passed
2025-04-26 20:56:43,985 - DEBUG - ====Verifying policy data for ctest-vn-55311155 in API_Server ======
2025-04-26 20:56:43,985 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 20:56:43,993 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a0239ee-bccd-4378-9611-2fd52baec723
2025-04-26 20:56:44,014 - DEBUG - Requesting: http://10.0.0.254:8082/project/215f59c4-5274-4e37-beef-1f3dc13906a2
2025-04-26 20:56:44,121 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4869fd1e-cd43-44c9-aabe-c46a4bc9e0ad
2025-04-26 20:56:44,144 - DEBUG - ==>Verifying data for policy with id: ad814e65-09ee-40bc-9a8d-9555a96fa68f, fqn: ['default-domain', 'ctest-TestBasicPolicy-66050776', 'ctest-policy-allow-all-89919160']
2025-04-26 20:56:44,144 - INFO - VN ctest-vn-55311155 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 20:56:44,144 - DEBUG - Verifying the vn in opserver
2025-04-26 20:56:44,144 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-55311155 virtual network link through opserver 10.0.0.254
2025-04-26 20:56:44,144 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 20:56:44,164 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-55311155', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-55311155?flat'}
2025-04-26 20:56:44,164 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66050776:ctest-vn-55311155 is found in opserver
2025-04-26 20:56:44,175 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 20:56:44,179 - DEBUG - VRF ids for VN ctest-vn-55311155: {}
2025-04-26 20:56:44,255 - DEBUG - Services list from nova: [