2024-09-17 09:25:38,433 - INFO - Domain Default found not creating
2024-09-17 09:25:38,610 - INFO - Project ctest-TestBasicPolicy-20391349 not found, creating it
2024-09-17 09:25:39,102 - INFO - Created Project:ctest-TestBasicPolicy-20391349, ID : 50a3558f-f3a0-4af4-bdaf-703e51186c36
2024-09-17 09:25:40,629 - INFO - ================================================================================
2024-09-17 09:25:40,629 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 09:25:40,630 - 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
2024-09-17 09:25:40,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.18': '0'}} with
2024-09-17 09:25:40,887 - INFO - Initial checks done. Running the testcase now
2024-09-17 09:25:40,887 - INFO -
2024-09-17 09:25:41,476 - DEBUG - Response for create_network : {'network': {'id': '729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a', 'name': 'ctest-vn-72819486', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'project_id': '50a3558ff3a04af4bdaf703e51186c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-vn-72819486'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 09:25:41,686 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf66264b-453f-400d-8663-0e45330f19e2', 'name': '', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'network_id': '729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a', 'ip_version': 4, 'cidr': '147.238.9.192/26', 'allocation_pools': [{'start': '147.238.9.194', 'end': '147.238.9.254'}], 'gateway_ip': '147.238.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.238.9.194', 'tags': [], 'project_id': '50a3558ff3a04af4bdaf703e51186c36'}}
2024-09-17 09:25:41,706 - INFO - Created VN ctest-vn-72819486
2024-09-17 09:25:41,763 - DEBUG - VN ctest-vn-72819486 UUID is 729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a
2024-09-17 09:25:42,087 - DEBUG - Response for create_network : {'network': {'id': 'ef717723-9e01-4a2a-a694-f942ebaa50b9', 'name': 'ctest-vn-98313127', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'project_id': '50a3558ff3a04af4bdaf703e51186c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-vn-98313127'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 09:25:42,269 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5972c32-115a-40bc-b1c0-7d1116632ffd', 'name': '', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'network_id': 'ef717723-9e01-4a2a-a694-f942ebaa50b9', 'ip_version': 4, 'cidr': '67.162.61.192/26', 'allocation_pools': [{'start': '67.162.61.194', 'end': '67.162.61.254'}], 'gateway_ip': '67.162.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.162.61.194', 'tags': [], 'project_id': '50a3558ff3a04af4bdaf703e51186c36'}}
2024-09-17 09:25:42,287 - INFO - Created VN ctest-vn-98313127
2024-09-17 09:25:42,343 - DEBUG - VN ctest-vn-98313127 UUID is ef717723-9e01-4a2a-a694-f942ebaa50b9
2024-09-17 09:25:42,468 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486, 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-20391349:ctest-vn-98313127, 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]
2024-09-17 09:25:42,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a', 'name': 'ctest-vn-72819486', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'project_id': '50a3558ff3a04af4bdaf703e51186c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf66264b-453f-400d-8663-0e45330f19e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-vn-72819486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-policy-allow-all-32892247']], 'subnet_ipam': [{'subnet_cidr': '147.238.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 09:25:43,024 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef717723-9e01-4a2a-a694-f942ebaa50b9', 'name': 'ctest-vn-98313127', 'tenant_id': '50a3558ff3a04af4bdaf703e51186c36', 'project_id': '50a3558ff3a04af4bdaf703e51186c36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5972c32-115a-40bc-b1c0-7d1116632ffd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-vn-98313127'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-policy-allow-all-32892247']], 'subnet_ipam': [{'subnet_cidr': '67.162.61.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 09:25:43,219 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-17 09:25:43,518 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-17 09:25:43,553 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e
2024-09-17 09:25:43,580 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36
2024-09-17 09:25:43,672 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a
2024-09-17 09:25:43,690 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a
2024-09-17 09:25:43,705 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8
2024-09-17 09:25:43,715 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8
2024-09-17 09:25:43,726 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/188b4697-f308-421d-8834-5a32e0011ac2
2024-09-17 09:25:43,734 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 09:25:43,734 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a
2024-09-17 09:25:43,748 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8
2024-09-17 09:25:43,766 - INFO - Verified VN network id 8 for VN 729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a
2024-09-17 09:25:43,766 - INFO - Verifications in API Server for VN ctest-vn-72819486 passed
2024-09-17 09:25:43,766 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a
2024-09-17 09:25:43,783 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8
2024-09-17 09:25:43,791 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/67e06f28-6d97-4348-983d-ec1e8ecdbfa8
2024-09-17 09:25:43,799 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/188b4697-f308-421d-8834-5a32e0011ac2
2024-09-17 09:25:43,813 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20391349', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8258596073372074424', 'uuid-lslong': '13019244515520134298'}, 'enable': 'true', 'created': '2024-09-17T09:25:41', 'last-modified': '2024-09-17T09:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058197'}
2024-09-17 09:25:43,820 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 09:25:43,820 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72819486 passed
2024-09-17 09:25:43,820 - DEBUG - ====Verifying policy data for ctest-vn-72819486 in API_Server ======
2024-09-17 09:25:43,820 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-17 09:25:43,826 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e
2024-09-17 09:25:43,837 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36
2024-09-17 09:25:43,922 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/729c6d5f-70c7-41b8-b4ad-a5e86f87bc9a
2024-09-17 09:25:43,937 - DEBUG - ==>Verifying data for policy with id: afddacc9-5913-4e68-b0d1-be82d8879b63, fqn: ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-policy-allow-all-32892247']
2024-09-17 09:25:43,937 - INFO - VN ctest-vn-72819486 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 09:25:43,937 - DEBUG - Verifying the vn in opserver
2024-09-17 09:25:43,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486 virtual network link through opserver 10.0.0.47
2024-09-17 09:25:43,937 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-17 09:25:44,256 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-17 09:25:44,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486?flat'}
2024-09-17 09:25:44,315 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-72819486 is found in opserver
2024-09-17 09:25:44,326 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 09:25:44,331 - DEBUG - VRF ids for VN ctest-vn-72819486: {}
2024-09-17 09:25:44,331 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-17 09:25:44,338 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e
2024-09-17 09:25:44,350 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36
2024-09-17 09:25:44,432 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9
2024-09-17 09:25:44,448 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9
2024-09-17 09:25:44,464 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0
2024-09-17 09:25:44,472 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0
2024-09-17 09:25:44,480 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/9bf97b08-acf8-492d-813d-9d6db22c2ab1
2024-09-17 09:25:44,488 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 09:25:44,488 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9
2024-09-17 09:25:44,504 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0
2024-09-17 09:25:44,523 - INFO - Verified VN network id 9 for VN ef717723-9e01-4a2a-a694-f942ebaa50b9
2024-09-17 09:25:44,523 - INFO - Verifications in API Server for VN ctest-vn-98313127 passed
2024-09-17 09:25:44,523 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9
2024-09-17 09:25:44,536 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0
2024-09-17 09:25:44,544 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/663c4476-4d4c-49be-aa50-091b974a57d0
2024-09-17 09:25:44,553 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/9bf97b08-acf8-492d-813d-9d6db22c2ab1
2024-09-17 09:25:44,567 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20391349', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17253702642291526186', 'uuid-lslong': '12003492972666179769'}, 'enable': 'true', 'created': '2024-09-17T09:25:42', 'last-modified': '2024-09-17T09:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.564122'}
2024-09-17 09:25:44,574 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 09:25:44,574 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98313127 passed
2024-09-17 09:25:44,575 - DEBUG - ====Verifying policy data for ctest-vn-98313127 in API_Server ======
2024-09-17 09:25:44,575 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2024-09-17 09:25:44,580 - DEBUG - Requesting: http://10.0.0.47:8082/domain/62cc0c24-9329-4f1f-90f0-d5588f68311e
2024-09-17 09:25:44,596 - DEBUG - Requesting: http://10.0.0.47:8082/project/50a3558f-f3a0-4af4-bdaf-703e51186c36
2024-09-17 09:25:44,686 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ef717723-9e01-4a2a-a694-f942ebaa50b9
2024-09-17 09:25:44,700 - DEBUG - ==>Verifying data for policy with id: afddacc9-5913-4e68-b0d1-be82d8879b63, fqn: ['default-domain', 'ctest-TestBasicPolicy-20391349', 'ctest-policy-allow-all-32892247']
2024-09-17 09:25:44,700 - INFO - VN ctest-vn-98313127 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 09:25:44,700 - DEBUG - Verifying the vn in opserver
2024-09-17 09:25:44,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127 virtual network link through opserver 10.0.0.47
2024-09-17 09:25:44,700 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2024-09-17 09:25:44,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127?flat'}
2024-09-17 09:25:44,711 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20391349:ctest-vn-98313127 is found in opserver
2024-09-17 09:25:44,722 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 09:25:44,727 - DEBUG - VRF ids for VN ctest-vn-98313127: {}
2024-09-17 09:25:44,784 - DEBUG - Services list from nova: [