2024-09-11 15:25:38,470 - INFO - Domain Default found not creating
2024-09-11 15:25:38,626 - INFO - Project ctest-TestBasicPolicy-57099532 not found, creating it
2024-09-11 15:25:39,092 - INFO - Created Project:ctest-TestBasicPolicy-57099532, ID : 8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff
2024-09-11 15:25:40,723 - INFO - ================================================================================
2024-09-11 15:25:40,723 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 15:25:40,723 - 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-11 15:25:40,978 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.20': '0'}} with
2024-09-11 15:25:40,978 - INFO - Initial checks done. Running the testcase now
2024-09-11 15:25:40,978 - INFO -
2024-09-11 15:25:41,545 - DEBUG - Response for create_network : {'network': {'id': '1fc9e5d6-de54-4deb-a4e7-844d45921389', 'name': 'ctest-vn-82523696', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-vn-82523696'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 15:25:41,755 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c910e1b-6a06-40f5-9a85-b2de92264dc4', 'name': '', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'network_id': '1fc9e5d6-de54-4deb-a4e7-844d45921389', 'ip_version': 4, 'cidr': '170.241.88.64/26', 'allocation_pools': [{'start': '170.241.88.66', 'end': '170.241.88.126'}], 'gateway_ip': '170.241.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.241.88.66', 'tags': [], 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff'}}
2024-09-11 15:25:41,773 - INFO - Created VN ctest-vn-82523696
2024-09-11 15:25:41,825 - DEBUG - VN ctest-vn-82523696 UUID is 1fc9e5d6-de54-4deb-a4e7-844d45921389
2024-09-11 15:25:42,100 - DEBUG - Response for create_network : {'network': {'id': '21b90a63-dcef-4878-92cc-fb076d05bc15', 'name': 'ctest-vn-77220251', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-vn-77220251'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 15:25:42,284 - DEBUG - Response for create_subnet : {'subnet': {'id': '62ea6984-b847-4772-a8cb-c44dcaa24ae2', 'name': '', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'network_id': '21b90a63-dcef-4878-92cc-fb076d05bc15', 'ip_version': 4, 'cidr': '134.27.178.192/26', 'allocation_pools': [{'start': '134.27.178.194', 'end': '134.27.178.254'}], 'gateway_ip': '134.27.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.27.178.194', 'tags': [], 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff'}}
2024-09-11 15:25:42,303 - INFO - Created VN ctest-vn-77220251
2024-09-11 15:25:42,353 - DEBUG - VN ctest-vn-77220251 UUID is 21b90a63-dcef-4878-92cc-fb076d05bc15
2024-09-11 15:25:42,465 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696, 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-57099532:ctest-vn-77220251, 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-11 15:25:42,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fc9e5d6-de54-4deb-a4e7-844d45921389', 'name': 'ctest-vn-82523696', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c910e1b-6a06-40f5-9a85-b2de92264dc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-vn-82523696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-policy-allow-all-85257778']], 'subnet_ipam': [{'subnet_cidr': '170.241.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 15:25:42,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21b90a63-dcef-4878-92cc-fb076d05bc15', 'name': 'ctest-vn-77220251', 'tenant_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'project_id': '8bdd9e75c4c64726adf34db5c5d3d6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62ea6984-b847-4772-a8cb-c44dcaa24ae2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-vn-77220251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-policy-allow-all-85257778']], 'subnet_ipam': [{'subnet_cidr': '134.27.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 15:25:43,165 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-11 15:25:43,460 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-11 15:25:43,491 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67
2024-09-11 15:25:43,504 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff
2024-09-11 15:25:43,576 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389
2024-09-11 15:25:43,587 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389
2024-09-11 15:25:43,596 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29
2024-09-11 15:25:43,605 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29
2024-09-11 15:25:43,613 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/dfcb48dc-3bbb-438d-a73c-fa50e5bb8cb4
2024-09-11 15:25:43,620 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 15:25:43,620 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389
2024-09-11 15:25:43,628 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29
2024-09-11 15:25:43,641 - INFO - Verified VN network id 9 for VN 1fc9e5d6-de54-4deb-a4e7-844d45921389
2024-09-11 15:25:43,641 - INFO - Verifications in API Server for VN ctest-vn-82523696 passed
2024-09-11 15:25:43,641 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389
2024-09-11 15:25:43,650 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29
2024-09-11 15:25:43,658 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0c23f75-31ac-420d-ba85-017b91358c29
2024-09-11 15:25:43,665 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/dfcb48dc-3bbb-438d-a73c-fa50e5bb8cb4
2024-09-11 15:25:43,677 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57099532', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2290614596510436843', 'uuid-lslong': '11882611609254892425'}, 'enable': 'true', 'created': '2024-09-11T15:25:41', 'last-modified': '2024-09-11T15:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938392'}
2024-09-11 15:25:43,684 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 15:25:43,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82523696 passed
2024-09-11 15:25:43,684 - DEBUG - ====Verifying policy data for ctest-vn-82523696 in API_Server ======
2024-09-11 15:25:43,685 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-11 15:25:43,690 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67
2024-09-11 15:25:43,702 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff
2024-09-11 15:25:43,772 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1fc9e5d6-de54-4deb-a4e7-844d45921389
2024-09-11 15:25:43,779 - DEBUG - ==>Verifying data for policy with id: a91218a3-f012-4f67-80a2-daa04e87f68e, fqn: ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-policy-allow-all-85257778']
2024-09-11 15:25:43,779 - INFO - VN ctest-vn-82523696 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 15:25:43,780 - DEBUG - Verifying the vn in opserver
2024-09-11 15:25:43,780 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696 virtual network link through opserver 10.0.0.37
2024-09-11 15:25:43,780 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-11 15:25:44,078 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-11 15:25:44,154 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696?flat'}
2024-09-11 15:25:44,155 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-82523696 is found in opserver
2024-09-11 15:25:44,166 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 15:25:44,171 - DEBUG - VRF ids for VN ctest-vn-82523696: {}
2024-09-11 15:25:44,171 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-11 15:25:44,177 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67
2024-09-11 15:25:44,191 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff
2024-09-11 15:25:44,261 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15
2024-09-11 15:25:44,272 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15
2024-09-11 15:25:44,281 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94
2024-09-11 15:25:44,289 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94
2024-09-11 15:25:44,296 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7c6d5aa8-76d1-4093-b836-9ee6cae4d8b6
2024-09-11 15:25:44,303 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 15:25:44,303 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15
2024-09-11 15:25:44,312 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94
2024-09-11 15:25:44,324 - INFO - Verified VN network id 10 for VN 21b90a63-dcef-4878-92cc-fb076d05bc15
2024-09-11 15:25:44,324 - INFO - Verifications in API Server for VN ctest-vn-77220251 passed
2024-09-11 15:25:44,324 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15
2024-09-11 15:25:44,333 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94
2024-09-11 15:25:44,340 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/c75e9772-1338-44f1-932e-63a30f1b5f94
2024-09-11 15:25:44,346 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7c6d5aa8-76d1-4093-b836-9ee6cae4d8b6
2024-09-11 15:25:44,357 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57099532', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2429984897967802488', 'uuid-lslong': '10578105634098887701'}, 'enable': 'true', 'created': '2024-09-11T15:25:42', 'last-modified': '2024-09-11T15:25:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385140'}
2024-09-11 15:25:44,364 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 15:25:44,364 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77220251 passed
2024-09-11 15:25:44,365 - DEBUG - ====Verifying policy data for ctest-vn-77220251 in API_Server ======
2024-09-11 15:25:44,365 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-11 15:25:44,371 - DEBUG - Requesting: http://10.0.0.37:8082/domain/3b0dae1f-9bb6-4524-afe1-382e76ed0a67
2024-09-11 15:25:44,382 - DEBUG - Requesting: http://10.0.0.37:8082/project/8bdd9e75-c4c6-4726-adf3-4db5c5d3d6ff
2024-09-11 15:25:44,452 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/21b90a63-dcef-4878-92cc-fb076d05bc15
2024-09-11 15:25:44,461 - DEBUG - ==>Verifying data for policy with id: a91218a3-f012-4f67-80a2-daa04e87f68e, fqn: ['default-domain', 'ctest-TestBasicPolicy-57099532', 'ctest-policy-allow-all-85257778']
2024-09-11 15:25:44,461 - INFO - VN ctest-vn-77220251 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 15:25:44,461 - DEBUG - Verifying the vn in opserver
2024-09-11 15:25:44,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251 virtual network link through opserver 10.0.0.37
2024-09-11 15:25:44,461 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-11 15:25:44,472 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251?flat'}
2024-09-11 15:25:44,472 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57099532:ctest-vn-77220251 is found in opserver
2024-09-11 15:25:44,483 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 15:25:44,488 - DEBUG - VRF ids for VN ctest-vn-77220251: {}
2024-09-11 15:25:44,546 - DEBUG - Services list from nova: [