2024-11-08 13:59:38,127 - INFO - Domain Default found not creating
2024-11-08 13:59:38,294 - INFO - Project ctest-TestBasicPolicy-25311271 not found, creating it
2024-11-08 13:59:38,787 - INFO - Created Project:ctest-TestBasicPolicy-25311271, ID : 370c3c7b-d5a4-43bd-8bbf-91690b8557bd
2024-11-08 13:59:40,255 - INFO - ================================================================================
2024-11-08 13:59:40,256 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 13:59:40,256 - 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-11-08 13:59:40,515 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.13': '0'}} with
2024-11-08 13:59:40,515 - INFO - Initial checks done. Running the testcase now
2024-11-08 13:59:40,516 - INFO -
2024-11-08 13:59:41,129 - DEBUG - Response for create_network : {'network': {'id': '4a1ddb19-d0ce-46c5-8f86-3819c4b39190', 'name': 'ctest-vn-01982695', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-vn-01982695'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 13:59:41,335 - DEBUG - Response for create_subnet : {'subnet': {'id': '80d4af21-fb96-4165-bb77-6f4844a94ab1', 'name': '', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'network_id': '4a1ddb19-d0ce-46c5-8f86-3819c4b39190', 'ip_version': 4, 'cidr': '70.127.253.128/26', 'allocation_pools': [{'start': '70.127.253.130', 'end': '70.127.253.190'}], 'gateway_ip': '70.127.253.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.127.253.130', 'tags': [], 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd'}}
2024-11-08 13:59:41,355 - INFO - Created VN ctest-vn-01982695
2024-11-08 13:59:41,413 - DEBUG - VN ctest-vn-01982695 UUID is 4a1ddb19-d0ce-46c5-8f86-3819c4b39190
2024-11-08 13:59:41,730 - DEBUG - Response for create_network : {'network': {'id': '1429e29d-4f2a-4a25-b15d-bc64be71a6cf', 'name': 'ctest-vn-51077479', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-vn-51077479'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 13:59:41,966 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0f5694f-5f48-450c-93c4-367ad22dd13f', 'name': '', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'network_id': '1429e29d-4f2a-4a25-b15d-bc64be71a6cf', 'ip_version': 4, 'cidr': '172.138.184.64/26', 'allocation_pools': [{'start': '172.138.184.66', 'end': '172.138.184.126'}], 'gateway_ip': '172.138.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.138.184.66', 'tags': [], 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd'}}
2024-11-08 13:59:41,983 - INFO - Created VN ctest-vn-51077479
2024-11-08 13:59:42,037 - DEBUG - VN ctest-vn-51077479 UUID is 1429e29d-4f2a-4a25-b15d-bc64be71a6cf
2024-11-08 13:59:42,135 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695, 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-25311271:ctest-vn-51077479, 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-11-08 13:59:42,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a1ddb19-d0ce-46c5-8f86-3819c4b39190', 'name': 'ctest-vn-01982695', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80d4af21-fb96-4165-bb77-6f4844a94ab1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-vn-01982695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-policy-allow-all-97051792']], 'subnet_ipam': [{'subnet_cidr': '70.127.253.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 13:59:42,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1429e29d-4f2a-4a25-b15d-bc64be71a6cf', 'name': 'ctest-vn-51077479', 'tenant_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'project_id': '370c3c7bd5a443bd8bbf91690b8557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0f5694f-5f48-450c-93c4-367ad22dd13f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-vn-51077479'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-policy-allow-all-97051792']], 'subnet_ipam': [{'subnet_cidr': '172.138.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 13:59:42,913 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-11-08 13:59:43,210 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-11-08 13:59:43,241 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841
2024-11-08 13:59:43,256 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd
2024-11-08 13:59:43,355 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190
2024-11-08 13:59:43,369 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190
2024-11-08 13:59:43,383 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9
2024-11-08 13:59:43,391 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9
2024-11-08 13:59:43,400 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/fb134b3d-e2b7-403e-9335-4c0d8a58d051
2024-11-08 13:59:43,408 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 13:59:43,408 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190
2024-11-08 13:59:43,422 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9
2024-11-08 13:59:43,439 - INFO - Verified VN network id 8 for VN 4a1ddb19-d0ce-46c5-8f86-3819c4b39190
2024-11-08 13:59:43,439 - INFO - Verifications in API Server for VN ctest-vn-01982695 passed
2024-11-08 13:59:43,439 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190
2024-11-08 13:59:43,451 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9
2024-11-08 13:59:43,459 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/82088a9a-cb18-4a5a-ab1b-953fc27ad3b9
2024-11-08 13:59:43,466 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/fb134b3d-e2b7-403e-9335-4c0d8a58d051
2024-11-08 13:59:43,478 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25311271', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5340665637055121093', 'uuid-lslong': '10342015277628363152'}, 'enable': 'true', 'created': '2024-11-08T13:59:41', 'last-modified': '2024-11-08T13:59:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.051016'}
2024-11-08 13:59:43,486 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 13:59:43,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01982695 passed
2024-11-08 13:59:43,487 - DEBUG - ====Verifying policy data for ctest-vn-01982695 in API_Server ======
2024-11-08 13:59:43,487 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-11-08 13:59:43,493 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841
2024-11-08 13:59:43,505 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd
2024-11-08 13:59:43,579 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/4a1ddb19-d0ce-46c5-8f86-3819c4b39190
2024-11-08 13:59:43,592 - DEBUG - ==>Verifying data for policy with id: 962f0018-623d-47eb-a8d5-cf185c5c3e6e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-policy-allow-all-97051792']
2024-11-08 13:59:43,592 - INFO - VN ctest-vn-01982695 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 13:59:43,592 - DEBUG - Verifying the vn in opserver
2024-11-08 13:59:43,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695 virtual network link through opserver 10.0.0.52
2024-11-08 13:59:43,593 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-11-08 13:59:43,899 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-11-08 13:59:43,961 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695?flat'}
2024-11-08 13:59:43,961 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-01982695 is found in opserver
2024-11-08 13:59:43,972 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 13:59:43,978 - DEBUG - VRF ids for VN ctest-vn-01982695: {}
2024-11-08 13:59:43,978 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-11-08 13:59:43,984 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841
2024-11-08 13:59:43,997 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd
2024-11-08 13:59:44,079 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf
2024-11-08 13:59:44,095 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf
2024-11-08 13:59:44,109 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7
2024-11-08 13:59:44,118 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7
2024-11-08 13:59:44,127 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/8561ecf0-0447-49e8-963b-fc42acee87f1
2024-11-08 13:59:44,137 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 13:59:44,137 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf
2024-11-08 13:59:44,151 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7
2024-11-08 13:59:44,175 - INFO - Verified VN network id 9 for VN 1429e29d-4f2a-4a25-b15d-bc64be71a6cf
2024-11-08 13:59:44,175 - INFO - Verifications in API Server for VN ctest-vn-51077479 passed
2024-11-08 13:59:44,175 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf
2024-11-08 13:59:44,189 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7
2024-11-08 13:59:44,197 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/29724531-5ada-45e7-a9ff-0f0e3d0679f7
2024-11-08 13:59:44,204 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/8561ecf0-0447-49e8-963b-fc42acee87f1
2024-11-08 13:59:44,218 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25311271', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1452941520069610021', 'uuid-lslong': '12780578458425206479'}, 'enable': 'true', 'created': '2024-11-08T13:59:41', 'last-modified': '2024-11-08T13:59:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.537247'}
2024-11-08 13:59:44,224 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 13:59:44,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51077479 passed
2024-11-08 13:59:44,225 - DEBUG - ====Verifying policy data for ctest-vn-51077479 in API_Server ======
2024-11-08 13:59:44,225 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-11-08 13:59:44,231 - DEBUG - Requesting: http://10.0.0.52:8082/domain/7b25375f-6760-4ddf-a546-aa8d80397841
2024-11-08 13:59:44,243 - DEBUG - Requesting: http://10.0.0.52:8082/project/370c3c7b-d5a4-43bd-8bbf-91690b8557bd
2024-11-08 13:59:44,338 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/1429e29d-4f2a-4a25-b15d-bc64be71a6cf
2024-11-08 13:59:44,353 - DEBUG - ==>Verifying data for policy with id: 962f0018-623d-47eb-a8d5-cf185c5c3e6e, fqn: ['default-domain', 'ctest-TestBasicPolicy-25311271', 'ctest-policy-allow-all-97051792']
2024-11-08 13:59:44,353 - INFO - VN ctest-vn-51077479 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 13:59:44,353 - DEBUG - Verifying the vn in opserver
2024-11-08 13:59:44,353 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479 virtual network link through opserver 10.0.0.52
2024-11-08 13:59:44,353 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-11-08 13:59:44,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479?flat'}
2024-11-08 13:59:44,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25311271:ctest-vn-51077479 is found in opserver
2024-11-08 13:59:44,377 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 13:59:44,383 - DEBUG - VRF ids for VN ctest-vn-51077479: {}
2024-11-08 13:59:44,443 - DEBUG - Services list from nova: [