2024-09-04 20:43:59,417 - INFO - Domain Default found not creating
2024-09-04 20:43:59,611 - INFO - Project ctest-TestBasicPolicy-88662079 not found, creating it
2024-09-04 20:44:00,105 - INFO - Created Project:ctest-TestBasicPolicy-88662079, ID : f2d9c589-f44e-4922-8321-f826bb5985a6
2024-09-04 20:44:01,698 - INFO - ================================================================================
2024-09-04 20:44:01,698 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-04 20:44:01,699 - 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-04 20:44:01,957 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.7': '0'}} with
2024-09-04 20:44:01,957 - INFO - Initial checks done. Running the testcase now
2024-09-04 20:44:01,957 - INFO -
2024-09-04 20:44:02,541 - DEBUG - Response for create_network : {'network': {'id': '07e76a24-2109-41ae-a5a8-725c534cc91f', 'name': 'ctest-vn-57162817', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'project_id': 'f2d9c589f44e49228321f826bb5985a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-vn-57162817'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 20:44:02,719 - DEBUG - Response for create_subnet : {'subnet': {'id': '35de523d-69bb-4090-b460-a6f349307d38', 'name': '', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'network_id': '07e76a24-2109-41ae-a5a8-725c534cc91f', 'ip_version': 4, 'cidr': '201.211.82.192/26', 'allocation_pools': [{'start': '201.211.82.194', 'end': '201.211.82.254'}], 'gateway_ip': '201.211.82.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.211.82.194', 'tags': [], 'project_id': 'f2d9c589f44e49228321f826bb5985a6'}}
2024-09-04 20:44:02,741 - INFO - Created VN ctest-vn-57162817
2024-09-04 20:44:02,795 - DEBUG - VN ctest-vn-57162817 UUID is 07e76a24-2109-41ae-a5a8-725c534cc91f
2024-09-04 20:44:03,112 - DEBUG - Response for create_network : {'network': {'id': 'd868f6ce-820b-40e9-8e45-de76e5f6df0c', 'name': 'ctest-vn-62082890', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'project_id': 'f2d9c589f44e49228321f826bb5985a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-vn-62082890'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 20:44:03,291 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a309903b-eb82-4dcb-ba07-995a0e586a3e', 'name': '', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'network_id': 'd868f6ce-820b-40e9-8e45-de76e5f6df0c', 'ip_version': 4, 'cidr': '136.118.149.64/26', 'allocation_pools': [{'start': '136.118.149.66', 'end': '136.118.149.126'}], 'gateway_ip': '136.118.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.118.149.66', 'tags': [], 'project_id': 'f2d9c589f44e49228321f826bb5985a6'}}
2024-09-04 20:44:03,313 - INFO - Created VN ctest-vn-62082890
2024-09-04 20:44:03,366 - DEBUG - VN ctest-vn-62082890 UUID is d868f6ce-820b-40e9-8e45-de76e5f6df0c
2024-09-04 20:44:03,492 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817, 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-88662079:ctest-vn-62082890, 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-04 20:44:03,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07e76a24-2109-41ae-a5a8-725c534cc91f', 'name': 'ctest-vn-57162817', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'project_id': 'f2d9c589f44e49228321f826bb5985a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35de523d-69bb-4090-b460-a6f349307d38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-vn-57162817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-policy-allow-all-61775017']], 'subnet_ipam': [{'subnet_cidr': '201.211.82.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 20:44:04,057 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd868f6ce-820b-40e9-8e45-de76e5f6df0c', 'name': 'ctest-vn-62082890', 'tenant_id': 'f2d9c589f44e49228321f826bb5985a6', 'project_id': 'f2d9c589f44e49228321f826bb5985a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a309903b-eb82-4dcb-ba07-995a0e586a3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-vn-62082890'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-policy-allow-all-61775017']], 'subnet_ipam': [{'subnet_cidr': '136.118.149.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 20:44:04,223 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-04 20:44:04,523 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-04 20:44:04,559 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586
2024-09-04 20:44:04,574 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6
2024-09-04 20:44:04,649 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f
2024-09-04 20:44:04,659 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f
2024-09-04 20:44:04,671 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac
2024-09-04 20:44:04,681 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac
2024-09-04 20:44:04,691 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/56121a53-61e9-4c82-9882-f679645ed0c4
2024-09-04 20:44:04,699 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 20:44:04,699 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f
2024-09-04 20:44:04,709 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac
2024-09-04 20:44:04,724 - INFO - Verified VN network id 8 for VN 07e76a24-2109-41ae-a5a8-725c534cc91f
2024-09-04 20:44:04,724 - INFO - Verifications in API Server for VN ctest-vn-57162817 passed
2024-09-04 20:44:04,724 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f
2024-09-04 20:44:04,734 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac
2024-09-04 20:44:04,743 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b22718a-bc80-42f7-b318-5bad42ede7ac
2024-09-04 20:44:04,752 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/56121a53-61e9-4c82-9882-f679645ed0c4
2024-09-04 20:44:04,767 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88662079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '569540581291278766', 'uuid-lslong': '11936916553205598495'}, 'enable': 'true', 'created': '2024-09-04T20:44:02', 'last-modified': '2024-09-04T20:44:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978945'}
2024-09-04 20:44:04,774 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 20:44:04,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57162817 passed
2024-09-04 20:44:04,774 - DEBUG - ====Verifying policy data for ctest-vn-57162817 in API_Server ======
2024-09-04 20:44:04,774 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-04 20:44:04,781 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586
2024-09-04 20:44:04,794 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6
2024-09-04 20:44:04,870 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/07e76a24-2109-41ae-a5a8-725c534cc91f
2024-09-04 20:44:04,879 - DEBUG - ==>Verifying data for policy with id: 206648aa-6b3e-4e93-90b4-fac1678f29d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-policy-allow-all-61775017']
2024-09-04 20:44:04,879 - INFO - VN ctest-vn-57162817 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 20:44:04,879 - DEBUG - Verifying the vn in opserver
2024-09-04 20:44:04,879 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817 virtual network link through opserver 10.0.0.48
2024-09-04 20:44:04,879 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-09-04 20:44:05,180 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-09-04 20:44:05,246 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817?flat'}
2024-09-04 20:44:05,246 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-57162817 is found in opserver
2024-09-04 20:44:05,261 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 20:44:05,268 - DEBUG - VRF ids for VN ctest-vn-57162817: {}
2024-09-04 20:44:05,268 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-04 20:44:05,276 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586
2024-09-04 20:44:05,288 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6
2024-09-04 20:44:05,360 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c
2024-09-04 20:44:05,372 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c
2024-09-04 20:44:05,380 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88
2024-09-04 20:44:05,389 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88
2024-09-04 20:44:05,398 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/72a377a1-3968-4b40-9e2e-f45746ee1bd6
2024-09-04 20:44:05,405 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 20:44:05,405 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c
2024-09-04 20:44:05,414 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88
2024-09-04 20:44:05,428 - INFO - Verified VN network id 9 for VN d868f6ce-820b-40e9-8e45-de76e5f6df0c
2024-09-04 20:44:05,428 - INFO - Verifications in API Server for VN ctest-vn-62082890 passed
2024-09-04 20:44:05,428 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c
2024-09-04 20:44:05,437 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88
2024-09-04 20:44:05,445 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5b0c3efd-c3b8-4352-9495-a94537f1ae88
2024-09-04 20:44:05,452 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/72a377a1-3968-4b40-9e2e-f45746ee1bd6
2024-09-04 20:44:05,466 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88662079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15593985076575813865', 'uuid-lslong': '10251844729024470796'}, 'enable': 'true', 'created': '2024-09-04T20:44:03', 'last-modified': '2024-09-04T20:44:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.434964'}
2024-09-04 20:44:05,474 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 20:44:05,474 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62082890 passed
2024-09-04 20:44:05,475 - DEBUG - ====Verifying policy data for ctest-vn-62082890 in API_Server ======
2024-09-04 20:44:05,475 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-09-04 20:44:05,482 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a7e1fb32-9861-4b77-86aa-03cc603b4586
2024-09-04 20:44:05,496 - DEBUG - Requesting: http://10.0.0.48:8082/project/f2d9c589-f44e-4922-8321-f826bb5985a6
2024-09-04 20:44:05,573 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d868f6ce-820b-40e9-8e45-de76e5f6df0c
2024-09-04 20:44:05,582 - DEBUG - ==>Verifying data for policy with id: 206648aa-6b3e-4e93-90b4-fac1678f29d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-88662079', 'ctest-policy-allow-all-61775017']
2024-09-04 20:44:05,582 - INFO - VN ctest-vn-62082890 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 20:44:05,582 - DEBUG - Verifying the vn in opserver
2024-09-04 20:44:05,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890 virtual network link through opserver 10.0.0.48
2024-09-04 20:44:05,582 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-09-04 20:44:05,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890?flat'}
2024-09-04 20:44:05,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88662079:ctest-vn-62082890 is found in opserver
2024-09-04 20:44:05,605 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 20:44:05,618 - DEBUG - VRF ids for VN ctest-vn-62082890: {}
2024-09-04 20:44:05,680 - DEBUG - Services list from nova: [