2024-10-29 11:30:43,675 - INFO - Domain Default found not creating
2024-10-29 11:30:43,875 - INFO - Project ctest-TestBasicPolicy-45722056 not found, creating it
2024-10-29 11:30:44,436 - INFO - Created Project:ctest-TestBasicPolicy-45722056, ID : 04f54a8f-30fa-4cee-9bce-6e845a4ad1cb
2024-10-29 11:30:46,257 - INFO - ================================================================================
2024-10-29 11:30:46,258 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-29 11:30:46,258 - 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-29 11:30:46,528 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.12': '0'}} with
2024-10-29 11:30:46,528 - INFO - Initial checks done. Running the testcase now
2024-10-29 11:30:46,529 - INFO -
2024-10-29 11:30:47,221 - DEBUG - Response for create_network : {'network': {'id': 'b29ffa36-3539-49af-8156-4bc1c923de20', 'name': 'ctest-vn-11041376', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-vn-11041376'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:30:47,463 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d31267b-e180-4fd4-96fa-f83636f2e7bb', 'name': '', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'network_id': 'b29ffa36-3539-49af-8156-4bc1c923de20', 'ip_version': 4, 'cidr': '183.84.190.128/26', 'allocation_pools': [{'start': '183.84.190.130', 'end': '183.84.190.190'}], 'gateway_ip': '183.84.190.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.84.190.130', 'tags': [], 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb'}}
2024-10-29 11:30:47,491 - INFO - Created VN ctest-vn-11041376
2024-10-29 11:30:47,555 - DEBUG - VN ctest-vn-11041376 UUID is b29ffa36-3539-49af-8156-4bc1c923de20
2024-10-29 11:30:47,958 - DEBUG - Response for create_network : {'network': {'id': '43c0f0d6-ef42-479d-b359-9bb2d2b6edc1', 'name': 'ctest-vn-23079365', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-vn-23079365'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:30:48,180 - DEBUG - Response for create_subnet : {'subnet': {'id': '694f5cd9-7c71-4d97-a9e5-5147c68e35bc', 'name': '', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'network_id': '43c0f0d6-ef42-479d-b359-9bb2d2b6edc1', 'ip_version': 4, 'cidr': '168.88.240.128/26', 'allocation_pools': [{'start': '168.88.240.130', 'end': '168.88.240.190'}], 'gateway_ip': '168.88.240.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.88.240.130', 'tags': [], 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb'}}
2024-10-29 11:30:48,203 - INFO - Created VN ctest-vn-23079365
2024-10-29 11:30:48,262 - DEBUG - VN ctest-vn-23079365 UUID is 43c0f0d6-ef42-479d-b359-9bb2d2b6edc1
2024-10-29 11:30:48,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376, 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-45722056:ctest-vn-23079365, 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-29 11:30:48,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b29ffa36-3539-49af-8156-4bc1c923de20', 'name': 'ctest-vn-11041376', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d31267b-e180-4fd4-96fa-f83636f2e7bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-vn-11041376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-policy-allow-all-89606652']], 'subnet_ipam': [{'subnet_cidr': '183.84.190.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:30:49,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '43c0f0d6-ef42-479d-b359-9bb2d2b6edc1', 'name': 'ctest-vn-23079365', 'tenant_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'project_id': '04f54a8f30fa4cee9bce6e845a4ad1cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['694f5cd9-7c71-4d97-a9e5-5147c68e35bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-vn-23079365'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-policy-allow-all-89606652']], 'subnet_ipam': [{'subnet_cidr': '168.88.240.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:30:49,218 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 11:30:49,580 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 11:30:49,623 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7
2024-10-29 11:30:49,642 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb
2024-10-29 11:30:49,739 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20
2024-10-29 11:30:49,762 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20
2024-10-29 11:30:49,784 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed
2024-10-29 11:30:49,798 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed
2024-10-29 11:30:49,809 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/43218b1e-abaa-4d42-905c-ab5a0f57f58d
2024-10-29 11:30:49,821 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 11:30:49,821 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20
2024-10-29 11:30:49,841 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed
2024-10-29 11:30:49,867 - INFO - Verified VN network id 7 for VN b29ffa36-3539-49af-8156-4bc1c923de20
2024-10-29 11:30:49,867 - INFO - Verifications in API Server for VN ctest-vn-11041376 passed
2024-10-29 11:30:49,867 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20
2024-10-29 11:30:49,885 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed
2024-10-29 11:30:49,899 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/70bfe923-933f-4d86-a3fc-29db302f42ed
2024-10-29 11:30:49,910 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/43218b1e-abaa-4d42-905c-ab5a0f57f58d
2024-10-29 11:30:49,928 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45722056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12871281370776291759', 'uuid-lslong': '9319719774565162528'}, 'enable': 'true', 'created': '2024-10-29T11:30:47', 'last-modified': '2024-10-29T11:30:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.203090'}
2024-10-29 11:30:49,936 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 11:30:49,936 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11041376 passed
2024-10-29 11:30:49,937 - DEBUG - ====Verifying policy data for ctest-vn-11041376 in API_Server ======
2024-10-29 11:30:49,937 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 11:30:49,945 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7
2024-10-29 11:30:49,962 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb
2024-10-29 11:30:50,064 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b29ffa36-3539-49af-8156-4bc1c923de20
2024-10-29 11:30:50,082 - DEBUG - ==>Verifying data for policy with id: 798ce7cb-0dac-4463-a7da-24995a5b91de, fqn: ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-policy-allow-all-89606652']
2024-10-29 11:30:50,082 - INFO - VN ctest-vn-11041376 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 11:30:50,082 - DEBUG - Verifying the vn in opserver
2024-10-29 11:30:50,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376 virtual network link through opserver 10.0.0.29
2024-10-29 11:30:50,082 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-29 11:30:50,421 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-29 11:30:50,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376?flat'}
2024-10-29 11:30:50,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-11041376 is found in opserver
2024-10-29 11:30:50,509 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 11:30:50,515 - DEBUG - VRF ids for VN ctest-vn-11041376: {}
2024-10-29 11:30:50,515 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 11:30:50,522 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7
2024-10-29 11:30:50,538 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb
2024-10-29 11:30:50,623 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1
2024-10-29 11:30:50,642 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1
2024-10-29 11:30:50,660 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e
2024-10-29 11:30:50,672 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e
2024-10-29 11:30:50,683 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a414f237-e8bf-4b1b-bdb8-98e66ae7bc2e
2024-10-29 11:30:50,693 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 11:30:50,693 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1
2024-10-29 11:30:50,710 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e
2024-10-29 11:30:50,735 - INFO - Verified VN network id 8 for VN 43c0f0d6-ef42-479d-b359-9bb2d2b6edc1
2024-10-29 11:30:50,735 - INFO - Verifications in API Server for VN ctest-vn-23079365 passed
2024-10-29 11:30:50,735 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1
2024-10-29 11:30:50,751 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e
2024-10-29 11:30:50,763 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9a0a0077-9081-46c8-9ebe-f0b28d5f6b3e
2024-10-29 11:30:50,774 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a414f237-e8bf-4b1b-bdb8-98e66ae7bc2e
2024-10-29 11:30:50,790 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45722056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4882166801997383581', 'uuid-lslong': '12923531798058036673'}, 'enable': 'true', 'created': '2024-10-29T11:30:47', 'last-modified': '2024-10-29T11:30:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.782768'}
2024-10-29 11:30:50,797 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 11:30:50,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23079365 passed
2024-10-29 11:30:50,798 - DEBUG - ====Verifying policy data for ctest-vn-23079365 in API_Server ======
2024-10-29 11:30:50,798 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-10-29 11:30:50,805 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8562647d-817f-43f9-bca9-6c1ffa94e7d7
2024-10-29 11:30:50,820 - DEBUG - Requesting: http://10.0.0.29:8082/project/04f54a8f-30fa-4cee-9bce-6e845a4ad1cb
2024-10-29 11:30:50,912 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/43c0f0d6-ef42-479d-b359-9bb2d2b6edc1
2024-10-29 11:30:50,930 - DEBUG - ==>Verifying data for policy with id: 798ce7cb-0dac-4463-a7da-24995a5b91de, fqn: ['default-domain', 'ctest-TestBasicPolicy-45722056', 'ctest-policy-allow-all-89606652']
2024-10-29 11:30:50,930 - INFO - VN ctest-vn-23079365 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 11:30:50,930 - DEBUG - Verifying the vn in opserver
2024-10-29 11:30:50,930 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365 virtual network link through opserver 10.0.0.29
2024-10-29 11:30:50,930 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-10-29 11:30:50,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365?flat'}
2024-10-29 11:30:50,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45722056:ctest-vn-23079365 is found in opserver
2024-10-29 11:30:50,960 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 11:30:50,968 - DEBUG - VRF ids for VN ctest-vn-23079365: {}
2024-10-29 11:30:51,041 - DEBUG - Services list from nova: [