2024-10-24 14:33:15,516 - INFO - Domain Default found not creating
2024-10-24 14:33:15,695 - INFO - Project ctest-TestBasicPolicy-68175458 not found, creating it
2024-10-24 14:33:16,175 - INFO - Created Project:ctest-TestBasicPolicy-68175458, ID : 030df691-e583-4a5d-8f37-53da6e92d116
2024-10-24 14:33:17,722 - INFO - ================================================================================
2024-10-24 14:33:17,722 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-24 14:33:17,722 - 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-10-24 14:33:17,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.17': '0'}} with
2024-10-24 14:33:17,980 - INFO - Initial checks done. Running the testcase now
2024-10-24 14:33:17,980 - INFO -
2024-10-24 14:33:18,554 - DEBUG - Response for create_network : {'network': {'id': '1b28457e-1fb9-40a0-9595-c5e2faeae9cd', 'name': 'ctest-vn-17988529', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'project_id': '030df691e5834a5d8f3753da6e92d116', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-vn-17988529'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 14:33:18,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '151d8672-cfb3-40db-ac86-c6aada281ab4', 'name': '', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'network_id': '1b28457e-1fb9-40a0-9595-c5e2faeae9cd', 'ip_version': 4, 'cidr': '195.103.208.128/26', 'allocation_pools': [{'start': '195.103.208.130', 'end': '195.103.208.190'}], 'gateway_ip': '195.103.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.103.208.130', 'tags': [], 'project_id': '030df691e5834a5d8f3753da6e92d116'}}
2024-10-24 14:33:18,769 - INFO - Created VN ctest-vn-17988529
2024-10-24 14:33:18,826 - DEBUG - VN ctest-vn-17988529 UUID is 1b28457e-1fb9-40a0-9595-c5e2faeae9cd
2024-10-24 14:33:19,156 - DEBUG - Response for create_network : {'network': {'id': '7dec2325-af4b-4eb2-879b-c3049cfc4b8f', 'name': 'ctest-vn-80972663', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'project_id': '030df691e5834a5d8f3753da6e92d116', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-vn-80972663'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 14:33:19,363 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0e4896b-9a6d-49cd-b01f-51d5a7524c99', 'name': '', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'network_id': '7dec2325-af4b-4eb2-879b-c3049cfc4b8f', 'ip_version': 4, 'cidr': '4.90.28.192/26', 'allocation_pools': [{'start': '4.90.28.194', 'end': '4.90.28.254'}], 'gateway_ip': '4.90.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.90.28.194', 'tags': [], 'project_id': '030df691e5834a5d8f3753da6e92d116'}}
2024-10-24 14:33:19,385 - INFO - Created VN ctest-vn-80972663
2024-10-24 14:33:19,442 - DEBUG - VN ctest-vn-80972663 UUID is 7dec2325-af4b-4eb2-879b-c3049cfc4b8f
2024-10-24 14:33:19,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529, 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-68175458:ctest-vn-80972663, 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-10-24 14:33:19,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b28457e-1fb9-40a0-9595-c5e2faeae9cd', 'name': 'ctest-vn-17988529', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'project_id': '030df691e5834a5d8f3753da6e92d116', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['151d8672-cfb3-40db-ac86-c6aada281ab4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-vn-17988529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-policy-allow-all-06787313']], 'subnet_ipam': [{'subnet_cidr': '195.103.208.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 14:33:20,162 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7dec2325-af4b-4eb2-879b-c3049cfc4b8f', 'name': 'ctest-vn-80972663', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'project_id': '030df691e5834a5d8f3753da6e92d116', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0e4896b-9a6d-49cd-b01f-51d5a7524c99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-vn-80972663'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-policy-allow-all-06787313']], 'subnet_ipam': [{'subnet_cidr': '4.90.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 14:33:20,330 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-10-24 14:33:20,627 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-10-24 14:33:20,661 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117
2024-10-24 14:33:20,679 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116
2024-10-24 14:33:20,766 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd
2024-10-24 14:33:20,783 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd
2024-10-24 14:33:20,798 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385
2024-10-24 14:33:20,810 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385
2024-10-24 14:33:20,821 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/8f4624f9-f725-44c2-8215-1ed3c5814735
2024-10-24 14:33:20,831 - DEBUG - Route Targets: ['target:64512:8000004']
2024-10-24 14:33:20,831 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd
2024-10-24 14:33:20,849 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385
2024-10-24 14:33:20,875 - INFO - Verified VN network id 9 for VN 1b28457e-1fb9-40a0-9595-c5e2faeae9cd
2024-10-24 14:33:20,875 - INFO - Verifications in API Server for VN ctest-vn-17988529 passed
2024-10-24 14:33:20,875 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd
2024-10-24 14:33:20,893 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385
2024-10-24 14:33:20,905 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385
2024-10-24 14:33:20,918 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/8f4624f9-f725-44c2-8215-1ed3c5814735
2024-10-24 14:33:20,933 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68175458', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1956890446092910752', 'uuid-lslong': '10778738861844130253'}, 'enable': 'true', 'created': '2024-10-24T14:33:18', 'last-modified': '2024-10-24T14:33:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072448'}
2024-10-24 14:33:20,940 - DEBUG - Route Targets: ['target:64512:8000004']
2024-10-24 14:33:20,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17988529 passed
2024-10-24 14:33:20,941 - DEBUG - ====Verifying policy data for ctest-vn-17988529 in API_Server ======
2024-10-24 14:33:20,941 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-10-24 14:33:20,948 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117
2024-10-24 14:33:20,964 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116
2024-10-24 14:33:21,052 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd
2024-10-24 14:33:21,067 - DEBUG - ==>Verifying data for policy with id: 15f1ad0e-3e4d-4080-99af-c7742eb4e545, fqn: ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-policy-allow-all-06787313']
2024-10-24 14:33:21,067 - INFO - VN ctest-vn-17988529 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 14:33:21,067 - DEBUG - Verifying the vn in opserver
2024-10-24 14:33:21,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529 virtual network link through opserver 10.0.0.54
2024-10-24 14:33:21,067 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-10-24 14:33:21,362 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-10-24 14:33:21,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529?flat'}
2024-10-24 14:33:21,425 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529 is found in opserver
2024-10-24 14:33:21,438 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 14:33:21,443 - DEBUG - VRF ids for VN ctest-vn-17988529: {}
2024-10-24 14:33:21,443 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-10-24 14:33:21,450 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117
2024-10-24 14:33:21,464 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116
2024-10-24 14:33:21,543 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f
2024-10-24 14:33:21,559 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f
2024-10-24 14:33:21,574 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056
2024-10-24 14:33:21,583 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056
2024-10-24 14:33:21,592 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/103a7718-cbdf-403b-b715-bef17e2cf5fc
2024-10-24 14:33:21,600 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 14:33:21,600 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f
2024-10-24 14:33:21,615 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056
2024-10-24 14:33:21,638 - INFO - Verified VN network id 10 for VN 7dec2325-af4b-4eb2-879b-c3049cfc4b8f
2024-10-24 14:33:21,638 - INFO - Verifications in API Server for VN ctest-vn-80972663 passed
2024-10-24 14:33:21,638 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f
2024-10-24 14:33:21,653 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056
2024-10-24 14:33:21,663 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056
2024-10-24 14:33:21,675 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/103a7718-cbdf-403b-b715-bef17e2cf5fc
2024-10-24 14:33:21,692 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68175458', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9073665994006417074', 'uuid-lslong': '9771618241091488655'}, 'enable': 'true', 'created': '2024-10-24T14:33:19', 'last-modified': '2024-10-24T14:33:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.564574'}
2024-10-24 14:33:21,700 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 14:33:21,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80972663 passed
2024-10-24 14:33:21,700 - DEBUG - ====Verifying policy data for ctest-vn-80972663 in API_Server ======
2024-10-24 14:33:21,700 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-10-24 14:33:21,708 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117
2024-10-24 14:33:21,723 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116
2024-10-24 14:33:21,812 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f
2024-10-24 14:33:21,832 - DEBUG - ==>Verifying data for policy with id: 15f1ad0e-3e4d-4080-99af-c7742eb4e545, fqn: ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-policy-allow-all-06787313']
2024-10-24 14:33:21,832 - INFO - VN ctest-vn-80972663 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 14:33:21,832 - DEBUG - Verifying the vn in opserver
2024-10-24 14:33:21,832 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663 virtual network link through opserver 10.0.0.54
2024-10-24 14:33:21,832 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-10-24 14:33:21,846 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663?flat'}
2024-10-24 14:33:21,846 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663 is found in opserver
2024-10-24 14:33:21,857 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 14:33:21,863 - DEBUG - VRF ids for VN ctest-vn-80972663: {}
2024-10-24 14:33:21,923 - DEBUG - Services list from nova: [