2024-09-03 14:30:16,032 - INFO - Reading existing Domain with UUID 2de1d231-db55-4838-af7f-331e8edb8f37
2024-09-03 14:30:16,048 - INFO - Using existing domain ['admin_domain'](2de1d231-db55-4838-af7f-331e8edb8f37)
2024-09-03 14:30:16,271 - INFO - Project ctest-TestBasicPolicy-93146647 not found, creating it
2024-09-03 14:30:16,799 - INFO - Created Project:ctest-TestBasicPolicy-93146647, ID : 49f46e12-212d-4cf2-9bec-a596ddc8d60f
2024-09-03 14:30:18,670 - INFO - ================================================================================
2024-09-03 14:30:18,670 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-03 14:30:18,670 - 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-03 14:30:19,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with
2024-09-03 14:30:19,060 - INFO - Initial checks done. Running the testcase now
2024-09-03 14:30:19,060 - INFO -
2024-09-03 14:30:19,862 - DEBUG - Response for create_network : {'network': {'id': 'ef9c010a-bf25-4dbd-8e53-5f6343380773', 'name': 'ctest-vn-53053538', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'project_id': '49f46e12212d4cf29beca596ddc8d60f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-vn-53053538'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-03 14:30:20,128 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3d8baf5-1f56-4f38-98b6-bc9e12ab7efd', 'name': '', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'network_id': 'ef9c010a-bf25-4dbd-8e53-5f6343380773', 'ip_version': 4, 'cidr': '113.68.150.0/26', 'allocation_pools': [{'start': '113.68.150.2', 'end': '113.68.150.62'}], 'gateway_ip': '113.68.150.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-03T14:30:20.014425', 'updated_at': '2024-09-03T14:30:20.014425', 'dns_server_address': '113.68.150.2', 'tags': [], 'project_id': '49f46e12212d4cf29beca596ddc8d60f'}}
2024-09-03 14:30:20,196 - INFO - Created VN ctest-vn-53053538
2024-09-03 14:30:20,250 - DEBUG - VN ctest-vn-53053538 UUID is ef9c010a-bf25-4dbd-8e53-5f6343380773
2024-09-03 14:30:20,800 - DEBUG - Response for create_network : {'network': {'id': 'a8b41643-1acb-40b6-bf00-b6e5892c6b32', 'name': 'ctest-vn-53433134', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'project_id': '49f46e12212d4cf29beca596ddc8d60f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-vn-53433134'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-09-03 14:30:21,056 - DEBUG - Response for create_subnet : {'subnet': {'id': '95d8db70-e1c2-48e6-8d5a-f6849150431f', 'name': '', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'network_id': 'a8b41643-1acb-40b6-bf00-b6e5892c6b32', 'ip_version': 4, 'cidr': '52.49.183.0/26', 'allocation_pools': [{'start': '52.49.183.2', 'end': '52.49.183.62'}], 'gateway_ip': '52.49.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-09-03T14:30:20.945113', 'updated_at': '2024-09-03T14:30:20.945113', 'dns_server_address': '52.49.183.2', 'tags': [], 'project_id': '49f46e12212d4cf29beca596ddc8d60f'}}
2024-09-03 14:30:21,128 - INFO - Created VN ctest-vn-53433134
2024-09-03 14:30:21,183 - DEBUG - VN ctest-vn-53433134 UUID is a8b41643-1acb-40b6-bf00-b6e5892c6b32
2024-09-03 14:30:21,406 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134, 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-03 14:30:21,831 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef9c010a-bf25-4dbd-8e53-5f6343380773', 'name': 'ctest-vn-53053538', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'project_id': '49f46e12212d4cf29beca596ddc8d60f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3d8baf5-1f56-4f38-98b6-bc9e12ab7efd'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-vn-53053538'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-policy-allow-all-87171508']], 'subnet_ipam': [{'subnet_cidr': '113.68.150.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-03T14:30:19.786154', 'updated_at': '2024-09-03T14:30:20.029371'}}
2024-09-03 14:30:22,242 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8b41643-1acb-40b6-bf00-b6e5892c6b32', 'name': 'ctest-vn-53433134', 'tenant_id': '49f46e12212d4cf29beca596ddc8d60f', 'project_id': '49f46e12212d4cf29beca596ddc8d60f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95d8db70-e1c2-48e6-8d5a-f6849150431f'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-vn-53433134'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-policy-allow-all-87171508']], 'subnet_ipam': [{'subnet_cidr': '52.49.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-09-03T14:30:20.715033', 'updated_at': '2024-09-03T14:30:20.960950'}}
2024-09-03 14:30:22,442 - DEBUG - Requesting: https://10.0.0.50:8082/domains
2024-09-03 14:30:22,790 - DEBUG - Requesting: https://10.0.0.50:8082/domains
2024-09-03 14:30:22,878 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37
2024-09-03 14:30:22,939 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f
2024-09-03 14:30:23,020 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773
2024-09-03 14:30:23,079 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773
2024-09-03 14:30:23,136 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4
2024-09-03 14:30:23,192 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4
2024-09-03 14:30:23,248 - DEBUG - Requesting: https://10.0.0.50:8082/route-target/ec6f939f-5bd7-40ff-bd58-2b00f661ab81
2024-09-03 14:30:23,303 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 14:30:23,303 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773
2024-09-03 14:30:23,368 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4
2024-09-03 14:30:23,433 - INFO - Verified VN network id 7 for VN ef9c010a-bf25-4dbd-8e53-5f6343380773
2024-09-03 14:30:23,433 - INFO - Verifications in API Server for VN ctest-vn-53053538 passed
2024-09-03 14:30:23,433 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773
2024-09-03 14:30:23,494 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4
2024-09-03 14:30:23,547 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/0f3bf1bd-3a87-46ad-a921-3067306031a4
2024-09-03 14:30:23,603 - DEBUG - Requesting: https://10.0.0.50:8082/route-target/ec6f939f-5bd7-40ff-bd58-2b00f661ab81
2024-09-03 14:30:23,715 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93146647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17265676217099832765', 'uuid-lslong': '10255645656386897779'}, 'enable': 'true', 'created': '2024-09-03T14:30:19', 'last-modified': '2024-09-03T14:30:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.908674'}
2024-09-03 14:30:23,768 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 14:30:23,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53053538 passed
2024-09-03 14:30:23,768 - DEBUG - ====Verifying policy data for ctest-vn-53053538 in API_Server ======
2024-09-03 14:30:23,768 - DEBUG - Requesting: https://10.0.0.50:8082/domains
2024-09-03 14:30:23,822 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37
2024-09-03 14:30:23,883 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f
2024-09-03 14:30:23,973 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/ef9c010a-bf25-4dbd-8e53-5f6343380773
2024-09-03 14:30:24,028 - DEBUG - ==>Verifying data for policy with id: 47a229d5-dd26-4f59-96ab-17eb55e262db, fqn: ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-policy-allow-all-87171508']
2024-09-03 14:30:24,028 - INFO - VN ctest-vn-53053538 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 14:30:24,029 - DEBUG - Verifying the vn in opserver
2024-09-03 14:30:24,029 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538 virtual network link through opserver 10.0.0.50
2024-09-03 14:30:24,029 - DEBUG - Requesting: https://10.0.0.50:8081/analytics/uves/virtual-networks
2024-09-03 14:30:24,375 - DEBUG - Requesting: https://10.0.0.50:8081/analytics/uves/virtual-networks
2024-09-03 14:30:24,507 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538', 'href': 'https://10.0.0.50:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538?flat'}
2024-09-03 14:30:24,507 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53053538 is found in opserver
2024-09-03 14:30:24,611 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 14:30:24,667 - DEBUG - VRF ids for VN ctest-vn-53053538: {}
2024-09-03 14:30:24,667 - DEBUG - Requesting: https://10.0.0.50:8082/domains
2024-09-03 14:30:24,727 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37
2024-09-03 14:30:24,787 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f
2024-09-03 14:30:24,876 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32
2024-09-03 14:30:24,936 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32
2024-09-03 14:30:24,996 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a
2024-09-03 14:30:25,059 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a
2024-09-03 14:30:25,115 - DEBUG - Requesting: https://10.0.0.50:8082/route-target/0c34e97e-4d62-474e-87be-bcd407d4ee55
2024-09-03 14:30:25,171 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 14:30:25,171 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32
2024-09-03 14:30:25,228 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a
2024-09-03 14:30:25,298 - INFO - Verified VN network id 8 for VN a8b41643-1acb-40b6-bf00-b6e5892c6b32
2024-09-03 14:30:25,299 - INFO - Verifications in API Server for VN ctest-vn-53433134 passed
2024-09-03 14:30:25,299 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32
2024-09-03 14:30:25,357 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a
2024-09-03 14:30:25,411 - DEBUG - Requesting: https://10.0.0.50:8082/routing-instance/95b54e5a-3324-4c56-a62b-be1a09fa023a
2024-09-03 14:30:25,468 - DEBUG - Requesting: https://10.0.0.50:8082/route-target/0c34e97e-4d62-474e-87be-bcd407d4ee55
2024-09-03 14:30:25,583 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93146647', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12156365771647959222', 'uuid-lslong': '13763201558209391410'}, 'enable': 'true', 'created': '2024-09-03T14:30:20', 'last-modified': '2024-09-03T14:30:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.413964'}
2024-09-03 14:30:25,636 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 14:30:25,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53433134 passed
2024-09-03 14:30:25,636 - DEBUG - ====Verifying policy data for ctest-vn-53433134 in API_Server ======
2024-09-03 14:30:25,636 - DEBUG - Requesting: https://10.0.0.50:8082/domains
2024-09-03 14:30:25,694 - DEBUG - Requesting: https://10.0.0.50:8082/domain/2de1d231-db55-4838-af7f-331e8edb8f37
2024-09-03 14:30:25,755 - DEBUG - Requesting: https://10.0.0.50:8082/project/49f46e12-212d-4cf2-9bec-a596ddc8d60f
2024-09-03 14:30:25,845 - DEBUG - Requesting: https://10.0.0.50:8082/virtual-network/a8b41643-1acb-40b6-bf00-b6e5892c6b32
2024-09-03 14:30:25,904 - DEBUG - ==>Verifying data for policy with id: 47a229d5-dd26-4f59-96ab-17eb55e262db, fqn: ['admin_domain', 'ctest-TestBasicPolicy-93146647', 'ctest-policy-allow-all-87171508']
2024-09-03 14:30:25,904 - INFO - VN ctest-vn-53433134 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 14:30:25,904 - DEBUG - Verifying the vn in opserver
2024-09-03 14:30:25,904 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134 virtual network link through opserver 10.0.0.50
2024-09-03 14:30:25,904 - DEBUG - Requesting: https://10.0.0.50:8081/analytics/uves/virtual-networks
2024-09-03 14:30:25,962 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134', 'href': 'https://10.0.0.50:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134?flat'}
2024-09-03 14:30:25,962 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-93146647:ctest-vn-53433134 is found in opserver
2024-09-03 14:30:26,063 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 14:30:26,115 - DEBUG - VRF ids for VN ctest-vn-53433134: {}
2024-09-03 14:30:26,182 - DEBUG - Services list from nova: [