2025-01-14 17:47:21,261 - INFO - Domain Default found not creating
2025-01-14 17:47:21,431 - INFO - Project ctest-TestBasicPolicy-83893021 not found, creating it
2025-01-14 17:47:21,916 - INFO - Created Project:ctest-TestBasicPolicy-83893021, ID : 58b35623-b78f-406b-a0ed-ad7baf52434d
2025-01-14 17:47:23,491 - INFO - ================================================================================
2025-01-14 17:47:23,491 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 17:47:23,491 - 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
2025-01-14 17:47:23,773 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.6': '0'}} with
2025-01-14 17:47:23,773 - INFO - Initial checks done. Running the testcase now
2025-01-14 17:47:23,773 - INFO -
2025-01-14 17:47:24,399 - DEBUG - Response for create_network : {'network': {'id': 'ab82984a-2cfb-41fc-ab61-0b2c2fa8546b', 'name': 'ctest-vn-33028996', 'tenant_id': '58b35623b78f406ba0edad7baf52434d', 'project_id': '58b35623b78f406ba0edad7baf52434d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83893021', 'ctest-vn-33028996'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 17:47:24,595 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a7938cc-f559-4995-b431-522528e49b6c', 'name': '', 'tenant_id': '58b35623b78f406ba0edad7baf52434d', 'network_id': 'ab82984a-2cfb-41fc-ab61-0b2c2fa8546b', 'ip_version': 4, 'cidr': '164.7.80.64/26', 'allocation_pools': [{'start': '164.7.80.66', 'end': '164.7.80.126'}], 'gateway_ip': '164.7.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.7.80.66', 'tags': [], 'project_id': '58b35623b78f406ba0edad7baf52434d'}}
2025-01-14 17:47:24,617 - INFO - Created VN ctest-vn-33028996
2025-01-14 17:47:24,676 - DEBUG - VN ctest-vn-33028996 UUID is ab82984a-2cfb-41fc-ab61-0b2c2fa8546b
2025-01-14 17:47:24,989 - DEBUG - Response for create_network : {'network': {'id': 'f590f6fa-36a6-40b0-9b89-799bbe54f753', 'name': 'ctest-vn-50733767', 'tenant_id': '58b35623b78f406ba0edad7baf52434d', 'project_id': '58b35623b78f406ba0edad7baf52434d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83893021', 'ctest-vn-50733767'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 17:47:25,174 - DEBUG - Response for create_subnet : {'subnet': {'id': '64206fb3-6d35-4c10-87ac-deecbf47ff03', 'name': '', 'tenant_id': '58b35623b78f406ba0edad7baf52434d', 'network_id': 'f590f6fa-36a6-40b0-9b89-799bbe54f753', 'ip_version': 4, 'cidr': '67.106.167.128/26', 'allocation_pools': [{'start': '67.106.167.130', 'end': '67.106.167.190'}], 'gateway_ip': '67.106.167.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.106.167.130', 'tags': [], 'project_id': '58b35623b78f406ba0edad7baf52434d'}}
2025-01-14 17:47:25,193 - INFO - Created VN ctest-vn-50733767
2025-01-14 17:47:25,248 - DEBUG - VN ctest-vn-50733767 UUID is f590f6fa-36a6-40b0-9b89-799bbe54f753
2025-01-14 17:47:25,368 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-33028996, 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-83893021:ctest-vn-50733767, 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]
2025-01-14 17:47:25,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab82984a-2cfb-41fc-ab61-0b2c2fa8546b', 'name': 'ctest-vn-33028996', 'tenant_id': '58b35623b78f406ba0edad7baf52434d', 'project_id': '58b35623b78f406ba0edad7baf52434d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a7938cc-f559-4995-b431-522528e49b6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83893021', 'ctest-vn-33028996'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83893021', 'ctest-policy-allow-all-24700671']], 'subnet_ipam': [{'subnet_cidr': '164.7.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 17:47:25,925 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f590f6fa-36a6-40b0-9b89-799bbe54f753', 'name': 'ctest-vn-50733767', 'tenant_id': '58b35623b78f406ba0edad7baf52434d', 'project_id': '58b35623b78f406ba0edad7baf52434d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64206fb3-6d35-4c10-87ac-deecbf47ff03'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83893021', 'ctest-vn-50733767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83893021', 'ctest-policy-allow-all-24700671']], 'subnet_ipam': [{'subnet_cidr': '67.106.167.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 17:47:26,100 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-14 17:47:26,403 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-14 17:47:26,435 - DEBUG - Requesting: http://10.0.0.27:8082/domain/20d87dc6-ea57-4117-970a-2d53741e7f67
2025-01-14 17:47:26,451 - DEBUG - Requesting: http://10.0.0.27:8082/project/58b35623-b78f-406b-a0ed-ad7baf52434d
2025-01-14 17:47:26,532 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ab82984a-2cfb-41fc-ab61-0b2c2fa8546b
2025-01-14 17:47:26,547 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ab82984a-2cfb-41fc-ab61-0b2c2fa8546b
2025-01-14 17:47:26,560 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6128450f-a27a-4b66-a26b-f7b6468a2057
2025-01-14 17:47:26,571 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6128450f-a27a-4b66-a26b-f7b6468a2057
2025-01-14 17:47:26,581 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9d501cae-5b7e-4920-8faf-778e2fd3a925
2025-01-14 17:47:26,589 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 17:47:26,589 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ab82984a-2cfb-41fc-ab61-0b2c2fa8546b
2025-01-14 17:47:26,601 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6128450f-a27a-4b66-a26b-f7b6468a2057
2025-01-14 17:47:26,619 - INFO - Verified VN network id 8 for VN ab82984a-2cfb-41fc-ab61-0b2c2fa8546b
2025-01-14 17:47:26,619 - INFO - Verifications in API Server for VN ctest-vn-33028996 passed
2025-01-14 17:47:26,620 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ab82984a-2cfb-41fc-ab61-0b2c2fa8546b
2025-01-14 17:47:26,634 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6128450f-a27a-4b66-a26b-f7b6468a2057
2025-01-14 17:47:26,644 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6128450f-a27a-4b66-a26b-f7b6468a2057
2025-01-14 17:47:26,656 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9d501cae-5b7e-4920-8faf-778e2fd3a925
2025-01-14 17:47:26,675 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-33028996', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83893021', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12358607771807728124', 'uuid-lslong': '12349163937632638059'}, 'enable': 'true', 'created': '2025-01-14T17:47:24', 'last-modified': '2025-01-14T17:47:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012475'}
2025-01-14 17:47:26,687 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 17:47:26,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33028996 passed
2025-01-14 17:47:26,687 - DEBUG - ====Verifying policy data for ctest-vn-33028996 in API_Server ======
2025-01-14 17:47:26,687 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-14 17:47:26,694 - DEBUG - Requesting: http://10.0.0.27:8082/domain/20d87dc6-ea57-4117-970a-2d53741e7f67
2025-01-14 17:47:26,709 - DEBUG - Requesting: http://10.0.0.27:8082/project/58b35623-b78f-406b-a0ed-ad7baf52434d
2025-01-14 17:47:26,786 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ab82984a-2cfb-41fc-ab61-0b2c2fa8546b
2025-01-14 17:47:26,798 - DEBUG - ==>Verifying data for policy with id: 75cabbc8-b5e9-46a4-95ba-09b438fd9dc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-83893021', 'ctest-policy-allow-all-24700671']
2025-01-14 17:47:26,798 - INFO - VN ctest-vn-33028996 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 17:47:26,798 - DEBUG - Verifying the vn in opserver
2025-01-14 17:47:26,798 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-33028996 virtual network link through opserver 10.0.0.27
2025-01-14 17:47:26,798 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-14 17:47:27,101 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-14 17:47:27,172 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-33028996', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-33028996?flat'}
2025-01-14 17:47:27,172 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-33028996 is found in opserver
2025-01-14 17:47:27,186 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 17:47:27,193 - DEBUG - VRF ids for VN ctest-vn-33028996: {}
2025-01-14 17:47:27,193 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-14 17:47:27,200 - DEBUG - Requesting: http://10.0.0.27:8082/domain/20d87dc6-ea57-4117-970a-2d53741e7f67
2025-01-14 17:47:27,215 - DEBUG - Requesting: http://10.0.0.27:8082/project/58b35623-b78f-406b-a0ed-ad7baf52434d
2025-01-14 17:47:27,308 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f590f6fa-36a6-40b0-9b89-799bbe54f753
2025-01-14 17:47:27,322 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f590f6fa-36a6-40b0-9b89-799bbe54f753
2025-01-14 17:47:27,335 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0a90110c-8442-44c2-8384-60f61b8b3e6c
2025-01-14 17:47:27,346 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0a90110c-8442-44c2-8384-60f61b8b3e6c
2025-01-14 17:47:27,359 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/17c1aeed-0729-4d8e-a970-db4f0cba1f2c
2025-01-14 17:47:27,368 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 17:47:27,368 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f590f6fa-36a6-40b0-9b89-799bbe54f753
2025-01-14 17:47:27,380 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0a90110c-8442-44c2-8384-60f61b8b3e6c
2025-01-14 17:47:27,398 - INFO - Verified VN network id 9 for VN f590f6fa-36a6-40b0-9b89-799bbe54f753
2025-01-14 17:47:27,399 - INFO - Verifications in API Server for VN ctest-vn-50733767 passed
2025-01-14 17:47:27,399 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f590f6fa-36a6-40b0-9b89-799bbe54f753
2025-01-14 17:47:27,414 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0a90110c-8442-44c2-8384-60f61b8b3e6c
2025-01-14 17:47:27,424 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0a90110c-8442-44c2-8384-60f61b8b3e6c
2025-01-14 17:47:27,433 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/17c1aeed-0729-4d8e-a970-db4f0cba1f2c
2025-01-14 17:47:27,449 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-50733767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83893021', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17694914490457800880', 'uuid-lslong': '11207622857508321107'}, 'enable': 'true', 'created': '2025-01-14T17:47:24', 'last-modified': '2025-01-14T17:47:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.550035'}
2025-01-14 17:47:27,458 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 17:47:27,458 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50733767 passed
2025-01-14 17:47:27,458 - DEBUG - ====Verifying policy data for ctest-vn-50733767 in API_Server ======
2025-01-14 17:47:27,458 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-14 17:47:27,468 - DEBUG - Requesting: http://10.0.0.27:8082/domain/20d87dc6-ea57-4117-970a-2d53741e7f67
2025-01-14 17:47:27,483 - DEBUG - Requesting: http://10.0.0.27:8082/project/58b35623-b78f-406b-a0ed-ad7baf52434d
2025-01-14 17:47:27,565 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f590f6fa-36a6-40b0-9b89-799bbe54f753
2025-01-14 17:47:27,580 - DEBUG - ==>Verifying data for policy with id: 75cabbc8-b5e9-46a4-95ba-09b438fd9dc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-83893021', 'ctest-policy-allow-all-24700671']
2025-01-14 17:47:27,580 - INFO - VN ctest-vn-50733767 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 17:47:27,580 - DEBUG - Verifying the vn in opserver
2025-01-14 17:47:27,580 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-50733767 virtual network link through opserver 10.0.0.27
2025-01-14 17:47:27,580 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-14 17:47:27,594 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-50733767', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-50733767?flat'}
2025-01-14 17:47:27,594 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83893021:ctest-vn-50733767 is found in opserver
2025-01-14 17:47:27,607 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 17:47:27,612 - DEBUG - VRF ids for VN ctest-vn-50733767: {}
2025-01-14 17:47:27,693 - DEBUG - Services list from nova: [